本文整理汇总了PHP中CMediusers::isInstalled方法的典型用法代码示例。如果您正苦于以下问题:PHP CMediusers::isInstalled方法的具体用法?PHP CMediusers::isInstalled怎么用?PHP CMediusers::isInstalled使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CMediusers
的用法示例。
在下文中一共展示了CMediusers::isInstalled方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateSpecs
/**
* Update the object's specs
*
* @return void
**/
function updateSpecs()
{
$oldSpec = $this->_specs['_user_password'];
$user = new CMediusers();
$remote = 0;
if ($user->isInstalled()) {
if ($result = $user->load($this->user_id)) {
$remote = $user->remote;
}
}
// Determine if password length is sufficient
$strongPassword = CAppUI::conf("admin CUser strong_password") == "1" && ($remote == 0 || CAppUI::conf("admin CUser apply_all_users"));
// If the global strong password config is set to TRUE and the user can connect remotely
$this->_specs['_user_password'] = $strongPassword ? $this->_specs['_user_password_strong'] : $this->_specs['_user_password_weak'];
$this->_specs['_user_password']->fieldName = $oldSpec->fieldName;
$this->_props['_user_password'] = $strongPassword ? $this->_props['_user_password_strong'] : $this->_props['_user_password_weak'];
}
示例2: gmdate
// HTTP headers
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-cache, no-store, must-revalidate");
// HTTP/1.1
header("Pragma: no-cache");
// HTTP/1.0
header("X-UA-Compatible: IE=edge");
// Force IE document mode
// Show errors to admin
ini_set("display_errors", CAppUI::pref("INFOSYSTEM"));
CMbPerformance::mark("headers");
$user = new CMediusers();
if ($user->isInstalled()) {
$user->load(CAppUI::$instance->user_id);
$user->getBasicInfo();
CAppUI::$user = $user;
CAppUI::$instance->_ref_user =& CAppUI::$user;
CApp::$is_robot = CAppUI::$user->isRobot();
// Offline mode for non-admins
if ($dPconfig["offline_non_admin"] && CAppUI::$user->_id != 0 && !CAppUI::$user->isAdmin()) {
CApp::goOffline("maintenance");
}
}
CMbPerformance::mark("user");
// Load DB-stored configuration schema
$configurations = glob(__DIR__ . "/modules/*/configuration.php");
foreach ($configurations as $_configuration) {
include $_configuration;