Esempio n. 1
0
if (isset($_POST['action']) && $_POST['action'] == 'speakers_mainpage' && isset($_POST['sId']) && isset($_POST['val'])) {
    $the_main = new main\main();
    $the_main->speakers_mainpage($_POST['sId'], $_POST['val']);
}
// delete sponsors permission
/*
**************************
Press
***************************
*/
/*///////////// 
Add new Press member
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'add_new_press') {
    $the_main = new main\main();
    $result = $the_main->save_press();
    if (isset($result)) {
        $_SESSION['Result'] = 'Success';
        echo 'Success';
    }
}
/*///////////// 
Add company logo to press member
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'add_new_press_company_logo') {
    $the_main = new main\main();
    if (isset($_POST['entity_id']) && $_POST['entity_id'] == 6) {
        $location = "BlogSquad";
    } else {
        $location = "Analytics";
    }