diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-12-02 18:07:24 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-12-02 18:07:24 +1100 |
| commit | b2bd3303f96167bbc3812b01e386e3b1c5252eef (patch) | |
| tree | eac3cf8a1fbe9a32434071f6a5f23008c77a20db /inc | |
| parent | c327056f13a8eabd22aae178a3ce1c962b5a044c (diff) | |
REDIRECT_HTTP directive
Diffstat (limited to 'inc')
| -rw-r--r-- | inc/config.php | 5 | ||||
| -rw-r--r-- | inc/functions.php | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php index 0ca457c4..164c1f1a 100644 --- a/inc/config.php +++ b/inc/config.php @@ -119,6 +119,11 @@ // Multi-board (%s is board abbreviation) define('BOARD_PATH', '%s/', true); + // The HTTP status code to use when redirecting. + // Should be 3xx (redirection). http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html + // "302" is recommended. + define('REDIRECT_HTTP', 302, true); + /* Mod stuff */ diff --git a/inc/functions.php b/inc/functions.php index b20ed091..2349197c 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -44,6 +44,7 @@ function openBoard($uri) { global $sql; + sql_open(); $boards_res = mysql_query(sprintf( "SELECT * FROM `boards` WHERE `uri` = '%s' LIMIT 1", mysql_real_escape_string($uri) |
