0byt3m1n1-V2
Path:
/
home
/
nlpacade
/
www
/
calendar
/
bcup
/
includes
/
[
Home
]
File: embed_setup.php
<?php /* * Copyright 2010 Sean Proctor * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ /* * The following variables are intended to be modified to fit your * setup. */ /* * If you want different scripts with different default calendars, you can * copy this script and modify $default_calendar_id to contain the CID of * the calendar you want to be the default */ $default_calendar_id = 1; /* * $phpc_root_path gives the location of the base calendar install. * if you move this file to a new location, modify $phpc_root_path to point * to the location where the support files for the callendar are located. */ $phpc_includes_path = dirname(__FILE__); $phpc_root_path = dirname($phpc_includes_path); $phpc_config_file = "$phpc_root_path/config.php"; $phpc_locale_path = "$phpc_root_path/locale"; $phpc_script = htmlentities($_SERVER['PHP_SELF']); if(!empty($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == "on") $phpc_protocol = "https"; else $phpc_protocol = "http"; $phpc_server = $_SERVER['SERVER_NAME']; if(!empty($_SERVER["SERVER_PORT"]) && $_SERVER["SERVER_PORT"] != 80) $phpc_server .= ":{$_SERVER["SERVER_PORT"]}"; $phpc_url = "$phpc_protocol://$phpc_server$phpc_script" . $_SERVER['QUERY_STRING']; // Remove this line if you must ini_set('arg_separator.output', '&'); /* * Do not modify anything under this point */ define('IN_PHPC', true); require_once("$phpc_includes_path/setup.php"); if ($vars["contentType"] == "json") { echo do_action(); exit; } $calendar_title = get_config($phpcid, 'calendar_title'); ?>
©
2018.