Exemplo n.º 1
0
 * Notes:
 * Does anyone know when a client (iCal, for example) refreshes its
 * data, does it delete all old data and reload?  Just wondering
 * if we need to somehow send a delete notification on updates...
 *
 * Input parameters:
 * URL should be the form of /xxx/publish.php/username.ics
 * or /xxx/publish.php?user=username
 *
 * Security:
 * DO NOT ALLOW if either;
 * $PUBLISH_ENABLED is not 'Y' (set in Admin System Settings).
 * $USER_PUBLISH_ENABLED is not 'Y' (set in each user's Preferences).
 */
require_once 'includes/classes/WebCalendar.class';
$WebCalendar = new WebCalendar(__FILE__);
include 'includes/translate.php';
include 'includes/config.php';
include 'includes/dbi4php.php';
include 'includes/formvars.php';
include 'includes/functions.php';
$WebCalendar->initializeFirstPhase();
//modif
include 'includes/validate.php';
include 'includes/' . $user_inc;
//eom
include 'includes/site_extras.php';
include_once 'includes/xcal.php';
$WebCalendar->initializeSecondPhase();
// Calculate username.
// If using http_auth, use those credentials.
Exemplo n.º 2
0
 *   - {@link send_no_cache_header ()};
 *
 * @author Craig Knudsen <*****@*****.**>
 * @copyright Craig Knudsen, <*****@*****.**>, http://www.k5n.us/cknudsen
 * @license http://www.gnu.org/licenses/gpl.html GNU GPL
 * @version $Id: init.php,v 1.130.2.15 2011/08/09 03:27:56 cknudsen Exp $
 * @package WebCalendar
 */
if (empty($_SERVER['PHP_SELF']) || !empty($_SERVER['PHP_SELF']) && preg_match("/\\/includes\\//", $_SERVER['PHP_SELF'])) {
    die('You cannot access this file directly!');
}
include_once 'includes/translate.php';
require_once 'includes/classes/WebCalendar.class';
require_once 'includes/classes/Event.class';
require_once 'includes/classes/RptEvent.class';
$WebCalendar = new WebCalendar(__FILE__);
include_once 'includes/assert.php';
include_once 'includes/config.php';
include_once 'includes/dbi4php.php';
include_once 'includes/formvars.php';
include_once 'includes/functions.php';
$WebCalendar->initializeFirstPhase();
include_once 'includes/' . $user_inc;
include_once 'includes/validate.php';
include_once 'includes/site_extras.php';
include_once 'includes/access.php';
include_once 'includes/gradient.php';
$WebCalendar->initializeSecondPhase();
/* Prints the HTML header and opening HTML body tag.
 *
 * @param array  $includes     Array of additional files to include referenced