mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
some fixes...
* fixed registering database_version * fixed skulls displaying * fixed movies unexpected comment * added template_place_holder('center_top') to kathrine template * fixed signature tibian for OTHire and other servers that doesnt use accounts.premdays field
This commit is contained in:
parent
43162b6222
commit
e5b5aaeaf5
Binary file not shown.
Before Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
Before Width: | Height: | Size: 14 KiB |
Binary file not shown.
Before Width: | Height: | Size: 2.6 KiB |
Binary file not shown.
Before Width: | Height: | Size: 3.2 KiB |
@ -72,7 +72,7 @@ else { // register first version
|
||||
require(SYSTEM . 'migrations/' . $i . '.php');
|
||||
}
|
||||
|
||||
updateDatabaseConfig('database_version', DATABASE_VERSION);
|
||||
registerDatabaseConfig('database_version', DATABASE_VERSION);
|
||||
}
|
||||
|
||||
// event system
|
||||
|
@ -55,7 +55,6 @@ CREATE TABLE `myaac_config`
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE (`name`)
|
||||
) ENGINE = MyISAM;
|
||||
INSERT INTO `myaac_config` (`id`, `name`, `value`) VALUES (NULL, 'database_version', '1');
|
||||
|
||||
CREATE TABLE `myaac_faq`
|
||||
(
|
||||
|
@ -66,6 +66,7 @@ if(!$error) {
|
||||
}
|
||||
|
||||
if(!$error) {
|
||||
registerDatabaseConfig('database_version', DATABASE_VERSION);
|
||||
$locale['step_database_success_schema'] = str_replace('$PREFIX$', TABLE_PREFIX, $locale['step_database_success_schema']);
|
||||
success($locale['step_database_success_schema']);
|
||||
}
|
||||
|
@ -77,11 +77,11 @@ function generate_player_lookup($player)
|
||||
}
|
||||
|
||||
$skulls = array(
|
||||
1 => 'skull_yellow',
|
||||
2 => 'skull_green',
|
||||
3 => 'skull_white',
|
||||
4 => 'skull_red',
|
||||
5 => 'skull_black'
|
||||
1 => 'yellow_skull',
|
||||
2 => 'green_skull',
|
||||
3 => 'white_skull',
|
||||
4 => 'red_skull',
|
||||
5 => 'black_skull'
|
||||
);
|
||||
|
||||
return '<table width="100" align="center" cellspacing="0" cellpadding="0" style="background: #808080; border:1px solid #808080;">
|
||||
|
@ -26,6 +26,6 @@ There are no movies added yet.
|
||||
<?php foreach($movies as $movie): ?>
|
||||
<?php echo $movie['title']; ?><br/>
|
||||
Author: <?php echo $movie['author']; ?><br/>
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/<?php echo $movie['youtube_id']; ?>" frameborder="0" allowfullscreen></iframe><br/><br/>';
|
||||
<iframe width="560" height="315" src="https://www.youtube.com/embed/<?php echo $movie['youtube_id']; ?>" frameborder="0" allowfullscreen></iframe><br/><br/>
|
||||
<?php endforeach; ?>
|
||||
</center>
|
||||
|
@ -66,11 +66,11 @@ foreach($playersOnline as $player)
|
||||
if($config['online_skulls'])
|
||||
{
|
||||
if($player['skulltime'] > 0 && $player['skull'] == 3)
|
||||
$skull = ' <img style="border: 0;" src="images/whiteskull.gif"/>';
|
||||
$skull = ' <img style="border: 0;" src="images/white_skull.gif"/>';
|
||||
elseif($player['skulltime'] > 0 && $player['skull'] == 4)
|
||||
$skull = ' <img style="border: 0;" src="images/redskull.gif"/>';
|
||||
$skull = ' <img style="border: 0;" src="images/red_skull.gif"/>';
|
||||
elseif($player['skulltime'] > 0 && $player['skull'] == 5)
|
||||
$skull = ' <img style="border: 0;" src="images/blackskull.gif"/>';
|
||||
$skull = ' <img style="border: 0;" src="images/black_skull.gif"/>';
|
||||
}
|
||||
|
||||
if(isset($player['promotion'])) {
|
||||
@ -195,9 +195,9 @@ if($config['online_skulls']): ?>
|
||||
<table width="100%" cellspacing="1">
|
||||
<tr>
|
||||
<td style="background: <?php echo $config['darkborder']; ?>;" align="center">
|
||||
<img src="images/whiteskull.gif"/> - 1 - 6 Frags<br/>
|
||||
<img src="images/redskull.gif"/> - 6+ Frags or Red Skull<br/>
|
||||
<img src="images/blackskull.gif"/> - 10+ Frags or Black Skull
|
||||
<img src="images/white_skull.gif"/> - 1 - 6 Frags<br/>
|
||||
<img src="images/red_skull.gif"/> - 6+ Frags or Red Skull<br/>
|
||||
<img src="images/black_skull.gif"/> - 10+ Frags or Black Skull
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -173,6 +173,7 @@ defined('MYAAC') or die('Direct access not allowed!');
|
||||
</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>
|
||||
|
@ -115,7 +115,7 @@
|
||||
|
||||
// premium status
|
||||
$account = $player->getAccount();
|
||||
imagettftext($img, $fontsize, 0, 15, 140, $text, $font, $account->getCustomField('premdays') == 0 ? 'Free Account' : 'Premium Account');
|
||||
imagettftext($img, $fontsize, 0, 15, 140, $text, $font, $account->getPremDays() > 0 ? 'Premium Account': 'Free Account');
|
||||
|
||||
imagefilledrectangle($img, 225, 40, 225, 130, $title); //seperator
|
||||
$posy = 50;
|
||||
|
Loading…
x
Reference in New Issue
Block a user