Updated style and fixed stuff

master
Rubenwardy 2012-12-13 20:12:38 +00:00
parent ad204bb5be
commit b60f321305
9 changed files with 2590 additions and 127 deletions

View File

@ -4,17 +4,252 @@ $page_title="Mark Up - Help";
include "../scripts/pageheader.php";
?>
<p><table>
<tr><th width=30%>Code</th><th>Description</th><th>Example</th></tr>
<tr bgcolor="#FFFFBD"><td>[b]bold[/b]</td><td>Bold</td><td><b>bold</b></td></tr>
<tr><td>[i]italic[/i]</td><td>Italic</td><td><i>italic</i></td></tr>
<tr bgcolor="#FFFFBD"><td>[u]underline[/u]</td><td>Under Lined</td><td><u>underline</u></td></tr>
<tr><td>[h]header[/h]</td><td>Header (title)</td><td><h1>header</h1></td></tr>
<tr bgcolor="#FFFFBD"><td>[code]The code[/code]</td><td>Adds a code box</td><td><code style="border:solid;">The code</code></td></tr>
<tr><td>[img]url_for_img[/img]</td><td>Adds an image</td><td><img height="20" src="../images/header.png"></td></tr>
<tr bgcolor="#FFFFBD"><td>[<b>url=</b><i>the_links_url</i><b>=url</b>]The Link Text[/url]</td><td>Adds an hyperlink</td><td><a href="the_links_url">The Links Text</a></td></tr>
<tr><td>[list]<br />[*]An Item[/*]<br />[*]Another Item[/*]<br />[/list]</td><td>A list</td><td><ul><li>An Item</li><li>Another Item</li></ul></td></tr>
</table>
<p><table style="text-align: center; width: 500px;" border=1 id="smilies">
<thead>
<th>BBCode</th>
<th>Preview</th>
</thead>
<tr>
<td>[u]text[/u]</td>
<td><span style="text-decoration: underline;">text</span></td>
</tr>
<tr>
<td>[i]text[/i]</td>
<td><em>text</em></td>
</tr>
<tr>
<td>[b]text[/b]</td>
<td><strong>text</strong></td>
</tr>
<tr>
<td>[cool]text[/cool]</td>
<td><span style="font-family: Verdana, Arial, Helvetica, sans-serif; letter-spacing: 2px; word-spacing: 3px; font-size: 13px; font-weight: bold; font-style: italic; color: #333399; font-variant: small-caps; height: 12px; padding-left: 9pt; padding-right: 6pt; vertical-align: middle; display: block;">text</span></td>
</tr>
<tr>
<td>[code]text[/code]</td>
<td><div style="width: 80%; overflow: auto; text-align: left; border: 1px solid #CCCCCC; display: block; padding-left: 20px;"><code style="white-space: pre;">text
</code></div></td>
</tr>
<tr>
<td>[indent]text[/indent]</td>
<td><blockquote>text</blockquote></td>
</tr>
<tr>
<td>[lyrics]text[/lyrics]</td>
<td><span style="margin-left: 30px; font-style: italic; display: block;">text</span></td>
</tr>
<tr>
<td>[smallcaps]text[/smallcaps]</td>
<td><span style="font-variant: small-caps;">text</span></td>
</tr>
<tr>
<td>[big]text[/big]</td>
<td><span style="font-size: 22px;">text</span></td>
</tr>
<tr>
<td>[small]text[/small]</td>
<td><span style="font-size: 10px;">text</span></td>
</tr>
<tr>
<td>[tt]text[/tt]</td>
<td><tt>text</tt></td>
</tr>
<tr>
<td>[sub]text[/sub]</td>
<td><sub>text</sub></td>
</tr>
<tr>
<td>[sup]text[/sup]</td>
<td><sup>text</sup></td>
</tr>
<tr>
<td>[url]www.recgr.com[/url]</td>
<td><a href="http://www.recgr.com" target="_blank">www.recgr.com</a></td>
</tr>
<tr>
<td>[url=http://www.recgr.com]Recruiting Grounds[/url]</td>
<td><a href="http://www.recgr.com" target="_blank">Recruiting Grounds</a></td>
</tr>
<tr>
<td>[img]linux.gif[/img] (long live Linux!)</td>
<td><img src="http://bbcparser.recgr.com/linux.gif" border="0" /> (long live Linux!)</td>
</tr>
<tr>
<td>[email=nino@recgr.com]Nino[/email]</td>
<td><a href="mailto: &#110&#105&#110&#111&#64&#114&#101&#99&#103&#114&#46&#99&#111&#109">Nino</a></td>
</tr>
<tr>
<td>[email]nino@recgr.com[/email]</td>
<td><a href="mailto: &#110&#105&#110&#111&#64&#114&#101&#99&#103&#114&#46&#99&#111&#109">&#110&#105&#110&#111&#64&#114&#101&#99&#103&#114&#46&#99&#111&#109</a></td>
</tr>
<tr>
<td>[font=Arial]Text in Arial font[/font]</td>
<td><span style="font-family: Arial;">Text in Arial font</span></td>
</tr>
<tr>
<td>[color=red]Red Text[/color]</td>
<td><span style="color: red;">Red Text</span></td>
</tr>
<tr>
<td>[color=#FF66FF]Light Pink Text[/color]</td>
<td><span style="color: #FF66FF;">Light Pink Text</span></td>
</tr>
<tr>
<td>[bull /]</td>
<td><big>&bull;</big></td>
</tr>
<tr>
<td>[copyright /]</td>
<td>&copy;</td>
</tr>
<tr>
<td>[registered /]</td>
<td>&reg;</td>
</tr>
<tr>
<td>[tm /]</td>
<td><big>&trade;</big></td>
</tr>
<tr>
<td>[list]<br />item 1<br />item 2<br />[/list]</td>
<td><ul><li>item 1</li><li>item 2</li></ul></td>
</tr>
</table>
<?php
include "../scripts/pagefooter.php";

View File

@ -15,39 +15,7 @@
?>
<style type="text/css">
body {margin: 0px; padding: 0px;}
.Body-C
{
font-family:"Verdana", sans-serif; font-size:16.0px; line-height:1.13em;
}
.Body-C-C0
{
font-family:"Verdana", sans-serif; font-size:11.0px; line-height:1.18em;
}
</style>
<img src="images/wpae096824_06.png" width="660" height="162" border="0" alt="" onload="OnLoadPngFix()" style="position:absolute;left:125px;top:50px;">
<div id="txt_1" style="position:absolute;left:392px;top:165px;width:362px;height:26px;overflow:hidden;">
<p class="Wp-Body-P"><span class="Body-C">Add features and more blocks to the game.</span></p>
</div>
<a href="listing.php?id=mod"><img src="images/wp5533b116.gif" width="654" height="162" border="0" alt="" style="position:absolute;left:123px;top:50px;"></a>
<img src="images/wpc5e55123_06.png" width="326" height="123" border="0" alt="" onload="OnLoadPngFix()" style="position:absolute;left:125px;top:214px;">
<div id="txt_2" style="position:absolute;left:147px;top:308px;width:296px;height:14px;overflow:hidden;">
<p class="Wp-Body-P"><span class="Body-C-C0">Change the way MT looks by adding a texture pack</span></p>
</div>
<img src="images/wp70bdea63_06.png" width="325" height="123" border="0" alt="" onload="OnLoadPngFix()" style="position:absolute;left:452px;top:214px;">
<div id="txt_3" style="position:absolute;left:471px;top:308px;width:300px;height:14px;overflow:hidden;">
<p class="Wp-Body-P"><span class="Body-C-C0">Change the way MT sounds by adding a sound pack</span></p>
</div>
<img src="images/wp796e836f_06.png" width="48" height="48" border="0" alt="" onload="OnLoadPngFix()" style="position:absolute;left:475px;top:236px;">
<img src="images/wp8da89ed3_06.png" width="47" height="47" border="0" alt="" style="position:absolute;left:142px;top:239px;">
<a href="search.php?id=sound"><img src="images/wp5533b116.gif" width="327" height="125" border="0" alt="" style="position:absolute;left:452px;top:213px;"></a>
<a href="listing.php?id=texture"><img src="images/wp5533b116.gif" width="326" height="125" border="0" alt="" style="position:absolute;left:124px;top:212px;"></a>
<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />
<h2>Welcome to Minetest Extensions</h2>
<?php
/*if ($_SESSION['msg']==0){
@ -55,9 +23,17 @@ $_SESSION['msg']=1;
echo "<p><b>Help us be telling us what you think about this interface! <a href=\"http://tinyurl.com/mtmdfrm\">Tell us</a></b></p>";
}*/
?>
<p><b>Help us by telling us what you think about this interface! <a href=\"http://tinyurl.com/mtmdfrm\">Tell us</a></b></p>
<p><b>Help us by telling us what you think about this interface! <a href="http://tinyurl.com/mtmdfrm">Tell us</a></b></p>
Minetest Mods, Texture packs and Sound Packs! All the things that customise Minetest perfectly for you!
<p>
<ul>
<li><a href="listing.php?id=mod">Mods</a></li>
<li><a href="listing.php?id=texture">Textures</a></li>
<li><a href="search.php?id=sound">Sounds</a></li>
</ul>
</p>
<?php
include "scripts/pagefooter.php";

View File

@ -29,8 +29,10 @@
}else{
$mtype=" ".$mtype;
}
echo "<a href=\"addentry.php\">Add a$mtype</a><br /><br />";
echo "<a href=\"addentry.php\">Add a$mtype</a> - ";
}
echo "<a href=\"listing.php\">Index of Entries</a> - <a href=\"viewmod.php?id=random\">Random Extension</a><br /><br />";
echo "<table width=\"100%\"><tr><th colspan=2>Category</th><th>Description</th><th>Mods</th></tr>";

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,38 @@
<p>
<img src="<?php echo $serverpath;?>/images/footer.png" width="900" height="50" border="0" alt="" style="left:0px;">
<!-- footer -->
</div> <!-- .constrain -->
<div style="clear: both;"></div>
</div> <!-- content -->
<div id="footer">
<div class="constrain">
</div>
<div class="footerlogo">
<img src="http://minetest.net/images/minetest-icon-120_gray_translucent.png" alt="logo">
<span>
<ul class="footermainlist">
<li class="the_li">
Minetest
</li>
<li>
IRC Channels:
<ul>
<li>#minetest @ Freenode</li>
</ul>
</li>
<li>
Minetest Extensions by: Andrew "rubenwardy" Ward<br>
Website by: Perttu Ahola, celeron55 @ IRCnet, Freenode, gmail.com
</li>
<li>
Powered by
<a href="http://freedns.afraid.org">FreeDNS</a>,
<a href="http://emblica.org/">Emblica.org</a>
</li>
</ul>
</span>
</div>
</div>
</body>
<!-- Piwik -->
@ -16,4 +48,8 @@ piwikTracker.enableLinkTracking();
</script><noscript><p><img src="http://multa.bugs3.com/piwik/piwik.php?idsite=2" style="border:0" alt="" /></p></noscript>
<!-- End Piwik Tracking Code -->
</html>
</html>
<?php
die("");
?>

View File

@ -1,48 +1,78 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-gb">
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="fi">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8">
<title><?php echo $page_title ?> - Minetest Mods</title>
<meta name="keywords" content="minetest,mods,extension,community,download,listing,manager,mod,easy,rate,add">
<meta name="author" content="Andrew Ward">
<meta name="copyright" content="Copyright &#xA9; to Andrew Ward">
<meta http-equiv="Content-Language" content="en-gb">
<meta name="robots" content="index,follow">
<link rel="stylesheet" type="text/css" href="<?php echo $serverpath;?>/mainstyle.css" />
<!--<link rel="icon" href="favicon.ico" type="image/x-icon">-->
<meta name="keywords" content="minetest minetest-c55" />
<meta name="description" content="Minetest (minetest-c55): An open source Infiniminer/Minecraft style game" />
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
<link rel="stylesheet" href="http://minetest.net/style_v2.css" type="text/css" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="bookmark icon" href="/favicon.ico" />
<title><?php echo $page_title;?> - Minetest Extensions</title>
<style>
.inbar_login {
float: right;
}
</style>
</head>
<body>
<body text="#000000" style="background-color:#ffffff; text-align:center; height:610px;">
<div style="background-color:transparent;text-align:left;margin-left:auto;margin-right:auto;position:relative;width:900px;">
<!--The Header-->
<img src="<?php echo $serverpath;?>/images/header.png" width="900" height="100" border="0" alt="" style="position:absolute;left:0px;top:0px;">
<div id="slogan" style="text-align:right;position:relative;left:250px;top:60px;width:400px;height=20px;">Mods - Texture Packs - Sound Packs - Code Mods</div>
<div id="userbar" style="text-align:right;position:relative;left:710px;top:55px;width:180px;height=30px;"><?php
if (is_logged_in()){
echo "<a href=\"$serverpath/user.php?id=".getUserId($_SESSION['user'],$handle)."\"><font color=\"#FFFFFF\"><u>".$_SESSION['user']."</u></font></a> - <a href=\"$serverpath/logout.php\"><font color=\"#FFFFFF\"><u>Log Out</u></font></a>";
<div id="navbar" class="navbar">
<div class="constrain">
<span class="inbar_main">
<ul>
<li class="navlink_normal"><a href="http://minetest.net/index.php">About</a></li>
<li class="navlink_normal"><a href="http://minetest.net/news.php">News</a></li>
<li class="navlink_normal"><a href="http://minetest.net/download.php">Download</a></li>
<li class="navlink_normal"><a href="http://minetest.net/contribute.php">Contribute</a></li>
</ul>
</span>
<span class="inbar_separator">
|
</span>
<span class="inbar_other">
<ul>
<!--<li class="navlink_special"><a href="http://c55.me/blog">Blog</a></li>
<li class="navlink_special"><a href="http://wiki.minetest.com/wiki/">Wiki</a></li>
<li class="navlink_special"><a href="http://minetest.net/forum/">Forum</a></li>
<li class="navlink_special"><a href="https://github.com/celeron55/minetest">Github</a></li>
<li class="navlink_special"><a href="http://api.minetest.net/">API</a></li>-->
<li class="navlink_normal"><a href="<?php echo $serverpath;?>/index.php">Home</a></li>
<li class="navlink_normal"><a href="<?php echo $serverpath;?>/user.php">User List</a></li>
</ul>
</span>
<span class="inbar_login">
<ul>
<?php
if (is_logged_in()==true){
echo "<li class=\"navlink_special\"><a href=\"user.php?id={$_SESSION['user']}\">{$_SESSION['user']}</a></li>";
echo "<li class=\"navlink_special\"><a href=\"logout.php\">Log Out</a></li>";
}else{
echo "<a href=\"$serverpath/login.php\"><font color=\"#FFFFFF\"><u>Login</u></font></a> - ";
echo "<a href=\"$serverpath/signup.php\"><font color=\"#FFFFFF\"><u>Sign Up</u></font></a>";
?>
<li class="navlink_special"><a href="login.php">Login</a></li>
<li class="navlink_special"><a href="signup.php">Sign Up</a></li>
<?php
}
?></div>
<div id="userbar" style="text-align:left;position:relative;left:10px;top:35px;width:180px;height=30px;"><?php
echo "<a href=\"$serverpath/index.php\"><font color=\"#FFFFFF\"><u>Home</u></font></a> - ";
echo "<a href=\"$serverpath/help/about.php\"><font color=\"#FFFFFF\"><u>About</u></font></a> - ";
echo "<a href=\"$serverpath/user.php\"><font color=\"#FFFFFF\"><u>User List</u></font></a>";
?></div>
<div style="position:relative;left:500px;top:70px;width:400px;text-align:right;">
<form method="get" action="<?php echo $serverpath;?>/search.php">
<input type="hidden" name="mode" value="sb">
<input type="text" placeholder="search for something" name="id"> <input type="submit" value="Search">
</form>
?>
</ul>
</span>
</div>
</div>
<div class="navbarbottom1">
</div>
<!--Content Div-->
<div style="position:relative;left:5px;top:80px;width:900px;text-wrap: suppress;">
<div id="logo">
<div class="constrain">
<img src="http://minetest.net/images/minetest-icon-120.png" alt="logo" id="logoimage">
<span class="bigheader">
<h1>Minetest</h1>
<h2>Extensions</h2>
</span>
</div>
</div>
<div id="content">
<div class="constrain">
<div style="clear: both;"></div>

View File

@ -27,4 +27,6 @@ $sql_db="u372522788_minetest";
$require_email=true; // Require Email Address
$emailver_mod=true; // Require Email Vertification to post
$emailver_login=false; // Require Email Vertification to log in
$mt_lock_down=false; // if true, only admins can access forum
?>

View File

@ -1,6 +1,7 @@
<?php
include "settings.php";
session_start();
function is_member_moderator($user,$handle){
$user_p=getUser($user,$handle);
@ -20,7 +21,6 @@ function SQLerror($title,$msg){
die("$msg");
}
session_start();
$handle = mysql_pconnect($sql_url,$sql_user,$sql_pass) or SQLerror("MySQL Database", "Error connecting to the MySQL database");
@ -29,6 +29,14 @@ SQLerror("MySQL Database", "Error connecting to the MySQL database");
mysql_select_db($sql_db,$handle) or die("Error Switching DB");
if ($mt_lock_down==true){
if (is_logged_in()==false || is_member_moderator($_SESSION['user'],$handle)==false){
SQLerror("Minetest Extensions","Sorry, but Minetest Extensions has been locked down for editing");
}
}
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}

View File

@ -40,7 +40,6 @@ $owner = $ra['name'];
}
// End of Phitherek_' s code
include "scripts/pageheader.php";
include "scripts/formatcode.php";
if (is_member_moderator($_SESSION['user'],$handle)){
@ -60,7 +59,19 @@ echo "<h1 align=center>{$row[1]} - by <a href=\"user.php?id={$row[3]}\">{$owner}
echo "<td width=\"25\">{$row[2]}</td></tr></table></td></tr>\n"; // Version
echo "<tr><td><table width=\"900\"><tr><td><div style=\"width:870px;text-wrap: suppress;\"><p>".formatbb($row[4])."</p></div></td>\n"; // Description
echo "<tr><td><table width=\"900\"><tr><td><div style=\"width:870px;text-wrap: suppress;\"><p>";
require_once('scripts/formatcode.php');
// load Recruiting Parsers' file
$parser = new parser;
// start Recruiting Parser...
// output $text using all arguments available
//$p_text=$parser->p($row[4], 1, 1, 0, 0, 0, 1, "");
$parsed = $parser->p($row[4],1);
echo $parsed;
echo "</p></div></td>\n"; // Description
if (is_logged_in()==true){
$like_ext="";