Ejemplo n.º 1
0
        if ($_POST['type'] == 'new') {
            $the_main->alacarte_for_sponsor($_POST['sId'], $_POST['value']);
        }
    }
}
/*///////////// 
Sponsor A La Carte Modify
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'edit_alacarte_data') {
    $the_main = new main\main();
    if (isset($_POST['sId']) && isset($_POST['type'])) {
        if ($_POST['type'] == 'modify') {
            $the_main->edit_alacarte($_POST['sId'], $_POST['value']);
        }
        if ($_POST['type'] == 'delete') {
            $the_main->delete_alacarte($_POST['sId']);
        }
    }
}
/************************
Mediapartners
**************************/
/*///////////// 
Add new media partner
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'add_new_mediapartner') {
    $the_main = new main\main();
    $result = $the_main->save_mediapartner();
    if (isset($result)) {
        $_SESSION['Result'] = 'Success';
        echo 'Success';