Example #1
0
 case 'categories':
     $content .= EVLIST_adminlist_categories();
     break;
 case 'tickettypes':
     if ($_EV_CONF['enable_rsvp']) {
         USES_evlist_class_tickettype();
         $content .= EVLIST_adminlist_tickettypes();
     }
     break;
 case 'tickets':
     $ev_id = isset($_GET['ev_id']) ? $_GET['ev_id'] : '';
     $content .= EVLIST_adminlist_tickets($ev_id);
     break;
 case 'editcat':
     USES_evlist_class_category();
     $C = new evCategory($_GET['id']);
     $content .= $C->Edit();
     break;
 case 'editticket':
     if ($_EV_CONF['enable_rsvp']) {
         USES_evlist_class_tickettype();
         $Tic = new evTicketType($actionval);
         $content .= $Tic->Edit();
     }
     break;
 case 'rsvp':
     USES_evlist_functions();
     $rp_id = isset($_POST['rp_id']) && !empty($_POST['rp_id']) ? $_POST['rp_id'] : isset($_GET['rp_id']) && !empty($_GET['rp_id']) ? $_GET['rp_id'] : 0;
     if ($rp_id > 0) {
         $content .= EVLIST_adminRSVP($rp_id);
     }
Example #2
0
/** Include required glFusion common functions */
require_once '../../../lib-common.php';
// This is for administrators only.  It's called by Javascript,
// so don't try to display a message
if (!SEC_hasRights('evlist.admin')) {
    COM_accessLog("User {$_USER['username']} tried to illegally access the evlist admin ajax function.");
    exit;
}
switch ($_GET['action']) {
    case 'toggle':
        switch ($_GET['component']) {
            case 'category':
                USES_evlist_class_category();
                switch ($_GET['type']) {
                    case 'enabled':
                        $newval = evCategory::toggleEnabled($_REQUEST['oldval'], $_REQUEST['id']);
                        break;
                    default:
                        exit;
                }
                /*header('Content-Type: text/xml');
                        header("Cache-Control: no-cache, must-revalidate");
                        //A date in the past
                        header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
                
                        echo '<?xml version="1.0" encoding="ISO-8859-1"?>
                        <info>'. "\n";
                        echo "<newval>$newval</newval>\n";
                        echo "<id>{$_REQUEST['id']}</id>\n";
                        echo "<type>{$_REQUEST['type']}</type>\n";
                        echo "<component>{$_REQUEST['component']}</component>\n";