本文整理匯總了PHP中Kit::GetURL方法的典型用法代碼示例。如果您正苦於以下問題:PHP Kit::GetURL方法的具體用法?PHP Kit::GetURL怎麽用?PHP Kit::GetURL使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Kit
的用法示例。
在下文中一共展示了Kit::GetURL方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array_map
}
$_POST = array_map('stripslashes_deep', $_POST);
$_GET = array_map('stripslashes_deep', $_GET);
$_COOKIE = array_map('stripslashes_deep', $_COOKIE);
$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
}
if (!file_exists("settings.php")) {
// Xibo has not been configured. Just quit since we can't
// raise a SOAP error because we don't know where
// nuSOAP is yet.
die("Not configured. Visit " . Kit::GetURL() . " to configure.");
}
if (file_exists("upgrade.php")) {
// An upgrade is in progress. Just quit since the server
// won't be in a servicable state
die("An upgrade is pending. Visit " . Kit::GetURL() . ".");
}
//parse and init the settings.xml
Config::Load();
//create a DB
$db = new database();
if (!$db->connect_db($dbhost, $dbuser, $dbpass)) {
trigger_error($db->error(), E_USER_ERROR);
}
if (!$db->select_db($dbname)) {
trigger_error($db->error(), E_USER_ERROR);
}
// Error Handling (our error handler requires a DB connection
set_error_handler(array(new Debug(), "ErrorHandler"));
date_default_timezone_set(Config::GetSetting('defaultTimezone'));
// Work out the location of this service