Exemplo n.º 1
0
appconf_set('rss_description', intl_get('Event listings from') . ' ' . site_domain());
// Set this to false if you want to remove the direction links to Google Maps.
appconf_set('google_maps', true);
define('SITEEVENT_TODAY', date('Y-m-d'));
if (date('i') < 30) {
    define('SITEEVENT_NOW', date('H:i:00', time() - date('i') * 60 + 1800));
} else {
    define('SITEEVENT_NOW', date('H:00:00', time() + (3600 - date('i') * 60)));
}
appconf_set('date_format', '%B %e, %Y');
appconf_set('short_date', '%B %e');
// This loads the settings.ini.php file now so the defaults there can affect
// subsequent function calls like page_add_style() below in this file.
appconf_default_settings();
formdata_set('hours', array('00:00:00' => '- SELECT -', '08:00:00' => '&nbsp;8:00 AM', '08:30:00' => '&nbsp;8:30 AM', '09:00:00' => '&nbsp;9:00 AM', '09:30:00' => '&nbsp;9:30 AM', '10:00:00' => '10:00 AM', '10:30:00' => '10:30 AM', '11:00:00' => '11:00 AM', '11:30:00' => '11:30 AM', '12:00:00' => '12:00 PM', '12:30:00' => '12:30 PM', '13:00:00' => '&nbsp;1:00 PM', '13:30:00' => '&nbsp;1:30 PM', '14:00:00' => '&nbsp;2:00 PM', '14:30:00' => '&nbsp;2:30 PM', '15:00:00' => '&nbsp;3:00 PM', '15:30:00' => '&nbsp;3:30 PM', '16:00:00' => '&nbsp;4:00 PM', '16:30:00' => '&nbsp;4:30 PM', '17:00:00' => '&nbsp;5:00 PM', '17:30:00' => '&nbsp;5:30 PM', '18:00:00' => '&nbsp;6:00 PM', '18:30:00' => '&nbsp;6:30 PM', '19:00:00' => '&nbsp;7:00 PM', '19:30:00' => '&nbsp;7:30 PM', '20:00:00' => '&nbsp;8:00 PM', '20:30:00' => '&nbsp;8:30 PM', '21:00:00' => '&nbsp;9:00 PM', '21:30:00' => '&nbsp;9:30 PM', '22:00:00' => '10:00 PM', '22:30:00' => '10:30 PM', '23:00:00' => '11:00 PM', '23:30:00' => '11:30 PM'));
formdata_set('recurring', array('no' => '- ' . intl_get('SELECT') . ' -', 'daily' => intl_get('Daily'), 'weekly' => intl_get('Weekly'), 'monthly' => intl_get('Monthly'), 'yearly' => intl_get('Yearly')));
if ($context == 'action') {
    if (appconf('page_below')) {
        page_below(appconf('page_below'));
    }
    if (appconf('page_alias')) {
        page_id(appconf('page_alias'));
    }
    if (appconf('template')) {
        page_template(appconf('template'));
    }
    global $cgi;
    $url = 'http://' . site_domain() . site_prefix() . '/index/siteevent-rss-action';
    $url2 = 'http://' . site_domain() . site_prefix() . '/index/siteevent-ical-action';
    if ($cgi->category) {
        $url .= '?category=' . $cgi->category;
Exemplo n.º 2
0
<?php

// BEGIN KEEPOUT CHECKING
// Add these lines to the very top of any file you don't want people to
// be able to access directly.
if (!defined('SAF_VERSION')) {
    header('HTTP/1.1 404 Not Found');
    echo "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n" . "<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n" . "The requested URL " . $PHP_SELF . " was not found on this server.<p>\n<hr>\n" . $_SERVER['SERVER_SIGNATURE'] . "</body></html>";
    exit;
}
// END KEEPOUT CHECKING
// custom application properties go here.
// this helps centralize values that would be often referenced
// in multiple places in your application.
define('E_UNAUTHORIZED', 401);
define('E_FORBIDDEN', 403);
define('E_NOT_FOUND', 404);
define('E_SERVER_ERROR', 500);
conf_set('errors', array(E_UNAUTHORIZED => array('title' => 'Unauthorized', 'message' => 'You do not have the permission to view the requested document.'), E_FORBIDDEN => array('title' => 'Forbidden', 'message' => 'The requested document is forbidden.'), E_NOT_FOUND => array('title' => 'Not Found', 'message' => 'The requested document was not found on this server.'), E_SERVER_ERROR => array('title' => 'Server Error', 'message' => 'The server has encountered an unknown internal error.')));
formdata_set('provinces', array('Alberta', 'British Columbia', 'Manitoba', 'New Brunswick', 'Newfoundland', 'Northwest Territories', 'Nova Scotia', 'Nunavut', 'Ontario', 'Quebec', 'Prince Edward Island', 'Saskatchewan', 'Yukon Territories'));
formrules_set('username', array(array('not empty', 'You must enter a username to continue.'), array('unique "sitellite_user/username"', 'The username you have chosen is already in use.')));
if (session_admin()) {
    page_add_style(site_prefix() . '/inc/html/admin/extra.css');
}