// Database Information // MySQL Host (usually localhost) $mysql_host = "localhost"; // MySQL Database Name $database_name = "gamerepl_phpas"; // MySQL User Name $database_user = "gamerepl_Jakobi"; // MySQL User Password $user_password = "M212pp2014"; $connection = @mysql_connect ($mysql_host,$database_user, $user_password) or die ("Cannot make the connection"); //connect to database $db = @mysql_select_db ($database_name,$connection) or die ("Cannot connect to database"); ?> $site_title = "Gamereplayer"; $site_desc = "Flash Games, play arcade flash games, action flash games, sports flash games, puzzle games, flash games"; $site_keywords = "flash games, addicting games, arcade games online, shooting games, racing, pool,adventure, flying, sonic, flash, shockwave"; $base_url = "http://www.gamereplayer.com/"; $contact_email = "webmaster@gamereplayer.com"; $max_results = "48"; $max_frontpage_results = "6"; $max_newest_games = "8"; $max_most_played_games = "5"; $linktrading = "1"; $notify_of_trade = "1"; $confirmation_of_trades = "0"; $tell_a_friend = "1"; $email_confirmation = "1"; $game_points = "1"; $comment_points = "1"; $member_login = "1"; $allow_comments = "1"; $max_comments = "6"; $who_can_comment = "1"; $max_top_players = "8"; $sort_top_players = "1"; $ban_text = " "; $rewrite = "1"; $max_messages = "100"; $adminuserid = "1"; $imageverification = "0"; $maxgameheight = "650"; $maxgamewidth = "650"; $guestcredits = "25"; $limitplays = "1"; $notes = ""; $privatemessaging = "1"; $maxtoplinks = "20"; $sorttoplinks = "1"; $sortlinks = "2"; $realurl = "0"; $trackclicks = ""; $sitestatus = "1"; $offlinemessage = " "; $delay = "0"; $delaytime = "0"; $blogcode = "1"; $hotlink = "1"; $mostpopularlist = ""; $newestlist = "0"; $topmemberslist = "1"; $referrals = "1"; $referralpoints = "1"; $removereported = "0"; $submissions = "1"; $submit_member = "1"; $template_directory = "yourarcade"; $mochi_id = "c842e18e7da56522"; $mochinumbergames = "10"; $nightly="2"; $friends_feature="1"; $friendrequestemail="1"; $comment_spam_filter="1"; $sedir="playgame"; $full_game_url = "playgame-full"; $preview_game="0"; $preview_play_game_dir="previewgame"; $full_height="800"; $full_width="800"; $log_user="1"; $auto_chmod="0"; $transfer_type="1"; $gameplaylog="1"; $gameplaylogdays="0"; ?> // Database Information // MySQL Host (usually localhost) $mysql_host = "localhost"; // MySQL Database Name $database_name = "gamerepl_phpas"; // MySQL User Name $database_user = "gamerepl_Jakobi"; // MySQL User Password $user_password = "M212pp2014"; $connection = @mysql_connect ($mysql_host,$database_user, $user_password) or die ("Cannot make the connection"); //connect to database $db = @mysql_select_db ($database_name,$connection) or die ("Cannot connect to database"); ?> $site_title = "Gamereplayer"; $site_desc = "Flash Games, play arcade flash games, action flash games, sports flash games, puzzle games, flash games"; $site_keywords = "flash games, addicting games, arcade games online, shooting games, racing, pool,adventure, flying, sonic, flash, shockwave"; $base_url = "http://www.gamereplayer.com/"; $contact_email = "webmaster@gamereplayer.com"; $max_results = "48"; $max_frontpage_results = "6"; $max_newest_games = "8"; $max_most_played_games = "5"; $linktrading = "1"; $notify_of_trade = "1"; $confirmation_of_trades = "0"; $tell_a_friend = "1"; $email_confirmation = "1"; $game_points = "1"; $comment_points = "1"; $member_login = "1"; $allow_comments = "1"; $max_comments = "6"; $who_can_comment = "1"; $max_top_players = "8"; $sort_top_players = "1"; $ban_text = " "; $rewrite = "1"; $max_messages = "100"; $adminuserid = "1"; $imageverification = "0"; $maxgameheight = "650"; $maxgamewidth = "650"; $guestcredits = "25"; $limitplays = "1"; $notes = ""; $privatemessaging = "1"; $maxtoplinks = "20"; $sorttoplinks = "1"; $sortlinks = "2"; $realurl = "0"; $trackclicks = ""; $sitestatus = "1"; $offlinemessage = " "; $delay = "0"; $delaytime = "0"; $blogcode = "1"; $hotlink = "1"; $mostpopularlist = ""; $newestlist = "0"; $topmemberslist = "1"; $referrals = "1"; $referralpoints = "1"; $removereported = "0"; $submissions = "1"; $submit_member = "1"; $template_directory = "yourarcade"; $mochi_id = "c842e18e7da56522"; $mochinumbergames = "10"; $nightly="2"; $friends_feature="1"; $friendrequestemail="1"; $comment_spam_filter="1"; $sedir="playgame"; $full_game_url = "playgame-full"; $preview_game="0"; $preview_play_game_dir="previewgame"; $full_height="800"; $full_width="800"; $log_user="1"; $auto_chmod="0"; $transfer_type="1"; $gameplaylog="1"; $gameplaylogdays="0"; ?> // Database Information // MySQL Host (usually localhost) $mysql_host = "localhost"; // MySQL Database Name $database_name = "gamerepl_phpas"; // MySQL User Name $database_user = "gamerepl_Jakobi"; // MySQL User Password $user_password = "M212pp2014"; $connection = @mysql_connect ($mysql_host,$database_user, $user_password) or die ("Cannot make the connection"); //connect to database $db = @mysql_select_db ($database_name,$connection) or die ("Cannot connect to database"); ?> $site_title = "Gamereplayer"; $site_desc = "Flash Games, play arcade flash games, action flash games, sports flash games, puzzle games, flash games"; $site_keywords = "flash games, addicting games, arcade games online, shooting games, racing, pool,adventure, flying, sonic, flash, shockwave"; $base_url = "http://www.gamereplayer.com/"; $contact_email = "webmaster@gamereplayer.com"; $max_results = "48"; $max_frontpage_results = "6"; $max_newest_games = "8"; $max_most_played_games = "5"; $linktrading = "1"; $notify_of_trade = "1"; $confirmation_of_trades = "0"; $tell_a_friend = "1"; $email_confirmation = "1"; $game_points = "1"; $comment_points = "1"; $member_login = "1"; $allow_comments = "1"; $max_comments = "6"; $who_can_comment = "1"; $max_top_players = "8"; $sort_top_players = "1"; $ban_text = " "; $rewrite = "1"; $max_messages = "100"; $adminuserid = "1"; $imageverification = "0"; $maxgameheight = "650"; $maxgamewidth = "650"; $guestcredits = "25"; $limitplays = "1"; $notes = ""; $privatemessaging = "1"; $maxtoplinks = "20"; $sorttoplinks = "1"; $sortlinks = "2"; $realurl = "0"; $trackclicks = ""; $sitestatus = "1"; $offlinemessage = " "; $delay = "0"; $delaytime = "0"; $blogcode = "1"; $hotlink = "1"; $mostpopularlist = ""; $newestlist = "0"; $topmemberslist = "1"; $referrals = "1"; $referralpoints = "1"; $removereported = "0"; $submissions = "1"; $submit_member = "1"; $template_directory = "yourarcade"; $mochi_id = "c842e18e7da56522"; $mochinumbergames = "10"; $nightly="2"; $friends_feature="1"; $friendrequestemail="1"; $comment_spam_filter="1"; $sedir="playgame"; $full_game_url = "playgame-full"; $preview_game="0"; $preview_play_game_dir="previewgame"; $full_height="800"; $full_width="800"; $log_user="1"; $auto_chmod="0"; $transfer_type="1"; $gameplaylog="1"; $gameplaylogdays="0"; ?> // Database Information // MySQL Host (usually localhost) $mysql_host = "localhost"; // MySQL Database Name $database_name = "gamerepl_phpas"; // MySQL User Name $database_user = "gamerepl_Jakobi"; // MySQL User Password $user_password = "M212pp2014"; $connection = @mysql_connect ($mysql_host,$database_user, $user_password) or die ("Cannot make the connection"); //connect to database $db = @mysql_select_db ($database_name,$connection) or die ("Cannot connect to database"); ?> $site_title = "Gamereplayer"; $site_desc = "Flash Games, play arcade flash games, action flash games, sports flash games, puzzle games, flash games"; $site_keywords = "flash games, addicting games, arcade games online, shooting games, racing, pool,adventure, flying, sonic, flash, shockwave"; $base_url = "http://www.gamereplayer.com/"; $contact_email = "webmaster@gamereplayer.com"; $max_results = "48"; $max_frontpage_results = "6"; $max_newest_games = "8"; $max_most_played_games = "5"; $linktrading = "1"; $notify_of_trade = "1"; $confirmation_of_trades = "0"; $tell_a_friend = "1"; $email_confirmation = "1"; $game_points = "1"; $comment_points = "1"; $member_login = "1"; $allow_comments = "1"; $max_comments = "6"; $who_can_comment = "1"; $max_top_players = "8"; $sort_top_players = "1"; $ban_text = " "; $rewrite = "1"; $max_messages = "100"; $adminuserid = "1"; $imageverification = "0"; $maxgameheight = "650"; $maxgamewidth = "650"; $guestcredits = "25"; $limitplays = "1"; $notes = ""; $privatemessaging = "1"; $maxtoplinks = "20"; $sorttoplinks = "1"; $sortlinks = "2"; $realurl = "0"; $trackclicks = ""; $sitestatus = "1"; $offlinemessage = " "; $delay = "0"; $delaytime = "0"; $blogcode = "1"; $hotlink = "1"; $mostpopularlist = ""; $newestlist = "0"; $topmemberslist = "1"; $referrals = "1"; $referralpoints = "1"; $removereported = "0"; $submissions = "1"; $submit_member = "1"; $template_directory = "yourarcade"; $mochi_id = "c842e18e7da56522"; $mochinumbergames = "10"; $nightly="2"; $friends_feature="1"; $friendrequestemail="1"; $comment_spam_filter="1"; $sedir="playgame"; $full_game_url = "playgame-full"; $preview_game="0"; $preview_play_game_dir="previewgame"; $full_height="800"; $full_width="800"; $log_user="1"; $auto_chmod="0"; $transfer_type="1"; $gameplaylog="1"; $gameplaylogdays="0"; ?> include "dbinfo.php"; ?> if(file_exists("includes/rating_config.php")) { include("includes/rating_config.php"); }else{die("Sorry");} //include("includes/rating_config.php"); /* Dynamic Star Rating Redux Developed by Jordan Boesch www.boedesign.com Licensed under Creative Commons - http://creativecommons.org/licenses/by-nc-nd/2.5/ca/ Used CSS from komodomedia.com. */ function getRating($id){ $total = 0; $rows = 0; $sel = mysql_query("SELECT totalvotepoints,totalvotes FROM games WHERE gameid = '$id'") or die(mysql_error()); if(mysql_num_rows($sel) > 0){ while($data = mysql_fetch_assoc($sel)){ $total = $data['totalvotepoints']; $divident = $data['totalvotes']; $rows++; } if($divident == 0) { return '0%'; }else{ $perc = ($total/$divident) * 20; } //$newPerc = round($perc/5)*5; //return $newPerc.'%'; //$newPerc = round($perc,2); return $perc.'%'; } else { return '0%'; } } function outOfFive($id){ $total = 0; $rows = 0; $sel = mysql_query("SELECT totalvotepoints,totalvotes FROM games WHERE gameid = $id") or die(mysql_error()); if(mysql_num_rows($sel) > 0){ while($data = mysql_fetch_assoc($sel)){ $total = $data['totalvotepoints']; $divident = $data['totalvotes']; $rows++; } if($divident == 0) { return '0'; }else{ $perc = ($total/$divident); return round($perc,2); //return round(($perc*2), 0)/2; // 3.5 } } else { return '0'; } } function getVotes($id){ $sel = mysql_query("SELECT totalvotes FROM games WHERE gameid = '$id'") or die(mysql_error()); $rows = mysql_fetch_assoc($sel); if($rows[totalvotes] == 0){ $votes = '0 Votes'; } else if($rows[totalvotes] == 1){ $votes = '1 Vote'; } else { $votes = $rows[totalvotes].' Votes'; } return $votes; } function pullRating($id,$show5 = false, $showPerc = false, $showVotes = false, $static = NULL){ global $rewrite; // Check if they have already voted... $text = ''; $alreadyrated = $_COOKIE['rated']; if((strpos($alreadyrated, "|$id|")!==false) || ($static == 'novote')){ if($show5 || $showPerc || $showVotes){ $text .= '