} else { $speaker_tag = ucfirst($_POST['speaker_name']); } $result = $the_main->file_upload('speakers/SpeakerPhotos/', $speaker_tag); if (isset($result['name'])) { $the_main->pic_upload(1, $_POST['speaker_id'], $result['name'], $speaker_tag . ' Picture'); } } /*///////////// Change company image ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'edit_company_image') { $the_main = new main\main(); $result = $the_main->file_upload('speakers/CompanyLogos/', $_POST['company_name']); if (isset($result['name'])) { $the_main->pic_upload(3, $_POST['company_id'], $result['name'], $_POST['company_name']); } } // company image /*///////////// Speaker order ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'speaker_order') { $the_main = new main\main(); foreach ($_POST['order'] as $order) { $the_main->speaker_order($order[0], $order[1]); } /* if (isset($result)) { $_SESSION['Result'] = 'Success'; echo 'Success';