Config ve webu: (db.config)
Kód: Vybrat vše
<?php if(!defined('DEFINE_INDEX_FILE')){if(headers_sent()){echo '<header><meta http-equiv="refresh" content="0;url=../"></header>';}else{header('HTTP/1.0 301 Moved Permanently'); header('Location: ../');} die("<font size=+2>Access Denied!!</font>");}
// Database config
function ConnectDB(){global $db,$config;
$host = 'localhost';
$port = 3306;
$username = '65697_mysql_db';
$password = 'heslo';
$database = '65697_mysql_db';
$config['table prefix'] = 'WA_';
$db=@mysql_pconnect($host.($port==0?'':':'.((int)$port)),$username,$password);
if(!$db || !@mysql_select_db($database,$db)){echo '<p>MySQL Error: '.mysql_error().'</p>'; exit();}
mysql_query("SET names UTF8");
}
?>
Config v serveru:
Kód: Vybrat vše
MySQL:
Host: localhost
Username: 65697_mysql_db
Password: heslo
Port: 3306
Database: 65697_mysql_db
TablePrefix: WA_
ConnectionPoolSizeWarn: 5
ConnectionPoolSizeHard: 10
Misc:
ReportSales: true
UseOriginalRecentSigns: true
ShowSalesOnJoin: true
SignClickDelay: 500
UnsafeEnchantments: false
Tasks:
SaleAlertSeconds: 20
ShoutSignUpdateSeconds: 20
RecentSignUpdateSeconds: 60
CronExecutorMinutes: 60
AnnouncerMinutes: 60
SignLink:
Enabled: false
NumberOfLatestAuctionsToTrack: 10
Development:
UseMultithreads: false
DebugSQL: false
CronExecutor:
Enabled: true
Url: http://www.feralcraft.4fan.cz/webauctionplus/cron.php
Announcer:
Enabled: false
Prefix: '&c[Info] '
Random: false
Announcements:
- This server is running WebAuctionPlus!
Předem díky za pomoc