Пример #1
0
function cookie_monster()
{
    //	Delete Cookies
    $cookies = array('dabr_settings', 'dabr_perPage', 'dabr_imageSize', 'dabr_gwt', 'dabr_colours', 'dabr_timestamp', 'dabr_show_inline', 'dabr_show_oembed', 'dabr_show_avatars', 'dabr_show_icons', 'dabr_float_menu', 'dabr_image_size', 'dabr_utc_offset', 'dabr_fonts', 'dabr_font_size', 'USER_AUTH');
    $duration = time() - 3600;
    foreach ($cookies as $cookie) {
        setcookie($cookie, null, $duration, '/');
        setcookie($cookie, null, $duration);
    }
    setting_clear_session_oauth();
    return theme('page', _(COOKIE_MONSTER), '<p>' . _(COOKIE_MONSTER_DONE) . '</p>');
}
Пример #2
0
function cookie_monster()
{
    //	Delete Cookies
    $cookies = array('settings', 'utc_offset', 'search_favourite', 'perPage', 'imageSize', 'USER_AUTH');
    $duration = time() - 3600;
    foreach ($cookies as $cookie) {
        setcookie($cookie, null, $duration, '/');
        setcookie($cookie, null, $duration);
    }
    setting_clear_session_oauth();
    return theme('page', 'Cookie Monster', '<p>The cookie monster has logged you out and cleared all settings. Try logging in again now.</p>');
}
Пример #3
0
function theme_login()
{
    //	Reset stale OAuth data
    setting_clear_session_oauth();
    $content = '<div class="tweet">
					<p>
						<a href="oauth">
							<img src="images/sign-in-with-twitter-gray.png" 
							     alt="Sign in with Twitter" 
							     width="158" 
							     height="28" 
							     class="action" /></a>
						<br />
						<a href="oauth">Sign in via Twitter.com</a>
					</p>';
    return $content;
}
Пример #4
0
function theme_login()
{
    //	Reset stale OAuth data
    setting_clear_session_oauth();
    $content = '<div class="tweet">
					<p>
						<a href="oauth">
							<img src="i/images/sign-in-with-twitter-gray.png"
							     alt="' . _(TWITTER_SIGN_IN) . '"
							     width="158"
							     height="28"
							     class="action" /></a>
						<br />
						<a href="oauth">' . _(TWITTER_SIGN_IN) . '</a>
					</p>';
    return $content;
}