} } if (isset($_POST['action']) && $_POST['action'] == 'edit_agenda_sponsor_image') { $the_main = new main\main(); $result = $the_main->file_upload('agenda/sponsors/', $_POST['sponsor_name']); if (isset($result['name'])) { $the_main->pic_upload_agenda($_POST['sponsor_id'], $result['name'], $_POST['sponsor_name'] . ' Logo'); } } /*///////////// Edit Sponsor Data ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'edit_sponsor') { $the_main = new main\main(); if (isset($_POST['sId']) && isset($_POST['edit_type'])) { $result = $the_main->edit_sponsor(); if (isset($result)) { $_SESSION['Result'] = 'Success'; echo 'Success'; } } } /*///////////// Sponsor Permission Request ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'sponsor_permission_request') { if (isset($_POST['sId'])) { $_SESSION['Permission_Edit'] = $_POST['sId']; } } /*/////////////