$the_main = new main\main(); foreach ($_POST['order'] as $order) { $the_main->mediapartner_order($order[0], $order[1]); } } /* ************************** Speakers *************************** */ /*///////////// Add new speaker ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'add_new_speaker') { $the_main = new main\main(); $result = $the_main->save_speaker(); if (isset($result)) { $_SESSION['Result'] = 'Success'; echo 'Success'; } } /*///////////// Add speaker company logo ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'add_new_speaker_company_logo') { $the_main = new main\main(); if (isset($_SESSION['SpeakerCompanyId'])) { $result = $the_main->file_upload('speakers/CompanyLogos/', $_POST['Name']); if (isset($result['name'])) { $the_main->pic_upload(3, $_SESSION['SpeakerCompanyId'], $result['name'], $_POST['Name']); }