1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-18 05:09:05 +01:00

removal of deprecated files.

This commit is contained in:
CaMer0n 2007-09-09 06:54:43 +00:00
parent cf84f234fe
commit 2cca4f83b2
6 changed files with 0 additions and 904 deletions

View File

@ -1,52 +0,0 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| ©Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/equery_secure.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:33:44 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
if (file_exists(e_LANGUAGEDIR.e_LANGUAGE."/lan_equery_secure.php")) {
include_once(e_LANGUAGEDIR.e_LANGUAGE."/lan_equery_secure.php");
} else {
include_once(e_LANGUAGEDIR."English/lan_equery_secure.php");
}
require_once(HEADERF);
$caption = EQSEC_LAN2;
$text = "<div style='text-align: center;' >
<div class='fcaption'>".EQSEC_LAN1."</div>
<br />";
$text .= "<table style='text-align:center;'>
<tr><td><b>".EQSEC_LAN4."</b></td><td> ".($tmp_s_ref != "" ? $tmp_s_ref : EQSEC_LAN3 )."</td></tr>
<tr><td><b>".EQSEC_LAN5."</b></td><td> ".e_SELF."</td></tr></table>
<br />";
$text .= "<br />
<form action=\"".e_SELF."?".e_QUERY."\" method=\"post\" >
<div><input class='button' type='submit' value='".EQSEC_LAN6."' name='equery_secure' id='equery_secure' /></div>
</form>
<br /><br />
<br />
<a href=\"javascript:void(0);\" onclick=\"history.go(-1);\" >".EQSEC_LAN7."</a>
</div>";
$ns->tablerender($caption, $text);
require_once(FOOTERF);
exit;
?>

View File

@ -1,593 +0,0 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| ©Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/forum.php,v $
| $Revision: 1.2 $
| $Date: 2007-04-09 10:09:02 $
| $Author: e107steved $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
require_once("../class2.php");
if (!getperms("5")) {
header("location:".e_BASE."index.php");
exit;
}
require_once("auth.php");
require_once(e_HANDLER."userclass_class.php");
$aj = new textparse;
if (e_QUERY) {
$qs = explode(".", e_QUERY);
$action = $qs[0];
$forum_id = $qs[1];
$forum_order = $qs[2];
}
$sql2 = new db;
if (isset($_POST['prune'])) {
if (!$_POST['prune_days']) {
$message = FORLAN_1;
} else {
$text = "<div style='text-align:center'>
<form method='post' action='".e_SELF."'>\n
<table style='width:85%' class='fborder'>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_106."<br />
<span class='smalltext'>".FORLAN_2."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:right'>
<input type='radio' name='prune_type' value='delete' /> ".FORLAN_3."<br />
<input type='radio' name='prune_type' value='unactivatate' checked='checked' /> ".FORLAN_4."
</td>
</tr>
<tr>
<td colspan='2' style='text-align:center' class='forumheader'>
<input class='button' type='submit' name='doprune' value='".FORLAN_5."' />
<input class='button' type='submit' name='cancelprune' value='".FORLAN_6."' />
<input type='hidden' name='prune_days' value='".$_POST['prune_days']."' />
</td>
</tr>
</table>
</form>
</div>";
$ns->tablerender(FORLAN_7, $text);
require_once("footer.php");
}
}
if (isset($_POST['doprune'])) {
if ($_POST['prune_type'] == "delete") {
$prunedate = time() - ($_POST['prune_days'] * 86400);
if ($sql->db_Select("forum_t", "*", "thread_lastpost < {$prunedate} AND thread_parent=0 AND thread_s!=1")) {
while ($row = $sql->db_Fetch()) {
extract($row);
$sql2->db_Delete("forum_t", "thread_parent = '{$thread_id}' ");
// delete replies
$sql2->db_Delete("forum_t", "thread_id = '{$thread_id}' ");
// delete thread
}
$sql->db_Select("forum", "*", "forum_parent != 0");
while ($row = $sql->db_Fetch()) {
extract($row);
$threads = $sql2->db_Count("forum_t", "(*)", "WHERE thread_forum_id = {$forum_id} AND thread_parent = 0");
$replies = $sql2->db_Count("forum_t", "(*)", "WHERE thread_forum_id = {$forum_id} AND thread_parent != 0");
$sql2->db_Update("forum", "forum_threads = '{$threads}', forum_replies = '{$replies}' WHERE forum_id = '{$forum_id}'");
}
$message = FORLAN_8;
} else {
$message = FORLAN_9;
}
} else {
$prunedate = time() - ($_POST['prune_days'] * 86400);
$sql->db_Update("forum_t", "thread_active = 0 WHERE thread_lastpost < {$prunedate} AND thread_parent=0 ");
$message = FORLAN_8;
}
}
if (isset($_POST['update_order'])) {
extract($_POST);
while (list($key, $id) = each($forum_order_)) {
$tmp = explode(".", $id);
$sql->db_Update("forum", "forum_order = {$tmp[1]} WHERE forum_id = {$tmp[0]}");
echo "forum_order = {$tmp[1]} WHERE forum_id = {$tmp[0]}<br />";
}
$message = FORLAN_73;
}
$sql->db_Select("forum", "forum_id, forum_order", "forum_parent=0 ORDER BY forum_order ASC");
$c = 1;
while ($row = $sql->db_Fetch()) {
extract($row);
$sql2->db_Update("forum", "forum_order = '{$c}' WHERE forum_id = '{$forum_id}'");
$c++;
}
$sql->db_Select("forum", "forum_id, forum_order", "forum_parent != 0 ORDER BY forum_order ASC");
while ($row = $sql->db_Fetch()) {
extract($row);
$sql2->db_Update("forum", "forum_order = '{$c}' WHERE forum_id = '{$forum_id}' ");
$c++;
}
if (isset($_POST['updateoptions'])) {
$pref['email_notify'] = $_POST['email_notify'];
$pref['forum_poll'] = $_POST['forum_poll'];
$pref['forum_popular'] = $_POST['forum_popular'];
$pref['forum_track'] = $_POST['forum_track'];
$pref['forum_eprefix'] = $_POST['forum_eprefix'];
$pref['forum_enclose'] = $_POST['forum_enclose'];
$pref['forum_title'] = $_POST['forum_title'];
$pref['forum_postspage'] = $_POST['forum_postspage'];
$pref['forum_levels'] = $_POST['forum_levels'];
$pref['image_post'] = $_POST['image_post'];
$pref['html_post'] = $_POST['html_post'];
$pref['forum_attach'] = $_POST['forum_attach'];
save_prefs();
$message = FORLAN_10;
}
If(isset($_POST['submit'])) {
$c = 0;
while ($_POST['mod'][$c]) {
$mods .= $_POST['mod'][$c].", ";
$c++;
}
$mods = preg_replace("/, $/", ".", $mods);
$sql->db_Select("forum", "*", "forum_name='".$_POST['parentforum']."' ");
$row = $sql->db_Fetch();
$forum_parent = $row['forum_id'];
$_POST['forum_name'] = $aj->formtpa($_POST['forum_name'], "admin");
$_POST['forum_description'] = $aj->formtpa($_POST['forum_description'], "admin");
$sql->db_Insert("forum", "0, '".$_POST['forum_name']."', '".$_POST['forum_description']."', '".$forum_parent."', '".time()."', '".$mods."', 0, 0, 0, '".$_POST['forum_class']."', 0 ");
unset($forum_name, $forum_description, $forum_parent);
$message = FORLAN_11;
}
If(isset($_POST['update'])) {
$c = 0;
while ($_POST['mod'][$c]) {
$mods .= $_POST['mod'][$c].", ";
$c++;
}
$mods = preg_replace("/, $/", ".", $mods);
$sql->db_Select("forum", "*", "forum_name='".$_POST['parentforum']."' ");
$row = $sql->db_Fetch();
$_POST['forum_name'] = $aj->formtpa($_POST['forum_name'], "admin");
$_POST['forum_description'] = $aj->formtpa($_POST['forum_description'], "admin");
$forum_parent = $row['forum_id'];
$sql->db_Update("forum", "forum_name='".$_POST['forum_name']."', forum_description='".$_POST['forum_description']."', forum_parent='".$forum_parent."', forum_moderators='".$mods."', forum_class='".$_POST['forum_class']."' WHERE forum_id='".$_POST['forum_id']."' ");
unset($forum_name, $forum_description, $forum_parent, $forum_active);
$message = FORLAN_12;
}
If(isset($_POST['psubmit'])) {
$_POST['parent'] = $aj->formtpa($_POST['parent'], "admin");
$sql->db_Insert("forum", "0, '".$_POST['parent']."', '', '', '".time()."', '0', '0', '0', '', '".$_POST['parent_class']."', 0 ");
unset($parent);
$message = FORLAN_13;
}
If(isset($_POST['pupdate'])) {
$_POST['parent'] = $aj->formtpa($_POST['parent'], "admin");
$sql->db_Update("forum", "forum_name='".$_POST['parent']."', forum_class='".$_POST['parent_class']."' WHERE forum_id='".$_POST['existing']."' ");
unset($parent);
$message = FORLAN_14;
}
If(isset($_POST['pedit'])) {
$sql->db_Select("forum", "*", "forum_id='".$_POST['existing']."' ");
list($forum_id, $parent, $forum_description, $forum_parent, $forum_datestamp, $forum_moderators, $forum_threads, $forum_replies, $forum_lastpost, $parent_class) = $sql->db_Fetch();
$parent = stripslashes($parent);
}
If(isset($_POST['edit'])) {
$sql->db_Select("forum", "*", "forum_id='".$_POST['existing']."' ");
list($forum_id, $forum_name, $forum_description, $forum_parent, $forum_datestamp, $forum_moderators, $forum_threads, $forum_replies, $forum_lastpost, $forum_class) = $sql->db_Fetch();
$parent = stripslashes($parent);
}
If(isset($_POST['delete'])) {
if ($_POST['confirm']) {
$sql->db_Select("forum", "forum_id, forum_parent", "forum_id='".$_POST['existing']."' ");
$row = $sql->db_Fetch();
extract($row);
$tt = ($forum_parent ? "" : "parent");
$sql->db_Delete("forum", "forum_id='".$_POST['existing']."' ");
$message = FORLAN_107.$tt.FORLAN_108;
} else {
$message = FORLAN_15;
}
}
if (isset($message)) {
$ns->tablerender("", "<div style='text-align:center'><b>{$message}</b></div>");
}
$ns->tablerender("<div style='text-align:center'>".FORLAN_16."</div>", $text);
$text = "<div style='text-align:center'>
<form method='post' action='".e_SELF."'>\n
<table style='width:85%' class='fborder'>
<tr>
<td colspan='2' class='forumheader' style='text-align:center'>";
$forum_parent_total = $sql->db_Select("forum", "*", "forum_parent = '0' ");
if ($forum_parent_total == 0) {
$text .= "<span class='defaulttext'>".FORLAN_17."</span>";
} else {
$text .= "<span class='defaulttext'>".FORLAN_18.": </span>
<select name='existing' class='tbox'>\n";
$c = 0;
while (list($forum_id_, $forum_parent_) = $sql->db_Fetch()) {
$parents[$c] = $forum_parent_;
$parents_id[$c] = $forum_id_;
$text .= "<option value='{$forum_id_}'>{$parents[$c]}</option>\n";
$c++;
}
$text .= "</select>
<input class='button' type='submit' name='pedit' value='".FORLAN_19."' />
<input class='button' type='submit' name='delete' value='".FORLAN_20."' />
<input type=\"checkbox\" name=\"confirm\" value=\"1\"><span class=\"smalltext\" /> ".FORLAN_21."</span>
";
}
$text .= "
</td>
</tr>
<tr>
<td style='width:20%' class='forumheader3'><u>".FORLAN_22."</u>:</td>
<td style='width:80%' class='forumheader3'>
<input class='tbox' type='text' name='parent' size='60' value='{$parent}' maxlength='250' />
</td>
</tr>
<tr>
<td style='width:20%' class='forumheader3'>".FORLAN_23.":<br /><span class='smalltext'>(".FORLAN_24.")</span></td>
<td style='width:80%' class='forumheader3'>".r_userclass("parent_class", $parent_class);
$text .= "<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'>";
if (isset($_POST['pedit'])) {
$text .= "<input class='button' type='submit' name='pupdate' value='".FORLAN_25."' />
<input type='hidden' name='existing' value='".$_POST['existing']."' />";
} else {
$text .= "<input class='button' type='submit' name='psubmit' value='".FORLAN_26."' />";
}
$text .= "</td>
</tr>
</table>
</form>
</div>";
$ns->tablerender("Parents", $text);
if ($forum_parent_total == 0) {
$text = "<div style='text-align:center'>".FORLAN_27."</div>";
$ns->tablerender(FORLAN_28, $text);
require_once("footer.php");
exit;
}
$forum_total = $sql->db_Select("forum", "*", "forum_parent!='0' ");
$text = "<div style='text-align:center'>
<form method='post' action='".e_SELF."'>\n
<table style='width:85%' class='fborder'>
<tr>
<td colspan='2' class='forumheader' style='text-align:center'>";
if ($forum_total == "0") {
$text .= "<span class='defaulttext'>".FORLAN_29."</span>";
} else {
$text .= "<span class='defaulttext'>".FORLAN_30.": </span>
<select name='existing' class='tbox'>";
while (list($forum_id_, $forum_name_) = $sql->db_Fetch()) {
$text .= "<option value='{$forum_id_}'>{$forum_name_}</option>";
}
$text .= "</select>
<input class='button' type='submit' name='edit' value='".FORLAN_19."' />
<input class='button' type='submit' name='delete' value='".FORLAN_20."' />
<input type='checkbox' name='confirm' value='1' /><span class='smalltext'> ".FORLAN_21."</span>
";
}
$text .= "
</td>
</tr>
<tr>
<td style='width:20%' class='forumheader3'><u>".FORLAN_22."</u>:</td>
<td style='width:80%' class='forumheader3'>
<select name='parentforum' class='tbox'>";
$c = 0;
while ($parents[$c]) {
if ($parents_id[$c] == $forum_parent) {
$text .= "<option selected>{$parents[$c]}</option>\n";
} else {
$text .= "<option>{$parents[$c]}</option>\n";
}
$c++;
}
$text .= "</select>
</td>
</tr>
<tr>
<td style='width:20%' class='forumheader3'><u>".FORLAN_31."</u>:</td>
<td style='width:80%' class='forumheader3'>
<input class='tbox' type='text' name='forum_name' size='60' value='{$forum_name}' maxlength='100' />
</td>
</tr>
<tr>
<td style='width:20%' class='forumheader3'><u>".FORLAN_32."</u>: </td>
<td style='width:80%' class='forumheader3'>
<textarea class='tbox' name='forum_description' cols='50' rows='5'>{$forum_description}</textarea>
</td>
</tr>
<tr>
<td style='width:20%' class='forumheader3'>".FORLAN_23.":<br /><span class='smalltext'>(".FORLAN_24.")</span></td>
<td style='width:80%' class='forumheader3'>".r_userclass("forum_class", $forum_class, "on")."
</td></tr><tr>
<td style='width:20%' class='forumheader3'>".FORLAN_33.":<br /><span class='smalltext'>(".FORLAN_34.")</span></td>
<td style='width:80%' class='forumheader3'>";
$admin_no = $sql->db_Select("user", "*", "user_admin='1' AND user_perms REGEXP('A.') OR user_perms='0' ");
while ($row = $sql->db_Fetch()) {
extract($row);
$text .= "<input type='checkbox' name='mod[]' value='{$user_name}'";
if (strpos($forum_moderators, $user_name) !== FALSE) {
$text .= " checked";
}
$text .= " /> {$user_name}<br />";
}
$text .= "</td>
</tr>
<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'>";
If(isset($_POST['edit'])) {
$text .= "<input class='button' type='submit' name='update' value='".FORLAN_35."' />
<input type='hidden' name='forum_id' value='{$forum_id}' />";
} else {
$text .= "<input class='button' type='submit' name='submit' value='".FORLAN_36."' />";
}
$text .= "</td>
</tr>
</table>
</form>
</div>";
$ns->tablerender("Forums", $text);
$text = "<div style='text-align:center'>
<table style='width:95%' class='fborder'>
<form method='post' action='".e_SELF."'>
<tr>
<td colspan='2' style='width:70%; text-align:center' class='fcaption'>".FORLAN_28."</td>
<td style='width:30%; text-align:center' class='fcaption'>".FORLAN_37."</td>
</tr>";
if (!$parent_amount = $sql->db_Select("forum", "*", "forum_parent='0' ORDER BY forum_order ASC")) {
$text .= "<tr><td class='forumheader3' style='text-align:center' colspan='3'>".FORLAN_29."</td></tr>";
} else {
$sql2 = new db;
$sql3 = new db;
while ($row = $sql->db_Fetch()) {
extract($row);
if ($forum_class == 255) {
$text .= "<tr><td colspan='2' class='forumheader'>{$forum_name} (".FORLAN_38.")</td>";
}
else if($forum_class == 254) {
$text .= "<tr><td colspan='2' class='forumheader'>{$forum_name} (".FORLAN_39.")</td>";
}
else if($forum_class) {
$text .= "<tr><td colspan='2' class='forumheader'>{$forum_name} (".FORLAN_40.")</td>";
} else {
$text .= "<tr><td colspan='2' class='forumheader'>{$forum_name}</td>";
}
$text .= "<td class='forumheader' style='text-align:center'>\n<select name='activate' class='tbox'>\n";
for($a = 1; $a <= $parent_amount; $a++) {
$text .= ($forum_order == $a ? "<option value='{$forum_id}.{$a}' selected>{$a}</option>\n" : "<option value='{$forum_id}.{$a}'>$a</option>\n");
}
$text .= "</select></td></tr>\n";
$forums = $sql2->db_Select("forum", "*", "forum_parent = '{$forum_id}' ORDER BY forum_order ASC");
if (!$forums) {
$text .= "<td colspan='4' style='text-align:center' class='forumheader3'>".FORLAN_29."</td>";
} else {
while ($row = $sql2->db_Fetch()) {
extract($row);
$text .= "<tr><td style='width:5%; text-align:center' class='forumheader2'><img src='".e_IMAGE."forum/new.png' alt='' /></td>\n<td style='width:55%' class='forumheader2'><a href='".e_BASE."forum_viewforum.php?".$forum_id."'>".$forum_name."</a><br /><span class='smallblacktext'>".$forum_description."</span></td>
<td colspan='2' class='forumheader3' style='text-align:center'>\n<select name='forum_order_[]' class='tbox'>\n";
for($a = 1; $a <= $forums; $a++) {
$text .= ($forum_order == $a ? "<option value='{$forum_id}.{$a}' selected>{$a}</option>\n" : "<option value='{$forum_id}.{$a}'>{$a}</option>\n");
}
$text .= "</select>\n</td>\n</tr>";
}
}
}
}
$text .= "<tr>
<td colspan='4' style='text-align:center' class='forumheader'>
<input class='button' type='submit' name='update_order' value='".FORLAN_72."' />
</td>
</tr>
</table></form></div>";
$ns->tablerender(FORLAN_43, $text);
$text = "<div style='text-align:center'>
<form method='post' action='".e_SELF."'>\n
<table style='width:85%' class='fborder'>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_44."<br />
<span class='smalltext'>".FORLAN_45."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>". ($pref['forum_enclose'] ? "<input type='checkbox' name='forum_enclose' value='1' checked />" : "<input type='checkbox' name='forum_enclose' value='1' />")."
</td>
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_65."<br />
<span class='smalltext'>".FORLAN_46."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>
<input class='tbox' type='text' name='forum_title' size='15' value='".$pref['forum_title']."' maxlength='20' />
</td>
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_47."<br />
<span class='smalltext'>".FORLAN_48."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>". ($pref['email_notify'] ? "<input type='checkbox' name='email_notify' value='1' checked />" : "<input type='checkbox' name='email_notify' value='1' />")."
</td>
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_68."<br />
<span class='smalltext'>".FORLAN_69."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>". ($pref['html_post'] ? "<input type='checkbox' name='html_post' value='1' checked />" : "<input type='checkbox' name='html_post' value='1' />")."
</td>
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_49."<br />
<span class='smalltext'>".FORLAN_50."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>". ($pref['forum_poll'] ? "<input type='checkbox' name='forum_poll' value='1' checked />" : "<input type='checkbox' name='forum_poll' value='1' />")."
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_70."<br />
<span class='smalltext'>".FORLAN_71."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>". ($pref['forum_attach'] ? "<input type='checkbox' name='forum_attach' value='1' checked />" : "<input type='checkbox' name='forum_attach' value='1' />")."
</td>
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_51."<br />
<span class='smalltext'>".FORLAN_52."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>". ($pref['forum_track'] ? "<input type='checkbox' name='forum_track' value='1' checked />" : "<input type='checkbox' name='forum_track' value='1' />")."
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_53."<br />
<span class='smalltext'>".FORLAN_54."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>
<input class='tbox' type='text' name='forum_eprefix' size='15' value='".$pref['forum_eprefix']."' maxlength='20' />
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_55."<br />
<span class='smalltext'>".FORLAN_56."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>
<input class='tbox' type='text' name='forum_popular' size='3' value='".$pref['forum_popular']."' maxlength='3' />
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_57."<br />
<span class='smalltext'>".FORLAN_58."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>
<input class='tbox' type='text' name='forum_postspage' size='3' value='".$pref['forum_postspage']."' maxlength='3' />
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_63."<br />
<span class='smalltext'>".FORLAN_64."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>
<textarea class='tbox' name='forum_levels' cols='15' rows='5'>".$pref['forum_levels']."</textarea>
</td>
</tr>
<tr>
<td style='width:75%' class='forumheader3'>
".FORLAN_59."<br />
<span class='smalltext'>".FORLAN_60."</span>
</td>
<td style='width:25%' class='forumheader2' style='text-align:center'>
<span class='smalltext'>".FORLAN_109."</span> <input class='tbox' type='text' name='prune_days' size='3' value='' maxlength='3' />
<input class='button' type='submit' name='prune' value='".FORLAN_110."' />
</tr>
<tr style='vertical-align:top'>
<td colspan='2' style='text-align:center' class='forumheader'>
<input class='button' type='submit' name='updateoptions' value='".FORLAN_61."' />
</td>
</tr>
</table>
</form>
</div>";
$ns->tablerender(FORLAN_62, $text);
require_once("footer.php");
?>

View File

@ -1,61 +0,0 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| ©Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/forum_include.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:33:45 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
require_once(e_HANDLER.'multilang/pictures.php');
/**
* @return string path to and filename of forum icon image
*
* @param string $filename filename of forum image
* @param string $eMLANG_folder if specified, indicates its a multilanguage image being processed and
* gives the subfolder of the image path to the eMLANG_path() function,
* default = FALSE
* @param string $eMLANG_pref if specified, indicates that $filename may be overridden by the
* $pref with $eMLANG_pref as its key if that pref is TRUE, default = FALSE
*
* @desc checks for the existence of a forum icon image in the themes forum folder and if it is found
* returns the path and filename of that file, otherwise it returns the path and filename of the
* default forum icon image in e_IMAGES. The additional $eMLANG args if specfied switch the process
* to the sister multi-language function eMLANG_path().
*
* @access public
*/
function img_path($filename, $eMLANG_folder = FALSE, $eMLANG_pref = FALSE) {
global $pref;
if ($eMLANG_folder) {
if ($eMLANG_pref) {
$filename = $pref[$eMLANG_pref] ? $pref[$eMLANG_pref] :
$filename;
}
$image = eMLANG_path($filename, $eMLANG_folder);
} else {
$image = file_exists(THEME.'forum/'.$filename) ? THEME.'forum/'.$filename : e_IMAGE.'forum/'.$filename;
}
return $image;
}
if (file_exists(THEME.'forum/forum_icons_template.php')) {
require_once(THEME.'forum/forum_icons_template.php');
} else {
require_once(e_BASE.$THEMES_DIRECTORY.'templates/forum_icons_template.php');
}
?>

View File

@ -1,101 +0,0 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system
|
| ©Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/forum_mod.php,v $
| $Revision: 1.3 $
| $Date: 2007-01-20 16:15:57 $
| $Author: mrpete $
+----------------------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
function forum_thread_moderate($p) {
global $sql;
foreach($p as $key => $val) {
if (preg_match("#(.*?)_(\d+)_x#", $key, $matches)) {
$act = $matches[1];
$id = $matches[2];
switch($act) {
case 'lock' :
$sql->db_Update("forum_t", "thread_active='0' WHERE thread_id='".intval($id)."' ");
return FORLAN_CLOSE;
break;
case 'unlock' :
$sql->db_Update("forum_t", "thread_active='1' WHERE thread_id='".intval($id)."' ");
return FORLAN_OPEN;
break;
case 'stick' :
$sql->db_Update("forum_t", "thread_s='1' WHERE thread_id='".intval($id)."' ");
return FORLAN_STICK;
break;
case 'unstick' :
$sql->db_Update("forum_t", "thread_s='0' WHERE thread_id='".intval($id)."' ");
return FORLAN_UNSTICK;
break;
case 'delete' :
return forum_delete_thread($id);
break;
}
}
}
}
function forum_delete_thread($thread_id) {
global $sql;
$sql->db_Select("forum_t", "*", "thread_id='".intval($thread_id)."' ");
$row = $sql->db_Fetch();
extract($row);
if ($thread_parent) {
// is post a reply?
$sql->db_Delete("forum_t", "thread_id = '".intval($thread_id)."' ");
// delete reply only
$sql->db_Update("forum", "forum_replies=forum_replies-1 WHERE forum_id='{$thread_forum_id}'");
// dec reply count by 1
$sql->db_Select("forum_t", "*", "thread_id = ".intval($thread_id));
$row = $sql->db_Fetch();
extract($row);
$replies = $sql->db_Count("forum_t", "(*)", "WHERE thread_parent='".$thread_parent."'");
$pref['forum_postspage'] = ($pref['forum_postspage'] ? $pref['forum_postspage'] : 10);
$pages = 0;
if ($replies) {
$pages = ((ceil($replies / $pref['forum_postspage']) -1) * $pref['forum_postspage']);
}
$url = e_BASE."forum_viewtopic.php?".$thread_parent.($pages ? ".$pages" : "");
// set return url
return FORLAN_26;
} else {
// post is thread
$sql->db_Delete("poll", "poll_datestamp='".intval($thread_id)."'");
// delete poll if there is one
$count = $sql->db_Delete("forum_t", "thread_parent='".intval($thread_id)."'");
// delete replies and grab how many there were
$sql->db_Delete("forum_t", "thread_id='".intval($thread_id)."'");
// delete the post itself
$sql->db_Update("forum", "forum_threads=forum_threads-1, forum_replies = forum_replies - {$count} WHERE forum_id = '{$thread_forum_id}'");
// update thread/reply counts
$url = e_BASE."forum_viewforum.php?".$forum_id;
// set return url
return FORLAN_6.($count ? ", ".$count." ".FORLAN_7."." : ".");
}
}
?>

View File

@ -1,78 +0,0 @@
<?php
/**
+-------------------------------------------------------------+
| e107 website system
|
| ©Steve Dunstan 2001-2002
| http://e107.org
| jalist@e107.org
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: /cvs_backup/e107_0.8/e107_handlers/input_class.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:33:45 $
| $Author: mcfly_e107 $
+-------------------------------------------------------------+
*/
if (!defined('e107_INIT')) { exit; }
/**
* User input cleaning class
*
* @package e107
* @version $Revision: 1.1.1.1 $
* @author $Author: mcfly_e107 $
*/
class einput {
// new, better function.. docs soon :)
function escape($string, $gpc_data = true) {
// Stripslashes if needed
if ($gpc_data == true && get_magic_quotes_gpc()) {
$string = stripslashes($string);
}
// Replace new lines (quick / dirty fix to issues caused by real_escape)
$string = str_replace(array("\r", "\n"), array("--#R--", "--#N--"), $string);
// Escape data
$string = mysql_real_escape_string($string);
// Put back new lines
$string = str_replace(array("--#R--", "--#N--"), array("\r", "\n"), $string);
return $string;
}
/**
* Escape SQL data to help prevent injections
*
* @param string $string [dirty input data]
* @return string [escaped data]
*/
function sql_escape_string($string = "") {
// Replace new lines (quick / dirty fix to issues caused by real_escape)
$string = str_replace(array("\r", "\n"), array("--#R--", "--#N--"), $string);
// Escape data
$string = mysql_real_escape_string($string);
// Put back new lines
$string = str_replace(array("--#R--", "--#N--"), array("\r", "\n"), $string);
return $string;
}
/**
* Strip slashes from string, for use before escaping data for sql queries - takes into account magic_quotes_gpc setting, i.e. only stips if it's on - or the second arg is true
*
* @param string $string [input string]
* @param bool $ignore_magic_quotes_gpc [overide magic_quotes_gpc setting, i.e. always strip slashes
* @return string
*/
function strip_input($string = "", $ignore_magic_quotes_gpc = false) {
if(get_magic_quotes_gpc() == true || $ignore_magic_quotes_gpc == true) {
$string = stripslashes($string);
}
return $string;
}
}
?>

View File

@ -1,19 +0,0 @@
<?php
/*
+ ----------------------------------------------------------------------------+
| e107 website system - Language File.
|
| $Source: /cvs_backup/e107_0.8/e107_languages/English/lan_equery_secure.php,v $
| $Revision: 1.1.1.1 $
| $Date: 2006-12-02 04:34:39 $
| $Author: mcfly_e107 $
+----------------------------------------------------------------------------+
*/
define("EQSEC_LAN1", "You are being redirected to an admin function, possible database modifications could occur");
define("EQSEC_LAN2", "Please confirm this action:");
define("EQSEC_LAN3", "No referrer");
define("EQSEC_LAN4", "Action from:");
define("EQSEC_LAN5", "Action to:");
define("EQSEC_LAN6", "Confirm action");
define("EQSEC_LAN7", "Or cancel");
?>