hjkhghopjkertteerterterterertertrtoirh
bnmbertsurhetertertertertertertertpdf'tdfg
/
home
/
ubuntu
/
bmse.net
/
Upload FileeE
HOME
<?php include('includes/application_includes.php'); ini_set('display_errors', 1); $booths_destination_img = "./pgimages/exhibitor_images/"; //path of the destination directory $booths_source_img = SITE_EXHIBITORADMIN_EXHI_IMAGE_PATH; //path of the source directory $presenters_destination_img = "./pgimages/presenters/"; //path of the destination directory $presenters_source_img = SITE_EXHIBITORADMIN_BOOTH_PRESENTERS_IMAGE_PATH; //path of the source directory $expoid = 183; $booths = $db->getRows("SELECT BC.boothid, M.id as exhibitor_id, M.image_name FROM bmse_expo_rooms ER LEFT JOIN bmse_booth_configs BC ON ER.id = BC.boothid LEFT JOIN bmse_order_details OD ON ER.id = OD.item_id LEFT JOIN bmse_orders O ON O.id = OD.order_id LEFT JOIN bmse_members M ON M.id = O.member_id WHERE ER.expo_id = $expoid AND OD.item_type_id =1 AND ER.order_status =2 ORDER BY ER.room_number ASC"); $presenters = $db->getRows("SELECT BM.id as member_id, BLS.presenter_image FROM bmse_orders O LEFT JOIN bmse_order_details OD ON OD.order_id=O.id LEFT JOIN bmse_members BM ON BM.id = O.member_id LEFT JOIN bmse_expo_lecture_slots BMLS ON BMLS.id = OD.item_id LEFT JOIN bmse_expo_rooms ER ON ER.id = BMLS.room_id LEFT JOIN bmse_lectureslot_configs BLS ON BLS.slot_id = OD.item_id LEFT JOIN bmse_expos BE ON BE.id = BMLS.expo_id WHERE OD.item_type_id =2 AND BE.id =$expoid ORDER BY BLS.id ASC"); foreach ($booths as $booth) { $booth_image_name = $booth['image_name']; $booths_source_img_path = $booths_source_img . str_replace(' ','%20',$booth_image_name); $booths_destination_img_path = $booths_destination_img . $booth_image_name; if (!file_exists($booths_destination_img_path)) { //Checking if the file exists in the destination directory //Now copying the image to the destination directory copy($booths_source_img_path, str_replace('%20',' ' ,$booths_destination_img_path)); } echo $booth['image_name']."<br />"; } echo "====="; foreach ($presenters as $presenter) { $presenter_image_name = $presenter['presenter_image']; $presenters_source_img_path = $presenters_source_img . str_replace(' ','%20',$presenter_image_name); $presenters_destination_img_path = $presenters_destination_img . $presenter_image_name; if (!file_exists($presenters_destination_img_path)) { //Checking if the file exists in the destination directory //Now copying the image to the destination directory copy($presenters_source_img_path, str_replace('%20',' ' ,$presenters_destination_img_path)); } echo $presenter['presenter_image']."<br />"; } ?>