"; //echo "lurl_user=".$lurl_user."
"; //echo "lurl_cri=".$lurl_cri."
"; $ck= explode("?",$lurl_cri); $ck = $ck[1]; $cks = explode("=",$ck); $cks = $cks[0]; if($cks == 'st'){ $lurl_cri = 'fav.html'; } if($lurl_user == 'users'){ if($uid == '0'){ if(($lurl_cri == 'fav.html') || ($lurl_cri == '')){ $sqlun = "SELECT * FROM `members_points` WHERE username = '$_COOKIE[valid_user]' AND month = '$mm' AND year = '$yy'"; $tempun = mysql_query($sqlun) or die('Error, query failed'); $arr = mysql_fetch_array($tempun); $mid = $arr['user_id']; $mpts = $arr['member_pts']; $mnth = $arr['month']; $dt = $arr['date']; $yr = $arr['year']; if(mysql_num_rows($tempun) == 0){ if(isset($_SESSION['usermpts1'.$from_gid])) {}else{ $queryun = "SELECT * FROM user_regestration WHERE username = '$_COOKIE[valid_user]'"; $resultun = mysql_query($queryun) or die('Error, query failed'); $rowun = mysql_fetch_array($resultun); $mem_id = $rowun['id']; $mtotpts = $rowun['member_totpts']; $point = $rowun['game_played']; $mpts = 2; $mtotpts = $mtotpts + 2; $mpoint = $point + 2; $sql = "INSERT INTO `members_points` (`user_id`, `username`, `member_pts`, `month`, `year`, `date`) VALUES ('$mem_id', '$_COOKIE[valid_user]', '$mpts', '$mm', '$yy', '$dated')"; $temps = mysql_query($sql) or die('Error, query failed to : ' . mysql_error()); $tquerym = "UPDATE user_regestration SET game_played = '$mpoint', member_totpts = '$mtotpts' WHERE username = '$_COOKIE[valid_user]'"; $tresultm = mysql_query($tquerym) or die('Error, query failed'); } $_SESSION['usermpts1'.$from_gid] = 'mpt1'.$from_gid; }else{ if(isset($_SESSION['usermpts1'.$from_gid])) {}else{ $queryun = "SELECT * FROM user_regestration WHERE username = '$_COOKIE[valid_user]'"; $resultun = mysql_query($queryun) or die('Error, query failed'); $rowun = mysql_fetch_array($resultun); $mem_id = $rowun['id']; $mtotpts = $rowun['member_totpts']; $point = $rowun['game_played']; $mpts = $mpts + 2; $mtotpts = $mtotpts + 2; $mpoint = $point + 2; $sqlm = "UPDATE `members_points` SET `member_pts` = '$mpts', `date` = '$dated' WHERE username = '$_COOKIE[valid_user]' AND user_id = '$mid' AND month = '$mnth' AND year = '$yr'"; $tempm = mysql_query($sqlm) or die('Error, query failed'); $tquerym = "UPDATE user_regestration SET game_played = '$mpoint', member_totpts = '$mtotpts' WHERE username = '$_COOKIE[valid_user]'"; $tresultm = mysql_query($tquerym) or die('Error, query failed'); }$_SESSION['usermpts1'.$from_gid] = 'mpt1'.$from_gid; } }else{ $un = $lurl_cri; $sqlun = "SELECT * FROM `members_points` WHERE username = '$un' AND month = '$mm' AND year = '$yy'"; $tempun = mysql_query($sqlun) or die('Error, query failed'); $arr = mysql_fetch_array($tempun); $mid = $arr['user_id']; $mpts = $arr['member_pts']; $mnth = $arr['month']; $dt = $arr['date']; $yr = $arr['year']; if(mysql_num_rows($tempun) == 0){ if(isset($_SESSION['usermpts2'.$from_gid])) {}else{ $queryun = "SELECT * FROM user_regestration WHERE username = '$un'"; $resultun = mysql_query($queryun) or die('Error, query failed'); $rowun = mysql_fetch_array($resultun); $mem_id = $rowun['id']; $mtotpts = $rowun['member_totpts']; $point = $rowun['game_played']; $mpts = 2; $mtotpts = $mtotpts + 2; $mpoint = $point + 2; $sql = "INSERT INTO `members_points` (`user_id`, `username`, `member_pts`, `month`, `year`, `date`) VALUES ('$mem_id', '$un', '$mpts', '$mm', '$yy', '$dated')"; $temps = mysql_query($sql) or die('Error, query failed to : ' . mysql_error()); $tquerym = "UPDATE user_regestration SET game_played = '$mpoint', member_totpts = '$mtotpts' WHERE username = '$un'"; $tresultm = mysql_query($tquerym) or die('Error, query failed'); } $_SESSION['usermpts2'.$from_gid] = 'mpt2'.$from_gid; }else{ if(isset($_SESSION['usermpts2'.$from_gid])) {}else{ $queryun = "SELECT * FROM user_regestration WHERE username = '$un'"; $resultun = mysql_query($queryun) or die('Error, query failed'); $rowun = mysql_fetch_array($resultun); $mem_id = $rowun['id']; $mtotpts = $rowun['member_totpts']; $point = $rowun['game_played']; $mpts = $mpts + 2; $mtotpts = $mtotpts + 2; $mpoint = $point + 2; $sqlm = "UPDATE `members_points` SET `member_pts` = '$mpts', `date` = '$dated' WHERE username = '$un' AND user_id = '$mid' AND month = '$mnth' AND year = '$yr'"; $tempm = mysql_query($sqlm) or die('Error, query failed'); $tquerym = "UPDATE user_regestration SET game_played = '$mpoint', member_totpts = '$mtotpts' WHERE username = '$un'"; $tresultm = mysql_query($tquerym) or die('Error, query failed'); }$_SESSION['usermpts2'.$from_gid] = 'mpt2'.$from_gid; } } }else{ $sqlun = "SELECT * FROM `members_points` WHERE user_id = '$uid' AND month = '$mm' AND year = '$yy'"; $tempun = mysql_query($sqlun) or die('Error, query failed'); $arr = mysql_fetch_array($tempun); $uname = $arr['username']; $mpts = $arr['member_pts']; $mnth = $arr['month']; $dt = $arr['date']; $yr = $arr['year']; if(mysql_num_rows($tempun) == 0){ if(isset($_SESSION['usermpts3'.$from_gid])) {}else{ $queryun = "SELECT * FROM user_regestration WHERE id = '$uid'"; $resultun = mysql_query($queryun) or die('Error, query failed'); $rowun = mysql_fetch_array($resultun); $mem_un = $rowun['username']; $mtotpts = $rowun['member_totpts']; $point = $rowun['game_played']; $mpts = 2; $mtotpts = $mtotpts + 2; $mpoint = $point + 2; $sql = "INSERT INTO `members_points` (`user_id`, `username`, `member_pts`, `month`, `year`, `date`) VALUES ('$uid', '$mem_un', '$mpts', '$mm', '$yy', '$dated')"; $temps = mysql_query($sql) or die('Error, query failed to : ' . mysql_error()); $tquerym = "UPDATE user_regestration SET game_played = '$mpoint', member_totpts = '$mtotpts' WHERE id = '$uid'"; $tresultm = mysql_query($tquerym) or die('Error, query failed'); } $_SESSION['usermpts3'.$from_gid] = 'mpt3'.$from_gid; }else{ if(isset($_SESSION['usermpts3'.$from_gid])) {}else{ $queryun = "SELECT * FROM user_regestration WHERE id = '$uid'"; $resultun = mysql_query($queryun) or die('Error, query failed'); $rowun = mysql_fetch_array($resultun); $mem_un = $rowun['username']; $mtotpts = $rowun['member_totpts']; $point = $rowun['game_played']; $mpts = $mpts + 2; $mtotpts = $mtotpts + 2; $mpoint = $point + 2; $sqlm = "UPDATE `members_points` SET `member_pts` = '$mpts', `date` = '$dated' WHERE username = '$uname' AND user_id = '$uid' AND month = '$mnth' AND year = '$yr'"; $tempm = mysql_query($sqlm) or die('Error, query failed'); $tquerym = "UPDATE user_regestration SET game_played = '$mpoint', member_totpts = '$mtotpts' WHERE id = '$uid'"; $tresultm = mysql_query($tquerym) or die('Error, query failed'); }$_SESSION['usermpts3'.$from_gid] = 'mpt3'.$from_gid; } } } $st = $_GET['st']; $pr = $_GET['pr']; if((!$st || ($st < 0))) $st = 0; if(!$pr) $pr = 10; $slr = round($st/$pr, 0)+2; $next = $st+$pr; if($st <= $pr) { $back = 0; }else{ $back = $st-$pr; } $fb_main_url = "/".$urlp.$game_wt_swf.".html"; $p_width = $rowg['games_width']; $p_hight = $rowg['games_height']; //$canonical_url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; if($fb_main_url != $req_urls){ //header('HTTP/1.1 404 Not Found'); include '404.html'; }else{ //======================== RATINGS ============================================ $voteup_sg = $rowg['voteup']; $votedown_sg = $rowg['votedown']; $total_sg = $voteup_sg + $votedown_sg; if($voteup_sg > 0) { $percenteach = ($voteup_sg/$total_sg) * 5; $rate_sg = round($percenteach, 0); }else{ $rate_sg = "0"; } //================================================================= ?> <?=$gggnn;?> | <?=$meta_cat_name;?> Games | Glamarcade.com
"; } ?>
   
   
 
Name :
Description :
Category :
:
Game Tags :
$tgs[$i], "; } $tgts = substr($tgts, 0, strlen($tgts)-2); echo $tgts; ?>
Added on :
'; ?> ,
Total Fans :
Plays :
Publisher :
Share :
| More
Invite a friend
Invite your friends to play  game
Your Name:         
Your Email:   
Friend's Email:  1 

                        2  

                        3  

 
Random Games
Fans of
No fans yet...
Comments of
Thanks for your comments ! It will be shown after approval shortly at glamarcade.com
Submit Your Comments
You are not signed in. Sign up or sign in to comment with a username.

Your Name:


Your Email: [will not be published]


Your Comment: [500 Characters Limit]



Type security code here: