header ("Expires: ".gmdate("D, d M Y H:i:s", time())." GMT");
header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header ("Cache-Control: no-cache, must-revalidate");
header ("Cache-Control: post-check=0, pre-check=0", false);
header ("Pragma: no-cache");
if($go) {go2();}
elseif (isset($_COOKIE['id'])) {
if (file_exists($_SERVER['DOCUMENT_ROOT']."/control-panel/session/".$_COOKIE["id"])) {
header("Location: http://".$_SERVER['HTTP_HOST']."/control-panel/index.html");
exit;
}
else {start();}
}
else {start();}
function start() {
global $username,$password,$go,$a;
$s=0;
if(!ereg("MSIE", $_SERVER['HTTP_USER_AGENT'])) {$s=9;}
?>
YourFans.com - Member Login Page
include('programs/footerlogo.html');
}
function go2() {
global $username,$password,$code,$a;
/* $HOSTNAME = "localhost";
$USERNAME = "yfdbadmin";
$PASSWORD = "ah2951niws";
$DATABASE = "clients";
$TABLE = "active";
*/
include('include/cndb.html');
// $dbh = mysql_connect($HOSTNAME, $USERNAME, $PASSWORD);
// mysql_select_db("$DATABASE", $dbh);
$query = "SELECT user, pass FROM active WHERE user='$username' AND pass='$password'";
$result = mysql_db_query ("yourfans_clients", $query);
if ($result){
while ($myrow = mysql_fetch_array($result)) {
$un= $myrow[user];
$pw=$myrow[pass];
}
}
mysql_close ($dbh);
if (($un==$username) && ($pw==$password) && ($username!="") && ($password!="")) {
getnum();
$fp = fopen($_SERVER['DOCUMENT_ROOT']."/control-panel/session/".$code, "w");
fwrite($fp, $username);
fclose($fp);
setcookie ("id", $code, time()+90000, "/", ".yourfans.com");
header ("Location: http://".$_SERVER['HTTP_HOST']."/next.html");
exit;
}
else {
?>
YourFans.com - Member Login
YourFans.com Member
Login
Invalid Username and/or Password.
Try to sign in again |
Forgot Username or
Password? | Signup
| Home |
Email Us
There could be several reasons why you are receiving
this error.
Please check the following list of possibilities:
1.
You may have entered your Username and/or Password
incorrectly.
SOLUTION: Please click "Try to sign in again"
above.
2.
You may not have signed up for a YourFans.com
account.
SOLUTION: Please click "Signup" above.
3.
If you have a new account, it may not yet be
approved.
SOLUTION: Please wait for approval Email.
4.
If you have a new account, you may need to activate
it first.
SOLUTION: If approved, please check your Email for activation
instructions.
5.
You may have forgotten your Username and/or
Password.
SOLUTION: Please click on the "Forgot Username or Password?" link
above.
6.
You may have made too many requests (security
feature).
SOLUTION: Please see "Question # 1" in the notes
below.
7.
Your account may have been locked, suspended,
or terminated.
SOLUTION: Please see "Question # 1" in the notes
below.
Question # 1:
I think that my account is locked/suspended/terminated, what do I
do?
A:
Please Email
yf-pass@yourfans.com with the
following:
1. Your Username (or what you think it might be)
2. Your Password (or what you think it might be)
3. Your real first and last name.
4. The ZIP code you used during sign-up
5. The Email address you used during sign-up
We require this information to help confirm your identity and to protect
the celebrities and you,
our members. If you do not provide all the required information, we will
not process your request.
We reserve the right to deny your request for security reasons.
© 2003 YourFans.com
Use of this site is subject to our
TOS . All Rights
Reserved.
}
}
function getnum() {
global $code;
$salt = "bcdfghjklmnpqrstvwxyz012345789";
srand((double)microtime()*1000000);
$code="";
for ($i=0;$i<33;$i++) {
$code.= substr ($salt, rand() % strlen($salt), 1);
}
if (file_exists ($_SERVER[DOCUMENT_ROOT]."/control-panel/session/$code")) {
getnum();
}
}