diff options
| author | Hash9 <hash9@users.sourceforge.net> | 2006-07-21 23:58:45 +0000 |
|---|---|---|
| committer | Hash9 <hash9@users.sourceforge.net> | 2006-07-21 23:58:45 +0000 |
| commit | 3ec6674d5552ede082e26634a73a2ef15dc7c8b1 (patch) | |
| tree | 966ef5f1e1684d546245bb819c1b67832ee81c0a /ajax.php | |
| parent | 58677f0ca02b26bfff031dd8152a90e1b0e2d28c (diff) | |
| download | boards-3ec6674d5552ede082e26634a73a2ef15dc7c8b1.tar.gz boards-3ec6674d5552ede082e26634a73a2ef15dc7c8b1.tar.bz2 boards-3ec6674d5552ede082e26634a73a2ef15dc7c8b1.zip | |
Add RSS feeds of boards, Topic reply display, Topic reply notification, Locked threads (the threads are now actually locked)
Diffstat (limited to 'ajax.php')
| -rw-r--r-- | ajax.php | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -122,7 +122,33 @@ switch ($_GET['req']) { } break; case 4: + // Now check permissions to access this page + $gBitSystem->verifyPermission( 'p_bitboards_read' ); + require_once( BITBOARDS_PKG_PATH.'lookup_inc.php' ); + if($gContent->readTopicSet($_REQUEST["new"]) ) { + $gContent->load(); + $gBitSmarty->assign_by_ref('flip',$gContent->getFlipFlop()); + $gBitSmarty->assign('flip_name','new'); + $gBitSmarty->display('bitpackage:bitboards/flipswitch.tpl'); + } else { + trigger_error(var_export($gContent->mErrors,true )); + } + break; + case 5: + // Now check permissions to access this page + $gBitSystem->verifyPermission( 'p_bitboards_read' ); + + require_once( BITBOARDS_PKG_PATH.'lookup_inc.php' ); + if($gContent->notify($_REQUEST["notify"]) ) { + $gContent->load(); + $gBitSmarty->assign_by_ref('flip',$gContent->getFlipFlop()); + $gBitSmarty->assign('flip_name','notify'); + $gBitSmarty->display('bitpackage:bitboards/flipswitch.tpl'); + } else { + trigger_error(var_export($gContent->mErrors,true )); + } + break; default: break; } |
