mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 01:09:21 +02:00
Fixes
* fixed bug with status info utf8 encoding (https://otland.net/threads/myaac-v0-0-1.251454/page-2#post-2440259) * fixed when ip in log_action is NULL (https://otland.net/threads/myaac-v0-0-1.251454/page-2#post-2440357) * added CHANGELOG
This commit is contained in:
parent
870cc8f98b
commit
194d08f593
27
CHANGELOG
Normal file
27
CHANGELOG
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
[0.0.3 - 03.05.2017]
|
||||||
|
- Full support for OTHire 0.0.3
|
||||||
|
- added support for otservers that doesn't use account.name field, instead just account number will be used
|
||||||
|
- fixed encryption detection on TFS 0.3
|
||||||
|
- fixed bug when server_config table doesn't exist
|
||||||
|
- (install) moved admin account creation to new step
|
||||||
|
- fixed news comment link
|
||||||
|
- by default, the installer creates now the Admin player, for admin account
|
||||||
|
- fixed installation errors
|
||||||
|
- fixed config.lua loading with some weird comments
|
||||||
|
|
||||||
|
[0.0.2 - 02.05.2017]
|
||||||
|
- updated forum links to use friendly_urls
|
||||||
|
- some more info will be shown when cannot connect to database
|
||||||
|
- show more error infos when creating character
|
||||||
|
- fixed forum link on newses
|
||||||
|
- fixed spells loading when there's vocation name instead of id
|
||||||
|
- fixed bug when you have changed template but it doesn't exist anymore
|
||||||
|
- fixed vocations with promotion loading
|
||||||
|
- fixed support for gesior pages and templates
|
||||||
|
- added function OTS_Acount:getGroupId()
|
||||||
|
|
||||||
|
[0.0.1 - 01.05.2017]
|
||||||
|
This is first official release of MyAAC.
|
||||||
|
Features are listed here
|
||||||
|
|
||||||
|
For more information, see the release announcement on OTLand: https://otland.net/threads/myaac-v0-0-1.251454/
|
41
README
41
README
@ -1,41 +0,0 @@
|
|||||||
MyAAC 0.0.1 - http://www.my-aac.org
|
|
||||||
|
|
||||||
REQUIREMENTS
|
|
||||||
=====================================
|
|
||||||
- PHP 5.1.0 or later
|
|
||||||
- MySQL database
|
|
||||||
- (optional) mod_rewrite to use friendly_urls
|
|
||||||
|
|
||||||
INSTALLATION AND CONFIGURATION
|
|
||||||
=====================================
|
|
||||||
Just decompress and untar the source (which you should have done by now,
|
|
||||||
if you're reading this), into your webserver's document root.
|
|
||||||
|
|
||||||
MyAAC needs proper permissions to handle files correctly.
|
|
||||||
If you're using apache2, then your directory needs to have owner set to: www-data, you can do it by using following command:
|
|
||||||
chown -R www-data.www-data /var/www/*
|
|
||||||
(or any other path your MyAAC installation is located at..)
|
|
||||||
|
|
||||||
--------------------------
|
|
||||||
Note: Linux only
|
|
||||||
If you're under linux use these commands to set proper permissions:
|
|
||||||
chmod 660 config.local.php
|
|
||||||
chmod 660 images/guilds
|
|
||||||
chmod 660 images/houses
|
|
||||||
chmod 660 images/screenshots
|
|
||||||
--------------------------
|
|
||||||
|
|
||||||
Visit http://your_domain/install (http://localhost/install) and follow instructions in the browser.
|
|
||||||
|
|
||||||
KNOWN PROBLEMS
|
|
||||||
=====================================
|
|
||||||
- none -
|
|
||||||
|
|
||||||
OTHER NOTES
|
|
||||||
=====================================
|
|
||||||
If you have a great idea or want contribute to the project - visit our website at http://www.my-aac.org
|
|
||||||
|
|
||||||
LICENSING
|
|
||||||
=====================================
|
|
||||||
This program and all associated files are released under the GNU Public
|
|
||||||
License, see LICENSE for details.
|
|
@ -1,9 +1,9 @@
|
|||||||
CREATE TABLE `myaac_account_actions`
|
CREATE TABLE `myaac_account_actions`
|
||||||
(
|
(
|
||||||
`account_id` INT(11) NOT NULL,
|
`account_id` INT(11) NOT NULL,
|
||||||
`ip` INT(11) NOT NULL,
|
`ip` INT(11) NOT NULL DEFAULT '',
|
||||||
`date` INT(11) NOT NULL,
|
`date` INT(11) NOT NULL DEFAULT 0,
|
||||||
`action` VARCHAR(255) NOT NULL,
|
`action` VARCHAR(255) NOT NULL DEFAULT '',
|
||||||
KEY (`account_id`)
|
KEY (`account_id`)
|
||||||
) ENGINE = MyISAM;
|
) ENGINE = MyISAM;
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ class OTS_ServerInfo
|
|||||||
{
|
{
|
||||||
// loads respond XML
|
// loads respond XML
|
||||||
$info = new OTS_InfoRespond();
|
$info = new OTS_InfoRespond();
|
||||||
if(!$info->loadXML( $status->getBuffer()))
|
if(!$info->loadXML( utf8_encode($status->getBuffer())))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
return $info;
|
return $info;
|
||||||
|
@ -796,6 +796,8 @@ function checkName()
|
|||||||
$newchar_vocation = isset($_POST['newcharvocation']) ? $_POST['newcharvocation'] : NULL;
|
$newchar_vocation = isset($_POST['newcharvocation']) ? $_POST['newcharvocation'] : NULL;
|
||||||
$newchar_town = isset($_POST['newchartown']) ? $_POST['newchartown'] : NULL;
|
$newchar_town = isset($_POST['newchartown']) ? $_POST['newchartown'] : NULL;
|
||||||
$newchar_errors = array();
|
$newchar_errors = array();
|
||||||
|
|
||||||
|
$newchar_created = false;
|
||||||
if(isset($_POST['savecharacter']) && $_POST['savecharacter'] == 1) {
|
if(isset($_POST['savecharacter']) && $_POST['savecharacter'] == 1) {
|
||||||
if(empty($newchar_name))
|
if(empty($newchar_name))
|
||||||
$newchar_errors[] = 'Please enter a name for your character!';
|
$newchar_errors[] = 'Please enter a name for your character!';
|
||||||
@ -897,7 +899,7 @@ function checkName()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(fieldExist('lookaddons', 'players'))
|
if(fieldExist('lookaddons', 'players'))
|
||||||
$player->setLookAddons($char_to_copy->getLookAddons());
|
$player->setLookAddons($char_to_copy->getLookAddons());
|
||||||
|
|
||||||
$player->setTownId($newchar_town);
|
$player->setTownId($newchar_town);
|
||||||
$player->setExperience($char_to_copy->getExperience());
|
$player->setExperience($char_to_copy->getExperience());
|
||||||
@ -929,6 +931,8 @@ function checkName()
|
|||||||
}
|
}
|
||||||
$player->save();
|
$player->save();
|
||||||
$player->setCustomField("created", time());
|
$player->setCustomField("created", time());
|
||||||
|
|
||||||
|
$newchar_created = true;
|
||||||
$account_logged->logAction('Created character <b>' . $player->getName() . '</b>.');
|
$account_logged->logAction('Created character <b>' . $player->getName() . '</b>.');
|
||||||
unset($player);
|
unset($player);
|
||||||
$player = $ots->createObject('Player');
|
$player = $ots->createObject('Player');
|
||||||
@ -958,15 +962,16 @@ function checkName()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
if(count($newchar_errors) > 0) {
|
||||||
if(count($newchar_errors) > 0) {
|
echo '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$template_path.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$template_path.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$template_path.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$template_path.'/images/content/attentionsign.gif);" /></div>';
|
||||||
echo '<div class="SmallBox" > <div class="MessageContainer" > <div class="BoxFrameHorizontal" style="background-image:url('.$template_path.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeLeftTop" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeRightTop" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></div> <div class="ErrorMessage" > <div class="BoxFrameVerticalLeft" style="background-image:url('.$template_path.'/images/content/box-frame-vertical.gif);" /></div> <div class="BoxFrameVerticalRight" style="background-image:url('.$template_path.'/images/content/box-frame-vertical.gif);" /></div> <div class="AttentionSign" style="background-image:url('.$template_path.'/images/content/attentionsign.gif);" /></div>';
|
echo '<b>The Following Errors Have Occurred:</b><br/>';
|
||||||
echo '<b>The Following Errors Have Occurred:</b><br/>';
|
foreach($newchar_errors as $newchar_error)
|
||||||
foreach($newchar_errors as $newchar_error)
|
echo '<li>'.$newchar_error . '</li>';
|
||||||
echo '<li>'.$newchar_error . '</li>';
|
echo '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$template_path.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>';
|
||||||
echo '</div> <div class="BoxFrameHorizontal" style="background-image:url('.$template_path.'/images/content/box-frame-horizontal.gif);" /></div> <div class="BoxFrameEdgeRightBottom" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></div> <div class="BoxFrameEdgeLeftBottom" style="background-image:url('.$template_path.'/images/content/box-frame-edge.gif);" /></div> </div></div><br/>';
|
}
|
||||||
}
|
|
||||||
|
if(!$newchar_created) {
|
||||||
echo 'Please choose a name';
|
echo 'Please choose a name';
|
||||||
if(count($config['character_samples']) > 1)
|
if(count($config['character_samples']) > 1)
|
||||||
echo ', vocation';
|
echo ', vocation';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Changelog
|
* CHANGELOG viewer
|
||||||
*
|
*
|
||||||
* @package MyAAC
|
* @package MyAAC
|
||||||
* @author Slawkens <slawkens@gmail.com>
|
* @author Slawkens <slawkens@gmail.com>
|
||||||
@ -9,19 +9,18 @@
|
|||||||
* @link http://my-aac.org
|
* @link http://my-aac.org
|
||||||
*/
|
*/
|
||||||
defined('MYAAC') or die('Direct access not allowed!');
|
defined('MYAAC') or die('Direct access not allowed!');
|
||||||
$title = 'MyAAC - CHANGELOG';
|
$title = 'MyAAC Changelog';
|
||||||
|
|
||||||
$data = file_get_contents(SYSTEM . 'docs/CHANGELOG');
|
if(!file_exists(BASE . 'CHANGELOG')) {
|
||||||
|
echo 'File CHANGELOG doesn\'t exist.';
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// replace special characters with HTML entities
|
$changelog = file_get_contents(BASE . 'CHANGELOG');
|
||||||
// replace line breaks with <br />
|
$changelog = nl2br(htmlspecialchars($changelog));
|
||||||
$data = nl2br(htmlspecialchars($data));
|
|
||||||
|
|
||||||
// replace multiple spaces with single spaces
|
|
||||||
$data = preg_replace('/\s\s+/', ' ', $data);
|
|
||||||
|
|
||||||
// replace URLs with <a href...> elements
|
// replace URLs with <a href...> elements
|
||||||
$data = preg_replace('/\s(\w+:\/\/)(\S+)/', ' <a href="\\1\\2" target="_blank">\\1\\2</a>', $data);
|
$changelog = preg_replace('/\s(\w+:\/\/)(\S+)/', ' <a href="\\1\\2" target="_blank">\\1\\2</a>', $changelog);
|
||||||
|
|
||||||
echo '<div>' . $data . '</div>';
|
echo '<div>' . $changelog . '</div>';
|
||||||
?>
|
?>
|
||||||
|
@ -18,7 +18,8 @@ $myaac_version = file_get_contents('http://my-aac.org/VERSION');
|
|||||||
|
|
||||||
// compare them
|
// compare them
|
||||||
if(version_compare($myaac_version, MYAAC_VERSION) <= 0)
|
if(version_compare($myaac_version, MYAAC_VERSION) <= 0)
|
||||||
echo '<p class="success">MyAAC latest version is ' . $myaac_version . '. You\'re using the latest version.</p>';
|
echo '<p class="success">MyAAC latest version is ' . $myaac_version . '. You\'re using the latest version.
|
||||||
|
<br/>View CHANGELOG ' . generateLink(ADMIN_URL . '?p=changelog', 'here') . '</p>';
|
||||||
else
|
else
|
||||||
echo '<p class="warning">You\'re using outdated version.<br/>
|
echo '<p class="warning">You\'re using outdated version.<br/>
|
||||||
Your version: <b>' . MYAAC_VERSION . '</b><br/>
|
Your version: <b>' . MYAAC_VERSION . '</b><br/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user