mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +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.
|
// download link to client.
|
||||||
$config['client_download'] = 'http://clients.halfaway.net/windows.php?tibia='. $config['client'] .'';
|
$config['client_download'] = 'http://tibia-clients.com/clients/download/'. $config['client'] .'/exe/windows';
|
||||||
$config['client_download_linux'] = 'http://clients.halfaway.net/linux.php?tibia='. $config['client'] .'';
|
$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('next_email', 'accounts')) {
|
||||||
|
if(!fieldExist('email_next', 'accounts')) {
|
||||||
if(query("ALTER TABLE `accounts` CHANGE `next_email` `email_next` INT(11) NOT NULL DEFAULT 0;")) {
|
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$', 'accounts.next_email', $locale['step_database_changing_field']);
|
||||||
$tmp = str_replace('$FIELD_NEW$', 'accounts.email_next', $tmp);
|
$tmp = str_replace('$FIELD_NEW$', 'accounts.email_next', $tmp);
|
||||||
success($tmp);
|
success($tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if(!fieldExist('email_next', 'accounts')) {
|
else if(!fieldExist('email_next', 'accounts')) {
|
||||||
if(query("ALTER TABLE `accounts` ADD `email_next` INT(11) NOT NULL DEFAULT 0 AFTER `email_code`;"))
|
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...');
|
success($locale['step_database_adding_field'] . ' accounts.email_next...');
|
||||||
@ -194,12 +196,14 @@ if(!$error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(fieldExist('hide_char', 'players')) {
|
if(fieldExist('hide_char', 'players')) {
|
||||||
|
if(!fieldExist('hidden', 'players')) {
|
||||||
if(query("ALTER TABLE `players` CHANGE `hide_char` `hidden` TINYINT(1) NOT NULL DEFAULT 0;")) {
|
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$', 'players.hide_char', $locale['step_database_changing_field']);
|
||||||
$tmp = str_replace('$FIELD_NEW$', 'players.hidden', $tmp);
|
$tmp = str_replace('$FIELD_NEW$', 'players.hidden', $tmp);
|
||||||
success($tmp);
|
success($tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if(!fieldExist('hidden', 'players')) {
|
else if(!fieldExist('hidden', 'players')) {
|
||||||
if(query("ALTER TABLE `players` ADD `hidden` TINYINT(1) NOT NULL DEFAULT 0;"))
|
if(query("ALTER TABLE `players` ADD `hidden` TINYINT(1) NOT NULL DEFAULT 0;"))
|
||||||
success($locale['step_database_adding_field'] . ' players.hidden...');
|
success($locale['step_database_adding_field'] . ' players.hidden...');
|
||||||
|
@ -146,8 +146,8 @@ else {
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if(!isset($_SESSION['installed'])) {
|
if(!isset($_SESSION['installed'])) {
|
||||||
file_get_contents('http://my-aac.org/report_install.php?v=' . MYAAC_VERSION);
|
file_get_contents('http://my-aac.org/report_install.php?v=' . MYAAC_VERSION . '&b=' . urlencode(BASE_URL));
|
||||||
$_SESSION['installed'] = false;
|
$_SESSION['installed'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($_SESSION as $key => $value) {
|
foreach($_SESSION as $key => $value) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user