本文整理汇总了PHP中log::log方法的典型用法代码示例。如果您正苦于以下问题:PHP log::log方法的具体用法?PHP log::log怎么用?PHP log::log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类log
的用法示例。
在下文中一共展示了log::log方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: instance
public static function instance()
{
if (!isset(self::$log)) {
self::$log = new log();
}
return self::$log;
}
示例2: elseif
$db->query($q);
}
}
} elseif (!$permissions['r'] && $_GET['magic_word']) {
$magic_word_big = $_GET['magic_word'];
if (preg_match("/(\\d+)-(.+)/", $_GET['magic_word'], $mu)) {
$magic_uid = $mu['1'];
$magic_word = addslashes($mu['2']);
$q = "select login from users where user_id='{$magic_uid}' and magic_word='{$magic_word}'";
$set = $db->query($q);
if ($set->getNumRows()) {
$permissions['r'] = true;
}
}
} else {
log::log('enter', $node['node_id'], 'failed');
}
//assigning user data to smarty if user logged in
if ($user_id = $_SESSION['user_id']) {
$smarty->assign('bookmarks', $_SESSION['bookmarks']);
$smarty->assign('user_id', $_SESSION['user_id']);
if (!empty($_SESSION['cube_vector'])) {
$smarty->assign('cube_vector', $_SESSION['cube_vector']);
}
$smarty->assign('user_quota', $_SESSION['user_quota']);
$newmailset = $db->query("select user_mail,user_mail_name,user_k from users where user_id='{$user_id}'");
$newmailset->next();
$new_mail = $newmailset->getString('user_mail');
$smarty->assign('new_mail', $new_mail);
$smarty->assign('new_mail_name', $newmailset->getString('user_mail_name'));
$user_k = $newmailset->getString('user_k');