Beispiel #1
0
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']);
        }
    }
}
/*///////////// 
Edit Speaker Data
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'edit_speakers') {
    $the_main = new main\main();
    if (isset($_POST['sId']) && isset($_POST['edit_type'])) {
        $result = $the_main->edit_speaker();
        if (isset($result) && $result != "Deleted") {
            $_SESSION['Result'] = 'Success';
            echo 'Success';
        }
    }
}
/*///////////// 
Change speaker image
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'edit_speaker_image') {
    $the_main = new main\main();
    $sTag = explode(" ", $_POST['speaker_name']);
    if (isset($sTag[0])) {
        $speaker_tag = ucfirst($sTag[1]) . ucfirst($sTag[0][0]);
    } else {