• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Problem with the new Modern AAC

reniz

New Member
Joined
Dec 9, 2010
Messages
260
Reaction score
0
Hi guys, i got a problem with installing modern AAC.

When i am trying to enter the install page iget this error :
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\config.php:298) in C:\xampp\htdocs\install\index.php on line 4

Plz help me REP++
 
Hurrrrrrrrr how does one into reading durrrr

Open the files stated.
Copy their content
Post them here in
PHP:
 or [CODE] tags.
 
hmm srry i dont know how to do php or code tag :(

- - - Updated - - -

oh here i found here is the install/index.php

PHP:
<?php 
require("../config.php");
if(empty($config['server_name']) or $config['server_name'] != "%SERVER_NAME%") {
	header("Location: ../");
	exit();
}
if(!file_exists('iq.php')) exit('Wrong way of cheating.');
require('iq.php');
function is_really_writable($file)
{	
	if (DIRECTORY_SEPARATOR == '/' AND @ini_get("safe_mode") == FALSE)
	{
		return is_writable($file);
	}
	if (is_dir($file))
	{
		$file = rtrim($file, '/').'/'.md5(rand(1,100));
		if (($fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE)
		{
			return FALSE;
		}
		fclose($fp);
		@chmod($file, DIR_WRITE_MODE);
		@unlink($file);
		return TRUE;
	}
	elseif (($fp = fopen($file, FOPEN_WRITE_CREATE)) === FALSE)
	{
		return FALSE;
	}
	fclose($fp);
	return TRUE;
}	
	$name = @$_POST['server_name'];
	$hostname = @$_POST['hostname'];
	$login = @$_POST['login'];
	$password = @$_POST['password'];
	$dbtable = @$_POST['table'];
	$license = @$_POST['license'] ;
	$error = "";
	$realIP = ($config['servers'][0]['address'] == '127.0.0.1' || $config['servers'][0]['address'] == 'localhost')?'':gethostbyname($config['servers'][0]['address']);
	if(!$_POST) {
		$vapus = json_decode(file_get_contents("http://**********/api.getServersByIp?ip={$realIP}&port={$config['servers'][0]['port']}"), true);
		$vapusID = 0;		
		if(isset($vapus[0]['id']))
			$vapusID = $vapus[0]['id'];
	}
	if($_POST) {

		if(empty($hostname) or empty($name) or empty($login) or empty($dbtable))
			$error .= "<li>All fields are required.</li>";
			
		if(strtolower($_POST['answer']) != strtolower(base64_decode($iq[$_POST['question']]['answer'])))
			$error .= "<li>The IQ answer is wrong. I'm sorry but probably you aren't smart enough for this system.</li>";
			
		if($license != 1)
			$error .= "<li>You must read and accept license</li>";
			
		if(@!mysql_connect($hostname, $login, $password))
			$error .= "<li>Could not connect to database.</li>";
			
		if(@!mysql_select_db($dbtable))
			$error .= "<li>Could not find your database.</li>";
					
		if(empty($error)) {
			$content = @file_get_contents('../config.php') or die("Read access denied to config.php, please chmod 666"); // This is very very critical as nothing else will work then, therefore it's a 'die' 
			$content = str_replace("%SERVER_NAME%", $name, $content);
			$content = str_replace("%DB_HOST%", $hostname, $content);
			$content = str_replace("%DB_LOGIN%", $login, $content);
			$content = str_replace("%DB_PASS%", $password, $content);
			$content = str_replace("%DB_NAME%", $dbtable, $content);
			$content = str_replace("%VAPUS_ID%", $_POST['vapusid'], $content);
			$handle = @file_put_contents('../config.php', $content) or die("Write access denied to config.php, please chmod 666");
			$db = file_get_contents("dbSCHEMA.txt");
			$queries = explode ( ";", $db ); 
			$i = 0;
			foreach ($queries as $query) 
			{ 
				$i++;
			   	@mysql_query ($query); 
			} 
			echo "Changed config.php <br/>";
			echo $i." queries executed.<br />";
			exit("<center>Modern AAC has been installed! You can always change any value in config.php in the main directory, for additional security you can remove the whole install folder. Thank you for choosing this system. You can now view your website <a href='../'>here</a>.</center>");
		}
			
		
	}
	else {
		$_POST['hostname'] = "127.0.0.1";
		$_POST['login'] = "root";
		$_POST['table'] = "name of database";
		$_POST['server_name'] = "name of server";	
	}
?>
<html>
<head>
<title>Instaling Modern AAC - Powered by IDE Engine</title>
<link REL="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="wrapper">
<div id="header"></div>
<div id="content">            		
	<div id="left_stroke"></div>
	<div id="right_stroke"></div>
<center>
<div><?php echo $error;?></div>
<form action='index.php' method='post'>
<fieldset>
<legend>Server info</legend>
<b>Server name</b><br/>
<input type='text' value="<?php echo $_POST['server_name']; ?>" name='server_name'/><br/>
</fieldset>
<fieldset>
<legend>Database info</legend>
<b>Hostname</b><br/>
<input type='text' value='<?php echo $_POST['hostname'];?>'name='hostname'/><br/>
<b>Login</b><br/>
<input type='text' value='<?php echo $_POST['login'];?>'name='login'/><br/>
<b>Password</b><br/>
<input type='password' value='<?php echo @$password;?>'name='password'/><br/>
<b>Database</b><br/>
<input type='text' value='<?php echo $_POST['table'];?>'name='table'/><br/>
</fieldset>
<fieldset style='font-size: 12px;'>
<legend>Requirement Test</legend>
Hello! I'm really sorry that I have to make you read this, but it's really important. As well all know, OT community has changed a lot since few years, to the worse of course. I decided to put this small IQ test in here, to allow only people above the critical minimum of any 'human' knowledge. It is because OT community is being from day to day taken over by complete idiots, and I see more and more stupid topics at forums with questions that have answers in them or they are complete stupid.
I'm not telling everyone is like that, but unfortunatelly loads of people. I know, this IQ test is easy to be cheated, but if you are able to cheat it, you must be smart enough to just answer the simple as fuck question and have fun with Modern AAC. Thank you, and again sorry but I had to do this. Signed, Paxton. <br/> You gonna be now asked random question.<br/><br/>
<?php 
	$jebany_numerek = array_rand($iq);
	echo "<b>".base64_decode($iq[$jebany_numerek]['question'])."</b><br/>";
	echo "<input type='text' name='answer'/>";
	echo "<input type='hidden' name='question' value='".$jebany_numerek."'/>";
?>
</fieldset>
	<br/><div class="field"><?php echo nl2br(file_get_contents("license.txt"));?>
	<br/><br/><input type='checkbox' name='license' value='1'/>I accept to the following license.<br/><br/>
	</div><br/>
<input type='submit' value='Install'/><br/>
<b>VAPus ID detection</b>
<div class="field">ID For <?php echo $config['servers'][0]['address'].':'.$config['servers'][0]['port'] ?> gave <?php echo ($vapusID)?'ID:'.$vapusID:'no result,<br /> if this is a public server, please sign it up on the <a href="http://**********">VAPus Otlist</a>.<br /> ModernAAC will still function, but some features might be disabled.'; ?></div>
<input type="hidden" name="vapusid" value="<?php echo $vapusID; ?>" />
</form>
</center>

</div>
</div>
<div id="footer"></div></div>
</body>
</html>

- - - Updated - - -

Bump!
 
Last edited:
hmm srry i dont know how to do php or code tag :(

- - - Updated - - -

oh here i found here is the install/index.php

PHP:
<?php 
require("../config.php");
if(empty($config['server_name']) or $config['server_name'] != "%SERVER_NAME%") {
	header("Location: ../");
	exit();
}
if(!file_exists('iq.php')) exit('Wrong way of cheating.');
require('iq.php');
function is_really_writable($file)
{	
	if (DIRECTORY_SEPARATOR == '/' AND @ini_get("safe_mode") == FALSE)
	{
		return is_writable($file);
	}
	if (is_dir($file))
	{
		$file = rtrim($file, '/').'/'.md5(rand(1,100));
		if (($fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE)
		{
			return FALSE;
		}
		fclose($fp);
		@chmod($file, DIR_WRITE_MODE);
		@unlink($file);
		return TRUE;
	}
	elseif (($fp = fopen($file, FOPEN_WRITE_CREATE)) === FALSE)
	{
		return FALSE;
	}
	fclose($fp);
	return TRUE;
}	
	$name = @$_POST['server_name'];
	$hostname = @$_POST['hostname'];
	$login = @$_POST['login'];
	$password = @$_POST['password'];
	$dbtable = @$_POST['table'];
	$license = @$_POST['license'] ;
	$error = "";
	$realIP = ($config['servers'][0]['address'] == '127.0.0.1' || $config['servers'][0]['address'] == 'localhost')?'':gethostbyname($config['servers'][0]['address']);
	if(!$_POST) {
		$vapus = json_decode(file_get_contents("http://**********/api.getServersByIp?ip={$realIP}&port={$config['servers'][0]['port']}"), true);
		$vapusID = 0;		
		if(isset($vapus[0]['id']))
			$vapusID = $vapus[0]['id'];
	}
	if($_POST) {

		if(empty($hostname) or empty($name) or empty($login) or empty($dbtable))
			$error .= "<li>All fields are required.</li>";
			
		if(strtolower($_POST['answer']) != strtolower(base64_decode($iq[$_POST['question']]['answer'])))
			$error .= "<li>The IQ answer is wrong. I'm sorry but probably you aren't smart enough for this system.</li>";
			
		if($license != 1)
			$error .= "<li>You must read and accept license</li>";
			
		if(@!mysql_connect($hostname, $login, $password))
			$error .= "<li>Could not connect to database.</li>";
			
		if(@!mysql_select_db($dbtable))
			$error .= "<li>Could not find your database.</li>";
					
		if(empty($error)) {
			$content = @file_get_contents('../config.php') or die("Read access denied to config.php, please chmod 666"); // This is very very critical as nothing else will work then, therefore it's a 'die' 
			$content = str_replace("%SERVER_NAME%", $name, $content);
			$content = str_replace("%DB_HOST%", $hostname, $content);
			$content = str_replace("%DB_LOGIN%", $login, $content);
			$content = str_replace("%DB_PASS%", $password, $content);
			$content = str_replace("%DB_NAME%", $dbtable, $content);
			$content = str_replace("%VAPUS_ID%", $_POST['vapusid'], $content);
			$handle = @file_put_contents('../config.php', $content) or die("Write access denied to config.php, please chmod 666");
			$db = file_get_contents("dbSCHEMA.txt");
			$queries = explode ( ";", $db ); 
			$i = 0;
			foreach ($queries as $query) 
			{ 
				$i++;
			   	@mysql_query ($query); 
			} 
			echo "Changed config.php <br/>";
			echo $i." queries executed.<br />";
			exit("<center>Modern AAC has been installed! You can always change any value in config.php in the main directory, for additional security you can remove the whole install folder. Thank you for choosing this system. You can now view your website <a href='../'>here</a>.</center>");
		}
			
		
	}
	else {
		$_POST['hostname'] = "127.0.0.1";
		$_POST['login'] = "root";
		$_POST['table'] = "name of database";
		$_POST['server_name'] = "name of server";	
	}
?>
<html>
<head>
<title>Instaling Modern AAC - Powered by IDE Engine</title>
<link REL="stylesheet" href="style.css" type="text/css">
</head>
<body>
<div id="wrapper">
<div id="header"></div>
<div id="content">            		
	<div id="left_stroke"></div>
	<div id="right_stroke"></div>
<center>
<div><?php echo $error;?></div>
<form action='index.php' method='post'>
<fieldset>
<legend>Server info</legend>
<b>Server name</b><br/>
<input type='text' value="<?php echo $_POST['server_name']; ?>" name='server_name'/><br/>
</fieldset>
<fieldset>
<legend>Database info</legend>
<b>Hostname</b><br/>
<input type='text' value='<?php echo $_POST['hostname'];?>'name='hostname'/><br/>
<b>Login</b><br/>
<input type='text' value='<?php echo $_POST['login'];?>'name='login'/><br/>
<b>Password</b><br/>
<input type='password' value='<?php echo @$password;?>'name='password'/><br/>
<b>Database</b><br/>
<input type='text' value='<?php echo $_POST['table'];?>'name='table'/><br/>
</fieldset>
<fieldset style='font-size: 12px;'>
<legend>Requirement Test</legend>
Hello! I'm really sorry that I have to make you read this, but it's really important. As well all know, OT community has changed a lot since few years, to the worse of course. I decided to put this small IQ test in here, to allow only people above the critical minimum of any 'human' knowledge. It is because OT community is being from day to day taken over by complete idiots, and I see more and more stupid topics at forums with questions that have answers in them or they are complete stupid.
I'm not telling everyone is like that, but unfortunatelly loads of people. I know, this IQ test is easy to be cheated, but if you are able to cheat it, you must be smart enough to just answer the simple as fuck question and have fun with Modern AAC. Thank you, and again sorry but I had to do this. Signed, Paxton. <br/> You gonna be now asked random question.<br/><br/>
<?php 
	$jebany_numerek = array_rand($iq);
	echo "<b>".base64_decode($iq[$jebany_numerek]['question'])."</b><br/>";
	echo "<input type='text' name='answer'/>";
	echo "<input type='hidden' name='question' value='".$jebany_numerek."'/>";
?>
</fieldset>
	<br/><div class="field"><?php echo nl2br(file_get_contents("license.txt"));?>
	<br/><br/><input type='checkbox' name='license' value='1'/>I accept to the following license.<br/><br/>
	</div><br/>
<input type='submit' value='Install'/><br/>
<b>VAPus ID detection</b>
<div class="field">ID For <?php echo $config['servers'][0]['address'].':'.$config['servers'][0]['port'] ?> gave <?php echo ($vapusID)?'ID:'.$vapusID:'no result,<br /> if this is a public server, please sign it up on the <a href="http://**********">VAPus Otlist</a>.<br /> ModernAAC will still function, but some features might be disabled.'; ?></div>
<input type="hidden" name="vapusid" value="<?php echo $vapusID; ?>" />
</form>
</center>

</div>
</div>
<div id="footer"></div></div>
</body>
</html>

- - - Updated - - -

Bump!

That wasn't of much help.
I rather meant C:\xampp\htdocs\config.php
;p
 
here it is Korrex
PHP:
<?php
/*These configs are neccessary in order to make Modern AAC work.*/

/*URL of website including http:// and without slash at the end! */
$config['website'] = $config['website'] = 'http://'.$_SERVER['HTTP_HOST'] . '/'.trim(dirname($_SERVER['SCRIPT_NAME']), '/.\\');


/*Database information*/
$config['database']['host'] = "localhost";
$config['database']['login'] = "root";
$config['database']['password'] = "amirosloreborn";
$config['database']['database'] = "reborn";

/*Name of server*/
$config['server_name'] = "RebornOT";

/*End of most important configs*/

/*List of cities, declare by using city ID and name eg. 2=>"Eternia City" etc.*/
$config['cities'] = array(1=>'Main');


/*List of vocation available to choose when creating new character*/
$config['vocations'] = array(1=>"Wizard", 2=>"Magician", 3=>"Ranger", 4=>"Fighter");


/*List of vocation that exists on server*/
$config['server_vocations'] = array(0=>"Begynner", 1=>"Wizard", 2=>"Magician", 3=>"Ranger", 4=>"Fighter", 5=>"Master Wizard", 6=>"Great Magician", 7=>"Super Ranger", 8=>"Street Fighter");

/*List of promotions, the key is vocation without promotion*/
$config['promotions'] = array(1=>"Master Wizard", 2=>"Great Magician", 3=>"Super Ranger", 4=>"Street Fighter");

/*Resitricted names*/
$config['restricted_names'] = array("god", "gamemaster", "admin", "account manager", "owner");

/*Names with any of this value cannot be created*/
$config['invalidNameTags'] = array("god", "gm", "cm", "gamemaster", "hoster", "admin", "owner", "amir", "account", "manager", "account manager");


/*ID and names of worlds*/
$config['worlds'][0] = "FL";

// Enable multiworld by uncommenting this
//$config['worlds'][1] = "Second World";

/* Addresses of each server */
$config['servers'][0] = array('address'=>'fruitloop.hopto.org', 'port'=>7171, 'vapusid'=>'1383');

// Enable multiworld by uncommenting this
//$config['servers'][1] = array('address'=>'127.0.0.1', 'port'=>7173, 'vapusid' => 'XXX');

/*Groups that exists on server*/
$config['groups'] = array(0=>"Player", 1=>"Tutor", 2=>"Senior Tutor", 3=>"Gamemaster", 4=>"Community Manager", 5=>"Moderator", 6=>"Admin");


/*Names of vocations as in database as samples. First key is world id and second vocation id.*/
$config['newchar_vocations'][0][0] = "Begynner";
$config['newchar_vocations'][0][1] = "Wizard";
$config['newchar_vocations'][0][2] = "Magician";
$config['newchar_vocations'][0][3] = "Ranger";
$config['newchar_vocations'][0][4] = "Fighter";
$config['newchar_vocations'][1][0] = "Begynner";
$config['newchar_vocations'][1][1] = "Wizard";
$config['newchar_vocations'][1][2] = "Magician";
$config['newchar_vocations'][1][3] = "Ranger";
$config['newchar_vocations'][1][4] = "Fighter";


/*Don't show chaarcters with group id higher than*/
$config['players_group_id_block'] = 2;


/*Min. level to create guild*/
$config['levelToCreateGuild'] = 50000;


/*Limit of latest deaths*/
$config['latestdeathlimit'] = 20;

/*Limit news per page*/
$config['newsLimit'] = 10;

/*Limit comments per page*/
$config['commentLimit'] = 10;

/*Template that should be used on website*/
$config['layout'] = "default";

/*Title of a website*/
$config['title'] = "FruitLoop - Online EVO Open Tibia Server!";


/*Premdays given when creating new account.*/
$config['premDays'] = 30;


/*Positions to start when creating character*/
$startPos['x'] = 1002;
$startPos['y'] = 903;
$startPos['z'] = 7;


/*Trigger password for scaffolding system.*/
$config['scaffolding_trigger'] = "password";

/*Minimum page access for admin priviliges*/
$config['adminAccess'] = 6;

/*Max threads per page*/
$config['threadsLimit'] = 10;

/*Max posts per page in a thread*/
$config['postsLimit'] = 10;

/*Time between posts*/
$config['timeBetweenPosts'] = 30;

/*Limit of submissions per page in bug tracker*/
$config['bugtrackerPageLimit'] = 10;

/*Limit of houses on listing page*/
$config['housesLimit'] = 10;

/*Level to buy house*/
$config['houseLevel'] = 100000;

/*Lenght of housing auction in seconds*/
$config['houseAuctionTime'] = 604800;

/*Default timezone*/
$config['timezone'] = "Europe/London";

/*Allowed IPs to use command prompt in admin panel*/
$config['allowedToUseCMD'] = array("127.0.0.1", "localhost");

/* Path to your UI theme */
$config['UItheme'] = "smoothness/jquery-ui-1.7.2.custom.css";

/*Destination to guilds logos folder, must be writable.*/
$config['uploads'] = "/public/guild_logos/";

/* Status timeout (recheck if server is online) */
$config['statusTimeout'] = 1 + (5 * 60); // Default to 5min

/* Wrap words longer than */
$config['wrap_words'] = 80;

/*Limit comments per page in videos view*/
$config['videoCommentsLimit'] = 10;

/*Limit of videos to show while searching*/
$config['videoSearchLimit'] = 10;

/*Maximum amount of characters per account*/
$config['maxCharacters'] = 5;

/*Limit of inbox/outbox messages per page*/
$config['messagesLimit'] = 10;

/*Amount of names to be saved when looking for characters*/
$config['characterSearchLimit'] = 10;

/*Switch on Admin Window*/
$config['adminWindow'] = true;

/*Integrate facebook to AAC? (TRUE/FALSE)*/
$config['facebook'] = true;

/*Max amount of saved actions*/
$config['actionsCount'] = 15;

/*Player per page in hishscore */
$config['highscore']['per_page'] = 20;

/*Total players to show in highscores*/
$config['highscore']['total'] = 300;


/* Guild board creation */
$config['guildboardTitle'] = "Guildboard for %NAME%";
$config['guildboardDescription'] = "This is the guildboard for the great %NAME% guild!";

/* VAPus Settings */
$config['VAPusGraphStep'] = 1; // step * update time = time steps on graph, etc 6 with an update time of 10min = one hour



//Enable delay between creating characters
$config['characterDelay'] = true;

//Time between creating characters in seconds
$config['characterDelayTime'] = 240;

//Enable delay between creating accounts
$config['accountDelay'] = true;

//Time between creating accounts in seconds
$config['accountDelayTime'] = 240;

//Account restrictions
$config['restrictedAccounts'] = array('1');

############EVENTS############

# Event fired just after main framework to gain access to all features
$config['onLoad'] = array();

# Event fired after all finished loading no headers should be sent
$config['onReady'] = array();


#############################

/*
######################################################################################################################
 * Do not touch any of the configs below if you are not 100% sure what you are doing!
 * These are config to the engine, usually the default ones works well so no change needed for unexperienced users.
######################################################################################################################
*/
// Tiny hack to figure if we use Windows or not.
if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') @define('USING_WINDOWS', 1);
else @define('USING_WINDOWS', 0);

if(USING_WINDOWS) $config['engine']['PHPversion'] = "5.3.0";
else $config['engine']['PHPversion'] = "5.3.0";
$config['engine']['indexPage'] = "index.php";
$config['engine']['uri_protocol'] = "AUTO";
$config['engine']['charSET'] = "UTF-8";
$config['engine']['enable_hooks'] = FALSE;
$config['engine']['permitted_uri_chars'] = "a-z 0-9~%.:_\-'+";
$config['engine']['enable_query_strings'] = FALSE;
$config['engine']['global_xss_filtering'] = TRUE;
$config['engine']['compress_output'] = FALSE;
$config['engine']['proxy_ip'] = "";
$config['engine']['autoload_libraries'] = array();
$config['engine']['autoload_helper'] = array();
$config['engine']['autoload_plugin'] = array();
$config['engine']['autoload_config'] = array();
$config['engine']['autoload_model'] = array();
$config['engine']['default_controller'] = "home";
$config['engine']['platforms'] = array('windows nt 6.0' => 'Windows Longhorn', 'windows nt 5.2' => 'Windows 2003', 'windows nt 5.0' => 'Windows 2000', 'windows nt 5.1' => 'Windows XP', 'windows nt 4.0' => 'Windows NT 4.0', 'winnt4.0' => 'Windows NT 4.0', 'winnt 4.0' => 'Windows NT', 'winnt' => 'Windows NT', 'windows 98' => 'Windows 98', 'win98' => 'Windows 98', 'windows 95' => 'Windows 95', 'win95' => 'Windows 95', 'windows' => 'Unknown Windows OS', 'os x' => 'Mac OS X', 'ppc mac' => 'Power PC Mac', 'freebsd' => 'FreeBSD', 'ppc' => 'Macintosh', 'linux' => 'Linux', 'debian' => 'Debian', 'sunos' => 'Sun Solaris', 'beos' => 'BeOS', 'apachebench' => 'ApacheBench', 'aix' => 'AIX', 'irix' => 'Irix', 'osf' => 'DEC OSF', 'hp-ux' => 'HP-UX', 'netbsd' => 'NetBSD', 'bsdi' => 'BSDi', 'openbsd' => 'OpenBSD', 'gnu' => 'GNU/Linux', 'unix' => 'Unknown Unix OS' );
$config['engine']['mobiles'] = array('mobileexplorer' => 'Mobile Explorer', 'palmsource' => 'Palm', 'palmscape' => 'Palmscape', 'motorola' => "Motorola", 'nokia' => "Nokia", 'palm' => "Palm", 'iphone' => "Apple iPhone", 'ipod' => "Apple iPod Touch", 'sony' => "Sony Ericsson", 'ericsson' => "Sony Ericsson", 'blackberry' => "BlackBerry", 'cocoon' => "O2 Cocoon", 'blazer' => "Treo", 'lg' => "LG", 'amoi' => "Amoi", 'xda' => "XDA", 'mda' => "MDA", 'vario' => "Vario", 'htc' => "HTC", 'samsung' => "Samsung", 'sharp' => "Sharp", 'sie-' => "Siemens", 'alcatel' => "Alcatel", 'benq' => "BenQ", 'ipaq' => "HP iPaq", 'mot-' => "Motorola", 'playstation portable' => "PlayStation Portable", 'hiptop' => "Danger Hiptop", 'nec-' => "NEC", 'panasonic' => "Panasonic", 'philips' => "Philips", 'sagem' => "Sagem", 'sanyo' => "Sanyo", 'spv' => "SPV", 'zte' => "ZTE", 'sendo' => "Sendo", 'symbian' => "Symbian", 'SymbianOS' => "SymbianOS", 'elaine' => "Palm", 'palm' => "Palm", 'series60' => "Symbian S60", 'windows ce' => "Windows CE", 'obigo' => "Obigo", 'netfront' => "Netfront Browser", 'openwave' => "Openwave Browser", 'mobilexplorer' => "Mobile Explorer", 'operamini' => "Opera Mini", 'opera mini' => "Opera Mini", 'digital paths' => "Digital Paths", 'avantgo' => "AvantGo", 'xiino' => "Xiino", 'novarra' => "Novarra Transcoder", 'vodafone' => "Vodafone", 'docomo' => "NTT DoCoMo", 'o2' => "O2", 'mobile' => "Generic Mobile", 'wireless' => "Generic Mobile", 'j2me' => "Generic Mobile", 'midp' => "Generic Mobile", 'cldc' => "Generic Mobile", 'up.link' => "Generic Mobile", 'up.browser' => "Generic Mobile", 'smartphone' => "Generic Mobile", 'cellphone' => "Generic Mobile" );
$config['engine']['robots'] = array('googlebot' => 'Googlebot', 'msnbot' => 'MSNBot', 'slurp' => 'Inktomi Slurp', 'yahoo' => 'Yahoo', 'askjeeves' => 'AskJeeves', 'fastcrawler' => 'FastCrawler', 'infoseek' => 'InfoSeek Robot 1.0', 'lycos' => 'Lycos' );
$config['engine']['browsers'] = array('Opera' => 'Opera', 'MSIE' => 'Internet Explorer', 'Internet Explorer' => 'Internet Explorer', 'Shiira' => 'Shiira', 'Firefox' => 'Firefox', 'Chimera' => 'Chimera', 'Phoenix' => 'Phoenix', 'Firebird' => 'Firebird', 'Camino' => 'Camino', 'Netscape' => 'Netscape', 'OmniWeb' => 'OmniWeb', 'Safari' => 'Safari', 'Mozilla' => 'Mozilla', 'Konqueror' => 'Konqueror', 'icab' => 'iCab', 'Lynx' => 'Lynx', 'Links' => 'Links', 'hotjava' => 'HotJava', 'amaya' => 'Amaya', 'IBrowse' => 'IBrowse' );
$config['engine']['mimes'] = array('hqx' => 'application/mac-binhex40', 'cpt' => 'application/mac-compactpro', 'csv' => array ('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel' ), 'bin' => 'application/macbinary', 'dms' => 'application/octet-stream', 'lha' => 'application/octet-stream', 'lzh' => 'application/octet-stream', 'exe' => 'application/octet-stream', 'class' => 'application/octet-stream', 'psd' => 'application/x-photoshop', 'so' => 'application/octet-stream', 'sea' => 'application/octet-stream', 'dll' => 'application/octet-stream', 'oda' => 'application/oda', 'pdf' => array ('application/pdf', 'application/x-download' ), 'ai' => 'application/postscript', 'eps' => 'application/postscript', 'ps' => 'application/postscript', 'smi' => 'application/smil', 'smil' => 'application/smil', 'mif' => 'application/vnd.mif', 'xls' => array ('application/excel', 'application/vnd.ms-excel', 'application/msexcel' ), 'ppt' => array ('application/powerpoint', 'application/vnd.ms-powerpoint' ), 'wbxml' => 'application/wbxml', 'wmlc' => 'application/wmlc', 'dcr' => 'application/x-director', 'dir' => 'application/x-director', 'dxr' => 'application/x-director', 'dvi' => 'application/x-dvi', 'gtar' => 'application/x-gtar', 'gz' => 'application/x-gzip', 'php' => 'application/x-httpd-php', 'php4' => 'application/x-httpd-php', 'php3' => 'application/x-httpd-php', 'phtml' => 'application/x-httpd-php', 'phps' => 'application/x-httpd-php-source', 'js' => 'application/x-javascript', 'swf' => 'application/x-shockwave-flash', 'sit' => 'application/x-stuffit', 'tar' => 'application/x-tar', 'tgz' => 'application/x-tar', 'xhtml' => 'application/xhtml+xml', 'xht' => 'application/xhtml+xml', 'zip' => array ('application/x-zip', 'application/zip', 'application/x-zip-compressed' ), 'mid' => 'audio/midi', 'midi' => 'audio/midi', 'mpga' => 'audio/mpeg', 'mp2' => 'audio/mpeg', 'mp3' => array ('audio/mpeg', 'audio/mpg' ), 'aif' => 'audio/x-aiff', 'aiff' => 'audio/x-aiff', 'aifc' => 'audio/x-aiff', 'ram' => 'audio/x-pn-realaudio', 'rm' => 'audio/x-pn-realaudio', 'rpm' => 'audio/x-pn-realaudio-plugin', 'ra' => 'audio/x-realaudio', 'rv' => 'video/vnd.rn-realvideo', 'wav' => 'audio/x-wav', 'bmp' => 'image/bmp', 'gif' => 'image/gif', 'jpeg' => array ('image/jpeg', 'image/pjpeg' ), 'jpg' => array ('image/jpeg', 'image/pjpeg' ), 'jpe' => array ('image/jpeg', 'image/pjpeg' ), 'png' => array ('image/png', 'image/x-png' ), 'tiff' => 'image/tiff', 'tif' => 'image/tiff', 'css' => 'text/css', 'html' => 'text/html', 'htm' => 'text/html', 'shtml' => 'text/html', 'txt' => 'text/plain', 'text' => 'text/plain', 'log' => array ('text/plain', 'text/x-log' ), 'rtx' => 'text/richtext', 'rtf' => 'text/rtf', 'xml' => 'text/xml', 'xsl' => 'text/xml', 'mpeg' => 'video/mpeg', 'mpg' => 'video/mpeg', 'mpe' => 'video/mpeg', 'qt' => 'video/quicktime', 'mov' => 'video/quicktime', 'avi' => 'video/x-msvideo', 'movie' => 'video/x-sgi-movie', 'doc' => 'application/msword', 'docx' => 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'word' => array ('application/msword', 'application/octet-stream' ), 'xl' => 'application/excel', 'eml' => 'message/rfc822' );
$config['engine']['doctypes'] = array('xhtml11' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">', 'xhtml1-strict' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">', 'xhtml1-trans' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">', 'xhtml1-frame' => '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">', 'html5' => '<!DOCTYPE html>', 'html4-strict' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">', 'html4-trans' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">', 'html4-frame' => '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">' );
$config['engine']['url_suffix'] = ".ide";
$config['engine']['sess_cookie_name'] = 'ci_session';
$config['engine']['sess_expiration'] = 7200;
$config['engine']['sess_encrypt_cookie'] = FALSE;
$config['engine']['sess_use_database'] = FALSE;
$config['engine']['sess_table_name'] = 'ci_sessions';
$config['engine']['sess_match_ip'] = FALSE;
$config['engine']['sess_match_useragent'] = TRUE;
$config['engine']['sess_time_to_update'] = 300;
$config['engine']['rewrite_short_tags'] = false;
if(USING_WINDOWS == 1) {
//Load management is not available on Windows.
$config['engine']['loadManagement'] = false;
} else {
//Load management is a maximum ammount of processes website is using. If the website is flooded it will drop connection with users outside this amount.
$config['engine']['loadManagement'] = false;
$config['engine']['maxLoad'] = 60;
}

/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
|       0 = Disables logging, Error logging TURNED OFF
|       1 = Error Messages (including PHP errors)
|       2 = Debug Messages
|       3 = Informational Messages
|       4 = All Messages
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['engine']['log_threshold'] = 0;


#DON'T TOUCH! DECLARING CONSTANS!
@DEFINE('LEVELTOCREATEGUILD', $config['levelToCreateGuild']);
@DEFINE('PREMDAYS', $config['premDays']);
@DEFINE('HOSTNAME', $config['database']['host']);
@DEFINE('USERNAME', $config['database']['login']);
@DEFINE('PASSWORD', $config['database']['password']);
@DEFINE('DATABASE', $config['database']['database']);
@DEFINE('WEBSITE', $config['website']);
?>


and Cronox i dont understand you? :D
 
Replace your index.php with this one.
PHP:
<?php  
require("../config.php"); 
if(empty($config['server_name']) or $config['server_name'] != "%SERVER_NAME%") { 
    header("Location: ".WEBSITE."/"); 
    exit(); 
} 
if(!file_exists('iq.php')) exit('Wrong way of cheating.'); 
require('iq.php'); 
function is_really_writable($file) 
{     
    if (DIRECTORY_SEPARATOR == '/' AND @ini_get("safe_mode") == FALSE) 
    { 
        return is_writable($file); 
    } 
    if (is_dir($file)) 
    { 
        $file = rtrim($file, '/').'/'.md5(rand(1,100)); 
        if (($fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE) 
        { 
            return FALSE; 
        } 
        fclose($fp); 
        @chmod($file, DIR_WRITE_MODE); 
        @unlink($file); 
        return TRUE; 
    } 
    elseif (($fp = fopen($file, FOPEN_WRITE_CREATE)) === FALSE) 
    { 
        return FALSE; 
    } 
    fclose($fp); 
    return TRUE; 
}     
    $name = @$_POST['server_name']; 
    $hostname = @$_POST['hostname']; 
    $login = @$_POST['login']; 
    $password = @$_POST['password']; 
    $dbtable = @$_POST['table']; 
    $license = @$_POST['license'] ; 
    $error = ""; 
    $realIP = ($config['servers'][0]['address'] == '127.0.0.1' || $config['servers'][0]['address'] == 'localhost')?'':gethostbyname($config['servers'][0]['address']); 
    if(!$_POST) { 
        $vapus = json_decode(file_get_contents("http://**********/api.getServersByIp?ip={$realIP}&port={$config['servers'][0]['port']}"), true); 
        $vapusID = 0;         
        if(isset($vapus[0]['id'])) 
            $vapusID = $vapus[0]['id']; 
    } 
    if($_POST) { 

        if(empty($hostname) or empty($name) or empty($login) or empty($dbtable)) 
            $error .= "<li>All fields are required.</li>"; 
             
        if(strtolower($_POST['answer']) != strtolower(base64_decode($iq[$_POST['question']]['answer']))) 
            $error .= "<li>The IQ answer is wrong. I'm sorry but probably you aren't smart enough for this system.</li>"; 
             
        if($license != 1) 
            $error .= "<li>You must read and accept license</li>"; 
             
        if(@!mysql_connect($hostname, $login, $password)) 
            $error .= "<li>Could not connect to database.</li>"; 
             
        if(@!mysql_select_db($dbtable)) 
            $error .= "<li>Could not find your database.</li>"; 
                     
        if(empty($error)) { 
            $content = @file_get_contents('../config.php') or die("Read access denied to config.php, please chmod 666"); // This is very very critical as nothing else will work then, therefore it's a 'die'  
            $content = str_replace("%SERVER_NAME%", $name, $content); 
            $content = str_replace("%DB_HOST%", $hostname, $content); 
            $content = str_replace("%DB_LOGIN%", $login, $content); 
            $content = str_replace("%DB_PASS%", $password, $content); 
            $content = str_replace("%DB_NAME%", $dbtable, $content); 
            $content = str_replace("%VAPUS_ID%", $_POST['vapusid'], $content); 
            $handle = @file_put_contents('../config.php', $content) or die("Write access denied to config.php, please chmod 666"); 
            $db = file_get_contents("dbSCHEMA.txt"); 
            $queries = explode ( ";", $db );  
            $i = 0; 
            foreach ($queries as $query)  
            {  
                $i++; 
                   @mysql_query ($query);  
            }  
            echo "Changed config.php <br/>"; 
            echo $i." queries executed.<br />"; 
            exit("<center>Modern AAC has been installed! You can always change any value in config.php in the main directory, for additional security you can remove the whole install folder. Thank you for choosing this system. You can now view your website <a href='../'>here</a>.</center>"); 
        } 
             
         
    } 
    else { 
        $_POST['hostname'] = "127.0.0.1"; 
        $_POST['login'] = "root"; 
        $_POST['table'] = "name of database"; 
        $_POST['server_name'] = "name of server";     
    } 
?> 
<html> 
<head> 
<title>Instaling Modern AAC - Powered by IDE Engine</title> 
<link REL="stylesheet" href="style.css" type="text/css"> 
</head> 
<body> 
<div id="wrapper"> 
<div id="header"></div> 
<div id="content">                     
    <div id="left_stroke"></div> 
    <div id="right_stroke"></div> 
<center> 
<div><?php echo $error;?></div> 
<form action='index.php' method='post'> 
<fieldset> 
<legend>Server info</legend> 
<b>Server name</b><br/> 
<input type='text' value="<?php echo $_POST['server_name']; ?>" name='server_name'/><br/> 
</fieldset> 
<fieldset> 
<legend>Database info</legend> 
<b>Hostname</b><br/> 
<input type='text' value='<?php echo $_POST['hostname'];?>'name='hostname'/><br/> 
<b>Login</b><br/> 
<input type='text' value='<?php echo $_POST['login'];?>'name='login'/><br/> 
<b>Password</b><br/> 
<input type='password' value='<?php echo @$password;?>'name='password'/><br/> 
<b>Database</b><br/> 
<input type='text' value='<?php echo $_POST['table'];?>'name='table'/><br/> 
</fieldset> 
<fieldset style='font-size: 12px;'> 
<legend>Requirement Test</legend> 
Hello! I'm really sorry that I have to make you read this, but it's really important. As well all know, OT community has changed a lot since few years, to the worse of course. I decided to put this small IQ test in here, to allow only people above the critical minimum of any 'human' knowledge. It is because OT community is being from day to day taken over by complete idiots, and I see more and more stupid topics at forums with questions that have answers in them or they are complete stupid. 
I'm not telling everyone is like that, but unfortunatelly loads of people. I know, this IQ test is easy to be cheated, but if you are able to cheat it, you must be smart enough to just answer the simple as fuck question and have fun with Modern AAC. Thank you, and again sorry but I had to do this. Signed, Paxton. <br/> You gonna be now asked random question.<br/><br/> 
<?php  
    $jebany_numerek = array_rand($iq); 
    echo "<b>".base64_decode($iq[$jebany_numerek]['question'])."</b><br/>"; 
    echo "<input type='text' name='answer'/>"; 
    echo "<input type='hidden' name='question' value='".$jebany_numerek."'/>"; 
?> 
</fieldset> 
    <br/><div class="field"><?php echo nl2br(file_get_contents("license.txt"));?> 
    <br/><br/><input type='checkbox' name='license' value='1'/>I accept to the following license.<br/><br/> 
    </div><br/> 
<input type='submit' value='Install'/><br/> 
<b>VAPus ID detection</b> 
<div class="field">ID For <?php echo $config['servers'][0]['address'].':'.$config['servers'][0]['port'] ?> gave <?php echo ($vapusID)?'ID:'.$vapusID:'no result,<br /> if this is a public server, please sign it up on the <a href="http://**********">VAPus Otlist</a>.<br /> ModernAAC will still function, but some features might be disabled.'; ?></div> 
<input type="hidden" name="vapusid" value="<?php echo $vapusID; ?>" /> 
</form> 
</center> 

</div> 
</div> 
<div id="footer"></div></div> 
</body> 
</html>
Dunno if it'll work though, have you tried googling the problem? :x
 
still dont work and yeah i tried but i didnt found anything :/

- - - Updated - - -

Now i get this error:
Unable to connect to your database server using the provided settings
 
It is 17 months ago since Modern AAC was actively under developement. I doubt this is any "new" version just because some dude changed a few lines and re-released it. :p
(reply only related to OP title).
 
hahahahahaha okay but i still got a that error and i took this version because the shopsystem are installed in this version and i dont know how to install shopsystem on the other ones :p
 
still dont work and yeah i tried but i didnt found anything :/

- - - Updated - - -

Now i get this error:

I'm guessing you installed it faulty. Try installing it again, and telling me how if it works.
Also since modern aac is so shitty because Paxton took a good concept and stopped working on it.
 
ye paxton was good but my problem is that it doesnt work to install modern AAC and i have removed the database several times but still wont work :/
 
still dont work and yeah i tried but i didnt found anything :/

- - - Updated - - -

Now i get this error:

change those lines? -.-
$_POST['hostname'] = "127.0.0.1";
$_POST['login'] = "root";
$_POST['table'] = "name of database";
$_POST['server_name'] = "name of server";
 
haha thx but i still get error msg like this
A Database Error Occurred
Error Number: 1146

Table 'servername.news' doesn't exist

SELECT * FROM (`news`) ORDER BY `id` desc LIMIT 10

and i when i type localhost/install i get the error i had first :/
 
add those in db

CREATE TABLE IF NOT EXISTS `news` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`title` varchar(150) DEFAULT '',
`body` text,
`time` int(11) DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `comments` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`news_id` int(11),
`body` text,
`time` int(11) DEFAULT '0',
`author` int(11) DEFAULT '0',
PRIMARY KEY (`id`),
FOREIGN KEY (`news_id`) REFERENCES `news` (`id`) ON DELETE CASCADE,
FOREIGN KEY (`author`) REFERENCES `players` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
 
And now this error dude :/
A Database Error Occurred
Error Number: 1146

Table 'servername.poll' doesn't exist

SELECT p.id, p.question, GROUP_CONCAT(a.answer SEPARATOR ';') AS answers, GROUP_CONCAT(a.id SEPARATOR ';') AS answers_id FROM poll p JOIN poll_answer a ON p.id = a.poll_id WHERE p.status = 1 AND date_start <= NOW() AND date_end >= NOW()

Plz help me :)
 
And now this error dude :/

Plz help me :)

add this in db

CREATE TABLE IF NOT EXISTS `poll` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`question` varchar(150) ,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`date_start` datetime ,
`date_end` datetime ,
`status` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id`),
KEY `question` (`question`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `poll_answer` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`poll_id` int(11) NOT NULL,
`answer` varchar(150) ,
PRIMARY KEY (`id`),
FOREIGN KEY (`poll_id`) REFERENCES `poll` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

CREATE TABLE IF NOT EXISTS `poll_votes` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`answer_id` int(11) ,
`poll_id` int(11) ,
`account_id` int(11) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (`answer_id`) REFERENCES `poll_answer` (`id`) ON DELETE CASCADE,
FOREIGN KEY (`poll_id`) REFERENCES `poll` (`id`) ON DELETE CASCADE,
FOREIGN KEY (`account_id`) REFERENCES `accounts` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
 
huh? dude i have searched everywhere in this forum and i didnt find it, if i had find it i couldnt make a threat about my problem ;)

- - - Updated - - -

AMIROSLO THHHXX DUUDE :)
 
Back
Top