* update to 0.4.0

* fixed some bugs in bugtracker
* updated database to version 9
This commit is contained in:
slawkens 2017-09-13 15:30:18 +02:00
parent 3a6aab67d5
commit ac3691dc08
74 changed files with 219 additions and 190 deletions

View File

@ -1,3 +1,19 @@
[0.4.0 - 13.09.2017
- added option to add/edit/delete/hide/move forum boards
- added bug_report configurable which can enable/disable bug tracker
- log errors instead of showing them to users with system directories
- fix when $_SERVER['HTTP_ACCEPT_ENCODING'] is not set
- when it fails to load config.lua it will output error also to error.log
- automatically detect json file in .zip instead of basing on filename (admin panel - plugins)
- hopefully fixed the error with "The file you are trying to upload is not a .zip file. Please try again."
- fixed wrong name of table in bugtracker
- fixed some bugs in bugtracker
- added report bug link in templates
- fixed some rare error when user is logged in for longer than 15 minutes and tries to login again
- fixed some grammar errors
- some small improvements
- fixed some separators in kathrine template
[0.3.0 - 28.08.2017]
- added administration panel for screenshots management with auto thumbnail generator and image auto-resizing
- added Twig template engine and moved some html-in-php code to it

View File

@ -21,14 +21,14 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
session_start();
define('MYAAC', true);
define('MYAAC_VERSION', '0.3.0');
define('DATABASE_VERSION', 8);
define('DATABASE_VERSION', 9);
define('TABLE_PREFIX', 'myaac_');
define('START_TIME', microtime(true));
define('MYAAC_OS', (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') ? 'WINDOWS' : (strtoupper(PHP_OS) == 'DARWIN' ? 'MAC' : 'LINUX'));

View File

@ -13,7 +13,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/

View File

@ -21,7 +21,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/

View File

@ -11,15 +11,15 @@ CREATE TABLE `myaac_account_actions`
CREATE TABLE `myaac_bugtracker`
(
`account` VARCHAR(255) NOT NULL,
`type` INT(11) NOT NULL,
`status` INT(11) NOT NULL,
`type` INT(11) NOT NULL DEFAULT 0,
`status` INT(11) NOT NULL DEFAULT 0,
`text` text NOT NULL,
`id` INT(11) NOT NULL,
`subject` VARCHAR(255) NOT NULL,
`reply` INT(11) NOT NULL,
`who` INT(11) NOT NULL,
`id` INT(11) NOT NULL DEFAULT 0,
`subject` VARCHAR(255) NOT NULL DEFAULT '',
`reply` INT(11) NOT NULL DEFAULT 0,
`who` INT(11) NOT NULL DEFAULT 0,
`uid` INT(11) NOT NULL AUTO_INCREMENT,
`tag` INT(11) NOT NULL,
`tag` INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`uid`)
) ENGINE = MyISAM;

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Slawkens <slawkens@gmail.com>
* @author Mark Samman (Talaturen) <marksamman@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Slawkens <slawkens@gmail.com>
* @author Mark Samman (Talaturen) <marksamman@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Slawkens <slawkens@gmail.com>
* @author Mark Samman (Talaturen) <marksamman@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Slawkens <slawkens@gmail.com>
* @author Mark Samman (Talaturen) <marksamman@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

9
system/migrations/9.php Normal file
View File

@ -0,0 +1,9 @@
<?php
$db->query("ALTER TABLE `" . TABLE_PREFIX . "bugtracker` MODIFY `type` INT(11) NOT NULL DEFAULT 0;");
$db->query("ALTER TABLE `" . TABLE_PREFIX . "bugtracker` MODIFY `status` INT(11) NOT NULL DEFAULT 0;");
$db->query("ALTER TABLE `" . TABLE_PREFIX . "bugtracker` MODIFY `id` INT(11) NOT NULL DEFAULT 0;");
$db->query("ALTER TABLE `" . TABLE_PREFIX . "bugtracker` MODIFY `subject` VARCHAR(255) NOT NULL DEFAULT '';");
$db->query("ALTER TABLE `" . TABLE_PREFIX . "bugtracker` MODIFY `reply` INT(11) NOT NULL DEFAULT 0;");
$db->query("ALTER TABLE `" . TABLE_PREFIX . "bugtracker` MODIFY `who` INT(11) NOT NULL DEFAULT 0;");
$db->query("ALTER TABLE `" . TABLE_PREFIX . "bugtracker` MODIFY `tag` INT(11) NOT NULL DEFAULT 0;");
?>

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,14 +6,19 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');
$title = 'Bug tracker';
if($logged)
if(!$logged)
{
echo 'You are not logged in. <a href="?subtopic=accountmanagement&redirect=' . BASE_URL . urlencode('?subtopic=bugtracker') . '">Log in</a> to post on the bug tracker.<br /><br />';
return;
}
$showed = $post = $reply = false;
// type (1 = question; 2 = answer)
// status (1 = open; 2 = new message; 3 = closed;)
@ -22,7 +27,7 @@ if($logged)
$tags = array(1 => "[MAP]", "[WEBSITE]", "[CLIENT]", "[MONSTER]", "[NPC]", "[OTHER]");
if(admin() and $_REQUEST['control'] == "true")
if(admin() and isset($_REQUEST['control']) && $_REQUEST['control'] == "true")
{
if(empty($_REQUEST['id']) and empty($_REQUEST['acc']) or !is_numeric($_REQUEST['acc']) or !is_numeric($_REQUEST['id']) )
$bug[1] = $db->query('SELECT * FROM '.$db->tableName(TABLE_PREFIX . 'bugtracker').' where `type` = 1 order by `uid` desc');
@ -249,7 +254,7 @@ if($logged)
if(!$post)
{
if($_REQUEST['add'] != TRUE)
if(!isset($_REQUEST['add']) || $_REQUEST['add'] != TRUE)
{
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD colspan=2 CLASS=white><B>Bug Tracker</B></TD></TR>';
foreach($bug[1] as $report)
@ -283,7 +288,7 @@ if($logged)
echo '<br><a href="index.php?subtopic=bugtracker&add=true"><b>[ADD REPORT]</b></a>';
}
elseif($_REQUEST['add'] == TRUE)
elseif(isset($_REQUEST['add']) && $_REQUEST['add'] == TRUE)
{
$thread = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'bugtracker` where `account` = '.$acc.' and `type` = 1 order by `id` desc')->fetch();
$id_next = $db->query('SELECT MAX(id) FROM `' . TABLE_PREFIX . 'bugtracker` where `account` = '.$acc.' and `type` = 1')->fetch();
@ -314,7 +319,7 @@ if($logged)
{
$type = 1;
$status = 1;
$INSERT = $db->query('INSERT INTO `' . TABLE_PREFIX . 'bugtracker` (`account`,`id`,`text`,`type`,`subject`,`status`,`tag`) VALUES ('.$db->quote($acc).','.$db->quote($id_next).','.$db->quote($_POST['text']).','.$db->quote($type).','.$db->quote($_POST['subject']).','.$db->quote($status).','.$db->quote($_POST['tags']).')');
$INSERT = $db->query('INSERT INTO `' . TABLE_PREFIX . 'bugtracker` (`account`,`id`,`text`,`type`,`subject`, `reply`,`status`,`tag`) VALUES ('.$db->quote($acc).','.$db->quote($id_next).','.$db->quote($_POST['text']).','.$db->quote($type).','.$db->quote($_POST['subject']).', 0,'.$db->quote($status).','.$db->quote($_POST['tags']).')');
header('Location: index.php?subtopic=bugtracker&id='.$id_next.'');
}
@ -335,9 +340,4 @@ if($logged)
{
echo '<br><br><a href="index.php?subtopic=bugtracker&control=true">[ADMIN PANEL]</a>';
}
}
else
{
echo 'Please enter your account name and your password.<br/><a href="?subtopic=createaccount" >Create an account</a> if you do not have one yet.<br/><br/><form action="?subtopic=bugtracker" method="post" ><div class="TableContainer" > <table class="Table1" cellpadding="0" cellspacing="0" > <div class="CaptionContainer" > <div class="CaptionInnerContainer" > <span class="CaptionEdgeLeftTop" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightTop" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionBorderTop" style="background-image:url('.$template_path.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionVerticalLeft" style="background-image:url('.$template_path.'/images/content/box-frame-vertical.gif);" /></span> <div class="Text" >Account Login</div> <span class="CaptionVerticalRight" style="background-image:url('.$template_path.'/images/content/box-frame-vertical.gif);" /></span> <span class="CaptionBorderBottom" style="background-image:url('.$template_path.'/images/content/table-headline-border.gif);" ></span> <span class="CaptionEdgeLeftBottom" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> <span class="CaptionEdgeRightBottom" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></span> </div> </div> <tr> <td> <div class="InnerTableContainer" > <table style="width:100%;" ><tr><td class="LabelV" ><span >Account Name:</span></td><td style="width:100%;" ><input type="password" name="account_login" SIZE="10" maxlength="10" ></td></tr><tr><td class="LabelV" ><span >Password:</span></td><td><input type="password" name="password_login" size="30" maxlength="29" ></td></tr> </table> </div> </table></div></td></tr><br/><table width="100%" ><tr align="center" ><td><table border="0" cellspacing="0" cellpadding="0" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Submit" alt="Submit" src="'.$template_path.'/images/buttons/_sbutton_submit.gif" ></div></div></td><tr></form></table></td><td><table border="0" cellspacing="0" cellpadding="0" ><form action="?subtopic=lostaccount" method="post" ><tr><td style="border:0px;" ><div class="BigButton" style="background-image:url('.$template_path.'/images/buttons/sbutton.gif)" ><div onMouseOver="MouseOverBigButton(this);" onMouseOut="MouseOutBigButton(this);" ><div class="BigButtonOver" style="background-image:url('.$template_path.'/images/buttons/sbutton_over.gif);" ></div><input class="ButtonText" type="image" name="Account lost?" alt="Account lost?" src="'.$template_path.'/images/buttons/_sbutton_accountlost.gif" ></div></div></td></tr></form></table></td></tr></table>';
}
?>

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
$title = 'Downloads';

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
$_GET['archive'] = true;

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Averatec <pervera.pl & otland.net>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -6,7 +6,7 @@
* @author Gesior <jerzyskalski@wp.pl>
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -5,7 +5,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/
defined('MYAAC') or die('Direct access not allowed!');

View File

@ -3,12 +3,12 @@ defined('MYAAC') or die('Direct access not allowed!');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php echo template_place_holder('head_start'); ?>
<link rel="stylesheet" href="<?php echo $template_path; ?>/style.css" type="text/css" />
<script src="<?php echo $template_path; ?>/menu.js" type="text/javascript"></script>
<head>
<?php echo template_place_holder('head_start'); ?>
<link rel="stylesheet" href="<?php echo $template_path; ?>/style.css" type="text/css" />
<script src="<?php echo $template_path; ?>/menu.js" type="text/javascript"></script>
<script type="text/javascript" src="tools/basic.js"></script>
<script type="text/javascript">
<script type="text/javascript">
var category = '<?php
if(in_array(PAGE, array('news', 'newsarchive')))
echo 'news';
@ -24,41 +24,41 @@ defined('MYAAC') or die('Direct access not allowed!');
echo 'shops';
?>';
</script>
<?php echo template_place_holder('head_end'); ?>
</head>
<?php echo template_place_holder('head_end'); ?>
</head>
<body onload="initMenu();">
<body onload="initMenu();">
<?php echo template_place_holder('body_start'); ?>
<div id="top"></div>
<div id="page">
<!-- Keep all on center of browser -->
<div id="page">
<!-- Keep all on center of browser -->
<!-- Header Section -->
<div id="header"></div>
<!-- End -->
<!-- Header Section -->
<div id="header"></div>
<!-- End -->
<!-- Menu Section -->
<div id="tabs">
<span id="news" onclick="menuSwitch('news');" class="tab-active">Latest News</span>
<span id="account" onclick="menuSwitch('account');" class="tab">Account</span>
<span id="community" onclick="menuSwitch('community');" class="tab">Community</span>
<span id="library" onclick="menuSwitch('library');" class="tab">Library</span>
<?php
if($config['gifts_system'])
<!-- Menu Section -->
<div id="tabs">
<span id="news" onclick="menuSwitch('news');" class="tab-active">Latest News</span>
<span id="account" onclick="menuSwitch('account');" class="tab">Account</span>
<span id="community" onclick="menuSwitch('community');" class="tab">Community</span>
<span id="library" onclick="menuSwitch('library');" class="tab">Library</span>
<?php
if($config['gifts_system'])
{
echo '<span id="shops" onclick="menuSwitch(\'shops\');" class="tab">Shop</span>';
}
?>
</div>
echo '<span id="shops" onclick="menuSwitch(\'shops\');" class="tab">Shop</span>';
}
?>
</div>
<div id="mainsubmenu">
<div id="news-submenu">
<a href="<?php echo $template['link_news']; ?>">Latest News</a>
<span class="separator"></span>
<a href="<?php echo $template['link_news_archive']; ?>">News Archives</a>
</div>
<div id="mainsubmenu">
<div id="news-submenu">
<a href="<?php echo $template['link_news']; ?>">Latest News</a>
<span class="separator"></span>
<a href="<?php echo $template['link_news_archive']; ?>">News Archives</a>
</div>
<div id="account-submenu">
<div id="account-submenu">
<?php
if($logged)
{
@ -75,66 +75,70 @@ defined('MYAAC') or die('Direct access not allowed!');
<a href="<?php echo $template['link_account_manage']; ?>">Login</a>
<span class="separator"></span>
<a href="<?php echo $template['link_account_create']; ?>">Create Account</a>
<span class="separator"></span>
<span class="separator"></span>
<a href="<?php echo $template['link_account_lost']; ?>">Lost Account</a>
<span class="separator"></span>
<span class="separator"></span>
<?php
}
?>
<a href="<?php echo $template['link_rules']; ?>">Server Rules</a>
</div>
<?php if($config['bug_report']): ?>
<span class="separator"></span>
<a href="<?php echo $template['link_bugtracker']; ?>">Report Bug</a>
<?php endif; ?>
</div>
<div id="community-submenu">
<a href="<?php echo $template['link_online']; ?>">Who is Online?</a>
<span class="separator"></span>
<a href="<?php echo $template['link_characters']; ?>">Characters</a>
<span class="separator"></span>
<a href="<?php echo $template['link_guilds']; ?>">Guilds</a>
<?php
if(isset($config['wars'])): ?>
<div id="community-submenu">
<a href="<?php echo $template['link_online']; ?>">Who is Online?</a>
<span class="separator"></span>
<a href="<?php echo $template['link_characters']; ?>">Characters</a>
<span class="separator"></span>
<a href="<?php echo $template['link_guilds']; ?>">Guilds</a>
<?php
if(isset($config['wars'])): ?>
<span class="separator"></span>
<a href="<?php echo $template['link_wars']; ?>">Wars</a>
<?php endif; ?>
<?php endif; ?>
<span class="separator"></span>
<a href="<?php echo $template['link_highscores']; ?>">Highscores</a>
<span class="separator"></span>
<a href="<?php echo $template['link_lastkills']; ?>">Last Deaths</a>
<a href="<?php echo $template['link_highscores']; ?>">Highscores</a>
<span class="separator"></span>
<a href="<?php echo $template['link_lastkills']; ?>">Last Deaths</a>
<?php if(fieldExist('name', 'houses')): ?>
<span class="separator"></span>
<a href="<?php echo $template['link_houses']; ?>">Houses</a>
<span class="separator"></span>
<a href="<?php echo $template['link_houses']; ?>">Houses</a>
<?php endif;
if($config['otserv_version'] == TFS_03): ?>
<span class="separator"></span>
<a href="<?php echo $template['link_bans']; ?>">Bans</a>
<a href="<?php echo $template['link_bans']; ?>">Bans</a>
<?php endif;
if($config['forum'] != ''): ?>
if($config['forum'] != ''): ?>
<span class="separator"></span>
<?php echo $template['link_forum']; ?>Forum</a>
<?php endif; ?>
<?php endif; ?>
<span class="separator"></span>
<a href="<?php echo $template['link_team']; ?>">Team</a>
</div>
<a href="<?php echo $template['link_team']; ?>">Team</a>
</div>
<div id="library-submenu">
<a href="<?php echo $template['link_creatures']; ?>">Monsters</a>
<span class="separator"></span>
<a href="<?php echo $template['link_spells']; ?>">Spells</a>
<span class="separator"></span>
<a href="<?php echo $template['link_serverInfo']; ?>">Server Info</a>
<span class="separator"></span>
<a href="<?php echo $template['link_downloads']; ?>">Downloads</a>
<span class="separator"></span>
<a href="<?php echo $template['link_commands']; ?>">Commands</a>
<span class="separator"></span>
<a href="<?php echo $template['link_movies']; ?>">Movies</a>
<span class="separator"></span>
<a href="<?php echo $template['link_screenshots']; ?>">Screenshots</a>
<span class="separator"></span>
<a href="<?php echo $template['link_experienceTable']; ?>">Experience Table</a>
<span class="separator"></span>
<a href="<?php echo $template['link_faq']; ?>">FAQ</a>
</div>
<?php
<div id="library-submenu">
<a href="<?php echo $template['link_creatures']; ?>">Monsters</a>
<span class="separator"></span>
<a href="<?php echo $template['link_spells']; ?>">Spells</a>
<span class="separator"></span>
<a href="<?php echo $template['link_serverInfo']; ?>">Server Info</a>
<span class="separator"></span>
<a href="<?php echo $template['link_downloads']; ?>">Downloads</a>
<span class="separator"></span>
<a href="<?php echo $template['link_commands']; ?>">Commands</a>
<span class="separator"></span>
<a href="<?php echo $template['link_movies']; ?>">Movies</a>
<span class="separator"></span>
<a href="<?php echo $template['link_screenshots']; ?>">Screenshots</a>
<span class="separator"></span>
<a href="<?php echo $template['link_experienceTable']; ?>">Experience Table</a>
<span class="separator"></span>
<a href="<?php echo $template['link_faq']; ?>">FAQ</a>
</div>
<?php
if($config['gifts_system'])
{
echo '
@ -147,17 +151,17 @@ defined('MYAAC') or die('Direct access not allowed!');
echo '</div>';
}
?>
</div>
<!-- End -->
</div>
<!-- End -->
<!-- Content Section -->
<div id="content">
<div id="margins">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><a href="<?php echo $template['link_news']; ?>"><?php echo $config['lua']['serverName']; ?></a> &raquo; <?php echo $title; ?></td>
<td>
<?php
<!-- Content Section -->
<div id="content">
<div id="margins">
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td><a href="<?php echo $template['link_news']; ?>"><?php echo $config['lua']['serverName']; ?></a> &raquo; <?php echo $title; ?></td>
<td>
<?php
if($status['online'])
echo '
<font color="green"><b>Server Online</b></font> &raquo;
@ -166,28 +170,28 @@ defined('MYAAC') or die('Direct access not allowed!');
else
echo '<font color="red"><b>Server Offline</b></font>';
?>
</td>
</tr>
</table>
<hr noshade="noshade" size="1" />
<div class="Content"><div id="ContentHelper">
</td>
</tr>
</table>
<hr noshade="noshade" size="1" />
<div class="Content"><div id="ContentHelper">
<?php echo template_place_holder('center_top'); ?>
<?php echo $content; ?>
</div></div>
</div>
</div>
<div id="content-bot"></div>
<div id="copyrights">
<p><?php echo template_footer(); ?></p>
<?php echo $content; ?>
</div></div>
</div>
</div>
<div id="content-bot"></div>
<div id="copyrights">
<p><?php echo template_footer(); ?></p>
<?php
if($config['template_allow_change'])
echo '<font color="white">Template:</font><br/>' . template_form();
?>
</div>
<!-- End -->
</div>
<!-- End -->
<!-- End -->
</div>
<?php echo template_place_holder('body_end'); ?>
</body>
<!-- End -->
</div>
<?php echo template_place_holder('body_end'); ?>
</body>
</html>

View File

@ -6,7 +6,7 @@
* @package MyAAC
* @author Slawkens <slawkens@gmail.com>
* @copyright 2017 MyAAC
* @version 0.3.0
* @version 0.4.0
* @link http://my-aac.org
*/