summaryrefslogtreecommitdiff
path: root/ajax.php
diff options
context:
space:
mode:
authorwjames5 <will@tekimaki.com>2008-07-31 22:26:37 +0000
committerwjames5 <will@tekimaki.com>2008-07-31 22:26:37 +0000
commitcfa4250bd8920a9cc00f6fe6ad9a6d66ba977e23 (patch)
treeb2719ea2a0ff7976b6fe129c4382726133aa0f9d /ajax.php
parentfb4b0d895bc6da3210930c23c6e6a73a82591683 (diff)
downloadboards-cfa4250bd8920a9cc00f6fe6ad9a6d66ba977e23.tar.gz
boards-cfa4250bd8920a9cc00f6fe6ad9a6d66ba977e23.tar.bz2
boards-cfa4250bd8920a9cc00f6fe6ad9a6d66ba977e23.zip
only include the files we need when we ned them
Diffstat (limited to 'ajax.php')
-rw-r--r--ajax.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/ajax.php b/ajax.php
index c505c36..8c66509 100644
--- a/ajax.php
+++ b/ajax.php
@@ -15,10 +15,6 @@
*/
require_once( '../bit_setup_inc.php' );
-require_once( BOARDS_PKG_PATH.'BitBoardTopic.php' );
-require_once( BOARDS_PKG_PATH.'BitBoardPost.php' );
-require_once( BOARDS_PKG_PATH.'BitBoard.php' );
-
// Is package installed and enabled
$gBitSystem->verifyPackage( 'boards' );
@@ -91,12 +87,14 @@ set_error_handler("ajax_nice_error");
switch ($_GET['req']) {
case 1:
+ require_once( BOARDS_PKG_PATH.'BitBoard.php' );
$board = new BitBoard();
$boardList=$board->getBoardSelectList();
$gBitSmarty->assign_by_ref('boardList',$boardList);
$gBitSmarty->display('bitpackage:boards/ajax.tpl');
break;
case 10:
+ require_once( BOARDS_PKG_PATH.'BitBoardPost.php' );
$comment = new BitBoardPost($_GET['comment_id']);
$comment->loadMetaData();
if (@$comment->verifyId($comment->mCommentId)) {