The PHP configuration on your server doesn't support the database type that you chose
Ok, Fella's
How to overcome this during installing the latest version?
xampp
Widows 10 - 64 bit
Config.
<?php
/**
* @package (c) 2008 - 2020 Gnu Arcade Script
* @version $Id: config.php Version.1.0
* @license http://www.fsf.org/ GNU lesser General Public Licence
*/
if (!defined('IN_ARCADE')) {die('Please use the front door');}
$dbhost = 'localhost'; // Database host - usually localhost
$dbuser = 'root'; // Database User Name
$dbpass = ''; // Database Password
$dbname = 'demo'; // Database Name
$dbpre = 0;
// Change the table prefix ONLY if you are using one database for everything and there's a conflict with the prefix.
$table_prefix = 'gnu_';
// DO NOT Change the table ENGINE As it's ONLY here for future changes to the Db.
$engine = 'MyISAM';
include "config_lang.php";
include "pdo_class_lib.php";
?>
/**
* @package (c) 2008 - 2020 Gnu Arcade Script
* @version $Id: config.php Version.1.0
* @license http://www.fsf.org/ GNU lesser General Public Licence
*/
if (!defined('IN_ARCADE')) {die('Please use the front door');}
$dbhost = 'localhost'; // Database host - usually localhost
$dbuser = 'root'; // Database User Name
$dbpass = ''; // Database Password
$dbname = 'demo'; // Database Name
$dbpre = 0;
// Change the table prefix ONLY if you are using one database for everything and there's a conflict with the prefix.
$table_prefix = 'gnu_';
// DO NOT Change the table ENGINE As it's ONLY here for future changes to the Db.
$engine = 'MyISAM';
include "config_lang.php";
include "pdo_class_lib.php";
?>
pdo_class_lib.php
<?php
/**
* @package 2008 - 2020 Gnu Arcade Script
* @version $Id: db_class_lib.php Version.1.0
* @license http://www.fsf.org/ GNU lesser General Public Licence
*/
if (!defined('IN_ARCADE')) {die('Please use the front door');}
$db_options = array(
PDO::ATTR_EMULATE_PREPARES => false, // important! use actual prepared statements (default: emulate prepared statements)
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, // throw exceptions on errors (default: stay silent)
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC // fetch associative arrays (default: mixed arrays)
);
$database = new PDO('mysql:host='.$dbhost.';dbname='.$dbname.';charset=utf8', ''.$dbuser.'', ''.$dbpass.'', $db_options); // important! specify the character encoding in the DSN string, don't use SET NAMES
?>
/**
* @package 2008 - 2020 Gnu Arcade Script
* @version $Id: db_class_lib.php Version.1.0
* @license http://www.fsf.org/ GNU lesser General Public Licence
*/
if (!defined('IN_ARCADE')) {die('Please use the front door');}
$db_options = array(
PDO::ATTR_EMULATE_PREPARES => false, // important! use actual prepared statements (default: emulate prepared statements)
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION, // throw exceptions on errors (default: stay silent)
PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC // fetch associative arrays (default: mixed arrays)
);
$database = new PDO('mysql:host='.$dbhost.';dbname='.$dbname.';charset=utf8', ''.$dbuser.'', ''.$dbpass.'', $db_options); // important! specify the character encoding in the DSN string, don't use SET NAMES
?>
Typical Request.
<?php
/**
* @package (c) 2008 - 2015 Gnu Arcade Script
* @version $Id: acp_ads.php Version.1.0
* @license http://www.fsf.org/ GNU lesser General Public Licence
*/
include "includes/db-global.php";
include "includes/config.php";
if (!defined('IN_ARCADE')) {die('Please use the front door');}
if(isset($_POST['submit'])){
$ads_1 = gnuEsc($_POST['ads_1']);
$ads_2 = gnuEsc($_POST['ads_2']);
$ads_3 = gnuEsc($_POST['ads_3']);
$ads_4 = gnuEsc($_POST['ads_4']);
$ads_5 = gnuEsc($_POST['ads_5']);
$header_adv = gnuEsc($_POST['header_adv']);
$footer_adv = gnuEsc($_POST['footer_adv']);
$games_top_adv = gnuEsc($_POST['games_top_adv']);
$games_bot_adv = gnuEsc($_POST['games_bot_adv']);
$stmt = $database->prepare("UPDATE " . CONFIG_TABLE . " SET ads_1=?, ads_2=?, ads_3=?, ads_4=?, ads_5=?, header_adv=?, footer_adv=?, games_top_adv=?, games_bot_adv=?");
$stmt->execute(array($ads_1, $ads_2, $ads_3, $ads_4, $ads_5, $header_adv, $footer_adv, $games_top_adv, $games_bot_adv));
echo ''.ADM_THL.''.$lang['general_message'].''.ADM_THC.'<div class="msg">'.$lang['ads_updated'].''.GO_BACK.'</div>'.ADM_THB.'';
return;
}
$ads_1 = htmlEsc(stripslashes($ads_1));
$ads_2 = htmlEsc(stripslashes($ads_2));
$ads_3 = htmlEsc(stripslashes($ads_3));
$ads_4 = htmlEsc(stripslashes($ads_4));
$ads_5 = htmlEsc(stripslashes($ads_5));
$header_adv = htmlEsc(stripslashes($header_adv));
$footer_adv = htmlEsc(stripslashes($footer_adv));
$games_top_adv = htmlEsc(stripslashes($games_top_adv));
$games_bot_adv = htmlEsc(stripslashes($games_bot_adv));
global $db, $ads_01, $ads_02, $ads_03, $ads_04, $ads_05, $ads_06, $ads_07, $ads_08, $ads_09, $ads_10, $header_adv0, $header_adv1, $footer_adv0, $footer_adv1, $games_top_adv0, $games_top_adv1, $games_bot_adv0, $games_bot_adv1;
if($ads_1 == "0") {$ads_02 = 'selected="selected"';};
if($ads_1 == "1") {$ads_01 = 'selected="selected"';};
if($ads_2 == "0") {$ads_04 = 'selected="selected"';};
if($ads_2 == "1") {$ads_03 = 'selected="selected"';};
if($ads_3 == "0") {$ads_06 = 'selected="selected"';};
if($ads_3 == "1") {$ads_05 = 'selected="selected"';};
if($ads_4 == "0") {$ads_08 = 'selected="selected"';};
if($ads_4 == "1") {$ads_07 = 'selected="selected"';};
if($ads_5 == "0") {$ads_10 = 'selected="selected"';};
if($ads_5 == "1") {$ads_9 = 'selected="selected"';};
if($header_adv == "0") {$header_adv0 = 'selected="selected"';};
if($header_adv == "1") {$header_adv1 = 'selected="selected"';};
if($footer_adv == "0") {$footer_adv0 = 'selected="selected"';};
if($footer_adv == "1") {$footer_adv1 = 'selected="selected"';};
if($games_top_adv == "0") {$games_top_adv0 = 'selected="selected"';};
if($games_top_adv == "1") {$games_top_adv1 = 'selected="selected"';};
if($games_bot_adv == "0") {$games_bot_adv0 = 'selected="selected"';};
if($games_bot_adv == "1") {$games_bot_adv1 = 'selected="selected"';};
echo ''.ADM_THL.''.$lang['manage_ads'].''.ADM_THC.'
<form action="'.S_MANAGE_ADS.'" method="post" onsubmit="doCheck();"> <!--THIS IS IMPORTANT-->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="sub-header left boldp">'.$lang['ads_a'].' » '.$lang['activated'].'
<input type="hidden" name="ads_1" size="1" value="'.$ads_1.'" />
<select name="ads_1">
<option value="1" '.$ads_01.'>'.$lang['yes'].'</option>
<option value="0" '.$ads_02.'>'.$lang['no'].'</option>
</select> '.$lang['latest_games'].'
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['ads_b'].' » '.$lang['activated'].'
<input type="hidden" name="ads_2" size="1" value="'.$ads_2.'" />
<select name="ads_2">
<option value="1" '.$ads_03.'>'.$lang['yes'].'</option>
<option value="0" '.$ads_04.'>'.$lang['no'].'</option>
</select> '.$lang['mostplayed'].'
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['ads_c'].' » '.$lang['activated'].'
<input type="hidden" name="ads_3" size="1" value="'.$ads_3.'" />
<select name="ads_3">
<option value="1" '.$ads_05.'>'.$lang['yes'].'</option>
<option value="0" '.$ads_06.'>'.$lang['no'].'</option>
</select> '.$lang['side_block_1'].'
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['ads_d'].' » '.$lang['activated'].'
<input type="hidden" name="ads_4" size="1" value="'.$ads_4.'" />
<select name="ads_4">
<option value="1" '.$ads_07.'>'.$lang['yes'].'</option>
<option value="0" '.$ads_08.'>'.$lang['no'].'</option>
</select> '.$lang['side_block_2'].'
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['ads_e'].' » '.$lang['activated'].'
<input type="hidden" name="ads_5" size="1" value="'.$ads_5.'" />
<select name="ads_5">
<option value="1" '.$ads_09.'>'.$lang['yes'].'</option>
<option value="0" '.$ads_10.'>'.$lang['no'].'</option>
</select> '.$lang['side_block_3'].'
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['head_space'].' » '.$lang['activated'].'
<input type="hidden" name="header_adv" size="1" value="'.$header_adv.'" />
<select name="header_adv">
<option value="1" '.$header_adv1.'>'.$lang['yes'].'</option>
<option value="0" '.$header_adv0.'>'.$lang['no'].'</option>
</select>
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['foot_space'].' » '.$lang['activated'].'
<input type="hidden" name="footer_adv" size="1" value="'.$footer_adv.'" />
<select name="footer_adv">
<option value="1" '.$footer_adv1.'>'.$lang['yes'].'</option>
<option value="0" '.$footer_adv0.'>'.$lang['no'].'</option>
</select>
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['above_games'].' » '.$lang['activated'].'
<input type="hidden" name="games_top_adv" size="1" value="'.$games_top_adv.'" />
<select name="games_top_adv">
<option value="1" '.$games_top_adv1.'>'.$lang['yes'].'</option>
<option value="0" '.$games_top_adv0.'>'.$lang['no'].'</option>
</select>
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['below_games'].' » '.$lang['activated'].'
<input type="hidden" name="games_bot_adv" size="1" value="'.$games_bot_adv.'" />
<select name="games_bot_adv">
<option value="1" '.$games_bot_adv1.'>'.$lang['yes'].'</option>
<option value="0" '.$games_bot_adv0.'>'.$lang['no'].'</option>
</select>
</td>
</tr>
<tr>
<td class="sub-header center"><br /><input class="button" type="submit" name="submit" value="'.$lang['submit'].'" /></td>
</tr>
</table>
</form>
'.ADM_THB.'
<br />';
?>
/**
* @package (c) 2008 - 2015 Gnu Arcade Script
* @version $Id: acp_ads.php Version.1.0
* @license http://www.fsf.org/ GNU lesser General Public Licence
*/
include "includes/db-global.php";
include "includes/config.php";
if (!defined('IN_ARCADE')) {die('Please use the front door');}
if(isset($_POST['submit'])){
$ads_1 = gnuEsc($_POST['ads_1']);
$ads_2 = gnuEsc($_POST['ads_2']);
$ads_3 = gnuEsc($_POST['ads_3']);
$ads_4 = gnuEsc($_POST['ads_4']);
$ads_5 = gnuEsc($_POST['ads_5']);
$header_adv = gnuEsc($_POST['header_adv']);
$footer_adv = gnuEsc($_POST['footer_adv']);
$games_top_adv = gnuEsc($_POST['games_top_adv']);
$games_bot_adv = gnuEsc($_POST['games_bot_adv']);
$stmt = $database->prepare("UPDATE " . CONFIG_TABLE . " SET ads_1=?, ads_2=?, ads_3=?, ads_4=?, ads_5=?, header_adv=?, footer_adv=?, games_top_adv=?, games_bot_adv=?");
$stmt->execute(array($ads_1, $ads_2, $ads_3, $ads_4, $ads_5, $header_adv, $footer_adv, $games_top_adv, $games_bot_adv));
echo ''.ADM_THL.''.$lang['general_message'].''.ADM_THC.'<div class="msg">'.$lang['ads_updated'].''.GO_BACK.'</div>'.ADM_THB.'';
return;
}
$ads_1 = htmlEsc(stripslashes($ads_1));
$ads_2 = htmlEsc(stripslashes($ads_2));
$ads_3 = htmlEsc(stripslashes($ads_3));
$ads_4 = htmlEsc(stripslashes($ads_4));
$ads_5 = htmlEsc(stripslashes($ads_5));
$header_adv = htmlEsc(stripslashes($header_adv));
$footer_adv = htmlEsc(stripslashes($footer_adv));
$games_top_adv = htmlEsc(stripslashes($games_top_adv));
$games_bot_adv = htmlEsc(stripslashes($games_bot_adv));
global $db, $ads_01, $ads_02, $ads_03, $ads_04, $ads_05, $ads_06, $ads_07, $ads_08, $ads_09, $ads_10, $header_adv0, $header_adv1, $footer_adv0, $footer_adv1, $games_top_adv0, $games_top_adv1, $games_bot_adv0, $games_bot_adv1;
if($ads_1 == "0") {$ads_02 = 'selected="selected"';};
if($ads_1 == "1") {$ads_01 = 'selected="selected"';};
if($ads_2 == "0") {$ads_04 = 'selected="selected"';};
if($ads_2 == "1") {$ads_03 = 'selected="selected"';};
if($ads_3 == "0") {$ads_06 = 'selected="selected"';};
if($ads_3 == "1") {$ads_05 = 'selected="selected"';};
if($ads_4 == "0") {$ads_08 = 'selected="selected"';};
if($ads_4 == "1") {$ads_07 = 'selected="selected"';};
if($ads_5 == "0") {$ads_10 = 'selected="selected"';};
if($ads_5 == "1") {$ads_9 = 'selected="selected"';};
if($header_adv == "0") {$header_adv0 = 'selected="selected"';};
if($header_adv == "1") {$header_adv1 = 'selected="selected"';};
if($footer_adv == "0") {$footer_adv0 = 'selected="selected"';};
if($footer_adv == "1") {$footer_adv1 = 'selected="selected"';};
if($games_top_adv == "0") {$games_top_adv0 = 'selected="selected"';};
if($games_top_adv == "1") {$games_top_adv1 = 'selected="selected"';};
if($games_bot_adv == "0") {$games_bot_adv0 = 'selected="selected"';};
if($games_bot_adv == "1") {$games_bot_adv1 = 'selected="selected"';};
echo ''.ADM_THL.''.$lang['manage_ads'].''.ADM_THC.'
<form action="'.S_MANAGE_ADS.'" method="post" onsubmit="doCheck();"> <!--THIS IS IMPORTANT-->
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="sub-header left boldp">'.$lang['ads_a'].' » '.$lang['activated'].'
<input type="hidden" name="ads_1" size="1" value="'.$ads_1.'" />
<select name="ads_1">
<option value="1" '.$ads_01.'>'.$lang['yes'].'</option>
<option value="0" '.$ads_02.'>'.$lang['no'].'</option>
</select> '.$lang['latest_games'].'
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['ads_b'].' » '.$lang['activated'].'
<input type="hidden" name="ads_2" size="1" value="'.$ads_2.'" />
<select name="ads_2">
<option value="1" '.$ads_03.'>'.$lang['yes'].'</option>
<option value="0" '.$ads_04.'>'.$lang['no'].'</option>
</select> '.$lang['mostplayed'].'
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['ads_c'].' » '.$lang['activated'].'
<input type="hidden" name="ads_3" size="1" value="'.$ads_3.'" />
<select name="ads_3">
<option value="1" '.$ads_05.'>'.$lang['yes'].'</option>
<option value="0" '.$ads_06.'>'.$lang['no'].'</option>
</select> '.$lang['side_block_1'].'
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['ads_d'].' » '.$lang['activated'].'
<input type="hidden" name="ads_4" size="1" value="'.$ads_4.'" />
<select name="ads_4">
<option value="1" '.$ads_07.'>'.$lang['yes'].'</option>
<option value="0" '.$ads_08.'>'.$lang['no'].'</option>
</select> '.$lang['side_block_2'].'
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['ads_e'].' » '.$lang['activated'].'
<input type="hidden" name="ads_5" size="1" value="'.$ads_5.'" />
<select name="ads_5">
<option value="1" '.$ads_09.'>'.$lang['yes'].'</option>
<option value="0" '.$ads_10.'>'.$lang['no'].'</option>
</select> '.$lang['side_block_3'].'
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['head_space'].' » '.$lang['activated'].'
<input type="hidden" name="header_adv" size="1" value="'.$header_adv.'" />
<select name="header_adv">
<option value="1" '.$header_adv1.'>'.$lang['yes'].'</option>
<option value="0" '.$header_adv0.'>'.$lang['no'].'</option>
</select>
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['foot_space'].' » '.$lang['activated'].'
<input type="hidden" name="footer_adv" size="1" value="'.$footer_adv.'" />
<select name="footer_adv">
<option value="1" '.$footer_adv1.'>'.$lang['yes'].'</option>
<option value="0" '.$footer_adv0.'>'.$lang['no'].'</option>
</select>
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['above_games'].' » '.$lang['activated'].'
<input type="hidden" name="games_top_adv" size="1" value="'.$games_top_adv.'" />
<select name="games_top_adv">
<option value="1" '.$games_top_adv1.'>'.$lang['yes'].'</option>
<option value="0" '.$games_top_adv0.'>'.$lang['no'].'</option>
</select>
</td>
</tr>
<tr>
<td class="sub-header left boldp">'.$lang['below_games'].' » '.$lang['activated'].'
<input type="hidden" name="games_bot_adv" size="1" value="'.$games_bot_adv.'" />
<select name="games_bot_adv">
<option value="1" '.$games_bot_adv1.'>'.$lang['yes'].'</option>
<option value="0" '.$games_bot_adv0.'>'.$lang['no'].'</option>
</select>
</td>
</tr>
<tr>
<td class="sub-header center"><br /><input class="button" type="submit" name="submit" value="'.$lang['submit'].'" /></td>
</tr>
</table>
</form>
'.ADM_THB.'
<br />';
?>