parent
f4ab26b6b7
commit
8d19d73e32
|
@ -1,29 +0,0 @@
|
|||
This is my first mod, be nice...<br />
|
||||
<br />
|
||||
This mod adds booby traps to minetest, I made it especially for the Hunger Games Server.<br />
|
||||
<br />
|
||||
Traps<br />
|
||||
<br />
|
||||
1) Mine (traps:mine)<br />
|
||||
A block disguised as a grass block<br />
|
||||
Ka Boom!. Code used from the Nuke Mod<br />
|
||||
<br />
|
||||
<img src="http://multa.bugs3.com/minetest/mods/traps_scrn_mine.jpg"><br />
|
||||
<br />
|
||||
2) Cage Trap (traps:cage)<br />
|
||||
A block disguised as a grass block<br />
|
||||
When a player walks over the block, they get trapped in by glass.<br />
|
||||
Another player has to release them by standing on the release block beside them.<br />
|
||||
<br />
|
||||
<img src="http://multa.bugs3.com/minetest/mods/traps_scrn_cage.jpg"><br />
|
||||
<br />
|
||||
NOTE: You can use the variable "block_to_place" to change which block is placed for the walls of the cage (eg: to obidistan)<br />
|
||||
<br />
|
||||
I am open for any critisms, suggestions, alternate textures, and ideas for new traps<br />
|
||||
<br />
|
||||
License: Do what ever you want, but a credit would be nice.<br />
|
||||
<br />
|
||||
Downloads<br />
|
||||
Github Repo Page<br />
|
||||
Version 1<br />
|
||||
Version 1, no craft recipes<br />
|
|
@ -1 +0,0 @@
|
|||
mod,fun,traps
|
|
@ -1 +0,0 @@
|
|||
multas
|
12
index.php
12
index.php
|
@ -17,14 +17,20 @@
|
|||
<div style="background-color:transparent;text-align:left;margin-left:auto;margin-right:auto;position:relative;width:900px;height:1000px;">
|
||||
<!--The Header-->
|
||||
<img src="header.png" width="900" height="100" border="0" alt="" style="position:absolute;left:0px;top:0px;">
|
||||
<div style="position:relative;left:5px;top:110px">
|
||||
|
||||
<!--The content-->
|
||||
<?php
|
||||
include "scripts/setup.php";
|
||||
$query="mod";
|
||||
include "scripts/loadmods.php";
|
||||
?>
|
||||
</div>
|
||||
|
||||
<!--The footer-->
|
||||
|
||||
|
||||
|
||||
<!--The content-->
|
||||
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
[22-Aug-2012 12:20:07] PHP Parse error: syntax error, unexpected T_IF in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 4
|
||||
[22-Aug-2012 12:20:17] PHP Parse error: syntax error, unexpected T_IF in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 4
|
||||
[22-Aug-2012 12:20:18] PHP Parse error: syntax error, unexpected T_IF in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 4
|
||||
[22-Aug-2012 12:20:33] PHP Parse error: syntax error, unexpected T_STRING in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 6
|
||||
[22-Aug-2012 12:20:35] PHP Parse error: syntax error, unexpected T_STRING in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 6
|
||||
[22-Aug-2012 12:20:35] PHP Parse error: syntax error, unexpected T_STRING in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 6
|
||||
[22-Aug-2012 12:20:43] PHP Parse error: syntax error, unexpected T_STRING in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 6
|
||||
[22-Aug-2012 12:20:45] PHP Parse error: syntax error, unexpected T_STRING in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 6
|
||||
[22-Aug-2012 12:20:45] PHP Parse error: syntax error, unexpected T_STRING in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 6
|
||||
[22-Aug-2012 12:20:45] PHP Parse error: syntax error, unexpected T_STRING in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 6
|
||||
[22-Aug-2012 12:21:25] PHP Parse error: syntax error, unexpected T_STRING in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 6
|
||||
[22-Aug-2012 12:21:34] PHP Parse error: syntax error, unexpected ',', expecting '&' or T_VARIABLE in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 11
|
||||
[22-Aug-2012 12:21:52] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 12
|
||||
[22-Aug-2012 12:21:52] PHP Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 13
|
||||
[22-Aug-2012 12:22:33] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 12
|
||||
[22-Aug-2012 12:24:04] PHP Parse error: syntax error, unexpected T_VARIABLE in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 13
|
||||
[22-Aug-2012 12:24:13] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 13
|
||||
[22-Aug-2012 12:24:29] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 13
|
||||
[22-Aug-2012 12:24:31] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 13
|
||||
[22-Aug-2012 12:24:31] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 13
|
||||
[22-Aug-2012 12:24:31] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 13
|
||||
[22-Aug-2012 12:24:31] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 13
|
||||
[22-Aug-2012 12:24:31] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 13
|
||||
[22-Aug-2012 12:24:32] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 13
|
||||
[22-Aug-2012 12:33:14] PHP Fatal error: Cannot redeclare checklogin() (previously declared in /home/u372522788/public_html/minetest/forum/scripts/setup.php:4) in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 33
|
||||
[22-Aug-2012 12:33:30] PHP Fatal error: Cannot redeclare checklogin() (previously declared in /home/u372522788/public_html/minetest/forum/scripts/setup.php:4) in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 33
|
||||
[22-Aug-2012 12:33:35] PHP Parse error: syntax error, unexpected '>', expecting T_STRING or T_VARIABLE or '$' in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 34
|
||||
[22-Aug-2012 12:33:49] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 12:34:36] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 12:35:26] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 12:35:27] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 12:35:42] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 12:35:43] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 13:59:29] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 14:00:28] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 14:00:29] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 14:00:30] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 14:00:42] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 14:00:42] PHP Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 25
|
||||
[22-Aug-2012 14:01:26] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 14:01:28] PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 24
|
||||
[22-Aug-2012 16:17:05] PHP Fatal error: Function name must be a string in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 2
|
||||
[22-Aug-2012 16:17:13] PHP Fatal error: Function name must be a string in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 2
|
||||
[22-Aug-2012 16:32:41] PHP Fatal error: Function name must be a string in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 2
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
echo "<table width=\"100%\"><tr><th colspan=2>Mod Name</th><th>Populatity</th><th>Tags</th></tr>\n";
|
||||
$query= mysql_escape_string ($query);
|
||||
$res = mysql_query("SELECT * FROM mods WHERE tags LIKE '%$query%' ORDER BY likes",$handle) or die("query error");
|
||||
|
||||
// Get projects loop
|
||||
while ($hash = mysql_fetch_assoc($res)){
|
||||
echo "<tr><td><img width=16 height=16 src=\"topicicon_read.jpg\" /></td><td><a href=\"viewmod.php?id={$hash['id']}\">{$hash['name']}</a><br />by {$hash['owner']}</td>";
|
||||
echo "<td>{$hash['likes']}</td>";
|
||||
echo "<td>{$hash['tags']}</td></tr>\n";
|
||||
|
||||
}
|
||||
?>
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$session_start();
|
||||
session_start();
|
||||
|
||||
$handle = mysql_pconnect("mysql.serversfree.com","u372522788_admin","password");
|
||||
|
||||
|
@ -8,11 +8,8 @@ die("MySQL - Error connecting to the MySQL database");
|
|||
|
||||
mysql_select_db("u372522788_minetest",$handle) or die("Error Switching DB");
|
||||
|
||||
function checklogin($user,$pass,$handle){
|
||||
$us= mysql_escape_string ($user);
|
||||
$res = mysql_query("SELECT * FROM users WHERE name='$us'",$handle) or die("query error");
|
||||
$row = mysql_fetch_row($res) or die("row error");
|
||||
|
||||
function authcheck($user,$pass,$handle){
|
||||
$row=getUser($user);
|
||||
if ($row[3]==$pass){
|
||||
return 1;
|
||||
}else{
|
||||
|
@ -20,7 +17,15 @@ function checklogin($user,$pass,$handle){
|
|||
}
|
||||
}
|
||||
|
||||
function is_logged_in(){
|
||||
if ($_SESSION['auth']=="somerandomkey"){
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function getUser($user){
|
||||
$us= mysql_escape_string ($user);
|
||||
$res = mysql_query("SELECT * FROM users WHERE name='$us'",$handle) or die("query error");
|
||||
$row = mysql_fetch_row($res) or die("row error");
|
||||
return $row;
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 631 B |
Loading…
Reference in New Issue