namespace HRNParis\ajax; use HRNParis\main; use HRNParis\agenda; include_once 'main.php'; include_once 'agenda_main.php'; if (!isset($_SESSION)) { session_start(); } /*///////////// Approve ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'approve_entities' && isset($_POST['entity_id']) && isset($_POST['entity_type'])) { $the_main = new main\main(); $the_main->approve_entity($_POST['entity_id'], $_POST['entity_type']); } // approve /*///////////// Add new Sponsor ///////////////*/ if (isset($_POST['action']) && $_POST['action'] == 'add_new_sponsor') { $the_main = new main\main(); $result = $the_main->save_sponsor(); if (isset($result)) { $_SESSION['Result'] = 'Success'; echo 'Success'; } } /*///////////// Change sponsor image