예제 #1
0
function auth_queue_geekmail($bggusername_tainted)
{
    # Find an available cookie
    $cookie = auth_generate_cookie($bggusername_tainted);
    while (db_get_user_by_cookie($cookie)) {
        $cookie = auth_generate_cookie($bggusername_tainted);
    }
    return db_add_auth_request($bggusername_tainted, $cookie);
}
예제 #2
0
파일: home.php 프로젝트: scraimer/bgggcr
<?php

require_once "award.inc.php";
$user = db_get_user_by_cookie($_COOKIE['bggcookie']);
$can_award = award_can_user_give($user['id']);
$last_award = award_get_last($user['id']);
?>
<html>
	<head>
		<title>Home | Geek Citizenship Recognition</title>
	</head>
<body>

<p>Welcome, <?php 
echo $user['username'];
?>
!</p>

<?php 
if ($last_award) {
    ?>
	<p>You last awarded a star in the month of
		<?php 
    echo $last_award['year'];
    ?>
-<?php 
    echo $last_award['month'];
    ?>
</p>.
<?php 
}