"; //echo "Tit = $game_name
"; $val_g_n = str_replace("_", " ", $game_name); $val_g_name = str_replace("-", " ", $val_g_n); $gameid = explode("-",$_REQUEST['gid']); $game_id = $gameid[0]; $page = $gameid[1]; //echo "ID = $game_id
"; //echo "Page = $page
"; $partha = "http://".$cat.".dollarcade.com/".$game_name."-g".$game_id; //$swf_file_name = $_REQUEST['title'].'.swf'; $sqlg = "SELECT * FROM $game_table WHERE `cat_url` = '$cat' AND `title` = '$val_g_name' AND `id` = '$game_id' AND `lang` = '$lang_url' OR `sub_cat_url` = '$cat' AND `title` = '$val_g_name' AND `id` = '$game_id' AND `lang` = '$lang_url'"; $resultg = mysql_query($sqlg) or die('Error, Game table query failed ' . mysql_error()); $count_if_ext = mysql_num_rows($resultg); if($count_if_ext == '0') { include '404.html'; //header("Location: http://www.dollarcade.com/404.html"); }else{ $rowg = mysql_fetch_array($resultg); include 'online.php'; include 'users_online.php'; include 'link_count.php'; $date = date("d/m/Y"); $sbt = $rowg['sub_cat_url']; $sbtn = $rowg['sub_cat_name']; $cat_url = $rowg['cat_url']; $swf_file_name = $rowg['content_name']; $meta_game_description = $rowg['description']; if($sbt != '') { $meta_sql = "SELECT * FROM $sub_cat_table WHERE `cat_url` = '$cat_url' AND `sub_cat_url` = '$sbt'"; $meta_result = mysql_query($meta_sql) or die('Error, query failed ' . mysql_error()); $meta_row = mysql_fetch_array($meta_result); $meta_keywords = $meta_row['sub_cat_keywords']; $meta_cat_name = $meta_row['sub_cat_name']; }else{ $meta_sql = "SELECT * FROM $cat_table WHERE `cat_url` = '$cat_url'"; $meta_result = mysql_query($meta_sql) or die('Error, query failed ' . mysql_error()); $meta_row = mysql_fetch_array($meta_result); $meta_keywords = $meta_row['cat_keywords']; $meta_cat_name = $meta_row['cat_name']; } if($sbt != '') { $spr = '/'; $subt = $sbt.$spr; $suname = $sbtn.' : '; }else{ $subt = ''; $suname = ''; } $urlp = $rowg['cat_url']."/".$subt; $from_gid = $rowg['id']; $vie = $rowg['views']; $vie++; $tempview = mysql_query("UPDATE $game_table SET views='$vie' WHERE id='$from_gid' AND lang = '$lang_url'"); $gggnn = $rowg['title']; $queryu = "SELECT * FROM user_regestration WHERE `username` = '$username' AND `lang` = '$lang_url'"; $resultu = mysql_query($queryu) or die('Error, query failed'); $rowu = mysql_fetch_array($resultu); $user_id = $rowu['id']; $g_played = $rowu['game_played']; if(isset($_SESSION['userpts'.$from_gid])) {}else{ $g_played = $g_played + 2; $tquery = "UPDATE user_regestration SET game_played = $g_played WHERE `username` = '$username' AND `lang` = '$lang_url'"; $tresult = mysql_query($tquery) or die('Error, query failed'); } $_SESSION['userpts'.$from_gid] = 'pt'.$from_gid; $q_g_td = "SELECT * FROM g_palyed_today WHERE date = '$date' AND `lang` = '$lang_url'"; $r_td = mysql_query($q_g_td) or die('Error, Query failed to find todays play count'); if (mysql_num_rows($r_td) == 0) { $q_td = "INSERT INTO `g_palyed_today` (`count`, `date`, `lang`) VALUES ('1', '$date', '$lang_url')"; $r_td = mysql_query($q_td) or die('Error, query failed to upload first step to count'); } else { $r_td = mysql_fetch_array($r_td); $td_cont = $r_td['count']; $tdc = $td_cont + 1; $tquery = "UPDATE g_palyed_today SET count = '$tdc' WHERE date = '$date' AND `lang` = '$lang_url'"; $tresult = mysql_query($tquery) or die('Error, query failed'); } $dated = date("M d, Y"); $mm = date("M"); $yy = date("Y"); $lnk_url=$_SERVER['HTTP_REFERER']; $lurl = explode("/", $lnk_url); $lurl_user = $lurl[3]; $lurl_cri = $lurl[4]; $uid = explode("-",$lurl_cri); $uid = $uid[0]; $uid = round($uid); //echo "UID=".$uid."
"; //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 = '$username' 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` = '$username' AND `lang` = '$lang_url'"; $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', '$username', '$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 = '$username' AND `lang` = '$lang_url'"; $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 = '$username' AND `lang` = '$lang_url'"; $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 = '$username' 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 = '$username' AND `lang` = '$lang_url'"; $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' AND `lang` = '$lang_url'"; $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' AND `lang` = '$lang_url'"; $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' AND `lang` = '$lang_url'"; $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' AND `lang` = '$lang_url'"; $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' AND `lang` = '$lang_url'"; $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' AND `lang` = '$lang_url'"; $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' AND `lang` = '$lang_url'"; $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' AND `lang` = '$lang_url'"; $tresultm = mysql_query($tquerym) or die('Error, query failed'); }$_SESSION['usermpts3'.$from_gid] = 'mpt3'.$from_gid; } } } $page = (($page*10)-10); $st = $page; $pr = $_REQUEST['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; } if($gameid[1] > '0') { $meta_title_end = " - $pronounce_page $gameid[1]"; } //======================== 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;?> | Doll Arcade<?=$meta_title_end;?>
Home : : :

Remaining 1 seconds
To skip this Click here
= 710) { $o_width = $rowg['games_width']; $o_height = $rowg['games_height']; $p_width = 710; $x = $o_height*$p_width; $y = $x/$o_width; $p_hight = round($y); } else { $p_width = $rowg['games_width']; $p_hight = $rowg['games_height']; } ?>
Details
Name :
Description :
Category :
 : 
 
Added on :      Game Play :
Total Fans :
Publisher :
Tags :
$tgs[$i], "; } $tgts = substr($tgts, 0, strlen($tgts)-2); echo $tgts; ?>
Share :
Share |
Fans



No fans yet ! Be the first one...
Invite Friends
   Your Name :        
Your Email:    
   Friend's Email 1 :

   Friend's Email 2 :

   Friend's Email 3 :

 
Comments
Doll Arcade
No comments yet. Comment about this game & share your comments with other users who browse game. So be the first one...
- ,
$pr) { ?>
Thanks for your comments ! It will be shown after approval shortly at dollarcade.com
You are not signed in. Sign up or sign in to comment with a username.

Your Comments: [500 Characters Limit]


Enter Security Code:

You are not signed in. Sign up or sign in to comment with a username.

Name:

Email:

Your Comments: [500 Characters Limit]


Enter Security Code: