} $Cal = new evCalendar($cal_id); $content .= $Cal->DeleteForm(); break; case 'editcal': USES_evlist_class_calendar(); $Cal = new evCalendar($actionval); $content .= $Cal->Edit(); break; case 'calendars': $content .= EVLIST_admin_list_calendars(); break; case 'moderate': USES_evlist_class_event(); $Ev = new evEvent(); $Ev->Read($_REQUEST['id'], 'evlist_submissions'); $content .= $Ev->Edit('', 0, 'moderate'); break; 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;
/** * Post-installation activity. * Create the repeating event records for the sample data that was loaded. */ function X_plugin_postinstall_evlist() { global $_TABLES, $_CONF, $_EV_CONF; require_once $_CONF['path'] . '/plugins/evlist/functions.inc'; // Now create the repeat records for the default events USES_evlist_class_event(); $sql = "SELECT id FROM {$_TABLES['evlist_events']}"; $res = DB_query($sql); $Ev = new evEvent(); while ($A = DB_fetchArray($res, false)) { $Ev->Read($A['id']); $Ev->UpdateRepeats(); } // Clear the template cache since we've introduced some new css. // Might not be needed outside of testing where the plugin is repeatedly // installed & removed, but doesn't hurt. CTL_clearCache(); }