本文整理汇总了PHP中UserFactory::CreateCurrentUser方法的典型用法代码示例。如果您正苦于以下问题:PHP UserFactory::CreateCurrentUser方法的具体用法?PHP UserFactory::CreateCurrentUser怎么用?PHP UserFactory::CreateCurrentUser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UserFactory
的用法示例。
在下文中一共展示了UserFactory::CreateCurrentUser方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: microtime
exit;
}
}
// Misura tempo se necessario
if (SHOWDEBUGBOX) {
$time = microtime();
$time = explode(" ", $time);
$time = $time[1] + $time[0];
$debug_start_time = $time;
}
// Includi costanti locali
include_once "etc/locale/it/include_all.php";
// Includi le classi PHP e le funzioni
include_once "core/include_all.php";
// Connette il database
$_dbConnector = new _DbConnector();
// Imposta il fuso orario
define('SITE_TIMEZONE', 'Europe/Rome');
putenv("TZ=" . SITE_TIMEZONE);
// Definisce alcune costanti...
define('SITE_TITLE_SUFIX', " - PieroTofy.it");
define('SITE_TITLE_PREFIX', "PieroTofy.it - ");
define('SITE_TITLE', "Programmazione C/C++, Software open source, java, visual basic 6, .net e molto altro ancora");
define('SITE_KEYWORDS', "programmi, sorgenti, guide");
define('SITE_DESCRIPTION', "Il portale per eccellenza sulla programmazione.");
define('SITE_VERSION', "Codename Martial Eagle");
// Asserzioni devono sempre terminare
assert_options(ASSERT_BAIL, true);
// Prende l'utente corrente
$currentUser = UserFactory::CreateCurrentUser();