Remove old layout

This commit is contained in:
Znote
2020-06-12 22:04:31 +02:00
parent 0d3940a0e6
commit e3c3b766be
47 changed files with 0 additions and 1690 deletions

View File

@@ -1,56 +0,0 @@
<div class="sidebar">
<h2>Administration:</h2>
<div class="inner">
<ul>
<li>
<a href='admin.php'>Admin Page</a>
</li>
<li>
<a href='admin_news.php'>Admin News</a>
</li>
<li>
<a href='admin_gallery.php'>Admin Gallery</a>
</li>
<li>
<a href='admin_skills.php'>Admin Skills</a>
</li>
<li>
<a href='admin_reports.php'>Admin Reports</a>
</li>
<li>
<a href='admin_helpdesk.php'>Admin Helpdesk</a>
</li>
<li>
<a href='admin_shop.php'>Admin Shop</a>
</li>
<li>
<a href='admin_auction.php'>Admin Auction</a>
</li>
<?php
$new = 0;
$cat = 4; //Category ID for feedback section
$threads = mysql_select_multi("SELECT `id`, `player_id` FROM `znote_forum_threads` WHERE `forum_id`='$cat' AND `closed`='0';");
if ($threads !== false) {
$staffs = mysql_select_multi("SELECT `id` FROM `players` WHERE `group_id` > '1';");
foreach($threads as $thread) {
$response = false;
$posts = mysql_select_multi("SELECT `id`, `player_id` FROM `znote_forum_posts` WHERE `thread_id`='". $thread['id'] ."';");
if ($posts !== false) {
foreach($posts as $post) {
foreach ($staffs as $staff) {
if ($post['player_id'] == $staff['id']) $response = true;
}
}
}
if (!$response) $new++;
}
}
?>
<li>
<a href='forum.php?cat=4'>Feedback: [<?php echo $new; ?>] new</a>
</li>
</ul>
</div>
</div>

View File

@@ -1,8 +0,0 @@
<div class="sidebar">
<h2>Character search</h2>
<div class="inner">
<form type="submit" action="characterprofile.php" method="get">
<input type="text" name="name" class="search">
</form>
</div>
</div>

View File

@@ -1,6 +0,0 @@
<div class="sidebar">
<h3>Latest News</h3>
<h4>New Website Launched</h4>
<h5>January 1st, 2012</h5>
<p>2012 sees the redesign of our website. Take a look around and let us know what you think.<br /><a href="#">Read more</a></p>
</div>

View File

@@ -1,9 +0,0 @@
<div class="sidebar">
<h3>Useful Links</h3>
<ul>
<li><a href="#">First Link</a></li>
<li><a href="#">Another Link</a></li>
<li><a href="#">And Another</a></li>
<li><a href="#">Last One</a></li>
</ul>
</div>

View File

@@ -1,21 +0,0 @@
<div class="sidebar">
<h2>Search highscores</h2>
<div class="inner">
<form action="highscores.php" method="get">
Select skill type to view:<br>
<select name="type">
<option value="7">Experience</option>
<option value="5">Shielding</option>
<option value="3">Axe</option>
<option value="2">Sword</option>
<option value="1">Club</option>
<option value="4">Distance</option>
<option value="9">Fist</option>
<option value="6">Fish</option>
<option value="8">Magic</option>
</select>
<input type="submit" value="Fetch scoreboard">
</form>
</div>
</div>

View File

@@ -1,19 +0,0 @@
<div class="sidebar">
<h2>Search town list</h2>
<div class="inner">
<form action="houses.php" method="<?php if ($config['ServerEngine'] !== 'TFS_10') echo "post"; else echo "get" ;?>">
Select town:<br>
<select name="<?php if ($config['ServerEngine'] !== 'TFS_10') echo "selected"; else echo "id" ;?>">
<?php
foreach ($config['towns'] as $id => $name) echo '<option value="'. $id .'">'. $name .'</option>';
?>
</select>
<?php
/* Form file */
if ($config['ServerEngine'] !== 'TFS_10') Token::create();
?>
<input type="submit" value="Fetch houses">
</form>
</div>
</div>

View File

@@ -1,22 +0,0 @@
<div class="sidebar">
<h2>Welcome, <?php if ($config['ServerEngine'] !== 'OTHIRE') echo $user_data['name']; else echo $user_data['id'];?>.</h2>
<div class="inner">
<ul>
<li>
<a href='myaccount.php'>My Account</a>
</li>
<li>
<a href='createcharacter.php'>Create Character</a>
</li>
<li>
<a href='changepassword.php'>Change Password</a>
</li>
<li>
<a href='settings.php'>Settings</a>
</li>
<li>
<a href='logout.php'>Logout</a>
</li>
</ul>
</div>
</div>

View File

@@ -1,32 +0,0 @@
<div class="sidebar">
<h2>Login / Register</h2>
<div class="inner">
<form action="login.php" method="post">
<ul id="login">
<li>
Username: <br>
<input type="text" name="username">
</li>
<li>
Password: <br>
<input type="password" name="password">
</li><?php if ($config['twoFactorAuthenticator'] == true) { ?>
<li>
Token: <br>
<input type="password" name="authcode">
</li><?php } ?>
<li>
<input type="submit" value="Log in">
</li>
<?php
if ($config['use_token'] == true) {
/* Form file */
Token::create();
}
?>
<center> <h3><a href="register.php">New account</a></h3>
<font size="1">- <a href="recovery.php">Account Recovery</a></font></center>
</ul>
</form>
</div>
</div>

View File

@@ -1,32 +0,0 @@
<div class="sidebar">
<h2>Server Information</h2>
<div class="inner">
<ul>
<?php
$status = true;
if ($config['status']['status_check']) {
@$sock = fsockopen ($config['status']['status_ip'], $config['status']['status_port'], $errno, $errstr, 1);
if(!$sock) {
echo "<span style='color:red;font-weight:bold;'><center>Server Offline!</center></span><br/>";
$status = false;
}
else {
$info = chr(6).chr(0).chr(255).chr(255).'info';
fwrite($sock, $info);
$data='';
while (!feof($sock))$data .= fgets($sock, 1024);
fclose($sock);
echo "<span style='color:green;font-weight:bold;'><center>Server Online!</center></span><br />";
}
}
if ($status) {
?>
<li><a href="onlinelist.php">Players online:
<?php echo user_count_online(); ?></a></li>
<?php
}
?>
<li>Registered accounts: <?php echo user_count_accounts();?></li>
</ul>
</div>
</div>

View File

@@ -1,24 +0,0 @@
<div class="sidebar">
<h3>Top 5 players</h3>
<?php
$cache = new Cache('engine/cache/topPlayer');
if ($cache->hasExpired()) {
$players = mysql_select_multi('SELECT `name`, `level`, `experience` FROM `players` WHERE `group_id` < ' . $config['highscore']['ignoreGroupId'] . ' ORDER BY `experience` DESC LIMIT 5;');
$cache->setContent($players);
$cache->save();
} else {
$players = $cache->load();
}
if ($players) {
$count = 1;
foreach($players as $player) {
echo "$count - <a href='characterprofile.php?name=". $player['name']. "'>". $player['name']. "</a> (". $player['level'] .").<br>";
$count++;
}
}
?>
<br>
</div>

View File

@@ -1,35 +0,0 @@
<div class="sidebar">
<!-- TWITTER widget
Generate your own twitter widget at:
http://twitter.com/about/resources/widgets/widget_profile
Recommended size: width: auto, height: 300
-->
<script charset="utf-8" src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
version: 2,
type: 'profile',
rpp: 4,
interval: 30000,
width: 215,
height: 300,
theme: {
shell: {
background: '#d1a562',
color: '#000000'
},
tweets: {
background: '#ffffff',
color: '#ba4100',
links: '#ff0000'
}
},
features: {
scrollbar: false,
loop: false,
live: false,
behavior: 'all'
}
}).render().setUser('leremere').start();
</script>
</div>

View File

@@ -1,9 +0,0 @@
<div class="sidebar">
<h2>Vote for us!</h2>
<div class="inner">
<form type="submit" action="voting.php" method="GET">
Get points by voting at OTServers.eu
<input type="submit" value="Vote">
</form>
</div>
</div>