mirror of
https://github.com/slawkens/myaac.git
synced 2025-07-01 17:20:15 +02:00
* replace deprecated HTML <font> tag with <span>
This commit is contained in:
parent
1926c5ec5b
commit
05e15ce9ad
@ -565,7 +565,7 @@ function getCreatureName($killer, $showStatus = false, $extendedInfo = false)
|
||||
if(!$showStatus)
|
||||
return $str.'<b>'.$player->getName().'</b></a>';
|
||||
|
||||
$str .= '<font color="'.($player->isOnline() ? 'green' : 'red').'">' . $player->getName() . '</font></b></a>';
|
||||
$str .= '<span style="color: '.($player->isOnline() ? 'green' : 'red').'">' . $player->getName() . '</span></b></a>';
|
||||
if($extendedInfo) {
|
||||
$str .= '<br><small>'.$player->getLevel().' '.$player->getVocationName().'</small>';
|
||||
}
|
||||
@ -684,25 +684,25 @@ function superAdmin() {
|
||||
*
|
||||
* @param int $exp Experience amount.
|
||||
* @param bool $color Should result be colorized?
|
||||
* @return string Resulted message attached in <font> tag.
|
||||
* @return string Resulted message attached in <span> tag.
|
||||
*/
|
||||
function formatExperience($exp, $color = true)
|
||||
{
|
||||
$ret = '';
|
||||
if($color)
|
||||
{
|
||||
$ret .= '<font';
|
||||
if($exp > 0)
|
||||
$ret .= ' color="green">';
|
||||
elseif($exp < 0)
|
||||
$ret .= ' color="red">';
|
||||
else
|
||||
$ret .= '<span';
|
||||
if($exp != 0) {
|
||||
$ret .= ' style="color: ' . ($exp > 0 ? 'green' : 'red') . '">';
|
||||
}
|
||||
else {
|
||||
$ret .= '>';
|
||||
}
|
||||
}
|
||||
|
||||
$ret .= '<b>' . ($exp > 0 ? '+' : '') . number_format($exp) . '</b>';
|
||||
if($color)
|
||||
$ret .= '</font>';
|
||||
$ret .= '</span>';
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
@ -15,24 +15,24 @@ class Forum
|
||||
static public function canPost($account)
|
||||
{
|
||||
global $db, $config;
|
||||
|
||||
|
||||
if(!$account->isLoaded() || $account->isBanned())
|
||||
return false;
|
||||
|
||||
|
||||
if(self::isModerator())
|
||||
return true;
|
||||
|
||||
|
||||
return
|
||||
$db->query(
|
||||
'SELECT `id` FROM `players` WHERE `account_id` = ' . $db->quote($account->getId()) .
|
||||
' AND `level` >= ' . $db->quote($config['forum_level_required']) .
|
||||
' LIMIT 1')->rowCount() > 0;
|
||||
}
|
||||
|
||||
|
||||
static public function isModerator() {
|
||||
return hasFlag(FLAG_CONTENT_FORUM) || superAdmin();
|
||||
}
|
||||
|
||||
|
||||
static public function add_thread($title, $body, $section_id, $player_id, $account_id, &$errors)
|
||||
{
|
||||
global $db;
|
||||
@ -54,10 +54,10 @@ class Forum
|
||||
$thread_id = $db->lastInsertId();
|
||||
$db->query("UPDATE `" . TABLE_PREFIX . "forum` SET `first_post`=".(int) $thread_id." WHERE `id` = ".(int) $thread_id);
|
||||
}
|
||||
|
||||
|
||||
return $thread_id;
|
||||
}
|
||||
|
||||
|
||||
static public function add_post($thread_id, $section, $author_aid, $author_guid, $post_text, $post_topic, $smile, $html)
|
||||
{
|
||||
global $db;
|
||||
@ -80,7 +80,7 @@ class Forum
|
||||
if(isset($name[0]) && isset($description[0]))
|
||||
{
|
||||
$query = $db->select(TABLE_PREFIX . 'forum_boards', array('name' => $name));
|
||||
|
||||
|
||||
if($query === false)
|
||||
{
|
||||
$query =
|
||||
@ -89,7 +89,7 @@ class Forum
|
||||
' FROM ' . $db->tableName(TABLE_PREFIX . 'forum_boards') .
|
||||
' ORDER BY ' . $db->fieldName('ordering') . ' DESC LIMIT 1'
|
||||
);
|
||||
|
||||
|
||||
$ordering = 0;
|
||||
if($query->rowCount() > 0) {
|
||||
$query = $query->fetch();
|
||||
@ -102,20 +102,20 @@ class Forum
|
||||
}
|
||||
else
|
||||
$errors[] = 'Please fill all inputs.';
|
||||
|
||||
|
||||
return !count($errors);
|
||||
}
|
||||
|
||||
|
||||
static public function get_board($id) {
|
||||
global $db;
|
||||
return $db->select(TABLE_PREFIX . 'forum_boards', array('id' => $id));
|
||||
}
|
||||
|
||||
|
||||
static public function update_board($id, $name, $access, $guild, $description) {
|
||||
global $db;
|
||||
$db->update(TABLE_PREFIX . 'forum_boards', array('name' => $name, 'description' => $description, 'access' => $access, 'guild' => $guild), array('id' => $id));
|
||||
}
|
||||
|
||||
|
||||
static public function delete_board($id, &$errors)
|
||||
{
|
||||
global $db;
|
||||
@ -128,10 +128,10 @@ class Forum
|
||||
}
|
||||
else
|
||||
$errors[] = 'id not set';
|
||||
|
||||
|
||||
return !count($errors);
|
||||
}
|
||||
|
||||
|
||||
static public function toggleHidden_board($id, &$errors)
|
||||
{
|
||||
global $db;
|
||||
@ -145,10 +145,10 @@ class Forum
|
||||
}
|
||||
else
|
||||
$errors[] = 'id not set';
|
||||
|
||||
|
||||
return !count($errors);
|
||||
}
|
||||
|
||||
|
||||
static public function move_board($id, $i, &$errors)
|
||||
{
|
||||
global $db;
|
||||
@ -159,15 +159,15 @@ class Forum
|
||||
$old_record = $db->select(TABLE_PREFIX . 'forum_boards', array('ordering' => $ordering));
|
||||
if($old_record !== false)
|
||||
$db->update(TABLE_PREFIX . 'forum_boards', array('ordering' => $query['ordering']), array('ordering' => $ordering));
|
||||
|
||||
|
||||
$db->update(TABLE_PREFIX . 'forum_boards', array('ordering' => $ordering), array('id' => $id));
|
||||
}
|
||||
else
|
||||
$errors[] = 'Forum board with id ' . $id . ' does not exists.';
|
||||
|
||||
|
||||
return !count($errors);
|
||||
}
|
||||
|
||||
|
||||
public static function parseSmiles($text)
|
||||
{
|
||||
$smileys = array(
|
||||
@ -192,13 +192,13 @@ class Forum
|
||||
':d' => 9,
|
||||
';)' => 10
|
||||
);
|
||||
|
||||
|
||||
foreach($smileys as $search => $replace)
|
||||
$text = str_replace($search, '<img src="images/forum/smile/'.$replace.'.gif" alt="'. $search .'" title="' . $search . '" />', $text);
|
||||
|
||||
|
||||
return $text;
|
||||
}
|
||||
|
||||
|
||||
public static function parseBBCode($text, $smiles)
|
||||
{
|
||||
$rows = 0;
|
||||
@ -221,20 +221,20 @@ class Forum
|
||||
$url = substr($text, stripos($text, '[url]')+5, stripos($text, '[/url]') - stripos($text, '[url]') - 5);
|
||||
$text = str_ireplace('[url]'.$url.'[/url]', '<a href="'.$url.'" target="_blank">'.$url.'</a>', $text);
|
||||
}
|
||||
|
||||
|
||||
$xhtml = false;
|
||||
$tags = array(
|
||||
'#\[b\](.*?)\[/b\]#si' => ($xhtml ? '<strong>\\1</strong>' : '<b>\\1</b>'),
|
||||
'#\[i\](.*?)\[/i\]#si' => ($xhtml ? '<em>\\1</em>' : '<i>\\1</i>'),
|
||||
'#\[u\](.*?)\[/u\]#si' => ($xhtml ? '<span style="text-decoration: underline;">\\1</span>' : '<u>\\1</u>'),
|
||||
'#\[s\](.*?)\[/s\]#si' => ($xhtml ? '<strike>\\1</strike>' : '<s>\\1</s>'),
|
||||
|
||||
|
||||
'#\[guild\](.*?)\[/guild\]#si' => urldecode(generateLink(getGuildLink('$1', false), '$1', true)),
|
||||
'#\[house\](.*?)\[/house\]#si' => urldecode(generateLink(getHouseLink('$1', false), '$1', true)),
|
||||
'#\[player\](.*?)\[/player\]#si' => urldecode(generateLink(getPlayerLink('$1', false), '$1', true)),
|
||||
// TODO: [poll] tag
|
||||
|
||||
'#\[color=(.*?)\](.*?)\[/color\]#si' => ($xhtml ? '<span style="color: \\1;">\\2</span>' : '<font color="\\1">\\2</font>'),
|
||||
|
||||
'#\[color=(.*?)\](.*?)\[/color\]#si' => ($xhtml ? '<span style="color: \\1;">\\2</span>' : '<span style="color: \\1">\\2</span>'),
|
||||
'#\[img\](.*?)\[/img\]#si' => ($xhtml ? '<img class="forum-image" style="max-width:550px; max-height; 550px;" src="\\1" border="0" alt="" />' : '<img class="forum-image" style="max-width:550px; max-height; 550px;" src="\\1" border="0" alt="">'),
|
||||
'#\[url=(.*?)\](.*?)\[/url\]#si' => '<a href="\\1" title="\\2">\\2</a>',
|
||||
// '#\[email\](.*?)\[/email\]#si' => '<a href="mailto:\\1" title="Email \\1">\\1</a>',
|
||||
@ -242,13 +242,13 @@ class Forum
|
||||
// '#\[align=(.*?)\](.*?)\[/align\]#si' => ($xhtml ? '<div style="text-align: \\1;">\\2</div>' : '<div align="\\1">\\2</div>'),
|
||||
// '#\[br\]#si' => ($xhtml ? '<br style="clear: both;" />' : '<br>'),
|
||||
);
|
||||
|
||||
|
||||
foreach($tags as $search => $replace)
|
||||
$text = preg_replace($search, $replace, $text);
|
||||
|
||||
|
||||
return ($smiles ? Forum::parseSmiles($text) : $text);
|
||||
}
|
||||
|
||||
|
||||
public static function showPost($topic, $text, $smiles = true, $html = false)
|
||||
{
|
||||
if($html) {
|
||||
@ -262,12 +262,12 @@ class Forum
|
||||
$post .= self::parseBBCode(nl2br($text), $smiles);
|
||||
return $post;
|
||||
}
|
||||
|
||||
|
||||
public static function hasAccess($board_id) {
|
||||
global $sections, $logged, $account_logged, $logged_access;
|
||||
if(!isset($sections[$board_id]))
|
||||
return false;
|
||||
|
||||
|
||||
$hasAccess = true;
|
||||
$section = $sections[$board_id];
|
||||
if($section['guild'] > 0) {
|
||||
@ -283,20 +283,20 @@ class Forum
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (!$status) $hasAccess = false;
|
||||
}
|
||||
else {
|
||||
$hasAccess = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($section['access'] > 0) {
|
||||
if($logged_access < $section['access']) {
|
||||
$hasAccess = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $hasAccess;
|
||||
}
|
||||
}
|
||||
|
@ -111,6 +111,6 @@ $locale['step_finish_homepage'] = 'Startseite';
|
||||
$locale['step_finish'] = 'Fertig';
|
||||
$locale['step_finish_title'] = 'Installation beendet!';
|
||||
$locale['step_finish_desc'] = 'Herzlichen Glückwunsch! <b>MyAAC</b> ist bereit zu verwenden!<br/>Sie können sich jetzt im $ADMIN_PANEL$ anmelden, oder die $HOMEPAGE$ besuchen.<br/><br/>
|
||||
<font color="red">Bitte lösche install/ Verzeichnis.</font><br/><br/>
|
||||
<span style="color: red">Bitte lösche install/ Verzeichnis.</span><br/><br/>
|
||||
Bitte senden Sie Fehler und Vorschläge zu $LINK$, Vielen Dank!';
|
||||
?>
|
||||
|
@ -111,6 +111,6 @@ $locale['step_finish_homepage'] = 'homepage';
|
||||
$locale['step_finish'] = 'Finish';
|
||||
$locale['step_finish_title'] = 'Installation finished!';
|
||||
$locale['step_finish_desc'] = 'Congratulations! <b>MyAAC</b> is ready to use!<br/>You can now login to $ADMIN_PANEL$, or visit $HOMEPAGE$.<br/><br/>
|
||||
<font color="red">Please delete install/ directory.</font><br/><br/>
|
||||
<span style="color: red">Please delete install/ directory.</span><br/><br/>
|
||||
Post bugs and suggestions at $LINK$, thanks!';
|
||||
?>
|
||||
|
@ -106,6 +106,6 @@ $locale['step_finish_homepage'] = 'stronę główną';
|
||||
$locale['step_finish'] = 'Koniec';
|
||||
$locale['step_finish_title'] = 'Instalacja zakończona!';
|
||||
$locale['step_finish_desc'] = 'Gratulacje! <b>MyAAC</b> jest gotowy do użycia!<br/>Możesz się teraz zalogować do $ADMIN_PANEL$, albo odwiedzić $HOMEPAGE$.<br/><br/>
|
||||
<font color="red">Proszę usunąć katalog <b>install/</b>.</font><br/><br/>
|
||||
<span style="color: red">Proszę usunąć katalog <b>install/</b>.</span><br/><br/>
|
||||
Wrzuć błędy i sugestie na $LINK$, dzięki!';
|
||||
?>
|
||||
|
@ -88,6 +88,6 @@ $locale['step_finish_homepage'] = 'hemsida';
|
||||
$locale['step_finish'] = 'Klar';
|
||||
$locale['step_finish_title'] = 'Installationen klar!';
|
||||
$locale['step_finish_desc'] = 'Grattis! <b>MyAAC</b> är redo att användas!<br/>Du kan logga in på $ADMIN_PANEL$, eller titta till $HOMEPAGE$.<br/><br/>
|
||||
<font color="red">Var vänligen ta bort installations mappen.</font><br/><br/>
|
||||
<span style="color: red">Var vänligen ta bort installations mappen.</span><br/><br/>
|
||||
Var vänligen rapportera buggar och förslag på $LINK$, tack!';
|
||||
?>
|
||||
|
@ -35,7 +35,7 @@ if(isset($_POST['registeraccountsave']) && $_POST['registeraccountsave'] == "1")
|
||||
}
|
||||
$twig->display('success.html.twig', array(
|
||||
'title' => 'Account Registered',
|
||||
'description' => 'Thank you for registering your account! You can now recover your account if you have lost access to the assigned email address by using the following<br/><br/><font size="5"> <b>Recovery Key: '.$new_rec_key.'</b></font><br/><br/><br/><b>Important:</b><ul><li>Write down this recovery key carefully.</li><li>Store it at a safe place!</li>' . $message . '</ul>'
|
||||
'description' => 'Thank you for registering your account! You can now recover your account if you have lost access to the assigned email address by using the following<br/><br/><span style="font-size: 24px"> <b>Recovery Key: '.$new_rec_key.'</b></span><br/><br/><br/><b>Important:</b><ul><li>Write down this recovery key carefully.</li><li>Store it at a safe place!</li>' . $message . '</ul>'
|
||||
));
|
||||
}
|
||||
else
|
||||
|
@ -63,18 +63,18 @@ $errors = array();
|
||||
$freePremium = isset($config['lua']['freePremium']) && getBoolean($config['lua']['freePremium']);
|
||||
$recovery_key = $account_logged->getCustomField('key');
|
||||
if(!$account_logged->isPremium())
|
||||
$account_status = '<b><font color="red">Free Account</font></b>';
|
||||
$account_status = '<b><span style="color: red">Free Account</span></b>';
|
||||
else
|
||||
$account_status = '<b><font color="green">Premium Account, ' . ($freePremium ? 'Unlimited' : $account_logged->getPremDays() . ' days left') . '</font></b>';
|
||||
$account_status = '<b><span style="color: green">Premium Account, ' . ($freePremium ? 'Unlimited' : $account_logged->getPremDays() . ' days left') . '</span></b>';
|
||||
|
||||
if(empty($recovery_key))
|
||||
$account_registered = '<b><font color="red">No</font></b>';
|
||||
$account_registered = '<b><span style="color: red">No</span></b>';
|
||||
else
|
||||
{
|
||||
if($config['generate_new_reckey'] && $config['mail_enabled'])
|
||||
$account_registered = '<b><font color="green">Yes ( <a href="' . getLink('account/register/new') . '"> Buy new Recovery Key </a> )</font></b>';
|
||||
$account_registered = '<b><span style="color: green">Yes ( <a href="' . getLink('account/register/new') . '"> Buy new Recovery Key </a> )</span></b>';
|
||||
else
|
||||
$account_registered = '<b><font color="green">Yes</font></b>';
|
||||
$account_registered = '<b><span style="color: green">Yes</span></b>';
|
||||
}
|
||||
|
||||
$account_created = $account_logged->getCreated();
|
||||
@ -86,9 +86,9 @@ $errors = array();
|
||||
$account_location = $account_logged->getLocation();
|
||||
if($account_logged->isBanned())
|
||||
if($account_logged->getBanTime() > 0)
|
||||
$welcome_message = '<font color="red">Your account is banished until '.date("j F Y, G:i:s", $account_logged->getBanTime()).'!</font>';
|
||||
$welcome_message = '<span style="color: red">Your account is banished until '.date("j F Y, G:i:s", $account_logged->getBanTime()).'!</span>';
|
||||
else
|
||||
$welcome_message = '<font color="red">Your account is banished FOREVER!</font>';
|
||||
$welcome_message = '<span style="color: red">Your account is banished FOREVER!</span>';
|
||||
else
|
||||
$welcome_message = 'Welcome to your account!';
|
||||
|
||||
|
@ -37,12 +37,12 @@ if(!$bans->rowCount())
|
||||
?>
|
||||
<table border="0" cellspacing="1" cellpadding="4" width="100%">
|
||||
<tr align="center" bgcolor="<?php echo $config['vdarkborder']; ?>" class="white">
|
||||
<td><font color="white"><b>Nick</b></font></td>
|
||||
<td><font color="white"><b>Type</b></font></td>
|
||||
<td><font color="white"><b>Expires</b></font></td>
|
||||
<td><font color="white"><b>Reason</b></font></td>
|
||||
<td><font color="white"><b>Comment</b></font></td>
|
||||
<td><font color="white"><b>Added by:</b></font></td>
|
||||
<td><span style="color: white"><b>Nick</b></span></td>
|
||||
<td><span style="color: white"><b>Type</b></span></td>
|
||||
<td><span style="color: white"><b>Expires</b></span></td>
|
||||
<td><span style="color: white"><b>Reason</b></span></td>
|
||||
<td><span style="color: white"><b>Comment</b></span></td>
|
||||
<td><span style="color: white"><b>Added by:</b></span></td>
|
||||
</tr>
|
||||
<?php
|
||||
foreach($bans as $ban)
|
||||
|
@ -20,65 +20,65 @@ if(!$logged)
|
||||
$showed = $post = $reply = false;
|
||||
// type (1 = question; 2 = answer)
|
||||
// status (1 = open; 2 = new message; 3 = closed;)
|
||||
|
||||
|
||||
$dark = $config['darkborder'];
|
||||
$light = $config['lightborder'];
|
||||
|
||||
|
||||
$tags = array(1 => "[MAP]", "[WEBSITE]", "[CLIENT]", "[MONSTER]", "[NPC]", "[OTHER]");
|
||||
|
||||
|
||||
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');
|
||||
|
||||
|
||||
if(!empty($_REQUEST['id']) and is_numeric($_REQUEST['id']) and !empty($_REQUEST['acc']) and is_numeric($_REQUEST['acc']))
|
||||
$bug[2] = $db->query('SELECT * FROM '.$db->tableName(TABLE_PREFIX . 'bugtracker').' where `account` = '.$_REQUEST['acc'].' and `id` = '.$_REQUEST['id'].' and `type` = 1')->fetch();
|
||||
|
||||
|
||||
if(!empty($_REQUEST['id']) and is_numeric($_REQUEST['id']) and !empty($_REQUEST['acc']) and is_numeric($_REQUEST['acc']))
|
||||
{
|
||||
if(!empty($_REQUEST['reply']))
|
||||
$reply=true;
|
||||
|
||||
|
||||
$account = new OTS_Account();
|
||||
$account->load($_REQUEST['acc']);
|
||||
$account->isLoaded();
|
||||
$players = $account->getPlayersList();
|
||||
|
||||
|
||||
if(!$reply)
|
||||
{
|
||||
if($bug[2]['status'] == 2)
|
||||
$value = "<font color=green>[OPEN]</font>";
|
||||
$value = '<span style="color: green">[OPEN]</span>';
|
||||
elseif($bug[2]['status'] == 3)
|
||||
$value = "<font color=red>[CLOSED]</font>";
|
||||
$value = '<span style="color: red">[CLOSED]</span>';
|
||||
elseif($bug[2]['status'] == 1)
|
||||
$value = "<font color=blue>[NEW ANSWER]</font>";
|
||||
|
||||
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>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td width=40%><i><b>Subject</b></i></td><td>'.$tags[$bug[2]['tag']].' '.$bug[2]['subject'].' '.$value.'</td></tr>';
|
||||
echo '<TR BGCOLOR="'.$light.'"><td><i><b>Posted by</b></i></td><td>';
|
||||
|
||||
$value = '<span style="color: blue">[NEW ANSWER]</span>';
|
||||
|
||||
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>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td width=40%><i><b>Subject</b></i></td><td>'.$tags[$bug[2]['tag']].' '.$bug[2]['subject'].' '.$value.'</td></tr>';
|
||||
echo '<TR BGCOLOR="'.$light.'"><td><i><b>Posted by</b></i></td><td>';
|
||||
|
||||
foreach($players as $player)
|
||||
{
|
||||
echo ''.$player->getName().'<br>';
|
||||
}
|
||||
|
||||
|
||||
echo '</td></tr>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td colspan=2><i><b>Description</b></i></td></tr>';
|
||||
echo '<TR BGCOLOR="'.$light.'"><td colspan=2>'.nl2br($bug[2]['text']).'</td></tr>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td colspan=2><i><b>Description</b></i></td></tr>';
|
||||
echo '<TR BGCOLOR="'.$light.'"><td colspan=2>'.nl2br($bug[2]['text']).'</td></tr>';
|
||||
echo '</TABLE>';
|
||||
|
||||
|
||||
$answers = $db->query('SELECT * FROM '.$db->tableName(TABLE_PREFIX . 'bugtracker').' where `account` = '.$_REQUEST['acc'].' and `id` = '.$_REQUEST['id'].' and `type` = 2 order by `reply`');
|
||||
foreach($answers as $answer)
|
||||
{
|
||||
if($answer['who'] == 1)
|
||||
$who = "<font color=red>[ADMIN]</font>";
|
||||
$who = '<span style="color: red">[ADMIN]</span>';
|
||||
else
|
||||
$who = "<font color=green>[PLAYER]</font>";
|
||||
|
||||
echo '<br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Answer #'.$answer['reply'].'</B></TD></TR>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td width=70%><i><b>Posted by</b></i></td><td>'.$who.'</td></tr>';
|
||||
echo '<TR BGCOLOR="'.$light.'"><td colspan=2><i><b>Description</b></i></td></tr>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td colspan=2>'.nl2br($answer['text']).'</td></tr>';
|
||||
$who = '<span style="color: green">[PLAYER]</span>';
|
||||
|
||||
echo '<br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Answer #'.$answer['reply'].'</B></TD></TR>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td width=70%><i><b>Posted by</b></i></td><td>'.$who.'</td></tr>';
|
||||
echo '<TR BGCOLOR="'.$light.'"><td colspan=2><i><b>Description</b></i></td></tr>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td colspan=2>'.nl2br($answer['text']).'</td></tr>';
|
||||
echo '</TABLE>';
|
||||
}
|
||||
if($bug[2]['status'] != 3)
|
||||
@ -95,12 +95,12 @@ $showed = $post = $reply = false;
|
||||
if(isset($_POST['finish']))
|
||||
{
|
||||
if(empty($_POST['text']))
|
||||
$error[] = "<font color=black><b>Description cannot be empty.</b></font>";
|
||||
$error[] = '<span style="color: black"><b>Description cannot be empty.</b></span>';
|
||||
if($iswho['who'] == 1)
|
||||
$error[] = "<font color=black><b>You must wait for User answer.</b></font>";
|
||||
$error[] = '<span style="color: black"><b>You must wait for User answer.</b></span>';
|
||||
if(empty($_POST['status']))
|
||||
$error[] = "<font color=black><b>Status cannot be empty.</b></font>";
|
||||
|
||||
$error[] = '<span style="color: black"><b>Status cannot be empty.</b></span>';
|
||||
|
||||
if(!empty($error))
|
||||
{
|
||||
foreach($error as $errors)
|
||||
@ -118,27 +118,27 @@ $showed = $post = $reply = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br><font color=black><b>You can't add answer to closed bug thread.</b></font>";
|
||||
echo '<br><span style="color: black"><b>You can\'t add answer to closed bug thread.</b></span>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$post=true;
|
||||
}
|
||||
if(!$post)
|
||||
{
|
||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD colspan=2 CLASS=white><B>Bug Tracker Admin</B></TD></TR>';
|
||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD colspan=2 CLASS=white><B>Bug Tracker Admin</B></TD></TR>';
|
||||
$i=1;
|
||||
foreach($bug[1] as $report)
|
||||
{
|
||||
if($report['status'] == 2)
|
||||
$value = "<font color=green>[OPEN]</font>";
|
||||
$value = '<span style="color: green">[OPEN]</span>';
|
||||
elseif($report['status'] == 3)
|
||||
$value = "<font color=red>[CLOSED]</font>";
|
||||
$value = '<span style="color: red">[CLOSED]</span>';
|
||||
elseif($report['status'] == 1)
|
||||
$value = "<font color=blue>[NEW ANSWER]</font>";
|
||||
|
||||
$value = '<span style="color: blue">[NEW ANSWER]</span>';
|
||||
|
||||
echo '<TR BGCOLOR="' . getStyle($i) . '"><td width=75%><a href="?subtopic=bugtracker&control=true&id='.$report['id'].'&acc='.$report['account'].'">'.$tags[$report['tag']].' '.$report['subject'].'</a></td><td>'.$value.'</td></tr>';
|
||||
|
||||
|
||||
$showed=true;
|
||||
$i++;
|
||||
}
|
||||
@ -146,58 +146,58 @@ $showed = $post = $reply = false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
{
|
||||
$acc = $account_logged->getId();
|
||||
$account_players = $account_logged->getPlayersList();
|
||||
|
||||
|
||||
foreach($account_players as $player)
|
||||
{
|
||||
$allow=true;
|
||||
}
|
||||
|
||||
|
||||
if(!empty($_REQUEST['id']))
|
||||
$id = addslashes(htmlspecialchars(trim($_REQUEST['id'])));
|
||||
|
||||
|
||||
if(empty($_REQUEST['id']))
|
||||
$bug[1] = $db->query('SELECT * FROM '.$db->tableName(TABLE_PREFIX . 'bugtracker').' where `account` = '.$account_logged->getId().' and `type` = 1 order by `id` desc');
|
||||
|
||||
|
||||
if(!empty($_REQUEST['id']) and is_numeric($_REQUEST['id']))
|
||||
$bug[2] = $db->query('SELECT * FROM '.$db->tableName(TABLE_PREFIX . 'bugtracker').' where `account` = '.$account_logged->getId().' and `id` = '.$id.' and `type` = 1')->fetch();
|
||||
else
|
||||
$bug[2] = NULL;
|
||||
|
||||
|
||||
if(!empty($_REQUEST['id']) and $bug[2] != NULL)
|
||||
{
|
||||
if(!empty($_REQUEST['reply']))
|
||||
$reply=true;
|
||||
|
||||
|
||||
if(!$reply)
|
||||
{
|
||||
if($bug[2]['status'] == 1)
|
||||
$value = "<font color=green>[OPEN]</font>";
|
||||
$value = '<span style="color: green">[OPEN]</span>';
|
||||
elseif($bug[2]['status'] == 2)
|
||||
$value = "<font color=blue>[NEW ANSWER]</font>";
|
||||
$value = '<span style="color: blue">[NEW ANSWER]</span>';
|
||||
elseif($bug[2]['status'] == 3)
|
||||
$value = "<font color=red>[CLOSED]</font>";
|
||||
|
||||
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>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td width=40%><i><b>Subject</b></i></td><td>'.$tags[$bug[2]['tag']].' '.$bug[2]['subject'].' '.$value.'</td></tr>';
|
||||
echo '<TR BGCOLOR="'.$light.'"><td colspan=2><i><b>Description</b></i></td></tr>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td colspan=2>'.nl2br($bug[2]['text']).'</td></tr>';
|
||||
$value = '<span style="color: red">[CLOSED]</span>';
|
||||
|
||||
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>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td width=40%><i><b>Subject</b></i></td><td>'.$tags[$bug[2]['tag']].' '.$bug[2]['subject'].' '.$value.'</td></tr>';
|
||||
echo '<TR BGCOLOR="'.$light.'"><td colspan=2><i><b>Description</b></i></td></tr>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td colspan=2>'.nl2br($bug[2]['text']).'</td></tr>';
|
||||
echo '</TABLE>';
|
||||
|
||||
|
||||
$answers = $db->query('SELECT * FROM '.$db->tableName('myaac_bugtracker').' where `account` = '.$account_logged->getId().' and `id` = '.$id.' and `type` = 2 order by `reply`');
|
||||
foreach($answers as $answer)
|
||||
{
|
||||
if($answer['who'] == 1)
|
||||
$who = "<font color=red>[ADMIN]</font>";
|
||||
$who = '<span style="color: red">[ADMIN]</span>';
|
||||
else
|
||||
$who = "<font color=green>[YOU]</font>";
|
||||
|
||||
echo '<br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Answer #'.$answer['reply'].'</B></TD></TR>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td width=70%><i><b>Posted by</b></i></td><td>'.$who.'</td></tr>';
|
||||
echo '<TR BGCOLOR="'.$light.'"><td colspan=2><i><b>Description</b></i></td></tr>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td colspan=2>'.nl2br($answer['text']).'</td></tr>';
|
||||
$who = '<span style="color: green">[YOU]</span>';
|
||||
|
||||
echo '<br><TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD COLSPAN=2 CLASS=white><B>Answer #'.$answer['reply'].'</B></TD></TR>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td width=70%><i><b>Posted by</b></i></td><td>'.$who.'</td></tr>';
|
||||
echo '<TR BGCOLOR="'.$light.'"><td colspan=2><i><b>Description</b></i></td></tr>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td colspan=2>'.nl2br($answer['text']).'</td></tr>';
|
||||
echo '</TABLE>';
|
||||
}
|
||||
if($bug[2]['status'] != 3)
|
||||
@ -214,12 +214,12 @@ $showed = $post = $reply = false;
|
||||
if(isset($_POST['finish']))
|
||||
{
|
||||
if(empty($_POST['text']))
|
||||
$error[] = "<font color=black><b>Description cannot be empty.</b></font>";
|
||||
$error[] = '<span style="color: black"><b>Description cannot be empty.</b></span>';
|
||||
if($iswho['who'] == 0)
|
||||
$error[] = "<font color=black><b>You must wait for Administrator answer.</b></font>";
|
||||
$error[] = '<span style="color: black"><b>You must wait for Administrator answer.</b></span>';
|
||||
if(!$allow)
|
||||
$error[] = "<font color=black><b>You haven't any characters on account.</b></font>";
|
||||
|
||||
$error[] = '<span style="color: black"><b>You haven\'t any characters on account.</b></span>';
|
||||
|
||||
if(!empty($error))
|
||||
{
|
||||
foreach($error as $errors)
|
||||
@ -237,34 +237,34 @@ $showed = $post = $reply = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<br><font color=black><b>You can't add answer to closed bug thread.</b></font>";
|
||||
echo '<br><span style="color: black"><b>You can\'t add answer to closed bug thread.</b></span>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$post=true;
|
||||
}
|
||||
elseif(!empty($_REQUEST['id']) and $bug[2] == NULL)
|
||||
{
|
||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD CLASS=white><B>Bug Tracker</B></TD></TR>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td><i>Bug doesn\'t exist.</i></td></tr>';
|
||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'><TD CLASS=white><B>Bug Tracker</B></TD></TR>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td><i>Bug doesn\'t exist.</i></td></tr>';
|
||||
echo '</TABLE>';
|
||||
$post=true;
|
||||
}
|
||||
|
||||
|
||||
if(!$post)
|
||||
{
|
||||
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>';
|
||||
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)
|
||||
{
|
||||
if($report['status'] == 1)
|
||||
$value = "<font color=green>[OPEN]</font>";
|
||||
$value = '<span style="color: green">[OPEN]</span>';
|
||||
elseif($report['status'] == 2)
|
||||
$value = "<font color=blue>[NEW ANSWER]</font>";
|
||||
$value = '<span style="color: blue">[NEW ANSWER]</span>';
|
||||
elseif($report['status'] == 3)
|
||||
$value = "<font color=red>[CLOSED]</font>";
|
||||
|
||||
$value = '<span style="color: red">[CLOSED]</span>';
|
||||
|
||||
if(is_int($report['id'] / 2))
|
||||
{
|
||||
$bgcolor = $dark;
|
||||
@ -275,16 +275,16 @@ $showed = $post = $reply = false;
|
||||
}
|
||||
|
||||
echo '<TR BGCOLOR="'.$bgcolor.'"><td width=75%><a href="?subtopic=bugtracker&id='.$report['id'].'">'.$tags[$report['tag']].' '.$report['subject'].'</a></td><td>'.$value.'</td></tr>';
|
||||
|
||||
|
||||
$showed=true;
|
||||
}
|
||||
|
||||
|
||||
if(!$showed)
|
||||
{
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td><i>You don\'t have reported any bugs.</i></td></tr>';
|
||||
echo '<TR BGCOLOR="'.$dark.'"><td><i>You don\'t have reported any bugs.</i></td></tr>';
|
||||
}
|
||||
echo '</TABLE>';
|
||||
|
||||
|
||||
echo '<br><a href="?subtopic=bugtracker&add=true"><b>[ADD REPORT]</b></a>';
|
||||
}
|
||||
elseif(isset($_REQUEST['add']) && $_REQUEST['add'] == TRUE)
|
||||
@ -292,23 +292,23 @@ $showed = $post = $reply = false;
|
||||
$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();
|
||||
$id_next = $id_next[0] + 1;
|
||||
|
||||
|
||||
if(empty($thread))
|
||||
$thread['status'] = 3;
|
||||
|
||||
|
||||
if(isset($_POST['submit']))
|
||||
{
|
||||
if($thread['status'] != 3)
|
||||
$error[] = "<font color=black><b>Can be only 1 open bug thread.</b></font>";
|
||||
$error[] = '<span style="color: black"><b>Can be only 1 open bug thread.</b></span>';
|
||||
if(empty($_POST['subject']))
|
||||
$error[] = "<font color=black><b>Subject cannot be empty.</b></font>";
|
||||
$error[] = '<span style="color: black"><b>Subject cannot be empty.</b></span>';
|
||||
if(empty($_POST['text']))
|
||||
$error[] = "<font color=black><b>Description cannot be empty.</b></font>";
|
||||
$error[] = '<span style="color: black"><b>Description cannot be empty.</b></span>';
|
||||
if(!$allow)
|
||||
$error[] = "<font color=black><b>You haven't any characters on account.</b></font>";
|
||||
$error[] = '<span style="color: black"><b>You haven\'t any characters on account.</b></span>';
|
||||
if(empty($_POST['tags']))
|
||||
$error[] = "<font color=black><b>Tag cannot be empty.</b></font>";
|
||||
|
||||
$error[] = '<span style="color: black"><b>Tag cannot be empty.</b></span>';
|
||||
|
||||
if(!empty($error))
|
||||
{
|
||||
foreach($error as $errors)
|
||||
@ -321,22 +321,22 @@ $showed = $post = $reply = false;
|
||||
$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: ?subtopic=bugtracker&id='.$id_next.'');
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
echo '<br><form method="post" action=""><table><tr><td><i>Subject</i></td><td><input type=text name="subject"/></td></tr><tr><td><i>Description</i></td><td><textarea name="text" rows="15" cols="35"></textarea></td></tr><tr><td>TAG</td><td><select name="tags"><option value="">SELECT</option>';
|
||||
|
||||
|
||||
for($i = 1; $i <= count($tags); $i++)
|
||||
{
|
||||
echo '<option value="' . $i . '">' . $tags[$i] . '</option>';
|
||||
}
|
||||
|
||||
|
||||
echo '</select></tr></tr></table><br><input type="submit" name="submit" value="Submit" class="input2"/></form>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(admin() and empty($_REQUEST['control']))
|
||||
{
|
||||
echo '<br><br><a href="?subtopic=bugtracker&control=true">[ADMIN PANEL]</a>';
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
@ -302,7 +302,7 @@ WHERE killers.death_id = '".$death['id']."' ORDER BY killers.final_hit DESC, kil
|
||||
$lasthit = ($death['is_player']) ? getPlayerLink($death['killed_by']) : $death['killed_by'];
|
||||
$description = 'Killed at level ' . $death['level'] . ' by ' . $lasthit;
|
||||
if($death['unjustified']) {
|
||||
$description .= " <font color='red' style='font-style: italic;'>(unjustified)</font>";
|
||||
$description .= ' <span style="color: red; font-style: italic;">(unjustified)</span>';
|
||||
}
|
||||
|
||||
$mostdmg = ($death['mostdamage_by'] !== $death['killed_by']) ? true : false;
|
||||
@ -312,7 +312,7 @@ WHERE killers.death_id = '".$death['id']."' ORDER BY killers.final_hit DESC, kil
|
||||
$description .= ' and by ' . $mostdmg;
|
||||
|
||||
if ($death['mostdamage_unjustified']) {
|
||||
$description .= " <font color='red' style='font-style: italic;'>(unjustified)</font>";
|
||||
$description .= ' <span style="color: red; font-style: italic;">(unjustified)</span>';
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@ -78,34 +78,34 @@ if(empty($_REQUEST['creature']))
|
||||
$monsters = $db->query('SELECT * FROM `' . TABLE_PREFIX . 'monsters` WHERE `hidden` != 1'.$whereandorder);
|
||||
echo '<TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%><TR BGCOLOR='.$config['vdarkborder'].'>';
|
||||
if($order == 'name' && !isset($_REQUEST['desc'])) {
|
||||
echo '<TD class="white" width="200"><B><a href="?subtopic=creatures&order=name&desc=1"><font class="white">Name DESC</a></B></TD>';
|
||||
echo '<TD class="white" width="200"><B><a href="?subtopic=creatures&order=name&desc=1"><span class="white">Name DESC</span></a></B></TD>';
|
||||
} else {
|
||||
echo '<TD class="white" width="200"><B><a href="?subtopic=creatures&order=name"><font class="white">Name</a></B></TD>';
|
||||
echo '<TD class="white" width="200"><B><a href="?subtopic=creatures&order=name"><span class="white">Name</span></a></B></TD>';
|
||||
}
|
||||
if($order == 'health' && !isset($_REQUEST['desc'])) {
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=health&desc=1"><font class="white">Health<br/>DESC</a></B></TD>';
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=health&desc=1"><span class="white">Health<br/>DESC</span></a></B></TD>';
|
||||
} else {
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=health"><font class="white">Health</a></B></TD>';
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=health"><span class="white">Health</span></a></B></TD>';
|
||||
}
|
||||
if($order == 'exp' && !isset($_REQUEST['desc'])) {
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=exp&desc=1"><font class="white">Experience<br/>DESC</a></B></TD>';
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=exp&desc=1"><span class="white">Experience<br/>DESC</span></a></B></TD>';
|
||||
} else {
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=exp"><font class="white">Experience</a></B></TD>';
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=exp"><span class="white">Experience</span></a></B></TD>';
|
||||
}
|
||||
if($order == 'summonable' && !isset($_REQUEST['desc'])) {
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=summonable&desc=1"><font class="white">Summonable<br/>Mana DESC</a></B></TD>';
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=summonable&desc=1"><span class="white">Summonable<br/>Mana DESC</span></a></B></TD>';
|
||||
} else {
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=summonable"><font class="white">Summonable<br/>Mana</a></B></TD>';
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=summonable"><span class="white">Summonable<br/>Mana</span></a></B></TD>';
|
||||
}
|
||||
if($order == 'convinceable' && !isset($_REQUEST['desc'])) {
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=convinceable&desc=1"><font class="white">Convinceable<br/>Mana DESC</a></B></TD>';
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=convinceable&desc=1"><span class="white">Convinceable<br/>Mana DESC</span></a></B></TD>';
|
||||
} else {
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=convinceable"><font class="white">Convinceable<br/>Mana</a></B></TD>';
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=convinceable"><span class="white">Convinceable<br/>Mana</span></a></B></TD>';
|
||||
}
|
||||
if($order == 'race' && !isset($_REQUEST['desc'])) {
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=race&desc=1"><font class="white">Race<br/>DESC</a></B></TD></TR>';
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=race&desc=1"><span class="white">Race<br/>DESC</span></a></B></TD></TR>';
|
||||
} else {
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=race"><font class="white">Race</a></B></TD></TR>';
|
||||
echo '<TD class="white"><B><a href="?subtopic=creatures&order=race"><span class="white">Race</span></a></B></TD></TR>';
|
||||
}
|
||||
$number_of_rows = 0;
|
||||
foreach($monsters as $monster) {
|
||||
|
@ -43,8 +43,8 @@ echo '<br /><br />Page: '.$links_to_pages.'<br />';
|
||||
$last_threads = $db->query("SELECT `players`.`id` as `player_id`, `players`.`name`, `" . TABLE_PREFIX . "forum`.`post_text`, `" . TABLE_PREFIX . "forum`.`post_topic`, `" . TABLE_PREFIX . "forum`.`id`, `" . TABLE_PREFIX . "forum`.`last_post`, `" . TABLE_PREFIX . "forum`.`replies`, `" . TABLE_PREFIX . "forum`.`views`, `" . TABLE_PREFIX . "forum`.`post_date` FROM `players`, `" . TABLE_PREFIX . "forum` WHERE `players`.`id` = `" . TABLE_PREFIX . "forum`.`author_guid` AND `" . TABLE_PREFIX . "forum`.`section` = ".(int) $section_id." AND `" . TABLE_PREFIX . "forum`.`first_post` = `" . TABLE_PREFIX . "forum`.`id` ORDER BY `" . TABLE_PREFIX . "forum`.`last_post` DESC LIMIT ".$config['forum_threads_per_page']." OFFSET ".($_page * $config['forum_threads_per_page']))->fetchAll();
|
||||
if(isset($last_threads[0]))
|
||||
{
|
||||
echo '<table width="100%"><tr bgcolor="'.$config['vdarkborder'].'" align="center"><td><font color="white" size="1"><b>Thread</b></font></td><td><font color="white" size="1"><b>Thread Starter</b></font></td><td><font color="white" size="1"><b>Replies</b></font></td><td><font color="white" size="1"><b>Views</b></font></td><td><font color="white" size="1"><b>Last Post</b></font></td></tr>';
|
||||
|
||||
echo '<table width="100%"><tr bgcolor="'.$config['vdarkborder'].'" align="center"><td><span style="color: white; font-size: 10px"><b>Thread</b></span></td><td><span style="color: white; font-size: 10px"><b>Thread Starter</b></span></td><td><span style="color: white; font-size: 10px"><b>Replies</b></span></td><td><span style="color: white; font-size: 10px"><b>Views</b></span></td><td><span style="color: white; font-size: 10px"><b>Last Post</b></span></td></tr>';
|
||||
|
||||
$player = new OTS_Player();
|
||||
foreach($last_threads as $thread)
|
||||
{
|
||||
@ -52,18 +52,18 @@ if(isset($last_threads[0]))
|
||||
if(Forum::isModerator())
|
||||
{
|
||||
echo '<a href="?subtopic=forum&action=move_thread&id='.$thread['id'].'"\')"><span style="color:darkgreen">[MOVE]</span></a>';
|
||||
echo '<a href="?subtopic=forum&action=remove_post&id='.$thread['id'].'" onclick="return confirm(\'Are you sure you want remove thread > '.$thread['post_topic'].' <?\')"><font color="red">[REMOVE]</font></a> ';
|
||||
echo '<a href="?subtopic=forum&action=remove_post&id='.$thread['id'].'" onclick="return confirm(\'Are you sure you want remove thread > '.$thread['post_topic'].' <?\')"><span style="color: red">[REMOVE]</span></a> ';
|
||||
}
|
||||
|
||||
|
||||
$player->load($thread['player_id']);
|
||||
if(!$player->isLoaded()) {
|
||||
error('Forum error: Player not loaded.');
|
||||
die();
|
||||
}
|
||||
|
||||
|
||||
$player_account = $player->getAccount();
|
||||
$canEditForum = $player_account->hasFlag(FLAG_CONTENT_FORUM) || $player_account->isAdmin();
|
||||
|
||||
|
||||
echo '<a href="' . getForumThreadLink($thread['id']) . '">'.($canEditForum ? $thread['post_topic'] : htmlspecialchars($thread['post_topic'])) . '</a><br /><small>'.($canEditForum ? substr(strip_tags($thread['post_text']), 0, 50) : htmlspecialchars(substr($thread['post_text'], 0, 50))).'...</small></td><td>' . getPlayerLink($thread['name']) . '</td><td>'.(int) $thread['replies'].'</td><td>'.(int) $thread['views'].'</td><td>';
|
||||
if($thread['last_post'] > 0)
|
||||
{
|
||||
|
@ -154,9 +154,9 @@ else
|
||||
|
||||
if($level_in_guild > $rank->getLevel() || $guild_leader)
|
||||
if($guild_leader_char->getName() != $player->getName())
|
||||
echo ' <font size=1>{<a href="?subtopic=guilds&action=kick_player&guild='.urlencode($guild->getName()).'&name='.urlencode($player->getName()).'">KICK</a>}</font>';
|
||||
echo ' <span style="font-size: 10px">{<a href="?subtopic=guilds&action=kick_player&guild='.urlencode($guild->getName()).'&name='.urlencode($player->getName()).'">KICK</a>}</span>';
|
||||
|
||||
echo '</FORM></TD><TD align="right" width="10%">'.$player->getLevel().'</TD><TD align="right" width="20%"><font color="'.($player->isOnline() ? 'green"><b>Online' : 'red"><b>Offline').'</b></font></TD></TR>';
|
||||
echo '</FORM></TD><TD align="right" width="10%">'.$player->getLevel().'</TD><TD align="right" width="20%"><span style="color: '.($player->isOnline() ? 'green"><b>Online' : 'red"><b>Offline').'</b></span></TD></TR>';
|
||||
}
|
||||
echo '</TABLE></TD></TR>';
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ echo '
|
||||
echo '
|
||||
<td>
|
||||
<a href="' . getPlayerLink($player['name'], false) . '">
|
||||
<font color="' . ($player['online'] > 0 ? 'green' : 'red') . '">' . $player['name'] . '</font>
|
||||
<span style="color: ' . ($player['online'] > 0 ? 'green' : 'red') . '">' . $player['name'] . '</span>
|
||||
</a>';
|
||||
if($config['highscores_vocation']) {
|
||||
if(isset($player['promotion'])) {
|
||||
|
@ -441,7 +441,7 @@ elseif($action == 'checkcode')
|
||||
$error = 'Account of this character or this character doesn\'t exist.';
|
||||
}
|
||||
if(!empty($error))
|
||||
echo '<font color="red"><b>'.$error.'</b></font><br />Please enter code from e-mail and name of one character from account. Then press Submit.<BR>
|
||||
echo '<span style="color: red"><b>'.$error.'</b></span><br />Please enter code from e-mail and name of one character from account. Then press Submit.<BR>
|
||||
<FORM ACTION="?subtopic=lostaccount&action=checkcode" METHOD=post>
|
||||
<TABLE CELLSPACING=1 CELLPADDING=4 BORDER=0 WIDTH=100%>
|
||||
<TR><TD BGCOLOR="'.$config['vdarkborder'].'" class="white"><B>Code & character name</B></TD></TR>
|
||||
@ -462,7 +462,7 @@ elseif($action == 'setnewpassword')
|
||||
$character = stripslashes($_REQUEST['character']);
|
||||
echo '';
|
||||
if(empty($code) || empty($character) || empty($newpassword))
|
||||
echo '<font color="red"><b>Error. Try again.</b></font><br />Please enter code from e-mail and name of one character from account. Then press Submit.<BR>
|
||||
echo '<span style="color: red"><b>Error. Try again.</b></span><br />Please enter code from e-mail and name of one character from account. Then press Submit.<BR>
|
||||
<BR><FORM ACTION="?subtopic=lostaccount&action=checkcode" METHOD=post>
|
||||
<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%><TR><TD><div style="text-align:center">
|
||||
<INPUT TYPE=image NAME="Back" ALT="Back" SRC="'.$template_path.'/images/global/buttons/sbutton_back.gif" BORDER=0 WIDTH=120 HEIGHT=18></div>
|
||||
@ -533,7 +533,7 @@ elseif($action == 'setnewpassword')
|
||||
$error = 'Account of this character or this character doesn\'t exist.';
|
||||
}
|
||||
if(!empty($error))
|
||||
echo '<font color="red"><b>'.$error.'</b></font><br />Please enter code from e-mail and name of one character from account. Then press Submit.<BR>
|
||||
echo '<span style="color: red"><b>'.$error.'</b></span><br />Please enter code from e-mail and name of one character from account. Then press Submit.<BR>
|
||||
<FORM ACTION="?subtopic=lostaccount&action=checkcode" METHOD=post>
|
||||
<TABLE CELLSPACING=1 CELLPADDING=4 BORDER=0 WIDTH=100%>
|
||||
<TR><TD BGCOLOR="'.$config['vdarkborder'].'" class="white"><B>Code & character name</B></TD></TR>
|
||||
|
@ -231,7 +231,7 @@ function getColorByPercent($percent)
|
||||
<td width=20%>
|
||||
' . slaw_getPercentBar($percent[$i]) . '
|
||||
</td>
|
||||
<td>' . $answer['votes'] . '(<font color=' . getColorByPercent($percent[$i]) . '><b>' . $percent[$i] . '%</b></font>)</td>
|
||||
<td>' . $answer['votes'] . '(<span style="color: ' . getColorByPercent($percent[$i]) . '"><b>' . $percent[$i] . '%</b></span>)</td>
|
||||
</tr>';
|
||||
$i++;
|
||||
}
|
||||
@ -270,7 +270,7 @@ function getColorByPercent($percent)
|
||||
<td width=20%>
|
||||
' . slaw_getPercentBar($percent[$i]) . '
|
||||
</td>
|
||||
<td>' . $answer['votes'] . '(<font color=' . getColorByPercent($percent[$i]) . '><b>' . $percent[$i] . '%</b></font>)</td>
|
||||
<td>' . $answer['votes'] . '(<span style="color:' . getColorByPercent($percent[$i]) . '"><b>' . $percent[$i] . '%</b></span>)</td>
|
||||
</tr>';
|
||||
$i++;
|
||||
}
|
||||
@ -282,7 +282,7 @@ function getColorByPercent($percent)
|
||||
|
||||
}
|
||||
$showed=true;
|
||||
echo '<div class=\'hr1\'></div><a href="?subtopic='.$link.'"><font size="2"><b>Go to list of polls</b></font></a>';
|
||||
echo '<div class=\'hr1\'></div><a href="?subtopic='.$link.'"><span style="font-size: 13px"><b>Go to list of polls</b></span></a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -300,7 +300,7 @@ function getColorByPercent($percent)
|
||||
if(isset($_POST['submit']))
|
||||
{
|
||||
setSession('answers', $_POST['answers']);
|
||||
echo '<form method="post" action=""><b><font size=3>Adding Poll</font></b><br><br>
|
||||
echo '<form method="post" action=""><b><span style="font-size: 16px">Adding Poll</span></b><br><br>
|
||||
<input type=text name=question value="" /> Question<br>
|
||||
<input type=text name=description value="" /> Description<br>
|
||||
<input type=text name=end value="" /> Time to end, in days<br>';
|
||||
@ -351,22 +351,22 @@ function getColorByPercent($percent)
|
||||
{
|
||||
if(!$check)
|
||||
{
|
||||
echo '<form method="post" action=""><b><font size=3>Adding Poll</font></b><br><br>
|
||||
echo '<form method="post" action=""><b><span style="font-size: 16px">Adding Poll</span></b><br><br>
|
||||
<input type=text name=answers value="" /> Number of Answers<br>
|
||||
<input type="submit" name="submit" value="Submit" class="input2"/></form><br><br>';
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<b><font size=3><br>Cannot be two and more active polls.<br><br></font></b>';
|
||||
echo '<b><span style="font-size: 16px"><br>Cannot be two and more active polls.<br><br></span></b>';
|
||||
}
|
||||
}
|
||||
$showed=true;
|
||||
echo '<br><div class=\'hr1\'></div><a href="?subtopic='.$link.'"><font size="2"><b>Go to list of polls</b></font></a>';
|
||||
echo '<br><div class=\'hr1\'></div><a href="?subtopic='.$link.'"><span style="font-size: 13px"><b>Go to list of polls</b></span></a>';
|
||||
}
|
||||
|
||||
if(!$showed)
|
||||
{
|
||||
echo 'This poll doesn\'t exist.<br>';
|
||||
echo '<div class=\'hr1\'></div><a href="?subtopic='.$link.'"><font size="2"><b>Go to list of polls</b></font></a>';
|
||||
echo '<div class=\'hr1\'></div><a href="?subtopic='.$link.'"><span style="font-size: 13px"><b>Go to list of polls</b></span></a>';
|
||||
}
|
||||
?>
|
||||
|
@ -58,10 +58,10 @@ foreach($groupList as $id => $group)
|
||||
|
||||
$tmp .= '<td>' . $flag . ' ' . getPlayerLink($member->getName()) . '</td>';
|
||||
if($config['team_display_status'])
|
||||
$tmp .= '<td>' . ($member->isOnline() > 0 ? '<font color="green"><b>Online</b></font>' : '<font color="red"><b>Offline</b></font>') . '</td>';
|
||||
$tmp .= '<td>' . ($member->isOnline() > 0 ? '<span style="color: green"><b>Online</b></span>' : '<span style="color: red"><b>Offline</b></span>') . '</td>';
|
||||
|
||||
if($config['multiworld'] || $config['team_display_world'])
|
||||
$tmp .= '<td><font class="white"><b>' . getWorldName($member->getWorldId()) . '</b></font></td>';
|
||||
$tmp .= '<td><span class="white"><b>' . getWorldName($member->getWorldId()) . '</b></span></td>';
|
||||
|
||||
$lastLogin = '';
|
||||
if($config['team_display_lastlogin'])
|
||||
@ -107,18 +107,18 @@ function getGroupHeader($groupField = true)
|
||||
|
||||
$ret = '<tr bgcolor="' . $config['vdarkborder'] . '">';
|
||||
if($groupField)
|
||||
$ret .= '<td width="20%"><font class="white"><b>Group</b></font></td>';
|
||||
$ret .= '<td width="20%"><span class="white"><b>Group</b></span></td>';
|
||||
|
||||
$ret .= '<td width="40%"><font class="white"><b>Name</b></font></td>';
|
||||
$ret .= '<td width="40%"><span class="white"><b>Name</b></span></td>';
|
||||
|
||||
if($config['team_display_status'])
|
||||
$ret .= '<td width="20%"><font class="white"><b>Status</b></font></td>';
|
||||
$ret .= '<td width="20%"><span class="white"><b>Status</b></span></td>';
|
||||
|
||||
if($config['multiworld'] || $config['team_display_world'])
|
||||
$ret .= '<td><font class="white"><b>World</b></font></td>';
|
||||
$ret .= '<td><span class="white"><b>World</b></span></td>';
|
||||
|
||||
if($config['team_display_lastlogin'])
|
||||
$ret .= '<td width="20%"><font class="white"><b>Last login</b></font></td>';
|
||||
$ret .= '<td width="20%"><span class="white"><b>Last login</b></span></td>';
|
||||
|
||||
$ret .= '</tr>';
|
||||
return $ret;
|
||||
|
@ -1,5 +1,5 @@
|
||||
To change a name of character select player and choose a new name.<br/>
|
||||
<font color="red">Change name cost {{ config.account_change_character_name_points }} premium points. You have {{ points }} premium points.</font><br/><br/>
|
||||
<span style="color: red">Change name cost {{ config.account_change_character_name_points }} premium points. You have {{ points }} premium points.</span><br/><br/>
|
||||
<form action="{{ getLink('account/character/name') }}" method="post">
|
||||
<input type="hidden" name="changenamesave" value="1">
|
||||
<div class="TableContainer">
|
||||
@ -37,9 +37,9 @@ To change a name of character select player and choose a new name.<br/>
|
||||
<input type="text" name="name" id="character_name" size="25" maxlength="25" >
|
||||
<img id="character_indicator" src="images/global/general/{% if not save or errors|length > 0 %}n{% endif %}ok.gif" />
|
||||
<br/>
|
||||
<font size="1" face="verdana,arial,helvetica">
|
||||
<span style="font-size: 10px">
|
||||
<div id="character_error">Please enter your character name.</div>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
@ -1,5 +1,5 @@
|
||||
To change a sex of character select player and choose a new sex.<br/>
|
||||
<font color="red">Change sex cost {{ config.account_change_character_sex_points }} premium points. You have {{ points }} premium points.</font><br/><br/>
|
||||
<span style="color: red">Change sex cost {{ config.account_change_character_sex_points }} premium points. You have {{ points }} premium points.</span><br/><br/>
|
||||
<form action="{{ getLink('account/character/sex') }}" method="post">
|
||||
<input type="hidden" name="changesexsave" value="1"/>
|
||||
<div class="TableContainer">
|
||||
|
@ -3,7 +3,7 @@ Please choose a name{% if config.character_samples|length > 1 %}, vocation{% end
|
||||
and sex for your character. <br/>
|
||||
In any case the name must not violate the naming conventions stated in the <a href="?subtopic=rules" target="_blank" >{{ config.lua.serverName }} Rules</a>, or your character might get deleted or name locked.
|
||||
{% if account_logged.getPlayersList()|length >= config.characters_per_account %}
|
||||
<b><font color="red"> You have maximum number of characters per account on your account. Delete one before you make new.</font></b>
|
||||
<b><span style="color: red"> You have maximum number of characters per account on your account. Delete one before you make new.</span></b>
|
||||
{% endif %}
|
||||
<br/><br/>
|
||||
<form action="{{ getLink('account/character/create') }}" method="post">
|
||||
@ -48,9 +48,9 @@ In any case the name must not violate the naming conventions stated in the <a hr
|
||||
<input name="name" id="character_name" value="{{ name }}" size="25" maxlength="25" >
|
||||
<img id="character_indicator" src="images/global/general/{% if not save or errors.name is defined %}n{% endif %}ok.gif" />
|
||||
<br/>
|
||||
<font size="1" face="verdana,arial,helvetica">
|
||||
<span style="font-size: 10px">
|
||||
<div id="character_error">{% if not save or errors.name is defined %}Please enter your character name.{% endif %}</div>
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
{% set i = 0 %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
To generate new recovery key for your account please enter your password.<br/>
|
||||
<font color="red"><b>New recovery key cost {{ config.generate_new_reckey_price }} Premium Points.</font> You have {{ points }} premium points. You will receive e-mail with this recovery key.</b><br/>
|
||||
<span style="color: red"><b>New recovery key cost {{ config.generate_new_reckey_price }} Premium Points.</span> You have {{ points }} premium points. You will receive e-mail with this recovery key.</b><br/>
|
||||
<form action="{{ getLink('account/register/new') }}" method="post">
|
||||
<input type="hidden" name="registeraccountsave" value="1">
|
||||
<div class="TableContainer" >
|
||||
|
@ -168,7 +168,7 @@
|
||||
{% for player in players %}
|
||||
{% set i = i + 1 %}
|
||||
<tr bgcolor="{{ getStyle(i) }}">
|
||||
<td><a href="{{ getLink('characters/' ~ player.getName()|urlencode) }}">{{ player.getName() }}</a></td><td>{{ player.getLevel() }}</td><td>{{ player.getVocationName() }}</td><td>{{ config.towns[player.getTownId()] }}</td><td>{% if player.getLastLogin() > 0 %}{{ player.getLastLogin|date('d F Y (H:i)') }}{% else %}Never.{% endif %}</td><td>{% if player.isOnline() %}<font color="green">ONLINE</font>{% else %}<font color="red">Offline</font>{% endif %}</td><td>{% if player.isHidden() %}Hidden{% else %}Visible{% endif %}</td><td>[<a href="{{ getLink('account/character/comment/' ~ player.getName|urlencode) }}" >Edit</a>]</td>
|
||||
<td><a href="{{ getLink('characters/' ~ player.getName()|urlencode) }}">{{ player.getName() }}</a></td><td>{{ player.getLevel() }}</td><td>{{ player.getVocationName() }}</td><td>{{ config.towns[player.getTownId()] }}</td><td>{% if player.getLastLogin() > 0 %}{{ player.getLastLogin|date('d F Y (H:i)') }}{% else %}Never.{% endif %}</td><td>{% if player.isOnline() %}<span style="color: green">ONLINE</span>{% else %}<span style="color: red">Offline</span>{% endif %}</td><td>{% if player.isHidden() %}Hidden{% else %}Visible{% endif %}</td><td>[<a href="{{ getLink('account/character/comment/' ~ player.getName|urlencode) }}" >Edit</a>]</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
@ -1,10 +1,10 @@
|
||||
<br/>
|
||||
<table border="0" cellspacing="1" cellpadding="4" width="100%">
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td width="22"><font class="white"><b>Type</b></font></td>
|
||||
<td width="22"><font class="white"><b>Where</b></font></td>
|
||||
<td width="50"><font class="white"><b>Date</b></font></td>
|
||||
<td><font class="white"><b>Description</b></font></td>
|
||||
<td width="22"><span class="white"><b>Type</b></span></td>
|
||||
<td width="22"><span class="white"><b>Where</b></span></td>
|
||||
<td width="50"><span class="white"><b>Date</b></span></td>
|
||||
<td><span class="white"><b>Description</b></span></td>
|
||||
</tr>
|
||||
{% if changelogs|length > 0%}
|
||||
{% set i = 0 %}
|
||||
@ -26,7 +26,7 @@
|
||||
<td colspan="4" bgcolor="{{ config.darkborder }}">There are no changelogs for the moment.</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
||||
|
||||
<table border="0" cellspacing="1" cellpadding="4" width="100%">
|
||||
{% if page > 0 %}
|
||||
<tr><td width="100%" align="right" valign="bottom"><a href="{{ getLink('changelog/' ~ (page - 1)) }}" class="size_xxs">Previous Page</a></td></tr>
|
||||
|
@ -27,7 +27,7 @@
|
||||
{% set rows = rows + 1 %}
|
||||
<tr bgcolor="{{ getStyle(rows) }}">
|
||||
<td width="20%">Name:</td>
|
||||
<td>{{ flag|raw }} <font color="{% if player.isOnline() %}green{% else %}red{% endif %}"><b>{{ player.getName() }}</b></font>{{ oldName }}</td>
|
||||
<td>{{ flag|raw }} <span style="color: {% if player.isOnline() %}green{% else %}red{% endif %}"><b>{{ player.getName() }}</b></span>{{ oldName }}</td>
|
||||
</tr>
|
||||
|
||||
{% set rows = rows + 1 %}
|
||||
@ -263,7 +263,7 @@
|
||||
{% for frag in frags %}
|
||||
<tr bgcolor="{{ getStyle(i) }}">
|
||||
<td width="20%" align="center">{{ frag.time|date("j M Y, H:i") }}</td>
|
||||
<td>{{ frag.description|raw }}({% if frag.unjustified %}<font size="1" color="red">Unjustified</font>{% else %}<font size="1" color="green">Justified</font>{% endif %})</td>
|
||||
<td>{{ frag.description|raw }}({% if frag.unjustified %}<span style="color: red; font-size: 10px">Unjustified</span>{% else %}<span style="color: green; font-size: 10px">Justified</span>{% endif %})</td>
|
||||
</tr>
|
||||
{% set i = i + 1 %}
|
||||
{% endfor %}
|
||||
@ -357,7 +357,7 @@
|
||||
<td width="20%">Created:</td>
|
||||
<td>{{ account.getCreated()|date("j F Y, g:i a") }}
|
||||
{% if bannedUntil matches '/^\\d+$/' or bannedUntil == '-1' %}
|
||||
<font color="red">[Banished {% if bannedUntil == '-1' %}forever{% else %}until {{ bannedUntil|date('d F Y, h:s') }}{% endif %}]</font>
|
||||
<span style="color: red">[Banished {% if bannedUntil == '-1' %}forever{% else %}until {{ bannedUntil|date('d F Y, h:s') }}{% endif %}]</span>
|
||||
{% else %}
|
||||
{{ bannedUntil|raw }}
|
||||
{% endif %}
|
||||
@ -384,11 +384,11 @@
|
||||
{% set i = i + 1 %}
|
||||
<tr bgcolor="{{ getStyle(i) }}">
|
||||
<td>
|
||||
<nobr>{{ i }}. {{ player.getName() }}{% if player.isDeleted() %}<font color="red"> [DELETED]</font>{% endif %}</nobr>
|
||||
<nobr>{{ i }}. {{ player.getName() }}{% if player.isDeleted() %}<span style="color: red"> [DELETED]</span>{% endif %}</nobr>
|
||||
</td>
|
||||
|
||||
<td>{{ player.getLevel() }} {{ player.getVocationName() }}</td>
|
||||
<td>{% if player.isOnline() %}<b><font color="green">Online</font></b>{% endif %}</td>
|
||||
<td>{% if player.isOnline() %}<b><span style="color: green">Online</span></b>{% endif %}</td>
|
||||
<td>
|
||||
<table border="0" cellspacing="0" cellpadding="0">
|
||||
<form action="{{ characters_link }}" method=post>
|
||||
|
@ -2,20 +2,20 @@
|
||||
<table width="100%">
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td>
|
||||
<font color="white" size="1"><b>Board</b></font>
|
||||
<span style="color: white; font-size: 10px"><b>Board</b></span>
|
||||
</td>
|
||||
<td>
|
||||
<font color="white" size="1"><b>Posts</b></font>
|
||||
<span style="color: white; font-size: 10px"><b>Posts</b></span>
|
||||
</td>
|
||||
<td>
|
||||
<font color="white" size="1"><b>Threads</b></font>
|
||||
<span style="color: white; font-size: 10px"><b>Threads</b></span>
|
||||
</td>
|
||||
<td align="center">
|
||||
<font color="white" size="1"><b>Last Post</b></font>
|
||||
<span style="color: white; font-size: 10px"><b>Last Post</b></span>
|
||||
</td>
|
||||
{% if canEdit %}
|
||||
<td>
|
||||
<font color="white" size="1"><b>Options</b></font>
|
||||
<span style="color: white; font-size: 10px"><b>Options</b></span>
|
||||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
|
@ -6,7 +6,7 @@
|
||||
<table width="100%">
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td colspan="2">
|
||||
<font color="white"><b>Edit Post</b></font>
|
||||
<span style="color: white"><b>Edit Post</b></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
@ -25,7 +25,7 @@
|
||||
<td><input type="text" value="{{ post_topic|raw }}" name="topic" size="40" maxlength="60" /> (Optional)</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
<td valign="top"><b>Message:</b><font size="1"><br/>You can use:<br/>[player]Nick[/player]<br />[url]http://address.com/[/url]<br />[img]http://images.com/images3.gif[/img]<br />[code]Code[/code]<br />[b]<b>Text</b>[/b]<br />[i]<i>Text</i>[/i]<br/>[u]<u>Text</u>[/u]<br />and smileys:<br />;) , :) , :D , :( , :rolleyes:<br />:cool: , :eek: , :o , :p</font>
|
||||
<td valign="top"><b>Message:</b><span style="font-size: 10px"><br/>You can use:<br/>[player]Nick[/player]<br />[url]http://address.com/[/url]<br />[img]http://images.com/images3.gif[/img]<br />[code]Code[/code]<br />[b]<b>Text</b>[/b]<br />[i]<i>Text</i>[/i]<br/>[u]<u>Text</u>[/u]<br />and smileys:<br />;) , :) , :D , :( , :rolleyes:<br />:cool: , :eek: , :o , :p</span>
|
||||
</td>
|
||||
<td>
|
||||
<textarea rows="10" cols="60" name="text">{{ post_text|raw }}</textarea><br />(Max. 15,000 letters)
|
||||
|
@ -5,7 +5,7 @@
|
||||
<input type="hidden" name="save" value="save" />
|
||||
<table width="100%">
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td colspan="2"><font color="white"><b>Post New Reply</b></font></td>
|
||||
<td colspan="2"><span style="color: white"><b>Post New Reply</b></span></td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
<td width="180"><b>Character:</b></td>
|
||||
@ -23,7 +23,7 @@
|
||||
<td><input type="text" name="topic" value="{{ post_topic|escape }}" size="40" maxlength="60" /> (Optional)</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
<td valign="top"><b>Message:</b><font size="1"><br />You can use:<br />[player]Nick[/player]<br />[url]http://address.com/[/url]<br />[img]http://images.com/images3.gif[/img]<br />[code]Code[/code]<br />[b]<b>Text</b>[/b]<br />[i]<i>Text</i>[/i]<br />[u]<u>Text</u>[/u]<br />and smileys:<br />;) , :) , :D , :( , :rolleyes:<br />:cool: , :eek: , :o , :p</font></td>
|
||||
<td valign="top"><b>Message:</b><span style="font-size: 10px"><br />You can use:<br />[player]Nick[/player]<br />[url]http://address.com/[/url]<br />[img]http://images.com/images3.gif[/img]<br />[code]Code[/code]<br />[b]<b>Text</b>[/b]<br />[i]<i>Text</i>[/i]<br />[u]<u>Text</u>[/u]<br />and smileys:<br />;) , :) , :D , :( , :rolleyes:<br />:cool: , :eek: , :o , :p</span></td>
|
||||
<td><textarea rows="10" cols="60" name="text">{{ post_text|escape }}</textarea><br />(Max. 15,000 letters)</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.lightborder }}">
|
||||
@ -49,7 +49,7 @@
|
||||
<table width="100%">
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td colspan="2">
|
||||
<font color="white"><b>Last 5 posts from thread: {{ topic|raw }}</b></font>
|
||||
<span style="color: white"><b>Last 5 posts from thread: {{ topic|raw }}</b></span>
|
||||
</td>
|
||||
</tr>
|
||||
{% set i = 0 %}
|
||||
|
@ -6,7 +6,7 @@
|
||||
<table width="100%">
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td colspan="2">
|
||||
<font color="white"><b>Post New Reply</b></font>
|
||||
<span style="color: white"><b>Post New Reply</b></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
@ -24,7 +24,7 @@
|
||||
<td><input type="text" name="topic" value="{{ post_thread|escape }}" size="40" maxlength="60" /> (Optional)</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
<td valign="top"><b>Message:</b><font size="1"><br />You can use:<br />[player]Nick[/player]<br />[url]http://address.com/[/url]<br />[img]http://images.com/images3.gif[/img]<br />[code]Code[/code]<br />[b]<b>Text</b>[/b]<br />[i]<i>Text</i>[/i]<br />[u]<u>Text</u>[/u]<br />and smileys:<br />;) , :) , :D , :( , :rolleyes:<br />:cool: , :eek: , :o , :p</font></td>
|
||||
<td valign="top"><b>Message:</b><span style="font-size: 10px"><br />You can use:<br />[player]Nick[/player]<br />[url]http://address.com/[/url]<br />[img]http://images.com/images3.gif[/img]<br />[code]Code[/code]<br />[b]<b>Text</b>[/b]<br />[i]<i>Text</i>[/i]<br />[u]<u>Text</u>[/u]<br />and smileys:<br />;) , :) , :D , :( , :rolleyes:<br />:cool: , :eek: , :o , :p</span></td>
|
||||
<td><textarea rows="10" cols="60" name="text">{{ post_text|escape }}</textarea><br />(Max. 15,000 letters)</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.lightborder }}">
|
||||
|
@ -6,18 +6,18 @@ Page: {{ links_to_pages|raw }}<br/>
|
||||
<table width="100%">
|
||||
<tr bgcolor="{{ config.lightborder }}" width="100%">
|
||||
<td colspan="2">
|
||||
<font size="4"><b>{{ thread_starter.post_topic }}</b></font>
|
||||
<font size="1"><br/>
|
||||
by {{ author_link|raw }}</font>
|
||||
<span style="font-size: 18px"><b>{{ thread_starter.post_topic }}</b></span>
|
||||
<span style="font-size: 10px"><br/>
|
||||
by {{ author_link|raw }}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td width="200">
|
||||
<font color="white" size="1"><b>Author</b></font>
|
||||
<span style="color: white; font-size: 10px"><b>Author</b></span>
|
||||
</td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
|
||||
|
||||
{% set i = 0 %}
|
||||
{% for post in posts %}
|
||||
<tr bgcolor="{{ getStyle(i) }}">
|
||||
@ -27,7 +27,7 @@ Page: {{ links_to_pages|raw }}<br/>
|
||||
<img style="margin-left:{% if post.player.getLookType() in [75, 266, 302] %}-0px;margin-top:-0px;width:64px;height:64px;{% else %}-60px;margin-top:-60px;width:128px;height:128px;{% endif %}" src="{{ post.outfit }}" alt="player outfit"/>
|
||||
<br />
|
||||
{% endif %}
|
||||
<font size="1">
|
||||
<span style="font-size: 10px">
|
||||
{% if post.group is defined %}
|
||||
Position: {{ post.group }}<br />
|
||||
{% endif %}
|
||||
@ -38,17 +38,17 @@ Page: {{ links_to_pages|raw }}<br/>
|
||||
{{ guildRank }}<br />
|
||||
{% endif %}
|
||||
<br />Posts: {{ post.author_posts_count }}<br />
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
<td valign="top">{{ post.content|raw }} </td></tr>
|
||||
<tr bgcolor="{{ getStyle(i) }}">
|
||||
<td>
|
||||
<font size="1">{{ post.date|date('d.m.y H:i:s') }}
|
||||
<span style="font-size: 10px">{{ post.date|date('d.m.y H:i:s') }}
|
||||
{% if post.edited_by is defined %}
|
||||
<br />Edited by {{ post.edited_by }}
|
||||
<br />on {{ post.edit_date|date('d.m.y H:i:s') }}
|
||||
{% endif %}
|
||||
</font>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
{% if is_moderator %}
|
||||
|
@ -19,14 +19,14 @@
|
||||
<option>{{ player }}</option>
|
||||
{% endfor %}
|
||||
</select><br/>
|
||||
<font size="1" face="verdana,arial,helvetica">(Name of leader of new guild.)</font>
|
||||
<span style="font-size: 10px">(Name of leader of new guild.)</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="150" valign="top"><b>Guild name: </b></td>
|
||||
<td>
|
||||
<input name="guild" value="" size="30" maxlength="50"/><br/>
|
||||
<font size="1" face="verdana,arial,helvetica">(Here write name of your new guild.)</font></td>
|
||||
<span style="font-size: 10px">(Here write name of your new guild.)</span></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
@ -4,10 +4,10 @@ Here you can change names of ranks, delete and add ranks, pass leadership to oth
|
||||
<table style="clear:both" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr bgcolor="{{ config.darkborder }}">
|
||||
<td width="170">
|
||||
<font color="red"><b>Option</b></font>
|
||||
<span style="color: red"><b>Option</b></span>
|
||||
</td>
|
||||
<td>
|
||||
<font color="red"><b>Description</b></font>
|
||||
<span style="color: red"><b>Description</b></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.lightborder }}">
|
||||
@ -92,24 +92,24 @@ Here you can change names of ranks, delete and add ranks, pass leadership to oth
|
||||
<table style="clear:both" border="0" cellpadding="0" cellspacing="0" width="100%">
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td rowspan="2" width="120" align="center">
|
||||
<font color="white"><b>ID/Delete Rank</b></font>
|
||||
<span style="color: white"><b>ID/Delete Rank</b></span>
|
||||
</td>
|
||||
<td rowspan="2" width="300">
|
||||
<font color="white"><b> Name</b></font>
|
||||
<span style="color: white"><b> Name</b></span>
|
||||
</td>
|
||||
<td colspan="3" align="center">
|
||||
<font color="white"><b>Level of RANK in guild</b></font>
|
||||
<span style="color: white"><b>Level of RANK in guild</b></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td align="center" bgcolor="red">
|
||||
<font color="white"><b>Leader (3)</b></font>
|
||||
<span style="color: white"><b>Leader (3)</b></span>
|
||||
</td>
|
||||
<td align="center" bgcolor="yellow">
|
||||
<font color="black"><b>Vice (2)</b></font>
|
||||
<span style="color: black"><b>Vice (2)</b></span>
|
||||
</td>
|
||||
<td align="center" bgcolor="green">
|
||||
<font color="white"><b>Member (1)</b></font>
|
||||
<span style="color: white"><b>Member (1)</b></span>
|
||||
</td>
|
||||
</tr>
|
||||
{% set i = 0 %}
|
||||
|
@ -35,25 +35,25 @@
|
||||
<table border="0" cellspacing="1" cellpadding="4" width="100%">
|
||||
<tr bgcolor="{{ config.vdarkborder }}">
|
||||
<td class="white">
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/spell' }}"><font class="white">Name</font></a></b>
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/spell' }}"><span class="white">Name</span></a></b>
|
||||
</td>
|
||||
<td class="white">
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/words' }}"><font class="white">Words</font></a></b>
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/words' }}"><span class="white">Words</span></a></b>
|
||||
</td>
|
||||
<td class="white">
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/type' }}"><font class="white">Type<br/>(count)</font></a></b>
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/type' }}"><span class="white">Type<br/>(count)</span></a></b>
|
||||
</td>
|
||||
<td class="white">
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/mana' }}"><font class="white">Mana</font></a></b>
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/mana' }}"><span class="white">Mana</span></a></b>
|
||||
</td>
|
||||
<td class="white">
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/level' }}"><font class="white">Level</font></a></b>
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/level' }}"><span class="white">Level</span></a></b>
|
||||
</td>
|
||||
<td class="white">
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/maglevel' }}"><font class="white">Magic<br/>Level</font></a></b>
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/maglevel' }}"><span class="white">Magic<br/>Level</span></a></b>
|
||||
</td>
|
||||
<td class="white">
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/soul' }}"><font class="white">Soul</font></a></b>
|
||||
<b><a href="{{ getLink('spells') ~ '/' ~ post_vocation|urlencode ~ '/soul' }}"><span class="white">Soul</span></a></b>
|
||||
</td>
|
||||
<td class="white">
|
||||
<b>Premium</b>
|
||||
@ -84,9 +84,9 @@
|
||||
<td>{% if spell.premium == 1 %}yes{% else %}no{% endif %}</td>
|
||||
<td>
|
||||
{% if spell.vocations|length > 0 %}
|
||||
<font size="1">
|
||||
<span style="font-size: 10px">
|
||||
{{ spell.vocations|raw }}
|
||||
</font>
|
||||
</span>
|
||||
{% else %}
|
||||
{{ config.vocations[post_vocation_id] }}
|
||||
{% endif %}
|
||||
|
@ -116,11 +116,11 @@ defined('MYAAC') or die('Direct access not allowed!');
|
||||
<?php
|
||||
if($status['online'])
|
||||
echo '
|
||||
<font color="green"><b>Server Online</b></font> »
|
||||
<span style="color: green"><b>Server Online</b></span> »
|
||||
Players Online: ' . $status['players'] . ' / ' . $status['playersMax'] . ' »
|
||||
Monsters: ' . $status['monsters'] . ' » Uptime: ' . (isset($status['uptimeReadable']) ? $status['uptimeReadable'] : 'Unknown') . '';
|
||||
else
|
||||
echo '<font color="red"><b>Server Offline</b></font>';
|
||||
echo '<span style="color: red"><b>Server Offline</b></span>';
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
@ -136,7 +136,7 @@ defined('MYAAC') or die('Direct access not allowed!');
|
||||
<p><?php echo template_footer(); ?></p>
|
||||
<?php
|
||||
if($config['template_allow_change'])
|
||||
echo '<font color="white">Template:</font><br/>' . template_form();
|
||||
echo '<span style="color: white">Template:</span><br/>' . template_form();
|
||||
?>
|
||||
</div>
|
||||
<!-- End -->
|
||||
|
@ -430,15 +430,15 @@
|
||||
{% set i = i + 1 %}
|
||||
<tr style="background-color: {{ getStyle(i) }};">
|
||||
<td>
|
||||
<nobr>{{ i }}. {{ player.getName() }}{% if player.isDeleted() %}<font color="red"><b> [ DELETED ] </b></font>{% endif %}</nobr>
|
||||
<nobr>{{ i }}. {{ player.getName() }}{% if player.isDeleted() %}<span style="color: red"><b> [ DELETED ] </b></span>{% endif %}</nobr>
|
||||
</td>
|
||||
<td>
|
||||
<nobr>{{ player.getLevel() }} {{ config.vocations[player.getVocation()] }}</nobr>
|
||||
</td>
|
||||
{% if player.isOnline() %}
|
||||
<td><font color="green"><b>Online</b></font></td>
|
||||
<td><span style="color: green"><b>Online</b></span></td>
|
||||
{% else %}
|
||||
<td><font color="red"><b>Offline</b></font></td>
|
||||
<td><span style="color: red"><b>Offline</b></span></td>
|
||||
{% endif %}
|
||||
<td>[<a href="{{ getLink('account/character/comment/' ~ player.getName|urlencode) }}" >Edit</a>]</td>
|
||||
</tr>
|
||||
|
@ -53,9 +53,9 @@
|
||||
|
||||
foreach(getTopPlayers(5) as $player) {
|
||||
echo '<div style="text-align:left"><a href="'.getPlayerLink($player['name'], false).'" class="topfont ' . ($player['online'] == 1 ? 'online' : 'offline') . '">
|
||||
<font color="#CCC"> '.$player['rank'].' - </font>'.$player['name'].'
|
||||
<span style="color: #CCC"> '.$player['rank'].' - </span>'.$player['name'].'
|
||||
<br>
|
||||
<small><font color="white"> Level: ('.$player['level'].')</font></small>
|
||||
<small><span style="color: white"> Level: ('.$player['level'].')</span></small>
|
||||
<br>
|
||||
</a>
|
||||
</div>';
|
||||
|
@ -415,7 +415,7 @@ foreach($config['menu_categories'] as $id => $cat) {
|
||||
if($status['online'])
|
||||
echo '<div id="players" style="display: inline;">' . $status['players'] . '</div><br>Players Online';
|
||||
else
|
||||
echo '<font color="red"><b>Server<br />OFFLINE</b></font>';
|
||||
echo '<span style="color: red"><b>Server<br />OFFLINE</b></span>';
|
||||
?></div>
|
||||
</div>
|
||||
|
||||
@ -430,7 +430,7 @@ foreach($config['menu_categories'] as $id => $cat) {
|
||||
}
|
||||
|
||||
if($config['template_allow_change'])
|
||||
echo '<font color="white">Template:</font><br/>' . template_form();
|
||||
echo '<span style="color: white">Template:</span><br/>' . template_form();
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -17,7 +17,7 @@ function checkName()
|
||||
|
||||
if(document.getElementById("character_name").value=="")
|
||||
{
|
||||
$('#character_error').html('<font color="red">Please enter new character name.</font>');
|
||||
$('#character_error').html('<span color="red">Please enter new character name.</span>');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -38,11 +38,11 @@ function checkName()
|
||||
$.getJSON("tools/validate.php", { name: name, uid: Math.random() },
|
||||
function(data){
|
||||
if(data.hasOwnProperty('success')) {
|
||||
$('#character_error').html ('<font color="green">' + data.success + '</font>');
|
||||
$('#character_error').html ('<span style="color: green">' + data.success + '</span>');
|
||||
$('#character_indicator').attr('src', 'images/global/general/ok.gif');
|
||||
}
|
||||
else if(data.hasOwnProperty('error')) {
|
||||
$('#character_error').html('<font color="red">' + data.error + '</font>');
|
||||
$('#character_error').html('<span style="color: red">' + data.error + '</span>');
|
||||
$('#character_indicator').attr('src', 'images/global/general/nok.gif');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user