當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Kit::GetURL方法代碼示例

本文整理匯總了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
開發者ID:abbeet,項目名稱:server39,代碼行數:31,代碼來源:xmds.inc.php


注:本文中的Kit::GetURL方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。