mirror of
https://github.com/slawkens/myaac.git
synced 2025-09-14 12:33:35 +02:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
a708abce03 | ||
![]() |
f46f7d61e7 | ||
![]() |
1578d186c2 | ||
![]() |
af1ec6722b | ||
![]() |
5202298b60 | ||
![]() |
ed2f325ce1 | ||
![]() |
a467b55054 | ||
![]() |
f9458da291 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1,6 +1,9 @@
|
|||||||
Thumbs.db
|
Thumbs.db
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
|
node_modules
|
||||||
|
vendor
|
||||||
|
composer.lock
|
||||||
|
|
||||||
releases
|
releases
|
||||||
config.local.php
|
config.local.php
|
||||||
|
@@ -1,5 +1,10 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## [0.7.13 - not-release-yet]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
* Ignore arrays in config.lua (fixes experienceStages loading)
|
||||||
|
|
||||||
## [0.7.12 - 18.02.2020]
|
## [0.7.12 - 18.02.2020]
|
||||||
### Fixed
|
### Fixed
|
||||||
* change guild nick function causing crash on TFS 1.x because of invalid characters being accepted
|
* change guild nick function causing crash on TFS 1.x because of invalid characters being accepted
|
||||||
|
@@ -1,4 +1,10 @@
|
|||||||
|
# PLEASE DO NOT USE THIS BRANCH/VERSION
|
||||||
|
## It is discontinued and won't receive any updates
|
||||||
|
## Switch to master branch instead
|
||||||
|
## It's keept only for archival purposes
|
||||||
|
|
||||||
# myaac
|
# myaac
|
||||||
|
|
||||||
MyAAC is a free and open-source Automatic Account Creator (AAC) and Content Management System (CMS) written in PHP. It is a fork of the [Gesior](https://github.com/gesior/Gesior2012) project. It supports only MySQL databases.
|
MyAAC is a free and open-source Automatic Account Creator (AAC) and Content Management System (CMS) written in PHP. It is a fork of the [Gesior](https://github.com/gesior/Gesior2012) project. It supports only MySQL databases.
|
||||||
|
|
||||||
Official website: https://my-aac.org
|
Official website: https://my-aac.org
|
||||||
|
37
TODO
37
TODO
@@ -1,37 +0,0 @@
|
|||||||
// MyAAC TODO
|
|
||||||
|
|
||||||
0.*
|
|
||||||
* support duplicated vocation names with different ids
|
|
||||||
* plugins: option to define custom requirements check in json file, to check if system meets the requirement
|
|
||||||
* add support for defining max myaac version in plugin.json file
|
|
||||||
* cache Menus in templates
|
|
||||||
* don't show error indicators on first time load - createaccount page
|
|
||||||
* update Twig to the latest version from 1.x branch
|
|
||||||
* semantic versioning support for plugins (github.com/composer/semver)
|
|
||||||
* add some notice to the user that installing step "Import Schema" will take some time
|
|
||||||
* check user IP on installing to prevent install by random user
|
|
||||||
|
|
||||||
1.0:
|
|
||||||
* i18n support (issue #1 on github)
|
|
||||||
* New Admin Panel layout and interface
|
|
||||||
* add changelog management interface
|
|
||||||
* remove tibiacom template, and include it as a plugin
|
|
||||||
|
|
||||||
2.0
|
|
||||||
* remove compat functions
|
|
||||||
* folder restructure:
|
|
||||||
* var/ (for logs, cache and data), config/, bin, public/ (for index and images and other public content), system/ (for php files and classess)
|
|
||||||
* rename templates to layouts as templates is meant to be used for twig templates
|
|
||||||
* change gifts_system to shop_system configurable
|
|
||||||
* move most used options in system/templates dir to separate directories (more transparent)
|
|
||||||
|
|
||||||
At any time between (version not specified):
|
|
||||||
* better news archive with search function (like on tibia.com)
|
|
||||||
* guild wars management (issue #13 on github)
|
|
||||||
* update account.management page to be more realistic (like on tibia.com)
|
|
||||||
* update guilds page to be more realistic (like on tibia.com)
|
|
||||||
* possibility to add extra cache engines with plugins
|
|
||||||
* preferably configurable (enable/disable) forum TinyMCE editor
|
|
||||||
* new cache engine - plain php, is good with pure php 7.0+ and opcache
|
|
||||||
* OTAdmin support in Admin Panel
|
|
||||||
* database towns table support for TFS 1.3
|
|
@@ -26,7 +26,7 @@
|
|||||||
session_start();
|
session_start();
|
||||||
|
|
||||||
define('MYAAC', true);
|
define('MYAAC', true);
|
||||||
define('MYAAC_VERSION', '0.7.12');
|
define('MYAAC_VERSION', '0.7.13-dev');
|
||||||
define('DATABASE_VERSION', 22);
|
define('DATABASE_VERSION', 22);
|
||||||
define('TABLE_PREFIX', 'myaac_');
|
define('TABLE_PREFIX', 'myaac_');
|
||||||
define('START_TIME', microtime(true));
|
define('START_TIME', microtime(true));
|
||||||
|
@@ -895,6 +895,13 @@ function load_config_lua($filename)
|
|||||||
if(count($lines) > 0)
|
if(count($lines) > 0)
|
||||||
foreach($lines as $ln => $line)
|
foreach($lines as $ln => $line)
|
||||||
{
|
{
|
||||||
|
$line = trim($line);
|
||||||
|
if(@$line[0] === '{' || @$line[0] === '}') {
|
||||||
|
// arrays are not supported yet
|
||||||
|
// just ignore the error
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$tmp_exp = explode('=', $line, 2);
|
$tmp_exp = explode('=', $line, 2);
|
||||||
if(strpos($line, 'dofile') !== false)
|
if(strpos($line, 'dofile') !== false)
|
||||||
{
|
{
|
||||||
@@ -921,9 +928,11 @@ function load_config_lua($filename)
|
|||||||
$result[$key] = (string) substr(substr($value, 1), 0, -1);
|
$result[$key] = (string) substr(substr($value, 1), 0, -1);
|
||||||
elseif(in_array($value, array('true', 'false')))
|
elseif(in_array($value, array('true', 'false')))
|
||||||
$result[$key] = ($value == 'true') ? true : false;
|
$result[$key] = ($value == 'true') ? true : false;
|
||||||
elseif(substr($value, 0 , 1) == '{' && substr($value, -1 , 1) == '}') {
|
//elseif(substr($value, 0 , 1) == '{' && substr($value, -1 , 1) == '}') {
|
||||||
|
elseif(@$value[0] === '{') {
|
||||||
// arrays are not supported yet
|
// arrays are not supported yet
|
||||||
// just ignore the error
|
// just ignore the error
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@@ -43,7 +43,7 @@ else if(isset($_FILES["plugin"]["name"]))
|
|||||||
break;
|
break;
|
||||||
case UPLOAD_ERR_INI_SIZE:
|
case UPLOAD_ERR_INI_SIZE:
|
||||||
case UPLOAD_ERR_FORM_SIZE:
|
case UPLOAD_ERR_FORM_SIZE:
|
||||||
$error .= ' - file too large (limit of '.ini_get('upload_max_filesize').' bytes).';
|
$error .= ' - file too large (limit of '.ini_get('upload_max_filesize').' bytes). You can enlarge the limits by changing "upload_max_filesize" in php.ini';
|
||||||
break;
|
break;
|
||||||
case UPLOAD_ERR_PARTIAL:
|
case UPLOAD_ERR_PARTIAL:
|
||||||
$error .= ' - file upload was not completed.';
|
$error .= ' - file upload was not completed.';
|
||||||
|
@@ -268,7 +268,7 @@ if($config['highscores_country_box'])
|
|||||||
echo
|
echo
|
||||||
'<TABLE BORDER=0 width="100%" CELLPADDING=4 CELLSPACING=1>
|
'<TABLE BORDER=0 width="100%" CELLPADDING=4 CELLSPACING=1>
|
||||||
<TR BGCOLOR="' . $config['vdarkborder'] . '">
|
<TR BGCOLOR="' . $config['vdarkborder'] . '">
|
||||||
<TD CLASS=whites><B>Choose a country</B></TD>
|
<TD CLASS=white><B>Choose a country</B></TD>
|
||||||
</TR>
|
</TR>
|
||||||
<TR BGCOLOR="'.$config['lightborder'].'">
|
<TR BGCOLOR="'.$config['lightborder'].'">
|
||||||
<TD>
|
<TD>
|
||||||
@@ -284,7 +284,7 @@ if($config['highscores_country_box'])
|
|||||||
echo '
|
echo '
|
||||||
<TABLE BORDER=0 width="100%" CELLPADDING=4 CELLSPACING=1>
|
<TABLE BORDER=0 width="100%" CELLPADDING=4 CELLSPACING=1>
|
||||||
<TR BGCOLOR="'.$config['vdarkborder'].'">
|
<TR BGCOLOR="'.$config['vdarkborder'].'">
|
||||||
<TD CLASS=whites><B>Choose a skill</B></TD>
|
<TD CLASS=white><B>Choose a skill</B></TD>
|
||||||
</TR>
|
</TR>
|
||||||
<TR BGCOLOR="'.$config['lightborder'].'">
|
<TR BGCOLOR="'.$config['lightborder'].'">
|
||||||
<TD>';
|
<TD>';
|
||||||
@@ -315,7 +315,7 @@ if($config['highscores_vocation_box'])
|
|||||||
echo
|
echo
|
||||||
'<table border="0" width="100%" cellpadding="4" cellspacing="1">
|
'<table border="0" width="100%" cellpadding="4" cellspacing="1">
|
||||||
<tr bgcolor="' . $config['vdarkborder'] . '">
|
<tr bgcolor="' . $config['vdarkborder'] . '">
|
||||||
<td class=whites><b>Choose a vocation</b></td>
|
<td class="white"><b>Choose a vocation</b></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr bgcolor="'.$config['lightborder'].'">
|
<tr bgcolor="'.$config['lightborder'].'">
|
||||||
<td>
|
<td>
|
||||||
|
@@ -84,7 +84,7 @@ if(tableExist('player_killers')) // tfs 0.3
|
|||||||
else {
|
else {
|
||||||
//$players_deaths = $db->query("SELECT `p`.`name` AS `victim`, `player_deaths`.`killed_by` as `killed_by`, `player_deaths`.`time` as `time`, `player_deaths`.`is_player` as `is_player`, `player_deaths`.`level` as `level` FROM `player_deaths`, `players` as `d` INNER JOIN `players` as `p` ON player_deaths.player_id = p.id WHERE player_deaths.`is_player`='1' ORDER BY `time` DESC LIMIT " . $config['last_kills_limit'] . ";");
|
//$players_deaths = $db->query("SELECT `p`.`name` AS `victim`, `player_deaths`.`killed_by` as `killed_by`, `player_deaths`.`time` as `time`, `player_deaths`.`is_player` as `is_player`, `player_deaths`.`level` as `level` FROM `player_deaths`, `players` as `d` INNER JOIN `players` as `p` ON player_deaths.player_id = p.id WHERE player_deaths.`is_player`='1' ORDER BY `time` DESC LIMIT " . $config['last_kills_limit'] . ";");
|
||||||
|
|
||||||
$players_deaths = $db->query("SELECT `p`.`name` AS `victim`, `d`.`killed_by` as `killed_by`, `d`.`time` as `time`, `d`.`level`, `d`.`is_player` FROM `player_deaths` as `d` INNER JOIN `players` as `p` ON d.player_id = p.id ORDER BY `time` DESC LIMIT " . $config['last_kills_limit'] . ";");
|
$players_deaths = $db->query("SELECT `p`.`name` AS `victim`, `d`.`killed_by` as `killed_by`, `d`.`time` as `time`, `d`.`level`, `d`.`is_player`, `d`.`mostdamage_by` as `mostdamage_by`, `d`.`mostdamage_is_player` as `mostdamage_is_player` FROM `player_deaths` as `d` INNER JOIN `players` as `p` ON d.player_id = p.id ORDER BY `time` DESC LIMIT " . $config['last_kills_limit'] . ";");
|
||||||
|
|
||||||
if(!empty($players_deaths))
|
if(!empty($players_deaths))
|
||||||
{
|
{
|
||||||
@@ -96,6 +96,14 @@ $players_deaths = $db->query("SELECT `p`.`name` AS `victim`, `d`.`killed_by` as
|
|||||||
else
|
else
|
||||||
$players_rows .= $death['killed_by'];
|
$players_rows .= $death['killed_by'];
|
||||||
|
|
||||||
|
if (!empty($death['mostdamage_by'])) {
|
||||||
|
$player_rows .= ' and ';
|
||||||
|
if($death['mostdamage_is_player'] == '1')
|
||||||
|
$players_rows .= getPlayerLink($death['mostdamage_by']);
|
||||||
|
else
|
||||||
|
$players_rows .= $death['mostdamage_by'];
|
||||||
|
}
|
||||||
|
|
||||||
$players_rows .= '.</TR>';
|
$players_rows .= '.</TR>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user