forked from leftypol/leftypol
ammended mod authentication system (no more $_SESSION)
This commit is contained in:
parent
313012f034
commit
c1be29ce35
3 changed files with 71 additions and 68 deletions
12
post.php
12
post.php
|
@ -164,17 +164,6 @@
|
|||
if(!isset($_SERVER['HTTP_REFERER']) || !preg_match($config['referer_match'], $_SERVER['HTTP_REFERER']))
|
||||
error($config['error']['referer']);
|
||||
|
||||
// TODO: Since we're now using static HTML files, we can't give them cookies on their first page view
|
||||
// Find another anti-spam method.
|
||||
|
||||
/*
|
||||
// Check if he has a valid cookie.
|
||||
if(!$user['valid']) error($config['error']['bot']);
|
||||
|
||||
// Check how long he has been here.
|
||||
if(time()-$user['appeared']<LURKTIME) error(ERROR_LURK);
|
||||
*/
|
||||
|
||||
checkDNSBL();
|
||||
|
||||
// Check if board exists
|
||||
|
@ -597,6 +586,7 @@
|
|||
|
||||
}
|
||||
|
||||
|
||||
rebuildThemes('post');
|
||||
header('Location: ' . $redirect, true, $config['redirect_http']);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue