Ir para conteúdo
  • Cadastre-se

Posts Recomendados

quando vou instalar meu site da o seguinte error "AAC installation is disabled. To enable it make file install.php in main AAC directory and put there your IP."

 

 

meu install.php  

 <?PHP

// comment to show E_NOTICE [undefinied variable etc.], comment if you want make script and see all errors
error_reporting(E_ALL ^ E_STRICT ^ E_NOTICE);
define('INITIALIZED', true);
define('ONLY_PAGE', false);
if(!file_exists('install.txt'))
{
echo('AAC installation is disabled. To enable it make file <b>install.php</b> in main AAC directory and put there your IP.');
exit;
}
$installIP = trim(file_get_contents('install.txt'));
if($installIP != $_SERVER['REMOTE_ADDR'])
{
echo('In file <b>install.txt</b> must be your IP!<br />In file is:<br /><b>' . $installIP . '</b><br />Your IP is:<br /><b>' . $_SERVER['REMOTE_ADDR'] . '</b>');
exit;
}
 
$time_start = microtime(true);
session_start();
 
function autoLoadClass($className)
{
if(!class_exists($className))
if(file_exists('./classes/' . strtolower($className) . '.php'))
include_once('./classes/' . strtolower($className) . '.php');
else
new Error_Critic('#E-7', 'Cannot load class <b>' . $className . '</b>, file <b>./classes/class.' . strtolower($className) . '.php</b> doesn\'t exist');
}
spl_autoload_register('autoLoadClass');
 
//load acc. maker config to $config['site']
$config = array();
include('./config/config.php');
if(function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc())
{
    $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST);
    while(list($key, $val) = each($process))
{
        foreach ($val as $k => $v)
{
            unset($process[$key][$k]);
            if(is_array($v))
{
                $process[$key][stripslashes($k)] = $v;
                $process[] = &$process[$key][stripslashes($k)];
            }
else
                $process[$key][stripslashes($k)] = stripslashes($v);
        }
    }
    unset($process);
}
 
 
 
$page = '';
if(isset($_REQUEST['page']))
$page = $_REQUEST['page'];
$step = 'start';
if(isset($_REQUEST['step']))
$step = $_REQUEST['step'];
// load server path
function getServerPath()
{
$config = array();
include('./config/config.php');
return $config['site']['serverPath'];
}
// save server path
function setServerPath($newPath)
{
$file = fopen("./config/config.php", "r");
$lines = array();
while (!feof($file)) {
$lines[] = fgets($file);
}
fclose($file);
 
$newConfig = array();
foreach ($lines as $i => $line)
{
if(substr($line, 0, strlen('$config[\'site\'][\'serverPath\']')) == '$config[\'site\'][\'serverPath\']')
$newConfig[] = '$config[\'site\'][\'serverPath\'] = "' . str_replace('"', '\"' , $newPath) . '";' . PHP_EOL; // do something with each line from text file here
else
$newConfig[] = $line;
}
Website::putFileContents("./config/config.php", implode('', $newConfig));
}
if($page == '')
{
echo '<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<title>Installation of account maker</title>
</head>
<frameset cols="230,*">
<frame name="menu" src="install.php?page=menu" />
<frame name="step" src="install.php?page=step&step=start" />
<noframes><body>Frames don\'t work. Install Firefox :P</body></noframes>
</frameset>
</html>';
}
elseif($page == 'menu')
{
echo '<h2>MENU</h2><br>
<b>IF NOT INSTALLED:</b><br>
<a href="install.php?page=step&step=start" target="step">0. Informations</a><br>
<a href="install.php?page=step&step=1" target="step">1. Set server path</a><br>
<a href="install.php?page=step&step=2" target="step">2. Check DataBase connection</a><br>
<a href="install.php?page=step&step=3" target="step">3. Add tables and columns to DB</a><br>
<a href="install.php?page=step&step=4" target="step">4. Add samples to DB</a><br>
<a href="install.php?page=step&step=5" target="step">5. Set Admin Account</a><br>
<b>Author:</b><br>
Gesior<br>
Compatible with TFS 0.3.6 and TFS 0.4 up to revision 3702</a>';
}
elseif($page == 'step')
{
if($step >= 2 && $step <= 5)
{
//load server config $config['server']
if(Website::getWebsiteConfig()->getValue('useServerConfigCache'))
{
// use cache to make website load faster
if(Website::fileExists('./config/server.config.php'))
{
$tmp_php_config = new ConfigPHP('./config/server.config.php');
$config['server'] = $tmp_php_config->getConfig();
}
else
{
// if file isn't cache we should load .lua file and make .php cache
$tmp_lua_config = new ConfigLUA(Website::getWebsiteConfig()->getValue('serverPath') . 'config.lua');
$config['server'] = $tmp_lua_config->getConfig();
$tmp_php_config = new ConfigPHP();
$tmp_php_config->setConfig($tmp_lua_config->getConfig());
$tmp_php_config->saveToFile('./config/server.config.php');
}
}
else
{
$tmp_lua_config = new ConfigLUA(Website::getWebsiteConfig()->getValue('serverPath') . 'config.lua');
$config['server'] = $tmp_lua_config->getConfig();
}
if(Website::getServerConfig()->isSetKey('mysqlHost'))
{
define('SERVERCONFIG_SQL_HOST', 'mysqlHost');
define('SERVERCONFIG_SQL_PORT', 'mysqlPort');
define('SERVERCONFIG_SQL_USER', 'mysqlUser');
define('SERVERCONFIG_SQL_PASS', 'mysqlPass');
define('SERVERCONFIG_SQL_DATABASE', 'mysqlDatabase');
define('SERVERCONFIG_SQLITE_FILE', 'sqlFile');
}
else
new Error_Critic('#E-3', 'There is no key <b>mysqlHost</b> in server config', array(new Error('INFO', 'use server config cache: <b>' . (Website::getWebsiteConfig()->getValue('useServerConfigCache') ? 'true' : 'false') . '</b>')));
 
Website::setDatabaseDriver(Database::DB_MYSQL);
if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_HOST))
Website::getDBHandle()->setDatabaseHost(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_HOST));
else
new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_HOST . '</b> in server config file.');
if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_PORT))
Website::getDBHandle()->setDatabasePort(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_PORT));
else
new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_PORT . '</b> in server config file.');
if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_DATABASE))
Website::getDBHandle()->setDatabaseName(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_DATABASE));
else
new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_DATABASE . '</b> in server config file.');
if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_USER))
Website::getDBHandle()->setDatabaseUsername(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_USER));
else
new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_USER . '</b> in server config file.');
if(Website::getServerConfig()->isSetKey(SERVERCONFIG_SQL_PASS))
Website::getDBHandle()->setDatabasePassword(Website::getServerConfig()->getValue(SERVERCONFIG_SQL_PASS));
else
new Error_Critic('#E-7', 'There is no key <b>' . SERVERCONFIG_SQL_PASS . '</b> in server config file.');
Website::setPasswordsEncryption(Website::getServerConfig()->getValue('passwordType'));
$SQL = Website::getDBHandle();
}
 
if($step == 'start')
{
echo '<h1>STEP '.$step.'</h1>Informations<br>';
echo 'Welcome to Gesior Account Maker installer. <b>After 5 simple steps account maker will be ready to use!</b><br />';
// check access to write files
$writeable = array('config/config.php', 'cache', 'cache/flags', 'cache/DONT_EDIT_usercounter.txt', 'cache/DONT_EDIT_serverstatus.txt', 'custom_scripts', 'install.txt');
foreach($writeable as $fileToWrite)
{
if(is_writable($fileToWrite))
echo '<span style="color:green">CAN WRITE TO FILE: <b>' . $fileToWrite . '</b></span><br />';
else
echo '<span style="color:red">CANNOT WRITE TO FILE: <b>' . $fileToWrite . '</b> - edit file access for PHP [on linux: chmod]</span><br />';
}
}
elseif($step == 1)
{
if(isset($_REQUEST['server_path']))
{
echo '<h1>STEP '.$step.'</h1>Check server configuration<br>';
$path = $_REQUEST['server_path'];
$path = trim($path)."\\";
$path = str_replace("\\\\", "/", $path);
$path = str_replace("\\", "/", $path);
$path = str_replace("//", "/", $path);
setServerPath($path);
$tmp_lua_config = new ConfigLUA($path . 'config.lua');
$config['server'] = $tmp_lua_config->getConfig();
if(isset($config['server']['mysqlHost']))
{
echo 'File <b>config.lua</b> loaded from <font color="red"><i>'.$path.'config.lua</i></font>. It looks like fine server config file. Now you can check database connection: <a href="install.php?page=step&step=2">STEP 2 - check database connection</a>';
}
else
{
echo 'File <b>config.lua</b> loaded from <font color="red"><i>'.$path.'config.lua</i></font> and it\'s not valid TFS config.lua file. <a href="install.php?page=step&step=1">Go to STEP 1 - select other directory.</a> If it\'s your config.lua file from TFS contact with acc. maker author.';
}
}
else
{
echo 'Please write you TFS directory below. Like: <i>C:\Documents and Settings\Gesior\Desktop\TFS 0.2.9\</i><form action="install.php">
<input type="text" name="server_path" size="90" value="'.htmlspecialchars(getServerPath()).'" /><input type="hidden" name="page" value="step" /><input type="hidden" name="step" value="1" /><input type="submit" value="Set server path" />
</form>';
}
}
elseif($step == 2)
{
echo '<h1>STEP '.$step.'</h1>Check database connection<br>';
echo 'If you don\'t see any errors press <a href="install.php?page=step&step=3">link to STEP 3 - Add tables and columns to DB</a>. If you see some errors it mean server has wrong configuration. Check FAQ or ask author of acc. maker.<br />';
$SQL->connect(); // show errors if can't connect
}
elseif($step == 3)
{
echo '<h1>STEP '.$step.'</h1>Add tables and columns to DB<br>';
echo 'Installer try to add new tables and columns to database.<br>';
$columns = array();
//$columns[] = array('table', 'name_of_column', 'type', 'length', 'default');
$columns[] = array('accounts', 'key', 'VARCHAR', '20', '0');
$columns[] = array('accounts', 'email_new', 'VARCHAR', '255', '');
$columns[] = array('accounts', 'email_new_time', 'INT', '11', '0');
$columns[] = array('accounts', 'rlname', 'VARCHAR', '255', '');
$columns[] = array('accounts', 'location', 'VARCHAR', '255', '');
$columns[] = array('accounts', 'page_access', 'INT', '11', '0');
$columns[] = array('accounts', 'email_code', 'VARCHAR', '255', '');
$columns[] = array('accounts', 'next_email', 'INT', '11', '0');
$columns[] = array('accounts', 'premium_points', 'INT', '11', '0');
$columns[] = array('accounts', 'create_date', 'INT', '11', '0');
$columns[] = array('accounts', 'create_ip', 'INT', '11', '0');
$columns[] = array('accounts', 'last_post', 'INT', '11', '0');
$columns[] = array('accounts', 'flag', 'VARCHAR', '80', '');
 
$columns[] = array('guilds', 'description', 'TEXT', '', '');
$columns[] = array('guilds', 'guild_logo', 'MEDIUMBLOB', '', NULL);
$columns[] = array('guilds', 'create_ip', 'INT', '11', '0');
$columns[] = array('guilds', 'balance', 'BIGINT UNSIGNED', '', '0');
 
$columns[] = array('players', 'deleted', 'TINYINT', '1', '0');
$columns[] = array('players', 'description', 'VARCHAR', '255', '');
$columns[] = array('players', 'comment', 'TEXT', '', '');
$columns[] = array('players', 'create_ip', 'INT', '11', '0');
$columns[] = array('players', 'create_date', 'INT', '11', '0');
$columns[] = array('players', 'hide_char', 'INT', '11', '0');
 
$tables = array();
// mysql tables
$tables[Database::DB_MYSQL]['z_ots_comunication'] = "CREATE TABLE `z_ots_comunication` (
 `id` int(11) NOT NULL auto_increment,
 `name` varchar(255) NOT NULL,
 `type` varchar(255) NOT NULL,
 `action` varchar(255) NOT NULL,
 `param1` varchar(255) NOT NULL,
 `param2` varchar(255) NOT NULL,
 `param3` varchar(255) NOT NULL,
 `param4` varchar(255) NOT NULL,
 `param5` varchar(255) NOT NULL,
 `param6` varchar(255) NOT NULL,
 `param7` varchar(255) NOT NULL,
 `delete_it` int(2) NOT NULL default '1',
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;";
$tables[Database::DB_MYSQL]['z_shop_offer'] = "CREATE TABLE `z_shop_offer` (
 `id` int(11) NOT NULL auto_increment,
 `points` int(11) NOT NULL default '0',
 `itemid1` int(11) NOT NULL default '0',
 `count1` int(11) NOT NULL default '0',
 `itemid2` int(11) NOT NULL default '0',
 `count2` int(11) NOT NULL default '0',
 `offer_type` varchar(255) default NULL,
 `offer_description` text NOT NULL,
 `offer_name` varchar(255) NOT NULL,
 PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;";
$tables[Database::DB_MYSQL]['z_shop_history_item'] = "CREATE TABLE `z_shop_history_item` (
 `id` int(11) NOT NULL auto_increment,
 `to_name` varchar(255) NOT NULL default '0',
 `to_account` int(11) NOT NULL default '0',
 `from_nick` varchar(255) NOT NULL,
 `from_account` int(11) NOT NULL default '0',
 `price` int(11) NOT NULL default '0',
 `offer_id` varchar(255) NOT NULL default '',
 `trans_state` varchar(255) NOT NULL,
 `trans_start` int(11) NOT NULL default '0',
 `trans_real` int(11) NOT NULL default '0',
 PRIMARY KEY  (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;";
$tables[Database::DB_MYSQL]['z_forum'] = "CREATE TABLE `z_forum` (
 `id` int(11) NOT NULL auto_increment,
 `first_post` int(11) NOT NULL default '0',
 `last_post` int(11) NOT NULL default '0',
 `section` int(3) NOT NULL default '0',
 `replies` int(20) NOT NULL default '0',
 `views` int(20) NOT NULL default '0',
 `author_aid` int(20) NOT NULL default '0',
 `author_guid` int(20) NOT NULL default '0',
 `post_text` text NOT NULL,
 `post_topic` varchar(255) NOT NULL,
 `post_smile` tinyint(1) NOT NULL default '0',
 `post_date` int(20) NOT NULL default '0',
 `last_edit_aid` int(20) NOT NULL default '0',
 `edit_date` int(20) NOT NULL default '0',
 `post_ip` varchar(15) NOT NULL default '0.0.0.0',
 PRIMARY KEY  (`id`),
 KEY `section` (`section`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;";
 
foreach($columns as $column)
{
if($column[4] === NULL && $SQL->query('ALTER TABLE ' . $SQL->tableName($column[0]) . ' ADD ' . $SQL->fieldName($column[1]) . ' ' . $column[2] . '  NULL DEFAULT NULL') !== false)
echo "<span style=\"color:green\">Column <b>" . $column[1] . "</b> added to table <b>" . $column[0] . "</b>.</span><br />";
elseif($SQL->query('ALTER TABLE ' . $SQL->tableName($column[0]) . ' ADD ' . $SQL->fieldName($column[1]) . ' ' . $column[2] . '' . (($column[3] == '') ? '' : '(' . $column[3] . ')') . ' NOT NULL DEFAULT \'' . $column[4] . '\'') !== false)
echo "<span style=\"color:green\">Column <b>" . $column[1] . "</b> added to table <b>" . $column[0] . "</b>.</span><br />";
else
echo "Could not add column <b>" . $column[1] . "</b> to table <b>" . $column[0] . "</b>. Already exist?<br />";
}
foreach($tables[$SQL->getDatabaseDriver()] as $tableName => $tableQuery)
{
if($SQL->query($tableQuery) !== false)
echo "<span style=\"color:green\">Table <b>" . $tableName . "</b> created.</span><br />";
else
echo "Could not create table <b>" . $tableName . "</b>. Already exist?<br />";
}
echo 'Tables and columns added to database.<br>Go to <a href="install.php?page=step&step=4">STEP 4 - Add samples</a>';
}
elseif($step == 4)
{
echo '<h1>STEP '.$step.'</h1>Add samples to DB:<br>';
$samplePlayers = array();
$samplePlayers[0] = 'Rook Sample';
$samplePlayers[1] = 'Sorcerer Sample';
$samplePlayers[2] = 'Druid Sample';
$samplePlayers[3] = 'Paladin Sample';
$samplePlayers[4] = 'Knight Sample';
 
$account = new Account(1, Account::LOADTYPE_NAME);
if(!$account->isLoaded())
{
$account->setName(1);
$account->setPassword(1);
$account->setMail(rand(0,999999) . '@gmail.com');
$account->setPageAccess(3);
$account->setFlag('unknown');
$account->setCreateIP(Visitor::getIP());
$account->setCreateDate(time());
$account->save();
}
$newPlayer = new Player('Account Manager', Player::LOADTYPE_NAME);
if(!$newPlayer->isLoaded())
{
$newPlayer->setComment('');
$newPlayer->setName('Account Manager');
$newPlayer->setAccountID($account->getID());
$newPlayer->setLevel(8);
$newPlayer->setExperience(4200);
$newPlayer->setGroupID(1);
$newPlayer->setVocation(0);
$newPlayer->setHealth(185);
$newPlayer->setHealthMax(185);
$newPlayer->setMana(35);
$newPlayer->setManaMax(35);
$newPlayer->setTown(1);
$newPlayer->setSoul(100);
$newPlayer->setCapacity(420);
$newPlayer->setSave(1);
$newPlayer->setStamina(2520);
$newPlayer->setLookType(128);
$newPlayer->setLookBody(44);
$newPlayer->setLookFeet(98);
$newPlayer->setLookHead(15);
$newPlayer->setLookLegs(76);
 
$newPlayer->setSkill(0, 10);
$newPlayer->setSkill(1, 10);
$newPlayer->setSkill(2, 10);
$newPlayer->setSkill(3, 10);
$newPlayer->setSkill(4, 10);
$newPlayer->setSkill(5, 10);
$newPlayer->setSkill(6, 10);
 
$newPlayer->setSkillCount(0, 0);
$newPlayer->setSkillCount(1, 0);
$newPlayer->setSkillCount(2, 0);
$newPlayer->setSkillCount(3, 0);
$newPlayer->setSkillCount(4, 0);
$newPlayer->setSkillCount(5, 0);
$newPlayer->setSkillCount(6, 0);
 
$newPlayer->save();
}
 
if($newPlayer->isLoaded())
{
foreach($samplePlayers as $vocationID => $name)
{
$samplePlayer = new Player($name, Player::LOADTYPE_NAME);
if(!$samplePlayer->isLoaded())
{
$samplePlayer = new Player('Account Manager', Player::LOADTYPE_NAME);
$samplePlayer->setID(null); // save as new player, not edited
$samplePlayer->setName($name);
$samplePlayer->setVocation($vocationID);
$samplePlayer->setGroupID(1);
$samplePlayer->setLookType(128);
$samplePlayer->save();
echo '<span style="color:green">Added sample character: </span><span style="color:green;font-weight:bold">' . $name . '</span><br/>';
}
else
echo 'Sample character: <span style="font-weight:bold">' . $name . '</span> already exist in database<br/>';
}
}
else
new Error_Critic('', 'Character <i>Account Manager</i> does not exist. Cannot install sample characters!');
}
elseif($step == 5)
{
echo '<h1>STEP '.$step.'</h1>Set Admin Account<br>';
if(empty($_REQUEST['saveaccpassword']))
{
echo 'Admin account login is: <b>1</b><br/>Set new password to this account.<br>';
echo 'New password: <form action="install.php" method=POST><input type="text" name="newpass" size="35">(Don\'t give it password to anyone!)';
echo '<input type="hidden" name="saveaccpassword" value="yes"><input type="hidden" name="page" value="step"><input type="hidden" name="step" value="5"><input type="submit" value="SET"></form><br>If account with login 1 doesn\'t exist installator will create it and set your password.';
}
else
{
include_once('./system/load.compat.php');
$newpass = trim($_POST['newpass']);
if(!check_password($newpass))
echo 'Password contains illegal characters. Please use only a-Z and 0-9. <a href="install.php?page=step&step=5">GO BACK</a> and write other password.';
else
{
//create / set pass to admin account
$account = new Account(1, Account::LOADTYPE_NAME);
if($account->isLoaded())
{
$account->setPassword($newpass); // setPassword encrypt it to ots encryption
$account->setPageAccess(3);
$account->setFlag('unknown');
$account->save();
}
else
{
$newAccount = new Account();
$newAccount->setName(1);
$newAccount->setPassword($newpass); // setPassword encrypt it to ots encryption
$newAccount->setMail(rand(0,999999) . '@gmail.com');
$newAccount->setPageAccess(3);
$newAccount->setGroupID(1);
$newAccount->setFlag('unknown');
$newAccount->setCreateIP(Visitor::getIP());
$newAccount->setCreateDate(time());
}
$_SESSION['account'] = 1;
$_SESSION['password'] = $newpass;
$logged = TRUE;
echo '<h1>Admin account login: 1<br>Admin account password: '.$newpass.'</h1><br/><h3>It\'s end of installation. Installation is blocked!</h3>'; 
if(!unlink('install.txt'))
new Error_Critic('', 'Cannot remove file <i>install.txt</i>. You must remove it to disable installer. I recommend you to go to step <i>0</i> and check if any other file got problems with WRITE permission.');
}
}
}
}

ca.png?1422745283

 

CONQUISTASdesigner-king.png   Designer.png    

 

Link para o post
Compartilhar em outros sites

Poste o config.php da pasta www do site, creio que isso ai não é config.php, veja o que tem.

YDmXTU2.png

 

Entenda tudo sobre VPS, DEDICADOS & HOSPEDAGENS. => Clique aqui

Global Full Download 10.9x - TFS 1.2/FERUMBRAS/KRAILOS. => Clique aqui

 

Muitos querem aquilo que você tem, 
mas vão desistir quando souberem o preço que você pagou.

 

skype-favicon.png lu.lukinha

message-16.png [email protected]

Link para o post
Compartilhar em outros sites

meu config.php

<?PHP

$config['site']['worlds'] = array(0 => 'OTServ');
$config['site']['quests'] = array('Inquisition' => 100166,'Yalahar' => 2108,'Annihilator' => 5000,'Demon Helmet' => 13445,'Pits of Inferno' => 10550,'Fire Axe' => 14260,'Vampire Shield' => 5141,); // list of quests, 'questname' => storage-id,
 
// ACCOUNT config
$config['site']['one_email'] = 0; // one e-mail can be used only to create one account 0 / 1
$config['site']['email_days_to_change'] = 2; // how many days user need to change e-mail to account - block hackers
$config['site']['newaccount_premdays'] = 0; // how many days receive new account
$config['site']['access_tickers'] = 3;
 
// ChaitoSoft config
$config['site']['SocialFacebook'] = "PAGINAFACEAQUI";
$config['pagseguro']['email'] = 'SEU E-MAIL DO PAGSEGURO';
$config['paypal']['email'] = 'SEU E-MAIL DO PAYPAL';
 
 
$config['site']['publickey'] = "6LfZAAoAAAAAALswKC2UCdCo_wf3ilh_C0qBhQJs "; // Public Key
$config['site']['privkey'] = "6LfZAAoAAAAAAA7_sZX1ZPomaqqTKBka5t6so0Un";; // Private Key
 
 
// USE ONLY IF YOU CONFIGURED E-MAIL AND IT WORK
$config['site']['create_account_verify_mail'] = 0; // when create account player must use right e-mail, he will receive random password to account like on RL tibia, 1 = yes, 0 = no
$config['site']['generate_new_reckey'] = 1; // let player generate new recovery key, he will receive e-mail with new rec key (not display on page, hacker can't generate rec key)
$config['site']['generate_new_reckey_price'] = 15; // you can get some Premium Points for new rec key
$config['site']['send_mail_when_change_password'] = 1; // send e-mail with new password when change password to account, set 0 if someone abuse to send spam
$config['site']['send_mail_when_generate_reckey'] = 1; // send e-mail with rec key (key is displayed on page anyway when generate), set 0 if someone abuse to send spam
$config['site']['send_register_email'] = 1; // send e-mail when register account
 
// CHARACTER config, format: ID_of_vocation => 'Name of Character to copy', load vocation name from $vocation_name[0] (below)
$config['site']['newchar_vocations'][0] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
$config['site']['newchar_vocations'][1] = array(1 => 'Sorcerer Sample', 2 => 'Druid Sample', 3 => 'Paladin Sample', 4 => 'Knight Sample');
// sample, if rook only:             $config['site']['newchar_vocations'][0] = array(0 => 'Rook Sample');
$config['site']['newchar_towns'][0] = array(2);
$config['site']['newchar_towns'][1] = array(2);
// sample, if all players should spawn in one city (city with ID 2): $config['site']['newchar_towns'] = array(2);
 
// list of vocations on ots (world 0)
$vocation_name[0][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[0] - for world ID 0
$vocation_name[0][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[0] - for world ID 0
// list of vocations on ots (world 1)
$vocation_name[1][0] = array(0 => 'None', 1 => 'Sorcerer', 2 => 'Druid', 3 => 'Paladin', 4 => 'Knight'); // id => 'name' , $vocation_name[0] - promotion level 0, $vocation_name[1] - for world ID 1
$vocation_name[1][1] = array(1 => 'Master Sorcerer', 2 => 'Elder Druid', 3 => 'Royal Paladin', 4 => 'Elite Knight'); // id => 'name' , $vocation_name[1] - promotion level 1, $vocation_name[1] - for world ID 1
 
// list of towns on ots
$towns_list[0] = array(2 => 'Thais', 13 => 'Yalahar', 4 => 'Carlin', 7 => 'Darashia'); // list of towns, id => 'name', $towns_list[0] - for world id 0
$towns_list[1] = array(0 => 'Venore', 1 => 'Edron', 2 => 'Thais', 3 => 'Carlin'); // list of towns, id => 'name', $towns_list[1] - for world id 1
 
// list of monsters on ots - names blocked, you can generate list of your monsters in acc. maker admin panel ( Reload Monsters )
$config['site']['monsters'] = array("amazon","valkyrie","carrion worm","rotworm","rotworm queen","cockroach","kongra","merlkin","sibang","crystal spider","giant spider","poison spider","scorpion","spider","tarantula","achad","axeitus headbanger","bloodpaw","bovinus","colerian the barbarian","cursed gladiator","frostfur","orcus the cruel","rocky","the hairy one","avalanche","drasilla","grimgor guteater","kreebosh the exile","slim","spirit of earth","spirit of fire","spirit of water","the dark dancer","the hag","darakan the executioner","deathbringer","fallen mooh'tah master ghar","gnorre chyllson","norgle glacierbeard","svoren the mad","the masked marauder","the obliverator","the pit lord","webster","barbarian bloodwalker","barbarian brutetamer","barbarian headsplitter","barbarian skullhunter","bear","panda","polar bear","braindeath","beholder","elder beholder","gazer","chicken","dire penguin","flamingo","parrot","penguin","seagull","terror bird","bazir","infernatil","thul","munster","son of verminor","xenia","zoralurk","big boss trolliver","foreman kneebiter","mad technomancer","man in the cave","lord of the elements","the count","the plasmother","dracola","the abomination","the handmaiden","mr. punish","the countess sorrow","the imperor","massacre","apocalypse","brutus bloodbeard","deadeye devious","demodras","dharalion","fernfang","ferumbras","general murius","ghazbaran","grorlam","lethal lissy","morgaroth","necropharus","orshabaal","ron the ripper","the evil eye","the horned fox","the old widow","tiquandas revenge","apprentice sheng","dog","hellhound","war wolf","winter wolf","wolf","chakoya toolshaper","chakoya tribewarden","chakoya windcaller","blood crab","crab","frost giant","frost giantess","ice golem","yeti","acolyte of the cult","adept of the cult","enlightened of the cult","novice of the cult","ungreez","dark torturer","demon","destroyer","diabolic imp","fire devil","fury","hand of cursed fate","juggernaut","nightmare","plaguesmith","blue djinn","efreet","green djinn","marid","frost dragon","wyrm","sea serpent","dragon lord","dragon","hydra","dragon hatchling","dragon lord hatchling","frost dragon hatchling","dwarf geomancer","dwarf guard","dwarf soldier","dwarf","dworc fleshhunter","dworc venomsniper","dworc voodoomaster","elephant","mammoth","elf arcanist","elf scout","elf","charged energy elemental","energy elemental","massive energy elemental","overcharged energy elemental","energy overlord","cat","lion","tiger","azure frog","coral frog","crimson frog","green frog","orchid frog","toad","jagged earth elemental","muddy earth elemental","earth elemental","massive earth elemental","earth overlord","gargoyle","stone golem","ghost","phantasm","phantasm","pirate ghost","spectre","cyclops smith","cyclops drone","behemoth","cyclops","slick water elemental","roaring water elemental","ice overlord","water elemental","massive water elemental","ancient scarab","butterfly","bug","centipede","exp bug","larva","scarab","wasp","lizard sentinel","lizard snakecharmer","lizard templar","minotaur archer","minotaur guard","minotaur mage","minotaur","squirrel","goblin demon","badger","bat","deer","the halloween hare","hyaena","pig","rabbit","silver rabbit","skunk","wisp","dark monk","monk","tha exp carrier","necromancer","priestess","orc berserker","orc leader","orc rider","orc shaman","orc spearman","orc warlord","orc warrior","orc","goblin leader","goblin scavenger","goblin","goblin assassin","assasin","bandit","black knight","hero","hunter","nomad","smuggler","stalker","poacher","wild warrior","ashmunrah","dipthrah","mahrdis","morguthis","omruc","rahemos","thalas","vashresamun","pirate buccaneer","pirate corsair","pirate cutthroat","pirate marauder","carniphila","spit nettle","fire overlord","massive fire elemental","blistering fire elemental","blazing fire elemental","fire elemental","hellfire fighter","quara constrictor scout","quara hydromancer scout","quara mantassin scout","quara pincher scout","quara predator scout","quara constrictor","quara hydromancer","quara mantassin","quara pincher","quara predator","cave rat","rat","cobra","crocodile","serpent spawn","snake","wyvern","black sheep","sheep","mimic","betrayed wraith","bonebeast","demon skeleton","lost soul","pirate skeleton","skeleton","skeleton warrior","undead dragon","defiler","slime2","slime","bog raider","ice witch","warlock","witch","bones","fluffy","grynch clan goblin","hacker","minishabaal","primitive","tibia bug","undead minion","annihilon","hellgorak","latrivan","madareth","zugurosh","ushuriel","golgordan","thornback tortoise","tortoise","eye of the seven","deathslicer","flamethrower","magicthrower","plaguethrower","poisonthrower","shredderthrower","troll champion","frost troll","island troll","swamp troll","troll","banshee","blightwalker","crypt shambler","ghoul","lich","mummy","vampire","grim reaper","trainer","forest dragon","knight","paladin","druid","sorcerer","guard","mercenary","thief","toxiros","pyramo","lazarus","zathroth","goshnar","durin","demora","orc champion","lumenia","dracula","alezzo","prince almirith","elf warlord","random noob","magebomb");
// list of NPCs on ots - names blocked
$config['site']['npc'] = array('alice', 'oarkhal', 'equer', 'parkhal', 'leoric', 'sarkhal', 'pallo', 'riona', 'her miona', 'varkhal', 'eura', 'blitz', 'markhal', 'wengo', 'larkhal');
$config['site']['max_players_per_account'] = 35; // max. number of characters on account
 
$config['archez']['secret'] = array(2, 6, 7, 13, 16, 17, 18, 23, 24, 26, 29, 30, 31, 32, 34, 35, 37, 43, 44, 46, 51, 53, 54, 62, 63, 65, 66, 68, 73, 80, 81, 82, 83);
$config['archez']['achievements'] = array(
    1 => 'Allow Cookies?',
    2 => 'Backpack Tourist',
    3 => 'Bearhugger',
    4 => 'Bone Brother',
    5 => 'Chorister',
    6 => 'Fountain of Life',
    7 => 'Here, Fishy Fishy!',
    8 => 'Honorary Barbarian',
    9 => 'Huntsman',
    10 => 'Just in Time',
    11 => 'Matchmaker',
    12 => 'Nightmare Knight',
    13 => 'Party Animal',
    14 => 'Secret Agent',
    15 => 'Talented Dancer',
    16 => 'Territorial',
    17 => 'Worm Whacker',
    18 => 'Allowance Collector',
    19 => 'Amateur Actor',
    20 => 'Animal Activist',
    21 => 'Beach Tamer',
    22 => 'Blessed!',
    23 => 'Exquisite Taste',
    24 => 'Fireworks in the Sky',
    25 => 'Greenhorn',
    26 => 'Jinx',
    27 => 'Lucid Dreamer',
    28 => 'Mathemagician',
    29 => 'Masquerader',
    30 => 'Ministrel',
    31 => 'Poet Laureate',
    32 => 'Quick as a Turtle',
    33 => 'Sea Scout',
    34 => 'Steampunked',
    35 => 'Superstitios',
    36 => 'The Milkman',
    37 => 'Turncoat',
    38 => 'Vive la Resistance',
    39 => 'Archpostman',
    40 => 'Clay Fighter',
    41 => 'Efreet Ally',
    42 => 'Ghostwisperer',
    43 => 'His True Face',
    44 => 'Ice Sculptor',
    45 => 'King Tibanus Fan',
    46 => 'Marblelous',
    47 => 'Marid Ally',
    48 => 'Passionate Kisser',
    49 => 'Perfect Fool',
    50 => 'Recognised Trader',
    51 => 'Rockstar',
    52 => 'Scrapper',
    53 => 'Vanity',
    54 => 'Wayfarer',
    55 => 'Champion of Chazorai',
    56 => 'Culinary Master',
    57 => 'Explorer',
    58 => 'Follower of Azerus',
    59 => 'Follower of Palimuth',
    60 => 'Friend of the Apes',
    61 => 'Golem in the Gears',
    62 => 'High-Flyer',
    63 => 'Interior Decorator',
    64 => 'Master Thief',
    65 => 'Polisher',
    66 => 'Potion Addict',
    67 => 'Ruthless',
    68 => 'Ship\'s Kobold',
    69 => 'Top AVIN Agent',
    70 => 'Top CGB Agent',
    71 => 'Top TBI Agent',
    72 => 'Annihilator',
    73 => 'Castlemania',
    74 => 'Elite Hunter',
    75 => 'High Inquisitor',
    76 => 'Jamjam',
    77 => 'Lord of the Elements',
    78 => 'Warlord of Svargrond',
    79 => 'Master of the Nexus',
    80 => 'Razing!',
    81 => 'Dread Lord',
    82 => 'Lord Protector',
    83 => 'Herbicide'
);
 
// GUILDS config
$config['site']['guild_need_level'] = 20; // minimum level to create guild
$config['site']['guild_need_pacc'] = 0; // guild need pacc 0 / 1
$config['site']['guild_image_size_kb'] = 150; // maximum size of image in KB
$config['site']['guild_description_chars_limit'] = 1000; // limit of guild description
$config['site']['guild_description_lines_limit'] = 6; // limit of lines, if description has more lines it will be showed as long text, without 'enters'
$config['site']['guild_motd_chars_limit'] = 150; // limit of MOTD (show in game?)
 
 
// E-MAIL config
$config['site']['send_emails'] = 1; // is acc. maker configured to send e-mails?
$config['site']['mail_address'] = ""; // e-mail address
$config['site']['smtp_enabled'] = "yes"; // send by smtp or mail function (set 0 if use mail function)
$config['site']['smtp_host'] = "smtp.gmail.com"; // address
$config['site']['smtp_port'] = 465; // port
$config['site']['smtp_auth'] = "yes"; // need authorization? (set 0 if not need auth)
$config['site']['smtp_user'] = ""; // login
$config['site']['smtp_pass'] = ""; // password
 
 
// ACC MAKER OPTIONS config
$config['site']['access_tickers'] = 6; // acess level needed to create/edit tickers
$config['site']['access_news'] = 6; // access level needed to edit news
$config['site']['access_admin_panel'] = 6; // access level needed to open admin panel
$config['site']['news_big_limit'] = 6; // limit of news on latest news page
$config['site']['news_ticks_limit'] = 10; // limit of ticker news on latest news page
$config['site']['show_creationdate'] = 1; // show date of character creation 1 = yes, 0 = no (when use Search Player)
$config['site']['last_deaths_limit'] = 40; // max. number of death on last death page
$config['site']['players_group_id_block'] = 4; // don't show in statistics players with group ID higher (or equal) then (show tutors, senior tutors and normal players)
$config['site']['support_group_id'] = 2; // on game masters list show players with group id 2 or higher
$config['site']['shop_system'] = 1; // show server shop page? 1 = yes, 0 = no, use only if you installed LUA scripts of shop
$config['site']['download_page'] = 1; // show download page? 1 = yes, 0 = no
$config['site']['serverinfo_page'] = 1; // show server info page? 1 = yes, 0 = no
$config['site']['verify_code_shop'] = 0; // show verify code when player try to check premium code
$config['site']['gallery_page'] = 1; // show gallery page? 1 = yes, 0 = no
$config['site']['email_lai_sec_interval'] = 180; // time in seconds between e-mails to one account from lost account interface, block spam
$config['site']['show_marriage_info'] = 0; // show marriage, 1 = yes, 0 = no
$config['site']['show_skills_info'] = 1;//show players skills, 1 = yes, 0 = no
$config['site']['show_vip_status'] = 1;// show vip status, 1 = yes, 0 = no
$config['site']['show_vip_storage'] = 0;// the storage of vip
$config['site']['show_outfit'] = 1;// show outfit, 1 = yes, 0 = no
$config['site']['show_signature'] = 1;// show signature, 1 = yes, 0 = no
$config['site']['screenoftheday'] = 1;// show screenshot of the day
$config['site']['worldtransfer'] = 1;//1-Enable/0-Disable Character World Transfer
$config['site']['worldtransferprice'] = 10;//Price for Character World Transfer
$config['site']['transfermonths'] = 6;//Months for which you cannot make World Transfer with a character
 
// layout, available layouts: rasta,tibiacom,darkritual
$config['site']['layout'] = "tibiacom"; // layout name
?>

Editado por JonatasLucasf (veja o histórico de edições)

ca.png?1422745283

 

CONQUISTASdesigner-king.png   Designer.png    

 

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo