143 lines
4.3 KiB
PHP
143 lines
4.3 KiB
PHP
<?php
|
|
include "scripts/setup.php";
|
|
$page_title="Add a Mod";
|
|
include "scripts/pageheader.php";
|
|
require_login();
|
|
|
|
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){
|
|
echo "<p>Owner is: <input type=\"text\" name=\"user\" value=\"{$_SESSION['user']}\"></p>";
|
|
}
|
|
?>
|
|
<table width="100%">
|
|
|
|
<!--Tags, License, File, Depend, Basename-->
|
|
|
|
<!--Mod Name and Version-->
|
|
<tr>
|
|
<table width="100%"><tr>
|
|
<td width="60%">Mod Name:* <input type="text" size="35" name="mod_name" placeholder="The name of this entry" value="<?php echo $name;?>"></td>
|
|
<!-- 3m release (by Phitherek_) -->
|
|
<td width="40%">
|
|
<table width="100%"><tr><td>Version:* <input type="text" size="10" placeholder="This entries version (ie: 1.0 or git)" name="mod_version" value="<?php echo $version;?>"></td><td>
|
|
3m Release: <input type="text" size="10" name="mmmrel" placeholder="3m Version id. Whole numbers" value="<?php echo $mmmrel;?>"></td>
|
|
<!-- End of Phitherek_ s change -->
|
|
</table>
|
|
</td>
|
|
</tr></table>
|
|
<tr>
|
|
<td colspan="2">
|
|
<br />
|
|
Overview:* <input type="text" size="70" name="mod_ov" placeholder="a short one line explanation of this entry" value="<?php echo $overview;?>">
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
|
|
<!--Description-->
|
|
<td colspan="2">
|
|
<p>Description:* <Br /><textarea name="mod_desc" cols="105" placeholder="The Entries Description. See help > description mark up link at top of page. this is like an article" rows="25"><?php
|
|
if ($desc==""){
|
|
?><!--This is a template on how you should layout mod pages.
|
|
The description should feature all these things, but not necessarily in this order
|
|
Delete these notes before adding the entry-->
|
|
|
|
<!--Basic Description
|
|
(this is a mod that does ...)-->
|
|
|
|
<!--Screenshots-->
|
|
[img]the_url_to_the_image[/img]
|
|
|
|
<!--Advanced Description
|
|
(How to use the mod, etc)-->
|
|
|
|
<!--Links
|
|
(Link to the forum post, GitHub, etc)-->
|
|
|
|
[url=http://minetest.net/forum/viewtopic.php?id=2854=url]Forum Page[/url]<?php
|
|
}else{
|
|
echo $desc;
|
|
}
|
|
?></textarea></p>
|
|
</td>
|
|
</tr>
|
|
|
|
<!--Type and File-->
|
|
<tr>
|
|
<table width="100%"><tr>
|
|
<!--3m Repotype (by Phitherek_)-->
|
|
<td><a href="help/entries.php#download">Type</a>: <select name="mmmrt" size="1">
|
|
<option value="archive" selected>Archive</option>
|
|
<option value="git">Git</option>
|
|
</select></td>
|
|
<!--End of Phitherek_ s code-->
|
|
<td>File URL*: <input type="text" size="50" name="mod_file" placeholder="Web address to the GitHub page or archive (.zip, etc)" value="<?php echo $file;?>"></td>
|
|
</tr></table>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan=2>
|
|
<br />
|
|
License: <input type="text" size="60" placeholder="The entries license." name="mod_lic" value="<?php echo $license;?>">
|
|
<br /><br />
|
|
</td>
|
|
</tr>
|
|
|
|
<!--Depends and Basename-->
|
|
<tr>
|
|
<table width="100%"><tr>
|
|
<td>Depends: <input type="text" placeholder="default,bucket - Separated by a comma ','. blank for no dependency" size="45" name="mod_dep" value="<?php echo $depend;?>"></td>
|
|
<td>Mod Namespace: <input type="text" placeholder="Mod folder to be placed in" size="30" name="mod_base" value="<?php echo $basename;?>"></td>
|
|
</tr>
|
|
</table>
|
|
</tr>
|
|
|
|
<!--Tags-->
|
|
<tr><td colspan="2"><br /><br /><center><b>Tags</b> Users use tags to search and find mods</center></td></tr>
|
|
|
|
<tr>
|
|
<table width="100%"><tr>
|
|
<td>*
|
|
<input type="radio" name="mod_tag_type" value="mod"> Mod
|
|
<input type="radio" name="mod_tag_type" value="modpack"> Mod Pack
|
|
<input type="radio" name="mod_tag_type" value="game"> Game
|
|
<input type="radio" name="mod_tag_type" value="code"> Code Mod
|
|
<input type="radio" name="mod_tag_type" value="texture"> Texture Pack
|
|
|
|
|
|
</td>
|
|
<td>
|
|
<a href="help/tags.php" target="_blank">Other Tags</a>: <input type="text" placeholder="separated by commas" size=30 name="mod_tag_msc" value="<?php
|
|
if ($tags_msc==""){
|
|
echo "0.4,0.4.1,0.4.2,0.4.3";
|
|
}else{
|
|
echo $tags_msc;
|
|
}
|
|
?>">
|
|
</td>
|
|
</tr></table>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan=2>
|
|
<br /><br /><center>
|
|
<input type="submit" value="Add Mod" />
|
|
</center>
|
|
</td>
|
|
</tr>
|
|
|
|
</table>
|
|
</form>
|
|
|
|
<?php
|
|
include "scripts/pagefooter.php";
|
|
?>
|