mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
patch some changes
add contributors
This commit is contained in:
parent
c03b041f40
commit
92569b7965
14
CONTRIBUTORS.txt
Normal file
14
CONTRIBUTORS.txt
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
# automatically exported using this script:
|
||||||
|
# git log --all --format='%cN <%cE>' | sort -u > contributors
|
||||||
|
# in no particular order
|
||||||
|
# cleaned for readability
|
||||||
|
|
||||||
|
Evil Puncker <EPuncker@users.noreply.github.com>
|
||||||
|
Fernando Matos <fernando@pixele.com.br>
|
||||||
|
Lee <42119604+Leesneaks@users.noreply.github.com>
|
||||||
|
caio <caio.zucoli@gmail.com>
|
||||||
|
slawkens <slawkens@gmail.com>
|
||||||
|
tobi132 <52947952+tobi132@users.noreply.github.com>
|
||||||
|
vankk <nwtr.otland@hotmail.com>
|
||||||
|
whiteblXK <krzys16001@gmail.com>
|
||||||
|
xitobuh <jonas.hockert92@gmail.com>
|
3
CREDITS
3
CREDITS
@ -1,2 +1,3 @@
|
|||||||
* Gesior.pl (2007 - 2008)
|
* Gesior.pl (2007 - 2008)
|
||||||
* Slawkens (2009 - 2020)
|
* Slawkens (2009 - 2023)
|
||||||
|
* Contributors listed in CONTRIBUTORS.txt
|
||||||
|
@ -9,6 +9,8 @@
|
|||||||
|
|
||||||
MyAAC is a free and open-source Automatic Account Creator (AAC) 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) 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
|
||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
- PHP 5.6 or later
|
- PHP 5.6 or later
|
||||||
@ -57,12 +59,13 @@ That means, we use:
|
|||||||
|
|
||||||
- Some compatibility issues with some exotical distibutions.
|
- Some compatibility issues with some exotical distibutions.
|
||||||
|
|
||||||
|
|
||||||
### Contributing
|
### Contributing
|
||||||
|
|
||||||
Contributions are more than welcome.
|
Contributions are more than welcome.
|
||||||
|
|
||||||
Pull requests should be made to the Dev branch as that is the working branch, master is for release code.
|
Pull requests should be made to the *develop* branch as that is the working branch, master is for release code.
|
||||||
|
|
||||||
|
Bug fixes to current release should be done to master branch.
|
||||||
|
|
||||||
Look: [Contributing](https://github.com/otsoft/myaac/wiki/Contributing) in our wiki.
|
Look: [Contributing](https://github.com/otsoft/myaac/wiki/Contributing) in our wiki.
|
||||||
|
|
||||||
|
@ -2,6 +2,9 @@
|
|||||||
// few things we'll need
|
// few things we'll need
|
||||||
require '../common.php';
|
require '../common.php';
|
||||||
|
|
||||||
|
define('ADMIN_PANEL', true);
|
||||||
|
define('MYAAC_ADMIN', true);
|
||||||
|
|
||||||
if(file_exists(BASE . 'config.local.php')) {
|
if(file_exists(BASE . 'config.local.php')) {
|
||||||
require_once BASE . 'config.local.php';
|
require_once BASE . 'config.local.php';
|
||||||
}
|
}
|
||||||
@ -12,8 +15,6 @@ if(file_exists(BASE . 'install') && (!isset($config['installed']) || !$config['i
|
|||||||
throw new RuntimeException('Setup detected that <b>install/</b> directory exists. Please visit <a href="' . BASE_URL . 'install">this</a> url to start MyAAC Installation.<br/>Delete <b>install/</b> directory if you already installed MyAAC.<br/>Remember to REFRESH this page when you\'re done!');
|
throw new RuntimeException('Setup detected that <b>install/</b> directory exists. Please visit <a href="' . BASE_URL . 'install">this</a> url to start MyAAC Installation.<br/>Delete <b>install/</b> directory if you already installed MyAAC.<br/>Remember to REFRESH this page when you\'re done!');
|
||||||
}
|
}
|
||||||
|
|
||||||
define('ADMIN_PANEL', true);
|
|
||||||
|
|
||||||
$content = '';
|
$content = '';
|
||||||
|
|
||||||
// validate page
|
// validate page
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('MYAAC_ADMIN', true);
|
||||||
|
|
||||||
require '../../common.php';
|
require '../../common.php';
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
require SYSTEM . 'init.php';
|
require SYSTEM . 'init.php';
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('MYAAC_ADMIN', true);
|
||||||
|
|
||||||
require '../../common.php';
|
require '../../common.php';
|
||||||
require SYSTEM . 'init.php';
|
require SYSTEM . 'init.php';
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
|
@ -2,10 +2,10 @@ We have detected that you don't have access to write to the system/cache directo
|
|||||||
|
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.console {
|
.console {
|
||||||
font-family:Courier;
|
font-family: Courier,serif;
|
||||||
color: #CCCCCC;
|
color: #CCCCCC;
|
||||||
background: #000000;
|
background: #000000;
|
||||||
border: 3px double #CCCCCC;
|
border: 3px double #CCCCCC;
|
||||||
padding: 0px;
|
padding: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
@ -82,6 +82,7 @@ if(!$error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($saved) {
|
if($saved) {
|
||||||
|
success($locale['step_database_config_saved']);
|
||||||
if(!$error) {
|
if(!$error) {
|
||||||
$_SESSION['saved'] = true;
|
$_SESSION['saved'] = true;
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('MYAAC_INSTALL', true);
|
||||||
|
|
||||||
require_once '../../common.php';
|
require_once '../../common.php';
|
||||||
|
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
|
define('MYAAC_INSTALL', true);
|
||||||
|
|
||||||
require_once '../../common.php';
|
require_once '../../common.php';
|
||||||
|
|
||||||
require SYSTEM . 'functions.php';
|
require SYSTEM . 'functions.php';
|
||||||
|
@ -61,8 +61,8 @@ class OTS_MonstersList implements Iterator, Countable, ArrayAccess
|
|||||||
|
|
||||||
// check if monsters.xml exist
|
// check if monsters.xml exist
|
||||||
if(!@file_exists($this->monstersPath . 'monsters.xml')) {
|
if(!@file_exists($this->monstersPath . 'monsters.xml')) {
|
||||||
log_append('error.log', '[OTS_MonstersList.php] Fatal error: Cannot load monsters.xml. File does not exist. (' . $this->monstersPath . 'monsters.xml' . '). Error: ' . print_r(error_get_last(), true));
|
log_append('error.log', '[OTS_MonstersList.php] Fatal error: Cannot load monsters.xml. File does not exist. (' . $this->monstersPath . 'monsters.xml' . ').');
|
||||||
throw new Exception('Error: Cannot load monsters.xml. File not found. More info in system/logs/error.log file.');
|
throw new Exception('Error: Cannot load monsters.xml. File not found.');
|
||||||
}
|
}
|
||||||
|
|
||||||
// loads monsters mapping file
|
// loads monsters mapping file
|
||||||
|
@ -95,8 +95,8 @@ class OTS_SpellsList implements IteratorAggregate, Countable
|
|||||||
{
|
{
|
||||||
// check if spells.xml exist
|
// check if spells.xml exist
|
||||||
if(!@file_exists($file)) {
|
if(!@file_exists($file)) {
|
||||||
log_append('error.log', '[OTS_SpellsList.php] Fatal error: Cannot load spells.xml. File does not exist. (' . $file . '). Error: ' . print_r(error_get_last(), true));
|
log_append('error.log', '[OTS_SpellsList.php] Fatal error: Cannot load spells.xml. File does not exist. (' . $file . ').');
|
||||||
throw new Exception('Error: Cannot load spells.xml. File not found. More info in system/logs/error.log file.');
|
throw new Exception('Error: Cannot load spells.xml. File not found.');
|
||||||
}
|
}
|
||||||
|
|
||||||
// loads monsters mapping file
|
// loads monsters mapping file
|
||||||
|
@ -20,7 +20,7 @@ $locale['not_loaded'] = 'Not loaded';
|
|||||||
$locale['loading_spinner'] = 'Please wait, installing...';
|
$locale['loading_spinner'] = 'Please wait, installing...';
|
||||||
$locale['importing_spinner'] = 'Please wait, importing data...';
|
$locale['importing_spinner'] = 'Please wait, importing data...';
|
||||||
$locale['please_fill_all'] = 'Please fill all inputs!';
|
$locale['please_fill_all'] = 'Please fill all inputs!';
|
||||||
$locale['already_installed'] = 'MyAAC has been already installed. Please delete <b>install/<b/> directory. If you want to reinstall MyAAC - please delete <strong>config.local.php</strong> file from the main directory and refresh the page.';
|
$locale['already_installed'] = 'MyAAC has been already installed. Please delete <b>install/</b> directory. If you want to reinstall MyAAC - please delete <strong>config.local.php</strong> file from the main directory and refresh the page.';
|
||||||
|
|
||||||
// welcome
|
// welcome
|
||||||
$locale['step_welcome'] = 'Welcome';
|
$locale['step_welcome'] = 'Welcome';
|
||||||
@ -63,6 +63,7 @@ $locale['step_config_usage_desc'] = 'Allow MyAAC to report anonymous usage stati
|
|||||||
$locale['step_database'] = 'Import schema';
|
$locale['step_database'] = 'Import schema';
|
||||||
$locale['step_database_title'] = 'Import MySQL schema';
|
$locale['step_database_title'] = 'Import MySQL schema';
|
||||||
$locale['step_database_importing'] = 'Your database is MySQL. Database name is: "$DATABASE_NAME$". Importing schema now...';
|
$locale['step_database_importing'] = 'Your database is MySQL. Database name is: "$DATABASE_NAME$". Importing schema now...';
|
||||||
|
$locale['step_database_config_saved'] = 'Local configuration has been saved into file: config.local.php';
|
||||||
$locale['step_database_error_path'] = 'Please specify server path.';
|
$locale['step_database_error_path'] = 'Please specify server path.';
|
||||||
$locale['step_database_error_config'] = 'Cannot find config.lua file. Is your server path correct? Go back and check again.';
|
$locale['step_database_error_config'] = 'Cannot find config.lua file. Is your server path correct? Go back and check again.';
|
||||||
$locale['step_database_error_database_empty'] = 'Cannot determine database type from config.lua. Your OTS is unsupported by this AAC.';
|
$locale['step_database_error_database_empty'] = 'Cannot determine database type from config.lua. Your OTS is unsupported by this AAC.';
|
||||||
|
@ -59,6 +59,7 @@ $locale['step_config_usage_desc'] = 'Zezwalaj MyAAC na raportowanie anonimowych
|
|||||||
$locale['step_database'] = 'Baza Danych';
|
$locale['step_database'] = 'Baza Danych';
|
||||||
$locale['step_database_title'] = 'Baza MySQL';
|
$locale['step_database_title'] = 'Baza MySQL';
|
||||||
$locale['step_database_importing'] = 'Twoja baza to MySQL. Nazwa bazy danych to: "$DATABASE_NAME$". Importowanie schematu...';
|
$locale['step_database_importing'] = 'Twoja baza to MySQL. Nazwa bazy danych to: "$DATABASE_NAME$". Importowanie schematu...';
|
||||||
|
$locale['step_database_config_saved'] = 'Lokalna konfiguracja została zapisana do pliku: config.local.php';
|
||||||
$locale['step_database_error_path'] = 'Proszę podać ścieżkę do serwera.';
|
$locale['step_database_error_path'] = 'Proszę podać ścieżkę do serwera.';
|
||||||
$locale['step_database_error_config'] = 'Nie można znaleźć pliku config.lua. Czy ścieżka do katalogu serwera jest poprawna? Wróć się i sprawdź ponownie.';
|
$locale['step_database_error_config'] = 'Nie można znaleźć pliku config.lua. Czy ścieżka do katalogu serwera jest poprawna? Wróć się i sprawdź ponownie.';
|
||||||
$locale['step_database_error_database_empty'] = 'Nie można wykryć typu bazy danych z pliku config.lua. Prawdopodobnie Twój OTS nie jest wspierany przez ten AAC.';
|
$locale['step_database_error_database_empty'] = 'Nie można wykryć typu bazy danych z pliku config.lua. Prawdopodobnie Twój OTS nie jest wspierany przez ten AAC.';
|
||||||
|
@ -42,13 +42,12 @@ $locale['step_config'] = 'Konfiguration';
|
|||||||
$locale['step_config_title'] = 'Grundläggande konfiguration';
|
$locale['step_config_title'] = 'Grundläggande konfiguration';
|
||||||
$locale['step_config_server_path'] = 'Server mapp';
|
$locale['step_config_server_path'] = 'Server mapp';
|
||||||
$locale['step_config_server_path_desc'] = 'Mappen som innhåller exe filen till The Forgotten Server, där du har din config.lua.';
|
$locale['step_config_server_path_desc'] = 'Mappen som innhåller exe filen till The Forgotten Server, där du har din config.lua.';
|
||||||
|
|
||||||
$locale['step_config_mail_admin'] = 'Admin E-Post';
|
$locale['step_config_mail_admin'] = 'Admin E-Post';
|
||||||
$locale['step_config_mail_admin_desc'] = 'Adress där E-Post från kontaktförmolär kommer att leveraras, till exempel admin@gmail.com';
|
$locale['step_config_mail_admin_desc'] = 'Adress där E-Post från kontaktförmolär kommer att leveraras, till exempel admin@gmail.com';
|
||||||
|
|
||||||
$locale['step_config_mail_admin_error'] = 'Admin E-Post är inte korrekt.';
|
$locale['step_config_mail_admin_error'] = 'Admin E-Post är inte korrekt.';
|
||||||
$locale['step_config_mail_address'] = 'Server E-Post';
|
$locale['step_config_mail_address'] = 'Server E-Post';
|
||||||
$locale['step_config_mail_address_desc'] = 'Adress som kommer att användas för utgående email (från:), till exempel no-reply@your-server.org';
|
$locale['step_config_mail_address_desc'] = 'Adress som kommer att användas för utgående email (från:), till exempel no-reply@your-server.org';
|
||||||
|
|
||||||
$locale['step_config_mail_address_error'] = 'Server E-Post är inte korrekt.';
|
$locale['step_config_mail_address_error'] = 'Server E-Post är inte korrekt.';
|
||||||
$locale['step_config_client'] = 'Klientversion';
|
$locale['step_config_client'] = 'Klientversion';
|
||||||
$locale['step_config_client_desc'] = 'Används för nerladdningssidan och teman.';
|
$locale['step_config_client_desc'] = 'Används för nerladdningssidan och teman.';
|
||||||
|
@ -147,9 +147,10 @@ if($player->isLoaded() && !$player->isDeleted())
|
|||||||
if($config['characters']['skills'])
|
if($config['characters']['skills'])
|
||||||
{
|
{
|
||||||
if($db->hasColumn('players', 'skill_fist')) {// tfs 1.0+
|
if($db->hasColumn('players', 'skill_fist')) {// tfs 1.0+
|
||||||
$skills_db = $db->query('SELECT `skill_fist`, `skill_club`, `skill_sword`, `skill_axe`, `skill_dist`, `skill_shielding`, `skill_fishing` FROM `players` WHERE `id` = ' . $player->getId())->fetch();
|
$skills_db = $db->query('SELECT `maglevel`, `skill_fist`, `skill_club`, `skill_sword`, `skill_axe`, `skill_dist`, `skill_shielding`, `skill_fishing` FROM `players` WHERE `id` = ' . $player->getId())->fetch();
|
||||||
|
|
||||||
$skill_ids = array(
|
$skill_ids = array(
|
||||||
|
POT::SKILL_MAGIC => 'maglevel',
|
||||||
POT::SKILL_FIST => 'skill_fist',
|
POT::SKILL_FIST => 'skill_fist',
|
||||||
POT::SKILL_CLUB => 'skill_club',
|
POT::SKILL_CLUB => 'skill_club',
|
||||||
POT::SKILL_SWORD => 'skill_sword',
|
POT::SKILL_SWORD => 'skill_sword',
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
<img src="{{ constant('BASE_URL') }}images/loading_spinner.gif" height="32" width="32"/>
|
<img src="{{ constant('BASE_URL') }}images/loading_spinner.gif" height="32" width="32"/>
|
||||||
{{ message }}
|
{{ message }}
|
||||||
</div>
|
</div>
|
||||||
<script type="text/javascript" src="tools/installer.js"></script>
|
<script type="text/javascript" src="{{ constant('BASE_URL') }}tools/installer.js"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
$(function() {
|
$(function() {
|
||||||
performInstall('{{ url }}');
|
performInstall('{{ url }}');
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<tr bgcolor="{{ getStyle(i) }}">
|
<tr bgcolor="{{ getStyle(i) }}">
|
||||||
<td width=4%>
|
<td width=4%>
|
||||||
<div style="text-align:center">
|
<div style="text-align:center">
|
||||||
<img src="{{ template_path }}/images/news/icon_{{ news.icon_id }}_small.gif"/>
|
<img src="{{ constant('BASE_URL') }}images/news/icon_{{ news.icon_id }}_small.gif"/>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>{{ news.date|date('j.n.Y') }}</td>
|
<td>{{ news.date|date('j.n.Y') }}</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user