games error
Forumregels
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.
Sinds 1 januari 2009 wordt phpBB2 niet meer ondersteund.
Onderstaande informatie is verouderd en dient uitsluitend als archief.

games error
Na het uploaden van 2 games-mappen komt er deze error :
Couldn't obtain scores data
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'gamepack2' ORDER BY score DESC, date DESC' a
SELECT * FROM phpbb_forumina_scores WHERE player <> 'LaCo$Te'' AND game_name = 'gamepack2' ORDER BY score DESC, date DESC
Line : 1251
File : /data/members/free/tripod/nl/p/r/o/profclan/htdocs/forum/activity.php
Couldn't obtain scores data
DEBUG MODE
SQL Error : 1064 You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'gamepack2' ORDER BY score DESC, date DESC' a
SELECT * FROM phpbb_forumina_scores WHERE player <> 'LaCo$Te'' AND game_name = 'gamepack2' ORDER BY score DESC, date DESC
Line : 1251
File : /data/members/free/tripod/nl/p/r/o/profclan/htdocs/forum/activity.php
http://www.rappersonline - voor al je online rapmovies + downloads !
Code: Selecteer alles
<?php
/***************************************************************************
* lang_activity.php
* -------------------
* Version : 1.0.8
* Email : austin@austin-inc.net
* Site : http://phpbb-amod.com
* Copyright : aUsTiN-Inc 2003/4
*
***************************************************************************/
// Admin
$lang['admin_main_header'] = "-:- This is an interface between iNetAngel MODs and other MODs. It will help site admins from having conflicts with other MODs that may have been installed or are no longer supported but well liked. This control panel will help you maintain and control the online activities that have been created by <a href=\"http://www.iNetAngel.com/\" target=\"newindow\" class=\"copyright\">iNetAngel</a>. Future iNetAngel MODs will use this menu for any new expansions that are user specific. If you are currently having a problem with an iNetAngel MOD and another MOD, then please contact us at <a href=\"mailto:support@iNetAngel.com\" class=\"copyright\">support@iNetAngel.com</a> so we may help fix the problem.";
$lang['admin_config_menu'] = "iNetAngel Online Activity Configuration Menu";
$lang['admin_game_menu'] = "iNetAngel Online Activity Game Menu";
$lang['admin_game_editor'] = "iNetAngel Online Activity Game Editor Menu";
$lang['admin_editor_info'] = "-:- This control panel allows you to edit Game data. Any game that has been released by <a href=\"http://www.iNetAngel.com\" target=\"new_window\">iNetAngel</a> can easily be plugged into your forums using this control panel. If you would like to convert a game to use this control panel, then ask for help at our <a href=\"http://www.iNetAngel.com/community/index.php\" target=\"new_window\">forums</a>. If you are having trouble with this menu or the Activity MOD then please contact us at <a href=\"mailto:support@iNetAngel.com\">Support@iNetAngel.com</a>.";
$lang['admin_game_deleted'] = "Game Deleted<br /><br />";
$lang['admin_game_not_deleted'] = "Game NOT Deleted<br /><br />";
$lang['admin_game_repaired'] = "Games Repaired<br /><br />";
$lang['admin_game_saved'] = "Game Saved Successfully<br /><br />";
$lang['admin_score_reset'] = "All scores have been reset<br /><br />";
$lang['admin_return_activity'] = "Click %sHere%s to return to the Activity Menu";
$lang['admin_config_updated'] = "Online Activities Configuration Updated<br /><br />";
$lang['admin_toggles'] = "Support Toggles";
$lang['admin_rewards'] = "Reward system Toggles";
$lang['admin_activity_config'] = "Activity Configuration";
$lang['admin_use_adar_shop'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Adar Item Shop</a></b><br />";
$lang['admin_use_adar_info'] = "-:- If you want to reward Items for Highscore bonuses and you have the<br /> Adar ItemShop, then toggle this to <b>Yes</b>.<br /><br />-:- <b>NOTE : </b>This will not work with other shops!";
$lang['admin_use_gamelib'] = "<b>Use the <a href=\"http://www.javascript-games.org/gamelib/\" target=\"newindow\">Gamelib Javascript Library</a></b><br />";
$lang['admin_use_gl_info'] = "-:- If you are using a game/application that uses Scott Porter's gamelib,<br /> then toggle this on.";
$lang['admin_use_points'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Points System</a></b><br />";
$lang['admin_use_pts_info'] = "-:- If you are using the Points System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums.";
$lang['admin_use_cash'] = "<b>Use the <a href=\"http://www.phpbb.com/community/\" target=\"newindow\">Cash System</a></b><br />";
$lang['admin_use_cash_info'] = "-:- If you are using the Cash System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums.";
$lang['admin_use_allowance'] = "<b>Use the <a href=\"http://www.iNetAngel.com\" target=\"newindow\">Allowance System</a></b><br />";
$lang['admin_use_allowance_info'] = "-:- If you are using the Allowance System then toggle this on so iNetAngel MODs<br /> can use this reward system for your forums.";
$lang['admin_gl_game_path'] = "<b>Gamelib Games Path</b><br />";
$lang['admin_gl_path_info'] = "-:- This is the directory located in your forums root directory where you wish<br /> to hold all of your games that use the gamelib.";
$lang['admin_gl_lib_path'] = "<b>Gamelib Javascript Library Path</b><br />";
$lang['admin_gl_lib_info'] = "-:- This Directory is located in your \"<b>Gamelib Games Path</b>\" and holds all<br /> of the gamelib*.js files.<br /><br />-:- <b>NOTE</b> : If your games are locking up or you don't hear any<br /> sound then check this directory to make sure there are gamelib files<br /> in here.";
$lang['admin_games_per_page'] = "<b>Games Per Page</b><br />";
$lang['admin_games_per_info'] = "-:- This is how many games you want listed before a new page is needed.<br /><br />-:- <b>NOTE</b> : Leaving this blank or <b>0</b> will return errors.";
$lang['admin_page'] = "Pages";
$lang['admin_path'] = "Path";
$lang['admin_adar_config'] = "Adarian Shop Options";
$lang['admin_adar_shop'] = "<b>Adar Shop</b><br />";
$lang['admin_no_adar_info'] = "-:- The Adarian Shop options are not installed. Please install Adar before<br /> setting these options.";
$lang['admin_games'] = "Games";
$lang['admin_charge'] = "Charge";
$lang['admin_button'] = "Button";
$lang['admin_description'] = "Description";
$lang['admin_genre'] = "Genre";
$lang['admin_reward'] = "Reward";
$lang['admin_bonus'] = "Bonus";
$lang['admin_flash'] = "Flash";
$lang['admin_score'] = "Score";
$lang['admin_gamelib'] = "Gamelib";
$lang['admin_action'] = "Action";
$lang['admin_move'] = "Move";
$lang['admin_repair'] = "Repair Game Index";
$lang['admin_reset'] = "Reset all Scores";
$lang['admin_up'] = "Up";
$lang['admin_down'] = "Dn";
$lang['admin_delete'] = "X";
$lang['admin_limit'] = "Limit";
$lang['admin_width'] = "Width";
$lang['admin_height'] = "Height";
$lang['admin_cash'] = "Cash";
$lang['admin_name'] = "<b>Name</b><br />";
$lang['admin_name_info'] = "-:- This is the name of the game you are installing. <br /><br />-:- <b>NOTE</b> : Keep the name of this game limited to one word with no<br /> spaces or unusual characters. Anything else will cause errors.";
$lang['admin_game_path'] = "<b>Game Path</b><br />";
$lang['admin_game_path_info'] = "-:- This is the path location of your game located within your forum root directory.";
$lang['admin_game_desc'] = "<b>Description</b><br />";
$lang['admin_game_desc_info'] = "-:- This is the description of this game that is displayed on the activity menu.";
$lang['admin_game_genre'] = "<b>Genre</b><br />";
$lang['admin_game_genre_info'] = "-:- This is the genre of this game that is displayed on the activity menu.";
$lang['admin_game_charge'] = "<b>Game Charges</b><br />";
$lang['admin_game_charge_info'] = "-:- This is how much to charge users to play this game.";
$lang['admin_game_per'] = "<b>Score per point reward</b><br />";
$lang['admin_game_per_info'] = "-:- This is the score value the user has to get to receive 1 Reward <br /><br />-:- <b>Example</b> : A player gets 100 score points. If you put 100 as the value<br /> for this option, then the player will get 1 Reward Point.";
$lang['admin_game_bonus'] = "<b>Highscore Bonus</b><br />";
$lang['admin_game_bonus_info'] = "-:- This is the amount of reward points to give a user if they obtain the highscore.";
$lang['admin_game_gamelib'] = "<b>Use the Gamelib</b><br />";
$lang['admin_game_gamelib_info'] = "-:- Set this to yes if this game uses the <b>GameLib</b>.";
$lang['admin_game_flash'] = "<b>Uses Macromedia Flash</b><br />";
$lang['admin_game_flash_info'] = "-:- Set this to yes if this is a Macromedia Flash game or has a .SWF extension.";
$lang['admin_game_show_score'] = "<b>Show the scores</b><br />";
$lang['admin_game_show_info'] = "-:- Set this to yes if you wish to use scores for this activity.";
$lang['admin_game_reverse'] = "<b>Reverse Highscore Listing</b><br />";
$lang['admin_game_reverse_info'] = "-:- Set this to yes if you wish to list the lowest scores first.";
$lang['admin_game_highscore'] = "<b>Highscore Limit</b><br />";
$lang['admin_game_highscore_info'] = "-:- This is how many scores you want listed for this game. Leave blank for all.";
$lang['admin_game_size'] = "<b>Window Size</b><br />";
$lang['admin_game_size_info'] = "-:- This is how big in pixels, the window will be when a game is started.";
$lang['instructions_info'] = "Enter this games \"How to play\" instructions below. HTML Tags will also work in here.<br />";
$lang['admin_game_reset_hs'] = "<b>Reset Highscores</b><br />";
$lang['admin_game_reset_hs_info'] = "-:- By setting this to <b>\"Yes\"</b> the Highscores will reset.";
$lang['admin_use_rewards'] = "<b>Use Rewards MOD</b><br />";
$lang['admin_use_rewards_info'] = "-:- If you have a rewards MOD installed [Points/Cash/Allowance]<br /> then turn this on to configure your rewards MOD.";
$lang['admin_warn_cheater'] = "<b>Display warning to possible cheater</b><br />";
$lang['admin_warn_cheater_info'] = "-:- If turned on, then this will display a message to anyone who might get caught cheating.";
$lang['admin_cheater_warning'] = "You have been reported to the site Admin as a possible cheater. If you feel that you have not cheated in an online game, then please contact the site Admin.";
$lang['admin_warn_admin'] = "<b>Report cheaters</b><br />";
$lang['admin_warn_admin_info'] = "-:- If turned on the site Admin will get an E-mail notification if someone is caught cheating.";
$lang['admin_cash_default_info'] = "-:- The Activity MOD uses only 1 reward field. Please enter in a default user<br /> reward field for your users. [<b>Cash MOD Only</b>]";
// Activity
$lang['not_enough_points'] = "You do NOT have enough " . $board_config['points_name'] . " to play this game. <br /><a href=\"javascript:parent.window.close();\">[Close Window]</a>";
$lang['not_enough_reward'] = "You do NOT have enough to play this game. <br /><a href=\"javascript:parent.window.close();\">[Close Window]</a>";
$lang['game_instructions'] = "Instructions";
$lang['game_no_instructions'] = "No Instructions.";
$lang['game_free'] = "Free";
$lang['game_cost'] = "Cost";
$lang['game_dash'] = ":";
$lang['game_number'] = "#";
$lang['game_list'] = "Games";
$lang['game_score'] = "Score";
$lang['game_info'] = "Info";
$lang['game_bonuses'] = "Bonuses";
$lang['game_best_player'] = "Best Player";
$lang['game_highscores'] = "Highscores";
$lang['game_score_saved'] = "Score Saved";
$lang['game_no_score_saved'] = "You don't have a score so your score was not saved";
$lang['game_score_close'] = "Close This Window";
$lang['game_cheater'] = "Busted!";
$lang['game_played'] = "Played";
$lang['game_lib_link'] = "<br />Some of the games here have been created with © <A HREF=\"http://www.javascript-games.org/gamelib/\" TARGET=\"New_Window\">GameLib</A> v2.08<br />Check out <A HREF=\"http://www.javascript-games.org\" TARGET=\"New_Window\">JavaScript Games</A> for more info.";
// Errors
$lang['no_main_data'] = "Couldn't obtain main data";
$lang['no_game_data'] = "Couldn't obtain game data";
$lang['no_game_update'] = "Could't update game data";
$lang['no_game_total'] = "Error getting total games";
$lang['no_game_user'] = "Error obtaining user game data";
$lang['no_game_delete'] = "Couldn't delete game";
$lang['no_game_repair'] = "Couldn't repair game tables";
$lang['no_game_save'] = "Couldn't save game data";
$lang['no_user_update'] = "Couldn't update user data";
$lang['no_score_data'] = "Couldn't obtain scores data";
$lang['no_score_reset'] = "Couldn't reset scores data";
$lang['no_score_insert'] = "Couldn't insert score";
$lang['no_score_reset'] = "Couldn't reset scores";
$lang['no_config_data'] = "Could not access Online Activities configuration";
$lang['no_config_update'] = "Failed to update Online Activities configuration for ";
$lang['no_score_update'] = "Couldn't update score";
$lang['game_score_updated'] = "Score updated";
$lang['game_score_not_updated'] = "Your score wasn't updated because your score wasn't better than your best personel score";
/* Added By aUsTiN For Activity Mod Plus */
/* Main Activity Strings */
$lang['ban'] = "You Have Been Banned From Playing Games By The Administrator.";
$lang['ban_error'] = "Error";
$lang['score'] = "Score: ";
$lang['seperator'] = "» ";
$lang['info'] = "Info";
$lang['same_window'] = "Same Window";
$lang['new_window'] = "New Window";
$lang['quick_select'] = "Quick Select";
$lang['choose_game'] = "Choose A Game";
$lang['trophy_page'] = "Trophies Page";
$lang['stats'] = "Stats.";
$lang['cost'] = "Cost";
$lang['trophy_holder'] = "Trophy Holders";
$lang['score_2'] = "Score";
$lang['runner_up'] = "Runner Up";
$lang['the_trophy_holder'] = "The Trophy Holder, ";
$lang['score_of'] = " With A Score Of ";
$lang['been_deleted_n_replaced'] = " Has Been Deleted & Replaced With The Runner Up, ";
$lang['please_click'] = ".<br> Please Click <b><a href='";
$lang['here_to_return'] = "'>Here</a></b> To Return To The Top Scores Page.";
$lang['success'] = "Successfull";
$lang['scores_reset'] = "All Highscores Have Been Reset, The Current Trophy Holder Of All The Games Is Now ";
$lang['zero_score'] = " With A Score Of 0 (Zero)";
$lang['delete_specific'] = "Delete A Specific Highscore?";
$lang['delete_all'] = "Delete All Highscores?";
$lang['delete_this_button'] = " Delete This Top Score ";
$lang['delete_all_button'] = " Delete All Top Scores ";
$lang['score_owned_on'] = "Score<br>Date Owned";
$lang['contacts'] = "Contacts";
$lang['trophy_holders'] = "Trophy Holders";
$lang['game_profile'] = ' Game Profile';
$lang['join_date'] = "Join Date";
$lang['posts'] = "Posts";
$lang['last_visit'] = "Last Visited";
$lang['gender'] = "Gender";
$lang['permissions'] = "Permissions";
$lang['game'] = "Game";
$lang['date_took'] = "Date Took";
$lang['trophy_held_since'] = "Trophy Held Since";
$lang['score_to_beat'] = "Score To Beat";
$lang['main_profile'] = "Main Profile";
$lang['game_profile'] = "Game Profile";
$lang['top_ten'] = "Top 10";
$lang['not_nice_to_cheat'] = "Its Not Nice To Try & Cheat The System ";
$lang['period'] = ".";
$lang['cheat_warning'] = "Cheat Warning";
$lang['no_score_saved'] = "You Didn't Beat Your Current Highscore For This Game, No Score Was Saved.";
$lang['go_back_to_games'] = "Go Back To Playing Games";
$lang['you_won_trophy'] = "You Won The Trophy!";
$lang['challenge_self_error'] = 'You Can Not Challenge Yourself. Please Click <i><b>Back</b></i> And Try Again.';
$lang['challenge_information'] = 'Information';
$lang['pm_msg_top'] = 'The Following Message Has Been Sent To The Trophy Holder.<br>';
$lang['pm_msg_bottom'] = '<br>Good Luck Winning The Trophy.';
$lang['category_desc'] = 'Play By Category';
$lang['category_default'] = 'Categories';
$lang['category_default_2'] = 'All Games';
$lang['highscore_games'] = 'Games';
$lang['admin_delete_default'] = 'Choose A Game';
$lang['t_holder_link_name'] = 'Trophy Holders';
$lang['gender_none'] = 'None Selected.';
$lang['gender_male'] = 'Male';
$lang['gender_female'] = 'Female';
$lang['gender_not_installed'] = 'Not Installed.';
$lang['level_member'] = 'Member';
$lang['level_mod'] = 'Moderator';
$lang['level_admin'] = 'Admin';
$lang['level_less_admin'] = 'Jr. Admin';
$lang['challenge_header_1'] = 'This Boards Users Have Issued ';
$lang['challenge_header_2'] = ' Challenges. They Are Listed Below.';
$lang['challenge_username'] = 'Username';
$lang['challenge_position'] = 'Position';
$lang['challenge_challenges'] = 'Total Challenges';
$lang['online_no_guests'] = 'There Are No Guests Currently Playing Here';
$lang['online_g_one_1'] = 'There Is Currently ';
$lang['online_g_one_2'] = ' Guest Playing.';
$lang['online_g_1'] = 'There Are Currently ';
$lang['online_g_2'] = ' Guests Playing.';
$lang['online_no_members'] = 'There Are No Registered Users Currently Playing Here.';
$lang['online_m_one_1'] = 'There Is Currently ';
$lang['online_m_one_2'] = ' Registered User Playing.';
$lang['online_m_1'] = 'There Are Currently ';
$lang['online_m_2'] = ' Registered Users Playing.';
$lang['online_title_bar'] = 'Users Currently Playing Games';
$lang['online_viewing_games'] = 'Viewing Games';
$lang['online_playing_games'] = 'Playing A Game';
$lang['game_link_play'] = 'Play ';
$lang['challenge_link_key'] = 'Challenge';
$lang['comments_link_key'] = ' Comments';
$lang['newest_title_1'] = 'Newest ';
$lang['newest_title_2'] = ' Games Added';
$lang['best_player_default'] = 'No One Yet.';
$lang['challenge_page_1'] = 'User Receiving The Challenge';
$lang['challenge_page_2'] = 'Total Challenges Sent To User';
$lang['challenge_page_3'] = ' Challenge History';
$lang['challenge_page_4'] = '#';
$lang['trophy_comment_notice'] = 'Since You Won The Trophy, You May Leave A Comment!';
$lang['trophy_won_notice'] = 'You Won The Trophy!';
$lang['trophy_comment_1'] = 'Sorry, You\'re Not The Current Trophy Holder, Please Win The Trophy Before Trying To Leave A Comment.';
$lang['trophy_comment_2'] = 'Max Comment Length Is 200 Characters, Yours Is ';
$lang['trophy_comment_3'] = ' Characters.';
$lang['trophy_comment_4'] = 'Minimum Comment Length Is 2 Characters.';
$lang['trophy_comment_5'] = 'New Trophy Comment Added!';
$lang['trophy_comment_6'] = 'Information';
$lang['trophy_comment_7'] = 'Please Add Your Comment';
$lang['trophy_comment_8'] = '<i>Max Comment Length: 200 Characters</i>';
$lang['trophy_comment_9'] = 'Add This';
$lang['trophy_comment_10'] = 'Sorry, There Are No Comments For This Game Yet.';
$lang['trophy_comment_11'] = 'Username';
$lang['trophy_comment_12'] = 'Their Comment';
$lang['trophy_comment_13'] = 'Their Score';
$lang['trophy_comment_14'] = 'Date & Time Of Comment';
$lang['trophy_count_1'] = 'Position';
$lang['trophy_count_2'] = 'Total Trophies';
$lang['trophy_count_3'] = 'Username';
$lang['trophy_count_4'] = 'Contacts';
$lang['trophy_count_link'] = 'Top Trophy Holders';
/* Admin Panel Strings */
$lang['admin_default_no_games'] = 'No New Games.';
$lang['admin_default_1_game'] = '1 New Game To Add.';
$lang['admin_default_multi_games'] = 'New Games To Add.';
$lang['a_default_category'] = 'Select A Category';
$lang['a_category'] = 'Category';
$lang['a_category_explain'] = 'Add This Game To One Of Your Boards Categories';
$lang['a_default_charge'] = 'Select A Charge';
$lang['a_default_bonus'] = 'Select A Bonus';
$lang['a_default_hide'] = 'Hide This Game';
$lang['a_default_hide_explain'] = 'Will Allow You To Test It Before Users Play.';
$lang['a_add_game_error'] = 'You Must Specify A Game To Add It.';
$lang['a_ban_1'] = 'Activity Ban: Ban List';
$lang['a_ban_2'] = 'Remove A Banned Member';
$lang['a_ban_3'] = 'Un-Ban A User Id:';
$lang['a_ban_4'] = 'Choose An Id';
$lang['a_ban_5'] = 'Un-Ban A Username:';
$lang['a_ban_6'] = 'Choose A Name';
$lang['a_ban_7'] = ' Apply Changes ';
$lang['a_ban_8'] = 'Ban A Member';
$lang['a_ban_9'] = 'Ban A User Id:';
$lang['a_ban_10'] = 'Ban A Username:';
$lang['a_ban_11'] = ' Apply Ban ';
$lang['a_ban_12'] = 'User Ids Are Typically Numbers Only.<br><br>Click ';
$lang['a_ban_13'] = 'Here</a> To Try Again.';
$lang['a_ban_14'] = 'Nothing Specified To Ban.<br><br>Click ';
$lang['a_ban_15'] = 'The User Id: ';
$lang['a_ban_16'] = ' Does Not Exist.<br><br>Click ';
$lang['a_ban_17'] = '<i>Here</i></a> To Try Again.';
$lang['a_ban_18'] = ' Is Already Banned.<br><br>Click ';
$lang['a_ban_19'] = 'You Have Successfully Banned The User Id: ';
$lang['a_ban_20'] = '<br><br>Click ';
$lang['a_ban_21'] = '<i>Here</i></a> To Return To The Ban Page.';
$lang['a_ban_22'] = 'Success';
$lang['a_ban_23'] = 'The User: ';
$lang['a_ban_24'] = 'You Have Successfully Banned The User: ';
$lang['a_ban_25'] = 'You Have Successfully Unbanned The User Id: ';
$lang['a_ban_26'] = 'You Have Successfully Unbanned The User: ';
$lang['a_ban_27'] = 'Nothing Specified To Unban.<br><br>Click ';
$lang['a_ban_28'] = 'Here</a> To Try Again.';
$lang['a_disable_1'] = 'Activity Hide/Show Admin';
$lang['a_disable_2'] = 'Games To Hide/Show';
$lang['a_disable_3'] = 'Game Choices<br> * Means Its Already Hidden, Submit It Again To Show It.<br><br>(game_id) game_name*';
$lang['a_disable_4'] = 'Choose A Game';
$lang['a_disable_5'] = ' Submit ';
$lang['a_disable_6'] = 'A Game Is A Required Field, When Trying To Change It.<br>Click ';
$lang['a_disable_7'] = 'Here</a> To Try Again.';
$lang['a_disable_8'] = 'The Game Is Now Viewable To Users.<br>Click ';
$lang['a_disable_9'] = 'Here</a> To Return To The Hide/Show Page.';
$lang['a_disable_10'] = 'The Game Is Now Hidden From Users.<br>Click ';
$lang['a_disable_11'] = 'Here</a> To Return To The Hide/Show Page.';
$lang['a_disable_12'] = 'Here</a> To Try Again.';
$lang['a_disable_13'] = 'An Error Has Occured.<br>Click ';
/* Added in 1.0.4 */
$lang['info_box_title'] = 'Some Game Stats & Info';
$lang['info_box_popular_1'] = 'The most popular game is ';
$lang['info_box_popular_2'] = 'With %g% games played.';
$lang['info_box_popular_3'] = 'Click %l% to play it.';
$lang['info_box_link_here'] = 'Here';
$lang['info_box_least_popular_1'] = 'The least popular game is ';
$lang['info_box_least_popular_2'] = 'With %g% games played.';
$lang['info_box_least_popular_3'] = 'Click %l% to play it.';
$lang['info_box_total_game_played'] = '<b>¤</b> Games Played Here:';
$lang['info_box_total_comments'] = '<b>¤</b> Comments Left Here:';
$lang['info_box_total_challenges'] = '<b>¤</b> Challenges Sent Here:';
$lang['info_box_total_bets'] = '<b>¤</b> Bets Made Here:';
$lang['info_box_total_gaems'] = '<b>¤</b> Games Available Here:';
$lang['info_box_trophy_1'] = 'Newest Trophy Winner';
$lang['info_box_trophy_2'] = 'Think you can beat their score at %g%?';
$lang['info_box_trophy_3'] = 'Click %l% to try it!';
$lang['info_box_title1'] = 'Welcome Back!';
$lang['info_box_title2'] = 'Recent Stats';
$lang['info_box_title3'] = 'Board Stats';
$lang['info_box_top_trophy_holder'] = 'Best Player';
$lang['info_box_user_points'] = 'You have %p% onhand.';
$lang['personal_info_last_game'] = 'The last game you played was %g% on %d%.';
$lang['personal_info_comments'] = 'Comments Left By You: %t%.';
$lang['personal_info_challenges_1'] = 'Challenges Issued By You: %t%.';
$lang['personal_info_challenges_2'] = 'Challenges Sent To You: %t%.';
$lang['personal_info_games_played'] = 'You have scores for %t% games here.';
$lang['personal_info_game_played'] = 'You have scores for %t% game here.';
$lang['personal_info_trophies'] = 'You have %t% trophies.';
$lang['personal_info_trophies_1'] = 'You have %t% trophy.';
$lang['personal_info_newest_game'] = 'Last game played';
$lang['gambling_user_select_title'] = 'Choose a user to bet against.';
$lang['gambling_game_choice'] = 'Select This Game?';
$lang['gambling_game_image'] = 'Game Options';
$lang['gambling_game_description'] = 'Game Description';
$lang['gambling_select_button'] = 'Submit This Bet';
$lang['gambling_bet_amount'] = 'Amount To Bet';
$lang['gambling_bet_amount_max'] = 'Max Bet';
$lang['gambling_default_user'] = 'Select A Player';
$lang['gambling_bet_choices'] = 'Select The Play Method';
$lang['gambling_bet_choice_1'] = 'For Fun?';
$lang['gambling_bet_choice_2'] = 'For A Price?';
$lang['gambling_bet_choice_desc'] = 'If Betting For A Price, How Much?';
$lang['gambling_max_bet'] = 'The Max Wager Here Is %a%.';
$lang['gambling_max_bet_allowed'] = '100';
$lang['gambling_max_exceeded_error']= 'Sorry, you have exceeded the max bet allowed.';
$lang['gambling_submit_title'] = 'Ready To Send The Gamble?';
$lang['gambling_error'] = 'Error';
$lang['gambling_numerical_error'] = 'Sorry %u%, bets can only be numerical.';
$lang['gambling_no_bet_error'] = 'Sorry %u%, an amount to bet is required when betting.';
$lang['gambling_anonymous_error'] = 'Sorry, guests are not allowed to bet here.';
$lang['gambling_low_points'] = 'Sorry %u%, you dont have enough on hand to place that bet.';
$lang['gambling_no_user_selected'] = 'You need to choose a user to bet against.';
$lang['gambling_no_game_selected'] = 'You need to choose a game to bet on.';
$lang['gambling_no_fee_error'] = 'You need to select to bet on this or make it for fun.';
$lang['gambling_points_disabled'] = 'Points are currently off.';
$lang['gambling_bet_self'] = 'Betting yourself? Try again.';
$lang['gambling_in_progress_error'] = 'Sorry, there is already a bet in progress between you and that user, for that game.';
$lang['gambling_pm_sender_msg'] = 'Below is the link to your game. Please goto %P% to play it & wait
for the other person to accept & play theirs.';
$lang['gambling_pm_reciever_msg'] = '%u% Has decided to make a bet with you they can beat you at %g%.
If you do not want to accept this, please goto %D%.
If you would like to play it, please goto %A%. The game will cost
you %C% for losing. Best of luck!';
$lang['gambling_pm_sender_sub'] = 'Your game link to play the bet game.';
$lang['gambling_pm_reciever_sub'] = '%u% has placed a game bet.';
$lang['gambling_no_bet_pm'] = 'nothing';
$lang['gambling_success'] = 'Successfull Bet';
$lang['gambling_success_msg'] = 'Your bet has been submitted, please check your private messages
and goto the link provided to fulfill your end of the bet.';
$lang['gambling_deny_error'] = 'You can not deny someone elses bet.';
$lang['gambling_deny_bet_sub'] = '%u% has denied your bet for %g%.';
$lang['gambling_bet_denied_msg'] = 'The bet has been denied.';
$lang['gambling_bet_denied'] = 'Success';
$lang['gambling_link_1'] = 'Games Page';
$lang['gambling_link_2'] = 'Gambling Page';
$lang['gambling_link_3'] = 'Gambling Stats';
$lang['gambling_stats_title_1'] = 'Bet Number';
$lang['gambling_stats_title_2'] = 'Winner<br>(Score)';
$lang['gambling_stats_title_3'] = 'Loser<br>(Score)';
$lang['gambling_stats_title_4'] = 'Game';
$lang['gambling_stats_title_5'] = 'Amount';
$lang['gambling_stats_title_6'] = 'Date';
$lang['gambling_stats_for_fun'] = 'For kicks!';
$lang['admin_scores_1'] = 'Activity Scores Edit Admin';
$lang['admin_scores_2'] = 'This feature is provided for changing players scores a little up or down etc. This
feature <b>is NOT</b> for moving trophy holders around, that will cause issues
among the tables. If you want to move trophy holders around, please do that via
the top of your activity_top_scores.php page & not here.';
$lang['admin_scores_3'] = 'Edit A Normal Score';
$lang['admin_scores_4'] = 'Select Game';
$lang['admin_scores_5'] = 'Choose A Game';
$lang['admin_scores_6'] = ' Find Scores ';
$lang['admin_scores_7'] = 'Edit A Trophy Score';
$lang['admin_scores_8'] = ' Edit Trophy Score ';
$lang['admin_scores_9'] = 'Please Specify A Game.';
$lang['admin_scores_10'] = 'Error';
$lang['admin_scores_11'] = 'Select A Player';
$lang['admin_scores_12'] = 'Choose A Player';
$lang['admin_scores_13'] = ' Edit Player ';
$lang['admin_scores_14'] = 'Current Score For %p% On %g%';
$lang['admin_scores_15'] = 'New Score For %p%';
$lang['admin_scores_16'] = ' Save Score ';
$lang['admin_scores_17'] = 's New Score Was Saved.';
$lang['admin_scores_18'] = 'Success';
$lang['admin_scores_19'] = 'Please Specify A Game.';
$lang['admin_scores_20'] = 'Delete All Scores For A Specific User';
$lang['admin_scores_21'] = ' Delete Scores ';
$lang['admin_scores_22'] = 'Scores Deleted.';
$lang['admin_scores_23'] = 'Please Select A User First.';
$lang['admin_cat_1'] = 'Activity Categories Admin';
$lang['admin_cat_2'] = 'Add A Category';
$lang['admin_cat_3'] = 'Category Name';
$lang['admin_cat_4'] = ' Add Category ';
$lang['admin_cat_5'] = 'Edit A Category';
$lang['admin_cat_6'] = 'Category Name';
$lang['admin_cat_7'] = 'Choose A Category';
$lang['admin_cat_8'] = ' Edit Category ';
$lang['admin_cat_9'] = 'Delete A Category<br> <b>Warning</b>: Deleting A Category
Will Drop All Games In That Category Out Of A Category.';
$lang['admin_cat_10'] = 'Category Name';
$lang['admin_cat_11'] = ' Delete Category ';
$lang['admin_cat_12'] = 'Game Assignment';
$lang['admin_cat_13'] = 'Category Name<br> None Will Delete The Game Selected\'s Category.';
$lang['admin_cat_14'] = 'None';
$lang['admin_cat_15'] = 'Already Assigned To A Category';
$lang['admin_cat_16'] = 'Choose A Game';
$lang['admin_cat_17'] = ' Assign ';
$lang['admin_cat_18'] = 'Game Assignment Check';
$lang['admin_cat_19'] = 'Game Name';
$lang['admin_cat_20'] = ' Check Category ';
$lang['admin_cat_21'] = 'A Game Is Required To Check For The Games Category.<br>Click <a href="%L%">Here</a> To Try Again.';
$lang['admin_cat_22'] = 'Error';
$lang['admin_cat_23'] = 'Success';
$lang['admin_cat_24'] = 'Results';
$lang['admin_cat_25'] = 'Main Category Removed.<br>Click ';
$lang['admin_cat_26'] = 'Here';
$lang['admin_cat_27'] = ' To Return To The Categories Page.';
$lang['admin_cat_28'] = 'You Already Have The Max Categories Allowed..<br>Click ';
$lang['admin_cat_29'] = 'Main Category Added.<br>Click ';
$lang['admin_cat_30'] = 'The Game [<b> ';
$lang['admin_cat_31'] = '</b>] Is Assigned To The [<b> ';
$lang['admin_cat_32'] = ' </b>] Category.<br>Click ';
$lang['admin_cat_33'] = 'A Category And Game Is Required To Assign A Game To A Category.<br>Click ';
$lang['admin_cat_34'] = ' To Try Again.';
$lang['admin_cat_35'] = 'Game\'s Category Updated.<br>Click ';
$lang['admin_cat_36'] = 'Game Added To Category.<br>Click ';
$lang['admin_cat_37'] = 'Game\'s Category Assigment Was Removed.<br>Click ';
$lang['admin_cat_38'] = 'A Category & Description Is A Required Field, When Trying To Add One.<br>Click ';
$lang['admin_cat_39'] = 'A Category With That Name Already Exists.<br>Click ';
$lang['admin_cat_40'] = 'Category Added.<br>Click ';
$lang['admin_cat_41'] = 'A Category Is A Required Field, When Trying To Edit One.<br>Click ';
$lang['admin_cat_42'] = 'Activity Categories Admin';
$lang['admin_cat_43'] = 'Editing A Category';
$lang['admin_cat_44'] = ' Save Change ';
$lang['admin_cat_45'] = 'A Category & Description Is A Required Field, When Trying To Change It.<br>Click ';
$lang['admin_cat_46'] = 'A Category With That Name Already Exists.<br>Click ';
$lang['admin_cat_47'] = 'Category Changed.<br>Click ';
$lang['admin_cat_48'] = 'A Category Is A Required Field, When Trying To Delete One.<br>Click ';
$lang['admin_cat_49'] = 'All Data For The Category [<b> ';
$lang['admin_cat_50'] = ' </b>] Has Been Deleted.<br>Click ';
$lang['admin_db_1'] = 'Activity Mod Plus:<br><br>:: Un-Install :: Install :: Upgrade ::';
$lang['admin_db_2'] = 'From this screen you can install this script fresh, you can upgrade
from other versions (Napoleons 2.0.0, Activity Mod Plus 1.0.0+) or
you can un-install it from your board completely.';
$lang['admin_db_3'] = 'Fresh Install';
$lang['admin_db_4'] = ' Install Activity Mod Plus ';
$lang['admin_db_5'] = 'Upgrade From An Existing Version';
$lang['admin_db_6'] = 'Select A Version To Upgrade To';
$lang['admin_db_12'] = ' Apply Upgrade ';
$lang['admin_db_13'] = 'Un-Install';
$lang['admin_db_14'] = ' Un-Install ';
$lang['admin_db_15'] = 'Please Select What Upgrade To Do First.';
$lang['admin_db_16'] = 'Error';
$lang['admin_db_17'] = 'Upgrade Complete.';
$lang['admin_db_18'] = 'Success';
$lang['admin_db_19'] = 'Install Completed.';
$lang['admin_db_20'] = 'Un-Install Completed.';
/* Added in 1.0.5 */
$lang['bulk_add_title'] = 'Activities Admin: Bulk Add Games';
$lang['bulk_add_title_2'] = 'If you want to add all games not already in the database,
click below. Also note by doing this, the install will
use all the default information you have setup in the Xtras
panel. Any small adjustments can be made on a game by game
basis. In short, this is mainly for installing 20+ games at
a time. This way all you have to do is edit them to add a
description.';
$lang['bulk_add_button'] = ' Install Games! ';
$lang['bulk_add_add_msg1'] = 'There were %g% games added successfully.';
$lang['bulk_add_add_msg2'] = 'There was 1 game added successfully.';
$lang['bulk_add_add_success'] = 'Success';
$lang['admin_edit_link'] = 'Edit';
$lang['top_five_1'] = 'Trophy Holders';
$lang['top_five_2'] = 'Games Played';
$lang['top_five_3'] = 'Comment Leavers';
$lang['top_five_4'] = 'Challenge Senders';
$lang['top_five_5'] = 'Bet Makers';
$lang['top_five_6'] = 'Bet Winners';
$lang['top_five_7'] = 'Specialty Top Fives';
$lang['top_five_8'] = 'Game Top Fives';
$lang['top_five_9'] = 'Games';
$lang['top_five_10'] = 'Top 5 Page';
$lang['top_five_11'] = 's Top 5 Game Statistics Page';
$lang['top_five_12'] = 'Anonymous';
$lang['top_five_13'] = 'Error Selecting Game Information.';
$lang['top_five_14'] = 'Error selecting score information.';
$lang['random_link'] = ' Random Game ';
$lang['challenge_Link'] = 'Challenges Page';
$lang['restriction_check_1'] = 'Sorry, The Admin Requires %B% Posts Before Playing These Games.';
$lang['restriction_check_2'] = 'Sorry, The Admin Requires Being A Member For %B% Day(s) Before Playing These Games.';
$lang['restriction_check_3'] = 'Sorry, The Admins Currently Have The Games Section Disabled For Updates. Please Try Again Later.';
$lang['disabled_page_error'] = 'Sorry, The Admins Currently Have This Feature Disabled.';
$lang['online_no_hidden'] = 'There Are No Hidden Users Currently Playing Here.';
$lang['online_one_hidden'] = 'There Is Currently 1 Hidden User Playing.';
$lang['online_x_hidden'] = 'There Is Currently %n% Hidden Users Playing.';
/* Added in 1.0.6 */
$lang['admin_proper_name'] = 'Real Game Name';
$lang['admin_proper_name_desc'] = '-:- This is what you want the users to see as a game name.';
$lang['new_description'] = 'Description';
$lang['new_games_played'] = 'Played:';
$lang['personal_info_newest_game1'] = '%g% By »» %u%';
$lang['info_box_top_trophy_holder1']= '%n% Currently Holds %t% Trophies.';
$lang['trophy_holder_rank_name'] = 'Trophy King';
$lang['bet_PM'] = 'Your Bet Statistics<br><br>
Game: %G%<br>
Winner: %W%<br>
Winners Score: %WS%<br>
Loser: %L%<br>
Losers Score: %LS%';
$lang['bet_PM_subject'] = 'Your Gamble Results Are In';
$lang['deny_users_sending_score1'] = 'Sorry, you are allowed to play, but the admins have decided your scores
will not be posted. Please click <a href="activity.php"><b>here</b></a> to go back to playing games.';
$lang['deny_users_sending_score2'] = 'Information';
$lang['deny_GET_mode_games_1'] = 'Sorry, we have disabled submitting scores for the GET mode games. Please click <a href="activity.php"><b>here</b></a> to go back to playing games.';
$lang['deny_GET_mode_games_2'] = 'Information';
$lang['order_alphabetical'] = 'Game Name';
$lang['game_rating_title'] = 'Rating';
$lang['game_rating_votes'] = '%V% Votes Cast.';
$lang['game_rating_votes_one'] = '%V% Vote Cast.';
$lang['game_rating_submit'] = 'Rate This Game';
$lang['rating_page_error'] = 'Error';
$lang['rating_page_success'] = 'Success';
$lang['rating_page_error_exists'] = 'Sorry, you have already cast your vote for this game.';
$lang['rating_page_1'] = 'No Game Selected.';
$lang['rating_page_3'] = 'Cast Your Vote For %g%';
$lang['rating_page_4'] = 'Please select a rating from 1-10';
$lang['rating_page_5'] = ' Submit This ';
$lang['rating_page_6'] = 'Thank you for submitting a rating.';
$lang['rating_page_7'] = 'Please select a game & rating before trying to vote.';
$lang['no_game_start_error_1'] = 'Sorry, you need to use the activity page to play games & not link to them directly';
$lang['no_game_start_error_2'] = 'Error';
$lang['no_games_in_cat_error_1'] = 'Sorry %n%, The Admins Have Not Added Any Games For This Category Yet. Please Click <a href="activity.php" class="nav"><b>Here</b></a> And Return To The Games Page.';
$lang['no_games_in_cat_error_2'] = 'Information';
$lang['sort_method'] = 'Sort';
$lang['order_method_title'] = 'Game Order Selection';
$lang['jump_to_boxes_title'] = 'Some Shortcuts';
$lang['no_one_yet'] = 'No One Yet';
/* Added in 1.0.7 */
$lang['activity_xtras'] = 'Activity Xtras';
$lang['auto_delete'] = 'Activate Auto Delete Of Scores?';
$lang['select_option'] = 'Select Option';
$lang['bug_fixers'] = 'Game Related Bug Fixers';
$lang['extra_config_values'] = 'Some Extra Config Values';
$lang['max_charge'] = 'Default Max Game Charge';
$lang['increment'] = 'Increment Value For Drop Down';
$lang['path_for_games'] = 'Game Path';
$lang['bonus_for_games'] = 'Game Bonus';
$lang['game_height'] = 'Window Height';
$lang['game_width'] = 'Window Width';
$lang['cm_pts_name'] = 'Cash Mod Points Name';
$lang['def_list_order'] = 'Default List Order';
$lang['main_pg_order'] = '<i> Order in which games are listed on the main page.</i>';
$lang['type_choose'] = 'Choose A Type';
$lang['games_played_A'] = 'Games Played, ASC';
$lang['games_played_D'] = 'Games Played, DESC';
$lang['new_add'] = 'Newest Added';
$lang['old_add'] = 'Oldest Added';
$lang['bonus_A'] = 'Bonus, ASC';
$lang['bonus_D'] = 'Bonus, DESC';
$lang['cost_A'] = 'Cost, ASC';
$lang['cost_D'] = 'Cost, DESC';
$lang['proper_A'] = 'Real Name, ASC';
$lang['proper_D'] = 'Real Name, DESC';
$lang['corder_gpA'] = 'Current Order: Games Played, ASC';
$lang['corder_cpD'] = 'Current Order: Games Played, DESC';
$lang['corder_na'] = 'Current Order: Newest Added';
$lang['corder_oa'] = 'Current Order: Oldest Added';
$lang['corder_bA'] = 'Current Order: Bonus, ASC';
$lang['corder_bD'] = 'Current Order: Bonus, DESC';
$lang['corder_cA'] = 'Current Order: Cost, ASC';
$lang['corder_cD'] = 'Current Order: Cost, DESC';
$lang['corder_properA'] = 'Current Order: Real Name ASC';
$lang['corder_properD'] = 'Current Order: Real Name DESC';
$lang['req_post_count'] = 'Require A Certain Post Count To Play';
$lang['ify_how_many'] = 'If Yes, How Many Posts Minimum';
$lang['req_mem_time'] = 'Require They Have Been A Member For A Certain Amount Of Time';
$lang['ify_how_long'] = 'If Yes, How Long';
$lang['act_challenge'] = 'Activate The Challenge System';
$lang['sub_chal_mess'] = 'Subject Of The Challenge Message';
$lang['act_pm_trop_loss'] = 'Activate The PM On Trophy Loss';
$lang['sub_trop_loss_mess'] = 'Subject Of The Trophy Loss Message';
$lang['show_new'] = 'Show Newest Games';
$lang['ify_amt_to_show'] = 'If Yes, Amount Of Games To Show<br>On The Main Page';
$lang['allow_guest'] = 'Allow Guest Play';
$lang['button_link_load_style'] = 'Button Link Load Style';
$lang['new_game_length'] = 'New Game Length<br><i> ';
$lang['amt_days_show'] = 'Amount Of Days To Show Image</i>';
$lang['pop_game_limit'] = 'Popular Game Limit<br><i> ';
$lang['game_req_to_show'] = 'Game Plays Required To Show Image</i>';
$lang['act_games_online'] = 'Activate The Games Online List';
$lang['turn_cheat_off'] = 'Turn The Extra Cheat Fix Off';
$lang['show_trop_n_profile'] = 'Show Trophy Stats In viewprofile.php';
$lang['show_stats_n_topic'] = 'Show Trophy Stats In viewtopic.php';
$lang['disable_everything'] = 'Disable everything game related?';
$lang['why_disable_everything'] = 'Mainly to upgrade the board etc..';
$lang['disable_trophy_page'] = 'Disable trophy page?';
$lang['why_disable'] = 'This will disallow users to view this page.';
$lang['disable_comments'] = 'Disable comments page?';
$lang['disable_gamble_page'] = 'Disable gamble page?';
$lang['disable_chall_page'] = 'Disable challenge page?';
$lang['disable_top_five'] = 'Disable top five page?';
$lang['use_trophy_king'] = 'Use Trophy King Feature?';
$lang['why_use_trophy_king'] = 'This will give the top trophy holder a Trophy King rank until they lose the title.';
$lang['all_trophy_reset'] = 'All Users Trophy Count Has Been Reset.';
$lang['success_message'] = 'Success';
$lang['scores_updated'] = ' Adjustments Were Made. Scores Table Updated.';
$lang['all_comments_deleted'] = 'All Comments Deleted.';
$lang['trophy_tab_updated'] = 'Trophy Table Updated. Games Adjusted: ';
$lang['config_updated'] = 'Config Values Updated.';
$lang['tables_updated'] = 'Tables Updated. ';
$lang['games_fixed'] = ' Game(s) Fixed.';
$lang['auto_del_1'] = 'Auto Delete Activated.<br><br>Click <i><a href=';
$lang['auto_del_2'] = 'Here</a></i> To Go Back.';
$lang['auto_del_3'] = 'Auto Delete De-Activated.<br><br>Click <i><a href=';
$lang['error_saving'] = 'Error Saving Change.<br><br>Click <i><a href=';
$lang['error_message'] = 'Error';
$lang['apply_changes_button'] = ' Apply Changes ';
$lang['activate_radio_button'] = 'Activate';
$lang['deactivate_radio_button'] = 'De-Activate';
$lang['resync_message'] = 'From here if you are missing games, this is where you can fix it. It will
re-sync all the games to show.';
$lang['resync_button'] = ' Re-Sync Games ';
$lang['scores_message'] = 'If you have more than one score per game per user, click this to
update the scores table. It might not be 100% accurate but it will
fix alot of bugs.';
$lang['scores_update_button'] = ' Scores Update ';
$lang['trophy_update_message'] = 'If some of your runner ups are also the trophy holder, or the
trophy holder is not the correct person, this will fix almost all
of that issue. Its not perfect but its better than nothing, make sure
you apply the scores update first.';
$lang['trophy_update_button'] = ' Trophy Update ';
$lang['trophy_count_message'] = 'If for some reason the users trophies get out of order, for how
many each user has, this will reset ALL users trophy count to
zero.';
$lang['reset_trophy_button'] = ' Reset Trophy Count ';
$lang['delete_all_com_mess'] = 'This will allow you to delete ALL trophy comments with the touch
of a button.';
$lang['delete_comments_message'] = ' Delete All Trophy Comments ';
$lang['radio_yes'] = 'Yes';
$lang['radio_no'] = 'No';
$lang['radio_popup'] = 'Pop Up';
$lang['radio_parent'] = 'Parent';
$lang['use_logo'] = 'Use a logo on games page.<br><span class="gensmall"><center><i>Link to logo</i></center></span>';
$lang['max_games_played_error'] = 'Sorry %U%, you have exceeded the aloted amount of games you can play per day. Please contact
an admin if you have any further questions.';
$lang['admin_xtras_game_link_msg'] = 'If you\'re looking for games for the Activity Mod Plus, please
click <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=203074" class="nav"><i>here</i></a> to view their links. In the first
post of this topic, there is a FAQ section, what you are looking for
is the first Q & A there.';
$lang['admin_xtras_msg_text'] = 'If Yes, Message To Send<br> %n%: Challengers Name<br>%g%: Game Name';
$lang['admin_xtras_msg_text_1'] = 'If Yes, Message To Send<br> %n%: New Trophy Holders Name<br>%g%: Game Name';
$lang['admin_xtras_save_button'] = ' Save ';
$lang['max_games_played'] = 'Restrict users to play a certain amount of games per day?';
$lang['max_games_played_desc'] = 'If yes, how many games per day?';
$lang['score_on_newscore'] = 'Your score for %G% was %S%.';
$lang['rate_game_default'] = 'Rate This Game';
$lang['rate_game_error'] = 'You need to specify a rating to rate %G%.';
$lang['whos_where_title_1'] = '#';
$lang['whos_where_title_2'] = 'Username';
$lang['whos_where_title_3'] = 'Location';
$lang['whos_where_viewing'] = 'Viewing A Game Related Page';
$lang['whos_where_viewing_idle'] = 'User Is Currently Idle';
$lang['whos_where_no_members'] = 'There Are Currently No Members Here.';
$lang['whos_where_no_members_t'] = 'Information';
$lang['whos_where_link'] = 'View Where The Users Are';
$lang['admin_cat_51'] = 'Not Assigned To A Category';
$lang['admin_cat_52'] = 'Category Description';
$lang['admin_cat_53'] = 'Category Image<br><span class="gensmall"> Relative to your root path, example: images/cat_image.gif</span>';
$lang['trophy_popup_title'] = '%u%\'s Trophy Listing';
$lang['trophy_popup_left'] = 'Game';
$lang['trophy_popup_right'] = 'Score';
$lang['play_again_link'] = 'Play %G% Again?';
$lang['no_votes_cast'] = 'No';
$lang['main_cat_title_1'] = 'Category';
$lang['main_cat_title_2'] = 'Description';
$lang['main_cat_title_3'] = 'Games Avaliable';
$lang['main_cat_title_4'] = 'Games Played';
$lang['main_cat_title_5'] = 'New Games';
$lang['main_cat_title_6'] = 'Popular Games';
$lang['main_cat_no_desc'] = 'No Description Given';
$lang['main_cat_all_desc'] = 'All of our boards games can be found here!';
$lang['category_listing_txt'] = 'Category Page';
$lang['disable_score_submit_m'] = 'Turn off member submit score option?';
$lang['why_disable_score_submit_m'] = 'This will allow members to play, but no score will be submitted.';
$lang['score_disable_message_m'] = 'Sorry, the admins have disallowed members to submit scores for the time being. You are welcome to play them all you wish. Click <a href="activity.php" class="nav"><i>here</i></a> to return to the games page.';
$lang['score_disable_info'] = 'Information';
$lang['disable_score_submit_g'] = 'Turn off anonymous submit score option?';
$lang['why_disable_score_submit_g'] = 'This will allow visitors to play, but no score will be submitted.';
$lang['score_disable_message_g'] = 'Sorry, the admins have disallowed guests to submit scores for the time being. You are welcome to play them all you wish. Click <a href="activity.php" class="nav><i>here</i></a> to return to the games page.';
$lang['info_page_borrowed'] = 'Spent Playing ';
$lang['info_page_category'] = 'Category ';
$lang['info_page_title'] = '.: Game Statistics :.';
$lang['info_page_title_2'] = '.: Instructions :.';
$lang['info_page_played'] = 'Games Played ';
$lang['info_page_cost'] = 'Game Cost ';
$lang['info_page_bonus'] = 'Game Bonus ';
$lang['info_page_player'] = 'Best Player ';
$lang['info_page_score'] = 'Best Score ';
/* Added in 1.0.8 */
$lang['favorites_mouse_over'] = 'Add To Favorites';
$lang['favorites_r_mouse_over'] = 'Delete From Favorites';
$lang['favorites_info_link'] = 'View My Favorites';
$lang['sort_order_reverse'] = 'Reverse Score';
$lang['sort_order_newest'] = 'Newest';
$lang['sort_order_oldest'] = 'Oldest';
$lang['whos_where_contact_onsite'] = 'Onsite Contacts';
$lang['whos_where_contact_offsite'] = 'Offsite Contacts';
$lang['search_option_name'] = 'Game Name';
$lang['search_option_flash'] = 'Flash Games';
$lang['search_option_desc'] = 'Description';
$lang['search_option_glib'] = 'GameLib Games';
$lang['search_option_reverse'] = 'Reverse Score Order';
$lang['search_use_wildcard'] = 'Use Wildcard?';
$lang['search_title'] = 'Search For Games';
$lang['search_option_title_1'] = 'Type Of Game';
$lang['search_option_title_2'] = 'Extra Keys';
$lang['search_query'] = 'Keywords To Search For';
$lang['search_submit'] = 'Begin Search';
$lang['search_category'] = 'Games Category';
$lang['search_category_none'] = 'Any Category';
$lang['search_link'] = 'Search';
$lang['saved_body_title'] = 'Game Finished';
$lang['saved_body_rate'] = 'Leave A Rating?';
$lang['saved_body_favs'] = 'Add To Your Favorites List?';
$lang['saved_body_comms'] = 'View Comments?';
$lang['saved_body_fav_no'] = 'Already A Favorite';
$lang['extra_toggle_values'] = 'Toggle Options';
$lang['gambling_text_option_2'] = 'Username';
$lang['admin_use_rating_reward'] = 'Give Points To Users For Submitting Game Ratings?';
$lang['admin_use_rating_reward_1'] = 'If Yes, How Many Points?';
$lang['rating_payout_message'] = 'Since You Took The Time To Rate This Game, The Admins Have Awarded You %P%.';
/* All the DB Adjustments Upgrade Headings */
$lang['admin_db_7'] = 'From Napoleons 2.0.0 To Activity Mod Plus 1.0.8';
$lang['admin_db_8'] = 'From Activity Mod Plus 1.0.0 To Activity Mod Plus 1.0.8';
$lang['admin_db_9'] = 'From Activity Mod Plus 1.0.1 To Activity Mod Plus 1.0.8';
$lang['admin_db_10'] = 'From Activity Mod Plus 1.0.2 To Activity Mod Plus 1.0.8';
$lang['admin_db_11'] = 'From Activity Mod Plus 1.0.3 To Activity Mod Plus 1.0.8';
$lang['admin_db_21'] = 'From Activity Mod Plus 1.0.4 To Activity Mod Plus 1.0.8';
$lang['admin_db_22'] = 'From Activity Mod Plus 1.0.5 To Activity Mod Plus 1.0.8';
$lang['admin_db_23'] = 'From Activity Mod Plus 1.0.6 To Activity Mod Plus 1.0.8';
$lang['admin_db_24'] = 'From Activity Mod Plus 1.0.7 To Activity Mod Plus 1.0.8';
?>http://www.rappersonline - voor al je online rapmovies + downloads !
File : /data/members/free/tripod/nl/p/r/o/profclan/htdocs/forum/activity.php
Geef ie in de fout aan.
Post regel 1251 eens.
Geef ie in de fout aan.
Post regel 1251 eens.
[+] Isento at DeviantArt
Hoe kan ik die vinden 1251 woow 
http://www.rappersonline - voor al je online rapmovies + downloads !
Tja.. Ik heb geen Word
Klinkt raar maar is verwijderd door iemand
Weet je misschien een andere programma dan
Weet je misschien een andere programma dan
http://www.rappersonline - voor al je online rapmovies + downloads !
Kan jij dat a.u.b. doen voor me Luuk ik kom er absoluut niet uit 
http://www.rappersonline - voor al je online rapmovies + downloads !
Code: Selecteer alles
<?php
/***************************************************************************
* activity.php
* ----------------
* Version : 1.0.8
* Email : austin@austin-inc.net
* Site : http://phpbb-amod.com
* Copyright : aUsTiN-Inc 2003/4
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include_once($phpbb_root_path . 'extension.inc');
include_once($phpbb_root_path . 'common.'.$phpEx);
include_once($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_activity.' . $phpEx);
include_once($phpbb_root_path . 'includes/functions_amod_plus.'. $phpEx);
include_once($phpbb_root_path . 'includes/bbcode.'. $phpEx);
// Start session management
$userdata = session_pagestart($user_ip, PAGE_ACTIVITY);
init_userprefs($userdata);
// End session management
/* Start Version Check */
VersionCheck();
/* End Version Check */
$user_id = $userdata['user_id'];
if($board_config['ina_guest_play'] == "2")
{
if (!$userdata['session_logged_in'] && $user_id == ANONYMOUS)
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.$phpEx?redirect=activity.$phpEx", true));
exit;
}
}
UpdateSessions();
BanCheck();
UpdateActivitySession();
$start = ( isset($HTTP_GET_VARS['start']) ) ? intval($HTTP_GET_VARS['start']) : 0;
$finish = $board_config['games_per_page'];
if($board_config['use_rewards_mod'])
{
if($board_config['use_point_system'])
{
include($phpbb_root_path .'includes/functions_points.'. $phpEx);
}
if($board_config['use_cash_system'] || $board_config['use_allowance_system'])
{
include($phpbb_root_path .'includes/rewards_api.'. $phpEx);
}
}
CheckGambles();
UpdateGamblePoints();
if($mode != "game")
{
UpdateUsersPage($userdata['user_id'], $_SERVER['REQUEST_URI']);
}
if (isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
{
$mode = (isset($HTTP_GET_VARS['mode'])) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode'];
}
else
{
if( isset($HTTP_POST_VARS['game']) )
{
$mode = "game";
}
else if( isset($HTTP_POST_VARS['stats']) )
{
$mode = "stats";
}
else
{
$mode = "";
}
}
if($mode == "category_play" && !$HTTP_GET_VARS['cat'])
{
$template->set_filenames(array('body' => 'activity_cat_page_body.tpl') );
$q = "SELECT COUNT(game_id) AS total_games
FROM ". iNA_GAMES ."";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_games_here = $row['total_games'];
$q = "SELECT SUM(played) AS total_played
FROM ". iNA_GAMES ."";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_played = number_format($row['total_played']);
if(!$total_played) $total_played = 0;
$new_length = time() - 86400 * $board_config['ina_new_game_limit'];
$q = "SELECT COUNT(game_id) AS total_new
FROM ". iNA_GAMES ."
WHERE install_date > '". $new_length ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_new = $row['total_new'];
if(!$total_new) $total_new = 0;
$pop_limit = $board_config['ina_pop_game_limit'];
$q = "SELECT COUNT(game_id) AS total_popular
FROM ". iNA_GAMES ."
WHERE played > '". $pop_limit ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_pop = $row['total_popular'];
if(!$total_pop) $total_pop = 0;
$template->assign_block_vars("main_cats", array(
"TITLE_1" => $lang['main_cat_title_1'],
"TITLE_2" => $lang['main_cat_title_2'],
"TITLE_3" => $lang['main_cat_title_3'],
"TITLE_4" => $lang['main_cat_title_4'],
"TITLE_5" => $lang['main_cat_title_5'],
"TITLE_6" => $lang['main_cat_title_6'],
"T_GAMES_P" => $total_played,
"P_GAMES" => $total_pop,
"N_GAMES" => $total_new,
"GAMES" => $total_games_here,
"GAMES_T" => $board_config['sitename'] ."'s ". $lang['admin_games'],
"GAMES_D" => $lang['main_cat_all_desc'],
"GAMES_I" => "<a href='activity.". $phpEx ."?sid=". $userdata['session_id'] ."'><img src='". $board_config['ina_use_logo'] ."' border='0'></a>")
);
$q = "SELECT *
FROM ". INA_CATEGORY ."
WHERE cat_id > '0'";
$r = $db -> sql_query($q);
while($row = $db -> sql_fetchrow($r))
{
$cat_img = $row['cat_img'];
$cat_desc = $row['cat_desc'];
$cat_name = $row['cat_name'];
$cat_id = $row['cat_id'];
$q1 = "SELECT COUNT(game_id) AS total_games
FROM ". iNA_GAMES ."
WHERE cat_id = '". $cat_id ."'";
$r1 = $db -> sql_query($q1);
$row1 = $db -> sql_fetchrow($r1);
$total_games = $row1['total_games'];
$q2 = "SELECT SUM(played) AS total_played
FROM ". iNA_GAMES ."
WHERE cat_id = '". $cat_id ."'";
$r2 = $db -> sql_query($q2);
$row2 = $db -> sql_fetchrow($r2);
$total_played = number_format($row2['total_played']);
if(!$total_played) $total_played = 0;
$q3 = "SELECT COUNT(game_id) AS total_new
FROM ". iNA_GAMES ."
WHERE cat_id = '". $cat_id ."'
AND install_date > '". $new_length ."'";
$r3 = $db -> sql_query($q3);
$row3 = $db -> sql_fetchrow($r3);
$total_new = $row3['total_new'];
if(!$total_new) $total_new = 0;
$q4 = "SELECT COUNT(game_id) AS total_popular
FROM ". iNA_GAMES ."
WHERE cat_id = '". $cat_id ."'
AND played > '". $board_config['ina_pop_game_limit'] ."'";
$r4 = $db -> sql_query($q4);
$row4 = $db -> sql_fetchrow($r4);
$total_pop = $row4['total_popular'];
if(!$total_pop) $total_pop = 0;
if(!$cat_desc) $cat_desc = $lang['main_cat_no_desc'];
if(file_exists($cat_img) == 0)
{
$cat_img = "";
$cat_name = "<a href='activity.". $phpEx ."?mode=category_play&cat=". $cat_id ."&sid=". $userdata['session_id'] ."'>". $cat_name ."</a>";
}
else
{
$cat_img = "<a href='activity.". $phpEx ."?mode=category_play&cat=". $cat_id ."&sid=". $userdata['session_id'] ."'><img src='./". $cat_img ."' border='0'></a>";
$cat_name = $cat_name;
}
$template->assign_block_vars("main_cats_rows", array(
"ONE" => $cat_name ."<br>". $cat_img,
"TWO" => $cat_desc,
"THREE" => $total_games,
"FOUR" => $total_played,
"FIVE" => $total_new,
"SIX" => $total_pop)
);
}
}
else
{
$q = "SELECT game_id
FROM ". iNA_GAMES ."
WHERE disabled <> '0'
ORDER BY RAND()
LIMIT 1";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$random_game = append_sid("activity.". $phpEx ."?mode=game&id=". $row['game_id'] ."&parent=true");
$random_image = "images/amod_random.gif";
if($mode == "challenge")
{
$who = $_GET['user'];
$who_id = $_GET['user'];
$game = $_GET['game'];
if($who == $userdata['user_id'])
{
message_die(GENERAL_MESSAGE, $lang['challenge_self_error'], $lang['challenge_information']);
}
$returned = ChallengeSelected($who, $game);
$returned_data = explode("%RETURNED%", $returned);
$who = $returned_data[0];
$game = $returned_data[1];
$message_sent = $board_config['ina_challenge_msg'];
$message_sent = $who .", ". $message_sent;
$message_sent = str_replace("%n%", $userdata['username'], $message_sent);
$message_sent = str_replace("%g%", $game, $message_sent);
$top = $lang['pm_msg_top'];
$middle = "<br>------------------------------------------------------------------<br>";
$bottom = $lang['pm_msg_bottom'];
send_challenge_pm($who_id, $board_config['ina_challenge_sub'], $message_sent);
message_die(GENERAL_MESSAGE, $top . $middle . $message_sent . $middle . $bottom, "Information");
}
if(isset($HTTP_POST_VARS['order']))
{
$sort_order = ($HTTP_POST_VARS['order'] == 'DESC') ? 'DESC' : 'ASC';
}
elseif(isset($HTTP_GET_VARS['order']))
{
$sort_order = ($HTTP_GET_VARS['order'] == 'DESC') ? 'DESC' : 'ASC';
}
else
{
$sort_order = 'DESC';
}
if($board_config['use_point_system'])
{
$game_cost = $board_config['points_name'];
}
else
{
$game_cost = $lang['game_cost'];
}
if($board_config['use_rewards_mod'])
{
$mode_types_text = array($game_cost, $lang['game_bonuses'], $lang['game_played'], $lang['order_alphabetical'], $lang['sort_order_newest'], $lang['sort_order_oldest'], $lang['sort_order_reverse']);
$mode_types = array('game_charge', 'game_bonus', 'game_played', 'proper_name', 'install_dateN', 'install_dateO', 'reverse_list');
}
else
{
$mode_types_text = array($lang['game_played'], $lang['order_alphabetical'], $lang['sort_order_newest'], $lang['sort_order_oldest'], $lang['sort_order_reverse']);
$mode_types = array('game_played', 'proper_name', 'install_dateN', 'install_dateO', 'reverse_list');
}
$select_sort_mode = '<select name="mode">';
for($i = 0; $i < count($mode_types_text); $i++)
{
$selected = ( $mode == $mode_types[$i] ) ? ' selected="selected"' : '';
$select_sort_mode .= '<option value="' . $mode_types[$i] . '"' . $selected . '>' . $mode_types_text[$i] . '</option>';
}
$select_sort_mode .= '</select>';
$select_sort_order = '<select name="order">';
if($sort_order == 'DESC')
{
$select_sort_order .= '<option value="DESC" selected="selected">' . $lang['Sort_Descending'] . '</option><option value="ASC">' . $lang['Sort_Ascending'] . '</option>';
}
else
{
$select_sort_order .= '<option value="DESC">' . $lang['Sort_Descending'] . '</option><option value="ASC" selected="selected">' . $lang['Sort_Ascending'] . '</option>';
}
$select_sort_order .= '</select>';
$admin_d = AdminDefaultOrder();
switch($mode)
{
case 'install_dateN':
$order_by = "install_date DESC LIMIT $start,". $board_config['games_per_page'];
$mode = "";
break;
case 'install_dateO':
$order_by = "proper_name ASC LIMIT $start,". $board_config['games_per_page'];
$mode = "";
break;
case 'reverse_list':
$order_by = "reverse_list $sort_order LIMIT $start,". $board_config['games_per_page'];
$mode = "";
break;
case 'proper_name':
$order_by = "proper_name $sort_order LIMIT $start,". $board_config['games_per_page'];
$mode = "";
break;
case 'game_charge':
$order_by = "game_charge $sort_order LIMIT $start,". $board_config['games_per_page'];
$mode = "";
break;
case 'game_bonus':
$order_by = "game_bonus $sort_order LIMIT $start,". $board_config['games_per_page'];
$mode = "";
break;
case 'game_played':
$order_by = "played $sort_order LIMIT $start,". $board_config['games_per_page'];
$mode = "";
break;
default:
$order_by = "$admin_d LIMIT $start, ". $board_config['games_per_page'];
break;
}
$template->set_filenames(array('body' => 'activity2_body.tpl') );
$links = SetHeaderLinks();
$template->assign_block_vars("links_check", array(
"LINKS" => $links ." ::"));
/* Start Info Box */
if($userdata['user_level'] != ADMIN) $where_disabled = "WHERE disabled > '0'";
if($userdata['user_level'] == ADMIN) $where_disabled = "";
/* Get last trophy game played */
$q = "SELECT a.*, b.username
FROM ". INA_TROPHY ." a, ". USERS_TABLE ." b
WHERE a.player = b.user_id
ORDER BY a.date DESC
LIMIT 1";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$game = $row['game_name'];
$name = $row['player'];
$when = $row['date'];
$score = $row['score'];
$trophy = $row['username'];
if($name != ANONYMOUS)
{
$trophy_link = "<a href='". append_sid("profile.$phpEx?mode=viewprofile&u=$name") ."' class='nav'>". $trophy ."</a>";
}
else
{
$trophy_link = "Anonymous";
}
$q = "SELECT *
FROM ". iNA_GAMES ."
WHERE game_name = '". $game ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$t_game_id = $row['game_id'];
$t_game_name = $row['proper_name'];
/* Get total games played, most game played, least game played */
$q = "SELECT *
FROM ". iNA_GAMES ."
$where_disabled
ORDER BY played DESC
LIMIT 1";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$f_game_id = $row['game_id'];
$f_game_name = $row['proper_name'];
$f_game_played = $row['played'];
$q = "SELECT *
FROM ". iNA_GAMES ."
$where_disabled
ORDER BY played ASC
LIMIT 1";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$lf_game_id = $row['game_id'];
$lf_game_name = $row['proper_name'];
$lf_game_played = $row['played'];
$q = "SELECT SUM(played) AS total_games_played
FROM ". iNA_GAMES ."";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total = $row['total_games_played'];
$q = "SELECT COUNT(comment) AS total_comments_left
FROM ". $table_prefix ."ina_trophy_comments";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_comments = $row['total_comments_left'];
$q = "SELECT COUNT(game_id) AS total_games_available
FROM ". iNA_GAMES ."";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_games_available = $row['total_games_available'];
$q = "SELECT COUNT(game_id) AS total_bets_made
FROM ". $table_prefix ."ina_gamble";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_bets_made = $row['total_bets_made'];
$q = "SELECT SUM(count) AS total_challenges_sent
FROM ". $table_prefix ."ina_challenge_users";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_challenges_sent = $row['total_challenges_sent'];
$totals_lines = $lang['info_box_total_game_played'] ." ". number_format($total) ."<br>".
$lang['info_box_total_comments'] ." ". number_format($total_comments) ."<br>".
$lang['info_box_total_challenges'] ." ". number_format($total_challenges_sent) ."<br>".
$lang['info_box_total_bets'] ." ". number_format($total_bets_made) ."<br>".
$lang['info_box_total_gaems'] ." ". number_format($total_games_available) ."<br>";
$trophy_game_3 = str_replace("%l%", "<a href='". append_sid("activity.$phpEx?mode=game&id=$t_game_id&parent=true") ."' class='nav'>". $lang['info_box_link_here'] ."</a>", $lang['info_box_trophy_3']);
/* Info for the person with the most trophies */
$q = "SELECT *
FROM ". USERS_TABLE ."
ORDER BY user_trophies DESC
LIMIT 0, 1";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$usersname = $row['username'];
$usersid = $row['user_id'];
$userstrophies = $row['user_trophies'];
if($usersid != ANONYMOUS)
{
$top_player1 = str_replace("%n%", "<a href='". append_sid("profile.$phpEx?mode=viewprofile&u=$usersid") ."' class='nav'>". $usersname ."</a>", $lang['info_box_top_trophy_holder1']);
}
else
{
$top_player1 = str_replace("%n%", $usersname, $lang['info_box_top_trophy_holder1']);
}
$top_player2 = str_replace("%t%", "<a href='". append_sid("activity_top_scores_search.$phpEx?user=$usersname") ."' class='nav'>". $userstrophies ."</a>", $top_player1);
$top_player = $top_player2;
/* Get all the info for the viewing user */
$cpu_id = $userdata['user_id'];
$cpu_username = $userdata['username'];
$q = "SELECT *
FROM ". INA_LAST_GAME ."
WHERE user_id = '". $cpu_id ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$exists = $row['user_id'];
$game = $row['game_id'];
$when = $row['date'];
if($exists)
{
$q = "SELECT proper_name
FROM ". iNA_GAMES ."
WHERE game_id = '". $game ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$l_game_name = $row['proper_name'];
$last = str_replace("%g%", "<a href='". append_sid("activity.$phpEx?mode=game&id=$game&parent=true") ."' class='nav'>$l_game_name</a>", $lang['personal_info_last_game']);
$last2 = str_replace("%d%", create_date($board_config['default_dateformat'], $when, $board_config['board_timezone']), $last);
$template->assign_block_vars("personal_info_box", array(
"LAST_GAME_PLAYED" => "<b>¤</b> ". $last2)
);
}
$q = "SELECT COUNT(*) AS total
FROM ". iNA_SCORES ."
WHERE player = '". $userdata['username'] ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_scores = $row['total'];
if(!$total_scores) $total_scores == "0";
$q = "SELECT SUM(count) AS total
FROM ". INA_CHALLENGE_USERS ."
WHERE user_from = '". $userdata['user_id'] ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_challenges_sent = $row['total'];
if(!$total_challenges_sent) $total_challenges_sent == "0";
$q = "SELECT SUM(count) AS total
FROM ". INA_CHALLENGE_USERS ."
WHERE user_to = '". $userdata['user_id'] ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_challenges_recieved = $row['total'];
if(!$total_challenges_recieved) $total_challenges_recieved == "0";
$q = "SELECT COUNT(player) AS total
FROM ". INA_TROPHY_COMMENTS ."
WHERE player = '". $userdata['user_id'] ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$total_comments_left = $row['total'];
if(!$total_comments_left) $total_comments_left == "0";
if($userdata['user_id'] != ANONYMOUS) $users_link = "<a href='". append_sid("profile.$phpEx?mode=viewprofile&u=". $userdata['user_id']) ."' class='nav'>". $userdata['username'] ."</a>";
if($userdata['user_id'] == ANONYMOUS) $users_link = "Anonymous";
if($userdata['user_id'] != ANONYMOUS) $sent_link = "<b>¤</b> ". str_replace("%t%", "<a href='". append_sid("challenges.$phpEx?mode=check_user&u=". $userdata['user_id']) ."' class='nav'>". $total_challenges_sent ."</a>", $lang['personal_info_challenges_1']);
if($userdata['user_id'] == ANONYMOUS) $sent_link = "<b>¤</b> ". str_replace("%t%", $total_challenges_sent, $lang['personal_info_challenges_1']);
/* Select info for last game played */
$q = "SELECT a.game_id, a.user_id, a.date, b.username, c.proper_name
FROM ". INA_LAST_GAME ." a, ". USERS_TABLE ." b, ". iNA_GAMES ." c
WHERE a.user_id = b.user_id
AND c.game_id = a.game_id
ORDER BY a.date DESC
LIMIT 1";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$newest_game = $row['game_id'];
$newest_user = $row['user_id'];
$newest_date = $row['date'];
$newest_name = $row['username'];
$newest_game_name = $row['proper_name'];
$newlink = str_replace("%g%", "<a href='". append_sid("activity.$phpEx?mode=game&id=$newest_game&parent=true") ."' class='nav'>$newest_game_name</a>", $lang['personal_info_newest_game1']);
if($newest_user != ANONYMOUS)
{
$newlink2 = str_replace("%u%", "<a href='". append_sid("profile.$phpEx?mode=viewprofile&u=$newest_user") ."' class='nav'>$newest_name</a>", $newlink);
}
else
{
$newlink2 = str_replace("%u%", $newest_name, $newlink);
}
$newest_game_played_link = $newlink2;
$newest_game_played_title = $lang['personal_info_newest_game'];
if($userdata['user_trophies'] == 1)
{
$lang_to_use = $lang['personal_info_trophies_1'];
}
else
{
$lang_to_use = $lang['personal_info_trophies'];
}
if($total_scores == 1)
{
$game_lang = $lang['personal_info_game_played'];
}
else
{
$game_lang = $lang['personal_info_games_played'];
}
if($userdata['user_trophies'] > 0) $users_trophies = "<b>¤</b> ". str_replace("%t%", "<a href='". append_sid("activity_top_scores_search.$phpEx?user=". $userdata['username']) ."' class='nav'>". $userdata['user_trophies'] ."</a>", $lang_to_use);
if($userdata['user_trophies'] < 1) $users_trophies = "<b>¤</b> ". str_replace("%t%", $userdata['user_trophies'], $lang_to_use);
if($board_config['use_cash_system'] || $board_config['use_allowance_system']) $cash_fix = $board_config['default_reward_dbfield'];
if(($board_config['use_rewards_mod']) && ($board_config['use_point_system'])) $onhand = "<b>¤</b> ". str_replace("%p%", number_format($userdata['user_points']) ." ". $board_config['points_name'], $lang['info_box_user_points']);
if(($board_config['use_rewards_mod']) && ($board_config['use_cash_system'] || $board_config['use_allowance_system'])) $onhand = "<b>¤</b> ". str_replace("%p%", number_format($userdata[$cash_fix]) ." ". $board_config['ina_cash_name'], $lang['info_box_user_points']);
if(!$board_config['use_rewards_mod']) $onhand = "";
$template->assign_block_vars("info_box", array(
"MOST_POPULAR_1" => $lang['info_box_popular_1'] . $f_game_name .".",
"MOST_POPULAR_2" => " ". str_replace("%g%", $f_game_played, $lang['info_box_popular_2']),
"MOST_POPULAR_3" => " ". str_replace("%l%", "<a href='". append_sid("activity.$phpEx?mode=game&id=$f_game_id&parent=true") ."' class='nav''>". $lang['info_box_link_here'] ."</a>", $lang['info_box_least_popular_3']),
"LEAST_POPULAR_1" => $lang['info_box_least_popular_1'] . $lf_game_name .".",
"LEAST_POPULAR_2" => " ". str_replace("%g%", $lf_game_played, $lang['info_box_least_popular_2']),
"LEAST_POPULAR_3" => " ". str_replace("%l%", "<a href='". append_sid("activity.$phpEx?mode=game&id=$lf_game_id&parent=true") ."' class='nav'>". $lang['info_box_link_here'] ."</a>", $lang['info_box_least_popular_3']),
"TOTAL_GAMES_PLAYED" => $totals_lines,
"TROPHY_GAME" => $trophy_link,
"TROPHY_GAME_1" => $lang['info_box_trophy_1'],
"TROPHY_GAME_2" => str_replace("%g%", $t_game_name, $lang['info_box_trophy_2']),
"TROPHY_GAME_3" => $trophy_game_3,
"TROPHY_TOP_HOLDER1" => "<br>". $top_player,
"TROPHY_TOP_HOLDER" => $lang['info_box_top_trophy_holder'],
"USERNAME" => $users_link,
"TOTAL_GAMES_LINK" => "<b>¤</b> ". str_replace("%t%", "<a href='". append_sid("activity_highscores.$phpEx?mode=highscore&player_search=". $userdata['username']) ."' class='nav'>". $total_scores ."</a>", $game_lang),
"FAVORITES_LINK" => "<b>¤</b> <a href='activity_favs.". $phpEx ."?sid=". $userdata['session_id'] ."' class='mainmenu'>". $lang['favorites_info_link'] ."</a>",
"TOTAL_CHALLENGES_SENT" => $sent_link,
"TOTAL_CHALLENGES_RECIEVED" => "<b>¤</b> ". str_replace("%t%", $total_challenges_recieved, $lang['personal_info_challenges_2']),
"TOTAL_COMMENTS_LEFT" => "<b>¤</b> ". str_replace("%t%", $total_comments_left, $lang['personal_info_comments']),
"TOTAL_TROPHIES_HELD" => $users_trophies,
"LAST_GAME_PLAYED" => $newest_game_played_link,
"TOTAL_ONHAND_POINTS" => $onhand,
"L_NEWEST_TITLE" => $newest_game_played_title,
"L_INFO_TITLE" => $lang['info_box_title'],
"L_INFO_TITLE1" => $lang['info_box_title1'],
"L_INFO_TITLE2" => $lang['info_box_title2'],
"L_INFO_TITLE3" => $lang['info_box_title3'])
);
/* End Info Box */
if($mode == "game")
{
$game_id = (isset($HTTP_GET_VARS['id'])) ? intval($HTTP_GET_VARS['id']) : 0;
$cheat_var = time();
InsertPlayingGame($userdata['user_id'], $game_id);
/* Start insert starting game */
$sql = "SELECT user_id
FROM ". INA_CHEAT ."
WHERE player = '". $userdata['user_id'] ."'";
$result = $db -> sql_query($sql);
$row = $db -> sql_fetchrow($result);
$there = $row['user_id'];
if(!$there)
{
$sql = "INSERT INTO ". INA_CHEAT ."
VALUES ('". $game_id ."', '". $userdata['user_id'] ."')";
$result = $db -> sql_query($sql);
}
else
{
$sql = "UPDATE ". INA_CHEAT ."
SET game_id = '". $game_id ."'
WHERE player = '". $userdata['user_id'] ."'";
$result = $db -> sql_query($sql);
}
/* End insert starting game */
$sql = "SELECT user_id
FROM ". INA_LAST_GAME ."
WHERE user_id = '". $userdata['user_id'] ."'";
$result = $db -> sql_query($sql);
$row = $db -> sql_fetchrow($result);
$exists = $row['user_id'];
if(!$exists)
{
$sql = "INSERT INTO ". INA_LAST_GAME ."
VALUES ('". $game_id ."', '". $userdata['user_id'] ."', '". time() ."')";
$result = $db -> sql_query($sql);
}
else
{
$sql = "UPDATE ". INA_LAST_GAME ."
SET game_id = '". $game_id ."', date = '". time() ."'
WHERE user_id = '". $userdata['user_id'] ."'";
$result = $db -> sql_query($sql);
}
$sql = "SELECT *
FROM ". iNA_GAMES ."
WHERE game_id = '". $game_id ."'";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, $lang['no_game_data'], "", __LINE__, __FILE__, $sql);
}
$game_info = $db->sql_fetchrow($result);
if($_GET['parent']) $parent = "&parent=true";
$gamepath = 'game.php?id='. $game_id . $parent ."&x=". $cheat_var;
$game_charge = $game_info['game_charge'];
if($board_config['use_point_system'] && $board_config['use_rewards_mod'])
{
if ($userdata['user_points'] >= $game_charge)
{
subtract_points($user_id,$game_charge);
}
else
{
$gen_simple_header = TRUE;
message_die(GENERAL_MESSAGE, $lang['not_enough_points'], '', __LINE__, __FILE__, $sql);
}
}
if(($board_config['use_cash_system'] || $board_config['use_allowance_system']) && $board_config['use_rewards_mod'])
{
if (get_reward($user_id) >= $game_charge)
{
subtract_reward($user_id,$game_charge);
}
else
{
$gen_simple_header = TRUE;
message_die(GENERAL_MESSAGE, $lang['not_enough_reward'], '', __LINE__, __FILE__, $sql);
}
}
$sql = "UPDATE ". iNA_GAMES ."
SET played = played + '1'
WHERE game_id = '". $game_id ."'";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, $lang['no_game_update'], __LINE__, __FILE__, $sql);
}
$q = "UPDATE ". SESSIONS_TABLE ."
SET session_page = '". PAGE_PLAYING_GAMES ."'
WHERE session_user_id = '". $userdata['user_id'] ."'";
$r = $db -> sql_query($q);
$q = "UPDATE ". USERS_TABLE ."
SET user_session_page = '". PAGE_PLAYING_GAMES ."'
WHERE user_id = '". $userdata['user_id'] ."'";
$r = $db -> sql_query($q);
redirect(append_sid($gamepath, true));
}
elseif($mode == "stats")
{
$game_id = (isset($HTTP_GET_VARS['id'])) ? intval($HTTP_GET_VARS['id']) : 0;
$sql = "SELECT *
FROM ". iNA_GAMES ."
WHERE game_id = '". $game_id ."'";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, $lang['no_game_data'], "", __LINE__, __FILE__, $sql);
}
$game_info = $db->sql_fetchrow($result);
$sql = "SELECT *
FROM ". INA_CATEGORY ."
WHERE cat_id = '". $game_info['cat_id'] ."'";
$result = $db->sql_query($sql);
$cat_info = $db->sql_fetchrow($result);
if($game_info['reverse_list'])
{
$list_type = 'ASC';
}
else
{
$list_type = 'DESC';
}
$sql = "SELECT *
FROM ". iNA_SCORES ."
WHERE game_name = '". $game_info['game_name'] ."'
ORDER BY score $list_type";
if(!$result = $db->sql_query($sql))
{
message_die(GENERAL_ERROR, $lang['no_score_data'], "", __LINE__, __FILE__, $sql);
}
$score_info = $db->sql_fetchrow($result);
$best_score = $score_info['score'];
$best_player = $score_info['player'];
if($game_info['game_charge'])
{
$cost = $game_info['game_charge'] . " ";
}
else
{
$cost = $lang['game_free'];
}
if($board_config['use_point_system'] && ($game_info['game_charge'] > 0))
{
$cost .= $board_config['points_name'];
}
if($game_info['instructions'])
{
$instructions = $game_info['instructions'];
}
else
{
$instructions = $lang['game_no_instructions'];
}
$borrowed = $game_info['played'] * $game_info['game_charge'];
$template->set_filenames(array('body' => 'activity_stats.tpl') );
$template->assign_vars(array(
"L_TITLE" => $lang['info_page_title'],
"L_TITLE_2" => $lang['info_page_title_2'],
"L_PLAYED" => $lang['info_page_played'],
"L_PLAYER" => $lang['info_page_player'],
"L_COST" => $lang['info_page_cost'],
"L_SCORE" => $lang['info_page_score'],
"L_BONUS" => $lang['info_page_bonus'],
"L_CATEGORY" => $lang['info_page_category'],
"L_BORROWED" => $lang['info_page_borrowed'],
"NAME" => $game_info['game_name'],
"PATH" => $game_info['game_path'],
"DESC" => $game_info['game_desc'],
"PLAYED" => number_format($game_info['played']),
"COST" => number_format($cost),
"BORROWED" => number_format($borrowed),
"CATEGORY" => $cat_info['cat_name'],
"BONUS" => $game_info['game_bonus'],
"BEST_PLAYER" => $best_player,
"BEST_SCORE" => FormatScores($best_score),
"INSTRUCTIONS" => $instructions)
);
}
else
{
/* First Time Use, Transfer The Highest Scores To The New activity.php */
$q1 = "SELECT COUNT(*) AS total
FROM ". INA_TROPHY ."";
$r1 = $db -> sql_query($q1);
$row1 = $db -> sql_fetchrow($r1);
$game_n = $row1['total'];
if(!$game_n)
{
$q = "SELECT * , MAX(score) AS highest
FROM ". iNA_SCORES ."
GROUP BY game_name";
$r = $db -> sql_query($q);
while($row = $db -> sql_fetchrow($r))
{
$h_p = $row['player'];
$h_s = $row['highest'];
$h_g = $row['game_name'];
$h_t = time();
$q1 = "SELECT user_id
FROM ". USERS_TABLE ."
WHERE username = '". $h_p ."'";
$r1 = $db -> sql_query($q1);
$row1 = $db -> sql_fetchrow($r1);
$n_h_p = $row1['user_id'];
if(!$n_h_p) $n_h_p = $userdata['user_id'];
$q2 = "INSERT INTO ". INA_TROPHY ."
VALUES ('". $h_g ."', '". $n_h_p ."', '". $h_s ."', '". $h_t ."')";
$r2 = $db -> sql_query($q2);
}
}
/* Finished With First Time Use */
/* Fix For When Adding New Games, Them Not Appearing In The Games List */
$q = "SELECT *
FROM ". iNA_GAMES ."
WHERE played < '1'";
$r = $db -> sql_query($q);
while($row = $db -> sql_fetchrow($r))
{
$game_n = $row['game_name'];
$game_o = $row['reverse_list'];
if($game_o)
{
$New_score = '1000';
}
else
{
$New_score = '1';
}
$q1 = "INSERT INTO ". iNA_SCORES ."
VALUES ('". $game_n ."', '". $userdata['username'] ."', '". $New_score ."', '". time() ."')";
$r1 = $db -> sql_query($q1);
$q2 = "SELECT game_name
FROM ". INA_TROPHY ."
WHERE game_name = '". $game_n ."'";
$r2 = $db -> sql_query($q2);
$row = $db -> sql_fetchrow($r2);
$exists = $row['game_name'];
if(!$exists)
{
$q3 = "INSERT INTO ". INA_TROPHY ."
VALUES ('". $game_n ."', '". $userdata['user_id'] ."', '". $New_score ."', '". time() ."')";
$r3 = $db -> sql_query($q3);
}
$q4 = "UPDATE ". iNA_GAMES ."
SET played = '1'
WHERE game_name = '". $game_n ."'";
$r4 = $db -> sql_query($q4);
}
/* Finished With Adding New Games Bug. */
$template->set_filenames(array('body' => 'activity2_body.tpl') );
/* Start Whos In The Games */
if($board_config['ina_use_online'] == "1")
{
$expired = time() - 300;
$q = "SELECT COUNT(*) AS total
FROM ". INA_SESSIONS ."
WHERE playing = '0'
AND playing_time >= '". $expired ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$playing_guests = $row['total'];
if($playing_guests == "0")
{
$message3 = $lang['online_no_guests'];
$message4 = "";
$playing_guests = "";
}
elseif($playing_guests == "1")
{
$message3 = $lang['online_g_one_1'];
$message4 = $lang['online_g_one_2'];
}
else
{
$message3 = $lang['online_g_1'];
$message4 = $lang['online_g_2'];
}
$q = "SELECT COUNT(*) AS total
FROM ". INA_SESSIONS ."
WHERE playing = '1'
AND playing_time >= '". $expired ."'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$playing_members = $row['total'];
if($playing_members == "0")
{
$message1 = $lang['online_no_members'] ;
$message2 = "";
$playing_members = "";
}
elseif($playing_members == "1")
{
$message1 = $lang['online_m_one_1'];
$message2 = $lang['online_m_one_2'];
}
else
{
$message1 = $lang['online_m_1'];
$message2 = $lang['online_m_2'];
}
$q = "SELECT COUNT(*) AS total
FROM ". USERS_TABLE ."
WHERE ( user_session_page = ". PAGE_ACTIVITY ." OR user_session_page = ". PAGE_PLAYING_GAMES ." )
AND user_session_time >= '". $expired ."'
AND user_allow_viewonline = '0'";
$r = $db -> sql_query($q);
$row = $db -> sql_fetchrow($r);
$playing_hidden = $row['total'];
if($playing_hidden == "0")
{
$message5 = $lang['online_no_hidden'] ;
}
elseif($playing_hidden == "1")
{
$message5 = $lang['online_one_hidden'];
}
else
{
$message5 = str_replace("%n%", $playing_hidden, $lang['online_x_hidden']);
}
$template->assign_block_vars("playing_games", array(
"TOTAL_PLAYING" => $playing_total,
"TOTAL_M_PLAYING" => $playing_members,
"TOTAL_G_PLAYING" => $playing_guests,
"ONLINE_TITLE" => $lang['online_title_bar'],
"CURRENTLY_PLAYING1" => $message1,
"CURRENTLY_PLAYING2" => $message2,
"CURRENTLY_PLAYING3" => $message3,
"CURRENTLY_PLAYING4" => $message4 ."<br><a href='activity_whos_where.". $phpEx ."?sid=". $userdata['session_id'] ."' class='mainmenu'>". $lang['whos_where_link'] ."</a><br>",
"CURRENTLY_PLAYING5" => $message5,
"MAIN_COLOR1" => "[ <font color=". $theme['fontcolor2'] .">". $lang['online_viewing_games'] ."</font> ]",
"MAIN_SEPERATOR" => "<b> :: </b>",
"MAIN_COLOR2" => "[ <font color=". $theme['fontcolor3'] .">". $lang['online_playing_games'] ."</font> ]")
);
$q = "SELECT *
FROM ". INA_SESSIONS ."
WHERE playing = '1'
AND playing_time >= '". $expired ."'";
$r = $db -> sql_query($q);
while($row = $db -> sql_fetchrow($r))
{
$playing_id = $row['playing_id'];
if($userdata['user_level'] == ADMIN) $admin_hidden = "";
if($userdata['user_level'] != ADMIN) $admin_hidden = "AND user_allow_viewonline = '1'";
$q1 = "SELECT username, user_session_page, user_allow_viewonline
FROM ". USERS_TABLE ."
WHERE user_id = '". $playing_id ."'
$admin_hidden";
$r1 = $db -> sql_query($q1);
$row = $db -> sql_fetchrow($r1);
$playing_user = $row['username'];
$playing_where = $row['user_session_page'];
$playing_hidden = $row['user_allow_viewonline'];
if((!$playing_hidden) && ($userdata['user_level'] == ADMIN)) $playing_user = '<i>'. $playing_user .'</i>';
$color = '';
if($playing_where == PAGE_ACTIVITY)
{
$playing_user = '<b>'. $playing_user .'</b>';
$color = $theme['fontcolor2'];
}
elseif($playing_where == PAGE_PLAYING_GAMES)
{
$playing_user = '<b>'. $playing_user .'</b>';
$color = $theme['fontcolor3'];
}
if($playing_id != "-1")
{
$username_link = "<a href='". $phpbb_root_path ."profile.". $phpEx ."?mode=viewprofile&u=". $playing_id ."&sid=". $userdata['session_id'] ."' class='nav'><font color='". $color ."'>". $playing_user ."</font></a>";
}
$template->assign_block_vars("playing", array(
"USERNAME" => $username_link,
"USER_NUMBER" => " ",
"MAIN_SEPERATOR" => " ")
);
}
}
CleanInaSessions($expired);
/* End Whos In The Games */
if($board_config['use_gamelib'] == 1)
{
$gamelib_link = "<div align=\"center\"><span class=\"copyright\">" . $lang['game_lib_link'] . "</span></div>";
}
if($board_config['use_gamelib'] == 0)
{
$gamelib_link = '';
}
if($board_config['use_point_system'] && $board_config['use_rewards_mod'])
{
$template->assign_vars(array("L_MONEY" => $board_config['points_name']));
}
elseif(($board_config['use_cash_system'] || $board_config['use_allowance_system']) && $board_config['use_rewards_mod'])
{
$template->assign_vars(array("L_MONEY" => $lang['game_cost']));
}
else
{
$template->assign_vars(array("L_MONEY" => $lang['game_number']));
}
/* Start Newest Games */
if($HTTP_GET_VARS['mode'] != "category_play")
{
if($board_config['ina_use_newest'] == 1)
{
$template->assign_block_vars("newest_only", array(
"NEWEST_TITLE" => $lang['newest_title_1'] . $board_config['ina_new_game_count'] . $lang['newest_title_2'],
"U_TROPHY" => append_sid("activity_top_scores.$phpEx"),
"L_TROPHY" => $lang['trophy_page'],
"L_STATS" => $lang['stats'],
"L_COST" => $lang['cost'],
"L_T_HOLDER" => $lang['trophy_holder'],
"L_R_UP" => $lang['runner_up'],
"L_GAMES" => $lang['game_list'],
"L_SCORES" => $lang['game_score'],
"L_INFO" => $lang['game_info'],
"L_PLAYER" => $lang['game_best_player'])
);
if($userdata['user_level'] == ADMIN)
{
$where_clause = "";
}
else
{
$where_clause = "WHERE disabled = '1'";
}
$q = "SELECT *
FROM ". iNA_GAMES ."
$where_clause
ORDER BY install_date DESC
LIMIT 0, ". $board_config['ina_new_game_count'];
$r = $db -> sql_query($q);
$game_count = $db -> sql_numrows($r);
$game_rows = $db -> sql_fetchrowset($r);
// Setup Downloads Array ------------------------------------------------------ Dashe |
if($board_config['server_name'] == "phpbb-amod.com")
{
$q1 = "SELECT lid, url
FROM ". $table_prefix ."downloads_downloads";
$r1 = $db -> sql_query($q1);
$download_data = $db -> sql_fetchrowset($r1);
}
// Setup Game Ratings Array --------------------------------------------------- Dashe |
$q2 = "SELECT game_id, COUNT(*) AS total_ratings, SUM(rating) AS game_rated
FROM ". INA_RATINGS ."
GROUP BY game_id";
$r2 = $db -> sql_query($q2);
$rating_data = $db -> sql_fetchrowset($r2);
// Setup Comments Array ------------------------------------------------------- Dashe |
$q3 = "SELECT game, COUNT(game) AS total_comments
FROM ". INA_TROPHY_COMMENTS ."
GROUP BY game";
$r3 = $db -> sql_query($q3);
$comment_data = $db -> sql_fetchrowset($r3);
// Setup Favorites Array ------------------------------------------------------- Dashe |
$q4 = "SELECT games
FROM ". INA_FAVORITES ."
WHERE user = '". $userdata['user_id'] ."'";
$r4 = $db -> sql_query($q4);
$favorites_data = $db -> sql_fetchrowset($r4);
for($i = 0; $i < $game_count; $i++)
{
$game_id = $game_rows[$i]['game_id'];
$game_name = $game_rows[$i]['game_name'];
$game_path = $game_rows[$i]['game_path'];
$game_desc = $game_rows[$i]['game_desc'];
$win_width = $game_rows[$i]['win_width'];
$win_height = $game_rows[$i]['win_height'];
$game_fees = $game_rows[$i]['game_charge'];
$game_played = $game_rows[$i]['played'];
$game_date = $game_rows[$i]['install_date'];
$game_proper = $game_rows[$i]['proper_name'];
// Get Download Link From Array --------------------------------------- Dashe |
unset($download_link);
for($j = 0; $j <= count($download_data); $j++)
{
if(eregi("http://phpbb-amod.com/games/games/". $game_rows[$i]["game_name"] .".zip", $download_data[$j]["url"]))
{
$download_link = "<br><b>·</b> <a href='downloads.php?mode=download&cid=1&lid=". $download_data[$j]['lid'] ."&sid=". $userdata['session_id'] ."' class='nav'><font color='#339933'>Download This</font></a><br>";
break;
}
}
// Get Game Rating From Array ---------------------------------------- Dashe |
unset($total_votes_given, $total_rating_given);
for($j = 0; $j <= count($rating_data); $j++)
{
if($game_rows[$i]["game_id"] == $rating_data[$j]["game_id"])
{
$total_votes_given = $rating_data[$j]["total_ratings"];
$total_rating_given = $rating_data[$j]["game_rated"];
break;
}
}
if($total_votes_given > 0)
{
$game_rating = round($total_rating_given / $total_votes_given);
}
else
{
$game_rating = 0;
$total_votes_given = $lang['no_votes_cast'];
}
// Get Game Comments From Array -------------------------------- Dashe |
unset($total_comments);
for($j = 0; $j <= count($comment_data); $j++)
{
if($game_rows[$i]["game_name"] == $comment_data[$j]["game"])
{
$total_comments = $comment_data[$j]["total_comments"];
break;
}
}
if($total_comments < 1) $total_comments_shown = $lang['no_votes_cast'];
if($total_comments) $total_comments_shown = $total_comments;
// Get Favorites Data From Array ------------------------------- Dashe |
unset($favorites_link);
for($j = 0; $j <= count($favorites_data); $j++)
{
if(eregi(quotemeta("S". $game_rows[$i]["game_id"] ."E"), $favorites_data[$j]["games"]))
{
$favorites_link = "<a href='activity_favs.". $phpEx ."?mode=del_fav&game=". $game_id ."&sid=". $userdata['session_id'] ."'><img src='./images/r_favorite_game.jpg' border='0' alt='". $lang['favorites_r_mouse_over'] ."'></a>";
break;
}
else
{
$favorites_link = "<a href='activity_favs.". $phpEx ."?mode=add_fav&game=". $game_id ."&sid=". $userdata['session_id'] ."'><img src='./images/favorite_game.jpg' border='0' alt='". $lang['favorites_mouse_over'] ."'></a>";
break;
}
}
$game_rating_image = "<img src='./images/activity_game_ratings/". $game_rating .".gif' border='0' alt='". $game_rating ."'>";
$rating_title = $game_proper ."'s ". $lang['game_rating_title'];
if($total_votes_given == 1) $rating_votes_cast = str_replace("%V%", $total_votes_given, $lang['game_rating_votes_one']);
if($total_votes_given != 1) $rating_votes_cast = str_replace("%V%", $total_votes_given, $lang['game_rating_votes']);
$rating_submit = "<a href='activity_rating.". $phpEx ."?mode=rate&game=". $game_rows[$i]["game_id"] ."&sid=". $userdata['session_id'] ."' claa='mainmenu'>". $lang['game_rating_submit'] ."</a>";
if($game_rows[$i]['reverse_list'])
{
$list_type = 'ASC';
}
else
{
$list_type = 'DESC';
}
$q1 = "SELECT t.*, u.user_id, u.username
FROM ". INA_TROPHY ." t, ". USERS_TABLE ." u
WHERE t.game_name = '". $game_name ."'
AND t.player = u.user_id";
$r1 = $db -> sql_query($q1);
$row1 = $db -> sql_fetchrow($r1);
$top_player1 = $row1['player'];
$top_player11 = $row1['player'];
$t_player_id = $row1['user_id'];
$top_score1 = $row1['score'];
$top_date = $row1['date'];
$top_date = create_date($board_config['default_dateformat'], $top_date, $board_config['board_timezone']);
$top_score = FormatScores($top_score1);
$top_player1 = $row1['username'];
if($top_player1 == "Anonymous") $top_player = "Anonymous";
if(($top_player1 <> "Anonymous") && (strlen($top_player1) > 1)) $top_player = "<a href='". append_sid("profile.$phpEx?mode=viewprofile&u=$t_player_id") ."' class='nav'>$top_player1</a>";
$q2 = "SELECT *
FROM ". iNA_SCORES ."
WHERE player <> '". $top_player1 ."'
AND game_name = '". $game_name ."'
ORDER BY score $list_type, date DESC";
if(!$r2 = $db -> sql_query($q2))
{
message_die(GENERAL_ERROR, $lang['no_score_data'], "", __LINE__, __FILE__, $q2);
}
$score_info_a = $db -> sql_fetchrow($r2);
$best_score_a = $score_info_a['player'];
$best_score1 = $score_info_a['score'];
$best_player1 = $score_info_a['player'];
$q3 = "SELECT user_id
FROM ". USERS_TABLE ."
WHERE username = '" . $best_score_a . "'";
if(!$r3 = $db -> sql_query($q3))
{
message_die(GENERAL_ERROR, $lang['no_score_data'], "", __LINE__, __FILE__, $q3);
}
$score_info = $db -> sql_fetchrow($r3);
$b_player_id = $score_info['user_id'];
$best_score = FormatScores($best_score1);
if($best_player1 == "Anonymous") $best_player = "Anonymous";
if(($best_player1 <> "Anonymous") && (strlen($best_player1) > 1)) $best_player = "<a href='". append_sid("profile.$phpEx?mode=viewprofile&u=$b_player_id") ."' class='nav'>$best_player1</a>";
if($game_rows[$i]['game_show_score'] != '1')
{
$highscore_link = '';
$best_score = '';
$best_player = '';
}
else
{
$highscore_link = "<a href='" . append_sid("activity_highscores.$phpEx?mode=highscore&game_name=$game_name") . "' class='nav'> " . $lang['game_highscores'] . "</a>";
$best_score = $best_score;
}
$row_color = ( !($i % 2) ) ? $theme['td_color1'] : $theme['td_color2'];
$row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2'];
if(strlen($best_player) < 1 || $best_score < "1")
{
$best_player = $lang['no_one_yet'];
}
if(($game_fees) && ($board_config['use_point_system']) && ($board_config['use_rewards_mod']))
{
$cost = $game_fees ." ". $board_config['points_name'];
}
elseif(($board_config['use_cash_system'] || $board_config['use_allowance_system']) && $board_config['use_rewards_mod'])
{
$cash_fix = "'". $board_config['default_cash'] ."'";
$cost = $game_fees ." ". $board_config[$cash_fix];
}
else
{
$cost = $lang['game_free'];
}
$game_link = CheckGameImages($game_name);
$button_link = $board_config['ina_button_option'];
if($button_link == "1")
{
$image_link = "<a class='nav' href=\"javascript:Gk_PopTart('activity.$phpEx?mode=game&id=$game_id&sid=". $userdata['session_id'] ."', 'New_Window', '$win_width', '$win_height', 'no')\" onclick=\"blur()\">";
}
else
{
$image_link = "<a href='". append_sid("activity.$phpEx?mode=game&id=$game_id&parent=true") ."' class='nav'>";
}
$challenge = $board_config['ina_challenge'];
if(($challenge == "1") && ($t_player_id <> "-1")) $challenge_link = "<a href='". append_sid("activity.$phpEx?mode=challenge&user=". $t_player_id ."&game=". $game_id) ."' class='nav'>". $lang['challenge_link_key'] ."</a>";
if($challenge <> "1" || $t_player_id == "-1") $challenge_link = $lang['challenge_link_key'];
$q3 = "SELECT COUNT(*) AS total_comments
FROM ". $table_prefix ."ina_trophy_comments
WHERE game = '". $game_name ."'";
$r3 = $db -> sql_query($q3);
$row = $db -> sql_fetchrow($r3);
$total_comments = $row['total_comments'];
if(!$total_comments) $total_comments_shown = $lang['no_votes_cast'];
if($total_comments) $total_comments_shown = $total_comments;
if($userdata['user_level'] == ADMIN) $admin_edit = "<br>» <a href='admin/admin_activity.$phpEx?mode=edit&id=". $game_id ."&sid=". $userdata['session_id'] ."' class='nav'>". $lang['admin_edit_link'] ."</a>";
if($userdata['user_level'] != ADMIN) $admin_edit = "";
$games_cost_line = "<br>» ". $lang['cost'] .": "http://www.rappersonline - voor al je online rapmovies + downloads !