Example #1
0
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'sponsor_tag_save') {
    $the_main = new main\main();
    if (isset($_POST['sId'])) {
        $the_main->save_sponsor_tags($_POST['sId'], $_POST['tags']);
    }
}
// sponsor permission edit
/*///////////// 
Sponsor A La Carte Create
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'add_alacarte_data') {
    $the_main = new main\main();
    if (isset($_POST['sId']) && isset($_POST['type'])) {
        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']);
        }