Skip to content

Commit 58e1892

Browse files
committed
Release #13 Update
1 parent d749b08 commit 58e1892

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+3455
-158
lines changed

_functions.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@ function parseBBCode($strText) {
105105
$arrBBCodes['Quote'] = array("bbOpenTag" => "[quote]", "bbCloseTag" => "[/quote]", "htmlOpenTag" => "<div class='forumQuote'>", "htmlCloseTag" => "</div>");
106106
$arrBBCodes['Code'] = array("bbOpenTag" => "[code]", "bbCloseTag" => "[/code]", "htmlOpenTag" => "<div class='forumCode'>", "htmlCloseTag" => "</div>");
107107

108+
$randPollDiv = "poll_".md5(time().uniqid());
109+
110+
$arrBBCodes['Poll'] = array("bbOpenTag" => "[poll]", "bbCloseTag" => "[/poll]", "htmlOpenTag" => "<div id='".$randPollDiv."'></div><script type='text/javascript'>embedPoll('".$MAIN_ROOT."', '".$randPollDiv."', '", "htmlCloseTag" => "');</script>");
108111

109112

110113

_setup.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
include_once($prevFolder."classes/btmysql.php");
4444
include_once($prevFolder."classes/basic.php");
4545
include_once($prevFolder."_functions.php");
46+
include_once($prevFolder."classes/ipban.php");
47+
4648

4749
$mysqli = new btmysql($dbhost, $dbuser, $dbpass, $dbname);
4850

@@ -84,7 +86,7 @@
8486

8587

8688
// Check for Ban
87-
89+
/*
8890
$ipbanObj = new Basic($mysqli, "ipban", "ipaddress");
8991
9092
if($ipbanObj->select($IP_ADDRESS, false)) {
@@ -98,5 +100,11 @@
98100
}
99101
100102
}
103+
*/
104+
105+
$ipbanObj = new IPBan($mysqli);
106+
if($ipbanObj->isBanned($IP_ADDRESS)) {
107+
die("<script type='text/javascript'>window.location = '".$MAIN_ROOT."banned.php';</script>");
108+
}
101109

102110
?>

0 commit comments

Comments
 (0)