
but after when i try to enter at acm.mydomain.com i got error 500 ((Internal Server Error)
whats wrong?
Thanks and greets
ty.UnAfraid wrote:You'd better ask him on github not sure if he's still around.
Code: Select all
function load() {
$sql = "SET NAMES '".CONFIG::g()->core_iso_type."'";
$rslt = MYSQL::g($this->worldId)->query($sql);
$sql = 'SELECT `char_name`, `base_class`, `sex`, `accesslevel`, `x`, `y`, `online`, `clanid`, `level`, `karma` FROM `characters` WHERE `charId` = "'.$this->charId.'" LIMIT 1;';
$rslt = MYSQL::g($this->worldId)->query($sql);
$row = @mysql_fetch_object($rslt);
$this->char_name = $row->char_name;
$this->base_class = (int)$row->base_class;
$this->sex = $row->sex;
$this->accesslevel = $row->accesslevel;
$this->x = $row->x;
$this->y = $row->y;
$this->online = $row->online;
$this->clanid = $row->clanid;
$this->level = $row->level;
$this->karma = $row->karma;
return true;
}
function reload($chp) {
$sql = 'SELECT `'.$chp.'` FROM `characters` WHERE `charId` = "'.$this->charId.'" LIMIT 1;';
$rslt = MYSQL::g($this->worldId)->query($sql);
$row = @mysql_fetch_object($rslt);
$this->$chp = $row->$chp;
return true;
}
function is_online() {
$this->reload('online');
if($this->online == 1)
return true;
return false;
}
function is_ban () {
$this->reload('accesslevel');
if ($this->accesslevel < 0)
return true;
return false;
}
function is_hero () {
$sql = 'SELECT COUNT(charId) FROM `heroes`
WHERE `charId` = "'.$this->charId.'";';
if(MYSQL::g($this->worldId)->result($sql) == '0')
return false;
return true;
}
function have_clan () {
$this->reload('clanid');
if ($this->clanid == 0)
return false;
return true;
}
function allow_with_karma() {
if(CONFIG::g()->service_allow_with_karma)
return true;
if($this->karma != 0)
return false;
return true;
}
Code: Select all
Checking php version :
PHP version : 5.6.31 OK
Checking extensions loaded :
mysql extension : OK
gd extension : OK
openssl extension : OK
Checking mysql connexion :
connected ? KO
Checking db connexion :
connected ? KO
Checking table connexion :
accounts exist ? KO
account_data exist ? KO
Checking sql parsing on accounts table :
email exist ? KO
created_time exist ? KO
Checking rights of the cache folder :
cache folder : OK