mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
some fixes
* updated download links, as clients.halfaway.net isn't working anymore * fixed some bugs while installing when field `email_next` or `hidden` already exist
This commit is contained in:
parent
170eaec9b0
commit
75aa62a113
@ -225,7 +225,7 @@ $config = array(
|
||||
);
|
||||
|
||||
// download link to client.
|
||||
$config['client_download'] = 'http://clients.halfaway.net/windows.php?tibia='. $config['client'] .'';
|
||||
$config['client_download_linux'] = 'http://clients.halfaway.net/linux.php?tibia='. $config['client'] .'';
|
||||
$config['client_download'] = 'http://tibia-clients.com/clients/download/'. $config['client'] .'/exe/windows';
|
||||
$config['client_download_linux'] = 'http://tibia-clients.com/clients/download/'. $config['client'] .'/tar/linux';
|
||||
|
||||
?>
|
||||
|
@ -150,12 +150,14 @@ if(!$error) {
|
||||
}
|
||||
|
||||
if(fieldExist('next_email', 'accounts')) {
|
||||
if(!fieldExist('email_next', 'accounts')) {
|
||||
if(query("ALTER TABLE `accounts` CHANGE `next_email` `email_next` INT(11) NOT NULL DEFAULT 0;")) {
|
||||
$tmp = str_replace('$FIELD$', 'accounts.next_email', $locale['step_database_changing_field']);
|
||||
$tmp = str_replace('$FIELD_NEW$', 'accounts.email_next', $tmp);
|
||||
success($tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(!fieldExist('email_next', 'accounts')) {
|
||||
if(query("ALTER TABLE `accounts` ADD `email_next` INT(11) NOT NULL DEFAULT 0 AFTER `email_code`;"))
|
||||
success($locale['step_database_adding_field'] . ' accounts.email_next...');
|
||||
@ -194,12 +196,14 @@ if(!$error) {
|
||||
}
|
||||
|
||||
if(fieldExist('hide_char', 'players')) {
|
||||
if(!fieldExist('hidden', 'players')) {
|
||||
if(query("ALTER TABLE `players` CHANGE `hide_char` `hidden` TINYINT(1) NOT NULL DEFAULT 0;")) {
|
||||
$tmp = str_replace('$FIELD$', 'players.hide_char', $locale['step_database_changing_field']);
|
||||
$tmp = str_replace('$FIELD_NEW$', 'players.hidden', $tmp);
|
||||
success($tmp);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(!fieldExist('hidden', 'players')) {
|
||||
if(query("ALTER TABLE `players` ADD `hidden` TINYINT(1) NOT NULL DEFAULT 0;"))
|
||||
success($locale['step_database_adding_field'] . ' players.hidden...');
|
||||
|
@ -146,8 +146,8 @@ else {
|
||||
<?php
|
||||
|
||||
if(!isset($_SESSION['installed'])) {
|
||||
file_get_contents('http://my-aac.org/report_install.php?v=' . MYAAC_VERSION);
|
||||
$_SESSION['installed'] = false;
|
||||
file_get_contents('http://my-aac.org/report_install.php?v=' . MYAAC_VERSION . '&b=' . urlencode(BASE_URL));
|
||||
$_SESSION['installed'] = true;
|
||||
}
|
||||
|
||||
foreach($_SESSION as $key => $value) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user