REDIRECT_HTTP directive

This commit is contained in:
Savetheinternet 2010-12-02 18:07:24 +11:00
parent c327056f13
commit b2bd3303f9
7 changed files with 12 additions and 6 deletions

View file

@ -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
*/

View file

@ -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)