Exemplo n.º 1
0
<?php

/**************************************************************************************************
| PinMe Script by Scriptolution.com
| http://www.pinmescript.com
| webmaster@pinmescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.pinmescript.com/eula.html and to be bound by it.
|
| Copyright (c) PinMeScript.com. All rights reserved.
|**************************************************************************************************/
include "include/config.php";
destroy_slrememberme($_SESSION[USERNAME]);
$_SESSION['USERID'] = "";
$_SESSION['EMAIL'] = "";
$_SESSION['USERNAME'] = "";
$_SESSION['VERIFIED'] = "";
$_SESSION['PP'] = "";
$_SESSION['FNAME'] = "";
$_SESSION['LNAME'] = "";
$_SESSION['FB'] = "";
$_SESSION['PINREDIRECT'] = "";
header("location: {$config['baseurl']}/");
Exemplo n.º 2
0
        if ($rs->recordcount() < 1) {
            $error = "Error: Could not locate your account.";
        } elseif ($rs->fields['status'] == "0") {
            $error = "Error: Your account has been disabled by the administrator.";
        }
        if ($error == "") {
            $_SESSION['USERID'] = $rs->fields['USERID'];
            $_SESSION['EMAIL'] = $rs->fields['email'];
            $_SESSION['USERNAME'] = $rs->fields['username'];
            $_SESSION['VERIFIED'] = $rs->fields['verified'];
            $_SESSION['PP'] = $rs->fields['profilepicture'];
            $_SESSION['FNAME'] = $rs->fields['fname'];
            $_SESSION['LNAME'] = $rs->fields['lname'];
            create_slrememberme();
        } else {
            destroy_slrememberme($username);
        }
    }
}
function generateCode($length)
{
    $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ0123456789";
    $code = "";
    $clen = strlen($chars) - 1;
    while (strlen($code) < $length) {
        $code .= $chars[mt_rand(0, $clen)];
    }
    return $code;
}
function getCurrentPageUrl()
{
Exemplo n.º 3
0
<?php

/**************************************************************************************************
| Gag Clone Script
| http://www.gagclonescript.com
| webmaster@gagclonescript.com
|
|**************************************************************************************************
|
| By using this software you agree that you have read and acknowledged our End-User License 
| Agreement available at http://www.gagclonescript.com/eula.html and to be bound by it.
|
| Copyright (c) GagCloneScript.com. All rights reserved.
|**************************************************************************************************/
$lskip = "1";
include "include/config.php";
destroy_slrememberme($_SESSION['USERNAME']);
$_SESSION['USERID'] = "";
$_SESSION['EMAIL'] = "";
$_SESSION['USERNAME'] = "";
$_SESSION['VERIFIED'] = "";
$_SESSION['FILTER'] = "";
$_SESSION['FB'] = "";
$_SESSION['profilepicture'] = '';
header("location: {$config['baseurl']}/");