parent
07a90fb42b
commit
0b54adfcc4
|
@ -8,9 +8,10 @@ if ((include('scripts/addentry.php'))==1){
|
|||
echo "Entry already exists.<br /><br />";
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
Help: <a href="help/entries.php" target="_blank">Guidelines and Tutorial</a> <a href="help/markup.php" target="_blank">Description Markup</a> - <a href="help/tags.php" target="_blank">Tags</a>. Not creating? Make sure you fill in all *ed sections.
|
||||
<hr />
|
||||
<font color="#FF0000"><?php echo $message; ?></font>
|
||||
<form method="post" action="<?php echo curPageURL();?>">
|
||||
<?php
|
||||
if (is_member_moderator($_SESSION['user'],$handle)==true){
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
include "scripts/setup.php";
|
||||
|
||||
$id=$_GET['url'];
|
||||
$page_title="Downloading.. Code Mod";
|
||||
|
||||
include "scripts/pageheader.php";
|
||||
?>
|
||||
|
||||
<h1>Code Mod</h1>
|
||||
|
||||
This Mod is a modification to the minetest engine's source, and needs to be compiled (built, turned in to something useable).<br />
|
||||
If you do not know how to compile, there should be a pre-compiled version on the mod's page. If not, ask someone how to do it.<br />
|
||||
|
||||
<p>
|
||||
<a href="<?php echo $id; ?>">Continue to the Source</a>
|
||||
|
||||
<?php
|
||||
include "scripts/pagefooter.php";
|
||||
?>
|
|
@ -10,7 +10,11 @@ $message="";
|
|||
if (authcheck($user,$pass,$handle)==true){
|
||||
login($user);
|
||||
if ($redir==""){
|
||||
if ($pass=="temp_pass"){
|
||||
header("location: user_password.php?auto=true&redir=user_email.php");
|
||||
}else{
|
||||
header("location: index.php");
|
||||
}
|
||||
}else{
|
||||
header("location: $redir");
|
||||
}
|
||||
|
|
|
@ -8,6 +8,11 @@ $name=$_POST['mod_name'];
|
|||
if ($name=="")
|
||||
return 0;
|
||||
|
||||
if (strstr($name,"'")==true){
|
||||
$message="The name field may not contain '";
|
||||
return 0;
|
||||
}
|
||||
|
||||
$version=$_POST['mod_version'];
|
||||
if ($version=="")
|
||||
return 0;
|
||||
|
|
|
@ -8,7 +8,7 @@ $result=str_replace("[img]","<img style=\"max-width:850px;\" src=\"",$result);
|
|||
$result=str_replace("[/img]","\" />",$result);
|
||||
$result=str_replace("[/img-enforce]","\" />",$result);
|
||||
|
||||
$result=str_replace("[url=","<a href=\"",$result);
|
||||
$result=str_replace("[url=","<a target=\"_blank\" href=\"",$result);
|
||||
$result=str_replace("=url]","\">",$result);
|
||||
$result=str_replace("[/url]","</a>",$result);
|
||||
|
||||
|
|
|
@ -18,7 +18,10 @@ $res = mysql_query($qu_str." ORDER BY likes DESC",$handle) or SQLerror("MySQL Qu
|
|||
|
||||
$alternate=1;
|
||||
// Get projects loop
|
||||
$is_result=false;
|
||||
while ($hash = mysql_fetch_assoc($res)){
|
||||
|
||||
$is_result=true;
|
||||
|
||||
if ($alternate==0){
|
||||
$bgcolor="#FFFFFF";
|
||||
|
@ -47,5 +50,10 @@ while ($hash = mysql_fetch_assoc($res)){
|
|||
|
||||
$alternate=1-$alternate;
|
||||
}
|
||||
|
||||
if ($is_result==false){
|
||||
echo "<tr><td colspan=5><center><i>no search results found</i></center></td></tr>";
|
||||
}
|
||||
|
||||
echo "</table>";
|
||||
?>
|
||||
|
|
27
user.php
27
user.php
|
@ -27,9 +27,32 @@ while ($hash = mysql_fetch_assoc($res)){
|
|||
}
|
||||
$res = mysql_query("SELECT * FROM users WHERE id=$id",$handle) or SQLerror("MySQL Query Error","Error on getting database.users");
|
||||
$hash = mysql_fetch_assoc($res);
|
||||
|
||||
switch($hash['level'])
|
||||
{
|
||||
case 0:
|
||||
$level=" normal member";
|
||||
break;
|
||||
case 1:
|
||||
$level=" vertified member";
|
||||
break;
|
||||
case 2:
|
||||
$level="n admin";
|
||||
break;
|
||||
}
|
||||
|
||||
echo "<h1>{$hash['name']}</h1>";
|
||||
echo "{$hash['name']} is a level {$hash['level']} member.";
|
||||
echo "<p><a href=\"search.php?id=$id&mode=sb\">View {$hash['name']}'s mods</a></p>";
|
||||
echo "{$hash['name']} is a{$level}.";
|
||||
echo "<br /><p><a href=\"user.php\">Back to User List</a></p><br />";
|
||||
|
||||
$query=$id;
|
||||
$mode="sb";
|
||||
if ($mode=="")
|
||||
$mode="tags";
|
||||
|
||||
|
||||
include "scripts/loadmods.php";
|
||||
|
||||
}
|
||||
|
||||
include "scripts/pagefooter.php";
|
||||
|
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
include "scripts/setup.php";
|
||||
require_login();
|
||||
|
||||
$redir=$_GET['redir'];
|
||||
$pass_old=$_POST['old'];
|
||||
$pass_new=$_POST['new'];
|
||||
$pass_con=$_POST['new2'];
|
||||
|
||||
if (!($pass_new=="")){
|
||||
if ($pass_con==$pass_new){
|
||||
$res = mysql_query("SELECT * FROM users WHERE id=$id",$handle) or SQLerror("MySQL Query Error","Error on getting database.users");
|
||||
$hash = mysql_fetch_assoc($res)
|
||||
if (sha1($pass_old)==$hash['password']){
|
||||
if ($redir==""){
|
||||
header("location: index.php");
|
||||
}else{
|
||||
header("location: $redir");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
$page_title="Change your password";
|
||||
include "scripts/pageheader.php";
|
||||
?>
|
||||
<center>
|
||||
<h1>Change your password</h1>
|
||||
<form method="post" action="<?php curPageURL();?>">
|
||||
Old Password: <input type="password" name="old"<?php
|
||||
|
||||
if ($_GET['auto']==true){
|
||||
echo " value=\"temp_pass\" readonly=\"true\"";
|
||||
}
|
||||
|
||||
?>><br />
|
||||
<br />
|
||||
New Password: <input type="password" name="new"><br />
|
||||
Confirm Password: <input type="password" name="new_2"><br /><br />
|
||||
<input type="submit" value="Change" />
|
||||
</form>
|
||||
</center>
|
||||
|
||||
<?php
|
||||
include "scripts/pagefooter.php";
|
||||
?>
|
|
@ -49,7 +49,7 @@ echo "<table width=\"900\"><tr><td>";
|
|||
echo "<table width=\"900\" bgcolor=\"#FFFFBD\"><tr><td width=\"100\"><a href=\"{$row[9]}\">Download</a></td>";
|
||||
|
||||
echo "<td width=\"650\">"; // Download Link
|
||||
echo "<h1 align=center>{$row[1]} - by <a href=\"user.php?name={$owner}\" target=\"_blank\">{$owner}</a></h1></td>"; // Title and User Link
|
||||
echo "<h1 align=center>{$row[1]} - by <a href=\"user.php?id={$row[3]}\">{$owner}</a></h1></td>"; // Title and User Link
|
||||
|
||||
echo "<td width=\"25\">{$row[2]}</td></tr></table></td></tr>"; // Version
|
||||
|
||||
|
|
Loading…
Reference in New Issue