diff options
| author | wjames5 <will@tekimaki.com> | 2008-07-31 22:26:37 +0000 |
|---|---|---|
| committer | wjames5 <will@tekimaki.com> | 2008-07-31 22:26:37 +0000 |
| commit | cfa4250bd8920a9cc00f6fe6ad9a6d66ba977e23 (patch) | |
| tree | b2719ea2a0ff7976b6fe129c4382726133aa0f9d /ajax.php | |
| parent | fb4b0d895bc6da3210930c23c6e6a73a82591683 (diff) | |
| download | boards-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.php | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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)) { |
