Permalink
Browse files

original v2.2.7

  • Loading branch information...
Halamix2 committed Jun 14, 2014
1 parent e8ba485 commit d13beb5c153a36d146586c76758ea15517d77479
Showing 616 changed files with 106,399 additions and 0 deletions.
View
@@ -0,0 +1,21 @@
<?php
// Ultimate PHP Board
// Author: Tim Hoeppner aka RR_Pilot, FixITguy
// Website: http://www.myupb.com
// Version: 2.0
// Using textdb Version: 4.3.2
$where = 'Private Policy';
require_once('./includes/upb.initialize.php');
require_once("./includes/header_simple.php");
?>
You can add an image to your profile. If you have space on a webserver
somewhere, upload your image, then type the URL of the image in the
avatar text box to the right. The image will be at the discresion of the
board admins. If it's too big or inappropiate, it may be deleted. Please
try to keep your file size below 20kb, so as not to slow down the board.
<br />
<br />
<br />
<br />
<a href=\ "javascript:window.close();\">Close Window</a>
<?php require_once("./includes/footer_simple.php"); ?>
View
@@ -0,0 +1,29 @@
<?php
// Ultimate PHP Board
// Author: Tim Hoeppner aka RR_Pilot, FixITguy
// Website: http://www.myupb.com
// Version: 2.0
// Using textdb Version: 4.3.2
require_once("./includes/upb.initialize.php");
$where = "Admin Panel";
require_once('./includes/header.php');
if (isset($_COOKIE["user_env"]) && isset($_COOKIE["uniquekey_env"]) && isset($_COOKIE["power_env"]) && isset($_COOKIE["id_env"])) {
if ($tdb->is_logged_in() && $_COOKIE["power_env"] >= 3) {
echoTableHeading(str_replace($_CONFIG["where_sep"], $_CONFIG["table_sep"], $where), $_CONFIG);
echo "
<tr>
<th>Admin Options</th>
</tr>
<tr>
<td class='area_2' style='padding:20px;' valign='top'>";
require_once("admin_navigation.php");
echo "</td></tr>";
echoTableFooter(SKIN_DIR);
}
else echo "<div class='alert'><div class='alert_text'>
<strong>Access Denied!!</strong></div><div style='padding:4px;'>You are not authorized to be here.</div></div>";
}
else echo "<div class='alert'><div class='alert_text'>
<strong>Step Five Failed!</strong></div><div style='padding:4px;'>You are not logged in or not authorized to be here.<meta http-equiv='refresh' content='2;URL=login.php?ref=admin.php'></div></div>";
require_once("./includes/footer.php");
?>
View
@@ -0,0 +1,116 @@
<?php
// Ultimate PHP Board
// Author: Tim Hoeppner aka RR_Pilot, FixITguy
// Website: http://www.myupb.com
// Version: 2.0
// Using textdb Version: 4.3.2
require_once("./includes/upb.initialize.php");
$words = array();
$where = "<a href='admin.php'>Admin</a> ".$_CONFIG["where_sep"]." <a href='admin_badwords.php'>Manage Filtered Lanuage</a>";
require_once('./includes/header.php');
if (!(isset($_COOKIE["user_env"]) && isset($_COOKIE["uniquekey_env"]) && isset($_COOKIE["power_env"]) && isset($_COOKIE["id_env"]))) {
echo "
<div class='alert'><div class='alert_text'>
<strong>Access Denied!</strong></div><div style='padding:4px;'>you are not logged in!</div></div>";
redirect("login.php?ref=admin_badwords.php", 2);
}
if (!$tdb->is_logged_in() || $_COOKIE["power_env"] < 3) exitPage("
<div class='alert'><div class='alert_text'>
<strong>Access Denied!</strong></div><div style='padding:4px;'>you are not authorized to be here.</div></div>");
if ($_GET["action"] == "delete" && $_GET["word"] != "") {
if ($_POST["verify"] == "Ok") {
echo "
<div class='alert_confirm'>
<div class='alert_confirm_text'>
<strong>Redirecting:</div><div style='padding:4px;'>
deleting bad word...
";
$words = explode(",", $_CONFIG['banned_words']);
if (($index = array_search($_GET["word"], $words)) !== FALSE) {
unset($words[$index]);
$words = implode(',', $words);
$config_tdb->editVars('config', array('banned_words' => $words));
echo "Done!</div>
</div>";
redirect("admin_badwords.php", 1);
} else print 'Could not delete "'.$_GET['word'].'"</div></div>';
} elseif($_POST["verify"] == "Cancel") redirect("admin_badwords.php", 1);
else ok_cancel("admin_badwords.php?action=delete&word=".$_GET["word"], "Are you sure you want to remove the <b>".$_GET["word"]."</b> from the filter list?");
} elseif($_GET["action"] == "addnew") {
if ($_POST["newword"] != "") {
echo "
<div class='alert_confirm'>
<div class='alert_confirm_text'>
<strong>Redirecting:</div><div style='padding:4px;'>
adding new word...";
$words = $_CONFIG['banned_words'] . ((strlen($_CONFIG['banned_words']) == 0) ? '' : ',') . htmlentities(stripslashes(trim($_POST['newword'])));
$config_tdb->editVars('config', array('banned_words' => $words));
echo "Done!</div>
</div>";
redirect("admin_badwords.php", 1);
} else {
echo "<form action='admin_badwords.php?action=addnew' method=POST>";
echoTableHeading("Adding a filtered word", $_CONFIG);
echo "
<tr>
<th colspan='2'>Add the word you wish to be censored below</th>
</tr>
<tr>
<td class='area_1' style='width:35%;padding:12px;'><strong>New filtered word</strong></td>
<td class='area_2'><input type='text' name='newword' size='20'></td>
</tr>
<tr>
<td class='footer_3' colspan='2'><img src='./skins/default/images/spacer.gif' alt='' title='' /></td>
</tr>
<tr>
<td class='footer_3a' colspan='2' style='text-align:center;'><input type='submit' value='Add'></td>
</tr>";
echoTableFooter(SKIN_DIR);
echo "</form>";
}
} else {
$words = explode(",", $_CONFIG['banned_words']);
echoTableHeading(str_replace($_CONFIG["where_sep"], $_CONFIG["table_sep"], $where), $_CONFIG);
echo "
<tr>
<th>Admin Panel Navigation</th>
</tr>";
echo "
<tr>
<td class='area_2' style='padding:20px;' valign='top'>";
require_once("admin_navigation.php");
echo "</td>
</tr>";
echoTableFooter(SKIN_DIR);
echo "
<div id='tabstyle_2'>
<ul>
<li><a href='admin_badwords.php?action=addnew' title='Add a new word?'><span>Add a new word?</span></a></li>
</ul>
</div>
<div style='clear:both;'></div>";
echoTableHeading("Filtered Words", $_CONFIG);
echo "
<tr>
<th style='width:65%;'>Word</th>
<th>Option</th>
</tr>";
if (count($words) == 0) {
echo "
<tr>
<td class='area_2' style='text-align:center;font-weight:bold;padding:12px;line-height:20px;' colspan='2'>No words found</td>
</tr>";
} else {
for($i = 0; $i < count($words); $i++) {
echo "
<tr>
<td class='area_1' style='padding:8px;'><strong>$words[$i]</strong></td>
<td class='area_2' style='padding:8px;'><a href='admin_badwords.php?action=delete&word=$words[$i]'>Delete</a></td>
</tr>";
}
}
echoTableFooter(SKIN_DIR);
}
require_once("./includes/footer.php");
?>
View
@@ -0,0 +1,218 @@
<?php
// Ultimate PHP Board
// Author: Tim Hoeppner aka RR_Pilot, FixITguy
// Website: http://www.myupb.com
// Version: 2.0
// Using textdb Version: 4.3.2
require_once("./includes/upb.initialize.php");
$where = "<a href='admin.php'>Admin</a> ".$_CONFIG["where_sep"]." <a href='admin_baduser.php'>Manage banned users</a>";
require_once("./includes/header.php");
if(isset($_COOKIE["user_env"]) && isset($_COOKIE["uniquekey_env"]) && isset($_COOKIE["power_env"]) && isset($_COOKIE["id_env"])) {
if($tdb->is_logged_in() && $_COOKIE["power_env"] >= 3) {
if (isset($_GET["action"])) {
if($_GET["action"] == "edit" && $_GET["word"] != "") {
//edit banned user
$words = explode("\n", file_get_contents(DB_DIR."/banneduser.dat"));
if(($index = array_search($_GET["word"], $words)) !== FALSE) {
if(isset($_POST["newword"])) {
echo "
<div class='alert_confirm'>
<div class='alert_confirm_text'>
<strong>Editing banned user: ".$rec[0]["user_name"]."!</div><div style='padding:4px;'>";
$words[$index] = trim($_POST["newword"]);
$f = fopen(DB_DIR."/banneduser.dat", 'w');
fwrite($f, implode("\n", $words));
fclose($f);
echo "Done!</div>
</div>";
redirect("admin_banuser.php", 1);
} else {
echoTableHeading(str_replace($_CONFIG["where_sep"], $_CONFIG["table_sep"], $where), $_CONFIG);
echo "
<tr>
<th>Admin Panel Navigation</th>
</tr>";
echo "
<tr>
<td class='area_2' style='padding:20px;' valign='top'>";
require_once("admin_navigation.php");
echo "</td>
</tr>";
echoTableFooter(SKIN_DIR);
echo "<form action='admin_banuser.php?action=edit&word=".((isset($_POST["word"])) ? $_POST['word'] : $_GET['word'])."' method=POST>";
echoTableHeading("Changing banned username", $_CONFIG);
echo "
<tr>
<th colspan='2'>&nbsp;</th>
</tr>
<tr>
<td class='area_1' style='width:25%;padding:8px;'><strong>Change a banned username to</strong></td>
<td class='area_2'><input type=text name=newword value='$words[$index]' size=20></td>
</tr>
<tr>
<td class='footer_3' colspan='2'><img src='./skins/default/images/spacer.gif' alt='' title='' /></td>
</tr>
<tr>
<td class='footer_3a' colspan='2' style='text-align:center;'><input type=submit value='Edit'></td>
</tr>";
echoTableFooter(SKIN_DIR);
echo "</form>";
}
} else {
echo $_GET["word"]." was not found in the banned users list.";
}
} elseif($_GET["action"] == "delete" && $_GET["word"] != "") {
//delete banned user
if($_POST["verify"] == "Ok") {
// delete the user
echo "
<div class='alert_confirm'>
<div class='alert_confirm_text'>
<strong>deleting user from ban list</div><div style='padding:4px;'>";
$words = explode("\n", file_get_contents(DB_DIR."/banneduser.dat"));
if(($index = array_search($_GET["word"], $words)) !== FALSE) unset($words[$index]);
$f = fopen(DB_DIR."/banneduser.dat", 'w');
fwrite($f, implode("\n", $words));
fclose($f);
echo "Done!</div>
</div>";
if($_POST["ref"] != "") redirect($_POST["ref"], 1);
else redirect("admin_banuser.php", 1);
} elseif($verify == "Cancel") {
if($_POST["ref"] != "") redirect($_POST["ref"], 1);
else redirect("admin_banuser.php", 1);
} else {
ok_cancel("admin_banuser.php?action=delete&word=".$_GET["word"], "Are you sure you want to delete <b>".$_GET["word"]."</b> from the banned users list?<input type='hidden' name='ref' value='".$_GET["ref"]."'>");
}
} elseif($_GET["action"] == "addnew") {
//add new user
if($_POST["word"] != "") {
echo "
<div class='alert_confirm'>
<div class='alert_confirm_text'>
<strong>Adding banned user: ".$_POST['word']."!</div><div style='padding:4px;'>";
if(filesize(DB_DIR.'/banneduser.dat') > 0) {
$names = explode("\n", file_get_contents(DB_DIR."/banneduser.dat"));
} else $names = array();
$names[] = stripslashes(trim($_POST['word']));
$f = fopen(DB_DIR."/banneduser.dat", 'w');
fwrite($f, implode("\n", $names));
fclose($f);
echo "Done!</div>
</div>";
if($_POST["ref"] != "") redirect($_POST["ref"], 1);
else redirect("admin_banuser.php", 1);
} else {
echoTableHeading(str_replace($_CONFIG["where_sep"], $_CONFIG["table_sep"], $where), $_CONFIG);
echo "
<tr>
<th>Admin Panel Navigation</th>
</tr>";
echo "
<tr>
<td class='area_2' style='padding:20px;' valign='top'>";
require_once("admin_navigation.php");
echo "</td>
</tr>";
echoTableFooter(SKIN_DIR);
echo "<form action='admin_banuser.php?action=addnew' method=POST><input type='hidden' name='ref' value='".$_GET["ref"]."'>";
echoTableHeading("Banning a member", $_CONFIG);
echo "
<tr>
<th colspan='2'>&nbsp;</th>
</tr>
<tr>
<td class='area_1' style='width:25%;padding:8px;'><strong>Enter user name to be banned</strong></td>
<td class='area_2'><input type=text name='word' size=20 value='".$_GET['newword']."'></td>
</tr>
<tr>
<td class='footer_3' colspan='2'><img src='./skins/default/images/spacer.gif' alt='' title='' /></td>
</tr>
<tr>
<td class='footer_3a' colspan='2' style='text-align:center;'><input type=submit value='Add to ban list'></td>
</tr>";
echoTableFooter(SKIN_DIR);
echo "</form>";
}
}
} else {
$list = explode("\n", file_get_contents(DB_DIR."/banneduser.dat"));
echoTableHeading(str_replace($_CONFIG["where_sep"], $_CONFIG["table_sep"], $where), $_CONFIG);
echo "
<tr>
<th>Admin Panel Navigation</th>
</tr>";
echo "
<tr>
<td class='area_2' style='padding:20px;' valign='top'>";
require_once("admin_navigation.php");
echo "</td>
</tr>";
echoTableFooter(SKIN_DIR);
echo "
<div id='tabstyle_2'>
<ul>
<li><a href='admin_banuser.php?action=addnew' title='Add a banned user?'><span>Add a banned user?</span></a></li>
</ul>
</div>
<div style='clear:both;'></div>";
echoTableHeading("Manage banned users", $_CONFIG);
echo "
<tr>
<th colspan='3'>Managing your banned members.</th>
</tr>";
if(trim($list[0]) == "") echo "
<tr>
<td class='area_2' style='text-align:center;font-weight:bold;padding:12px;line-height:20px;' colspan='3'>No members banned.</td>
</tr>";
else {
for($i=0;$i<count($list);$i++) {
echo "
<tr>
<td class='area_1' style='width:80%'><strong>$list[$i]</strong></td>
<td class='area_2' style='width:10%'><a href='admin_banuser.php?action=edit&word=$list[$i]'>Edit</a></td>
<td class='area_2' style='width:10%'><a href='admin_banuser.php?action=delete&word=$list[$i]'>Delete</a></td>
</tr>";
}
}
echoTableFooter(SKIN_DIR);
}
} else {
echo "
<div class='alert'><div class='alert_text'>
<strong>Access Denied!</strong></div><div style='padding:4px;'>you are not authorized to be here.</div></div>";
}
} else {
echo "
<div class='alert'><div class='alert_text'>
<strong>Caution!</strong></div><div style='padding:4px;'>You are not logged in!.</div></div>";
redirect("login.php?ref=admin_basuser.php", 2);
}
require_once("./includes/footer.php");
?>
Oops, something went wrong.

0 comments on commit d13beb5

Please sign in to comment.