本文整理匯總了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');