|
From: Jon O. <jon...@us...> - 2006-06-30 19:54:20
|
Update of /cvsroot/mxbb/mx_linkdb In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv9382/modules/mx_linkdb Modified Files: db_install.php db_upgrade.php linkdb.php Log Message: Ok, i'm starting with some code cleanup, before digging deep... Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/db_install.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** db_install.php 2 May 2006 23:27:29 -0000 1.8 --- db_install.php 30 Jun 2006 19:54:14 -0000 1.9 *************** *** 30,34 **** } ! $mx_module_version = '1.0.0'; $mx_module_copy = 'Original phpBB <i>LinkDb</i> MOD by <a href="http://www.phpbb.com/phpBB/viewtopic.php?p=1183059" target="_blank">CRLin</a>, <a href="http://www.hostsector.com/~mohd/" target="_blank">pafileDB</a> & <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=110836" target="_blank">Advanced Links Mod</a> :: Adapted for mxBB by <a href="http://www.mxbb-portal.com" target="_blank">Jon</a>'; --- 30,34 ---- } ! $mx_module_version = '2.8.0'; $mx_module_copy = 'Original phpBB <i>LinkDb</i> MOD by <a href="http://www.phpbb.com/phpBB/viewtopic.php?p=1183059" target="_blank">CRLin</a>, <a href="http://www.hostsector.com/~mohd/" target="_blank">pafileDB</a> & <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=110836" target="_blank">Advanced Links Mod</a> :: Adapted for mxBB by <a href="http://www.mxbb-portal.com" target="_blank">Jon</a>'; Index: linkdb.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/linkdb.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** linkdb.php 17 Jun 2006 20:48:33 -0000 1.8 --- linkdb.php 30 Jun 2006 19:54:14 -0000 1.9 *************** *** 16,25 **** include_once( $mx_root_path . 'common.' . $phpEx ); // Start session management ! $mx_user->init($user_ip, PAGE_INDEX); - // End session management - $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; if ( empty( $block_id ) ) --- 16,24 ---- include_once( $mx_root_path . 'common.' . $phpEx ); + // // Start session management ! // $mx_user->init($user_ip, PAGE_INDEX); $block_id = ( !empty( $HTTP_GET_VARS['block_id'] ) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; if ( empty( $block_id ) ) *************** *** 41,44 **** --- 40,44 ---- die("Hacking attempt"); } + // // Read Block Settings *************** *** 52,83 **** } - /* - define('IN_PHPBB', true); - - $phpbb_root_path = './'; - include($phpbb_root_path . 'extension.inc'); - include($phpbb_root_path . 'common.'.$phpEx); - - // - // Start session management - // - $userdata = session_pagestart($user_ip, PAGE_LINKDB); - init_userprefs($userdata); // - // End session management - // - - */ - // Include the common file ! include( $module_root_path . 'linkdb/includes/linkdb_common.' . $phpEx ); // Get action variable other wise set it to the main ! $action = ( isset( $_REQUEST['action'] ) ) ? htmlspecialchars( $_REQUEST['action'] ) : 'main'; // an array of all expected actions ! $actions = array( 'category' => 'category', 'link' => 'link', --- 52,68 ---- } // // Include the common file ! // include( $module_root_path . 'linkdb/includes/linkdb_common.' . $phpEx ); + // // Get action variable other wise set it to the main ! // $action = ( isset( $_REQUEST['action'] ) ) ? htmlspecialchars( $_REQUEST['action'] ) : 'main'; + // // an array of all expected actions ! // $actions = array( 'category' => 'category', 'link' => 'link', *************** *** 88,93 **** 'main' => 'main' ); // Lets Build the page ! $linkdb->module( $actions[$action] ); $linkdb->modules[$actions[$action]]->main( $action ); --- 73,79 ---- 'main' => 'main' ); + // // Lets Build the page ! // $linkdb->module( $actions[$action] ); $linkdb->modules[$actions[$action]]->main( $action ); *************** *** 97,102 **** } // page header for linkdb ! if ( $action == 'category' ) { --- 83,89 ---- } + // // page header for linkdb ! // if ( $action == 'category' ) { *************** *** 113,165 **** } ! $template->set_filenames( array( 'pa_header' => "pa_header.tpl" ) ! ); ! $template->assign_vars( array( 'L_TITLE' => $title, ! // BEGIN linkdb ! 'LINKS' => $lang['Links_Title'], ! 'U_LINK' => append_sid( linkdb_this_mxurl() ), ! // END linkdb ! 'L_SEARCH' => $lang['Link_Search'], ! 'L_UPLOAD' => $lang['AddLink'], ! 'L_VIEW_ALL' => $lang['Viewall'], ! 'L_DESCEND_BY_HITS' => $lang['Descend_by_hits'], ! 'L_DESCEND_BY_JOIN' => $lang['Descend_by_joindate'], ! 'L_STATS_MOST_POPULAR' => $lang['Link_most_popular'], ! 'L_STATS_LATEST' => $lang['Link_latest'], ! 'L_STATS_TOPRATED' => $lang['Link_toprated'], ! 'U_PASEARCH' => append_sid( linkdb_this_mxurl( "action=search" ) ), ! 'U_UPLOAD' => $upload_url, ! 'U_VIEW_ALL' => append_sid( linkdb_this_mxurl( "action=viewall" ) ), ! 'U_DESCEND_BY_HITS' => append_sid( linkdb_this_mxurl( "action=viewall&&sort_method=link_hits&sort_order=DESC" ) ), ! 'U_DESCEND_BY_JOIN' => append_sid( linkdb_this_mxurl( "action=viewall&sort_method=link_time&sort_order=DESC" ) ), ! 'U_DESCEND_BY_RATINGS' => append_sid( linkdb_this_mxurl( "action=viewall&sort_method=rating&sort_order=DESC" ) ), ! 'L_JUMP' => $lang['Jump'], ! 'JUMPMENU' => $linkdb->modules[$linkdb->module_name]->jumpmenu_option(), ! 'S_JUMPBOX_ACTION' => append_sid( "index." . $phpEx ), ! 'U_PORTAL_PAGE' => $page_id ! ) ! ); $template->pparse( 'pa_header' ); // page body for linkdb ! ! $template->set_filenames( array( 'body' => $linkdb_tpl_name ) ! ); $template->pparse( 'body' ); // page footer for linkdb ! $template->set_filenames( array( 'pa_footer' => "pa_footer.tpl" ) ! ); - $template->assign_vars( array( 'S_TIMEZONE' => sprintf( $lang['All_times'], $lang[number_format( $board_config['board_timezone'] )] ), - 'LINKDB_VERSION' => $linkdb_config['linkdb_versions'] - ) ); $linkdb->modules[$linkdb->module_name]->_linkdb(); --- 100,153 ---- } ! $template->set_filenames( array( 'pa_header' => "pa_header.tpl" )); ! $template->assign_vars( array( ! 'L_TITLE' => $title, ! // BEGIN linkdb ! 'LINKS' => $lang['Links_Title'], ! 'U_LINK' => append_sid( linkdb_this_mxurl() ), ! // END linkdb ! 'L_SEARCH' => $lang['Link_Search'], ! 'L_UPLOAD' => $lang['AddLink'], ! 'L_VIEW_ALL' => $lang['Viewall'], ! 'L_DESCEND_BY_HITS' => $lang['Descend_by_hits'], ! 'L_DESCEND_BY_JOIN' => $lang['Descend_by_joindate'], ! 'L_STATS_MOST_POPULAR' => $lang['Link_most_popular'], ! 'L_STATS_LATEST' => $lang['Link_latest'], ! 'L_STATS_TOPRATED' => $lang['Link_toprated'], ! 'U_PASEARCH' => append_sid( linkdb_this_mxurl( "action=search" ) ), ! 'U_UPLOAD' => $upload_url, ! 'U_VIEW_ALL' => append_sid( linkdb_this_mxurl( "action=viewall" ) ), ! 'U_DESCEND_BY_HITS' => append_sid( linkdb_this_mxurl( "action=viewall&&sort_method=link_hits&sort_order=DESC" ) ), ! 'U_DESCEND_BY_JOIN' => append_sid( linkdb_this_mxurl( "action=viewall&sort_method=link_time&sort_order=DESC" ) ), ! 'U_DESCEND_BY_RATINGS' => append_sid( linkdb_this_mxurl( "action=viewall&sort_method=rating&sort_order=DESC" ) ), ! 'L_JUMP' => $lang['Jump'], ! 'JUMPMENU' => $linkdb->modules[$linkdb->module_name]->jumpmenu_option(), ! 'S_JUMPBOX_ACTION' => append_sid( "index." . $phpEx ), ! 'U_PORTAL_PAGE' => $page_id ! )); $template->pparse( 'pa_header' ); + // // page body for linkdb ! // ! $template->set_filenames( array( 'body' => $linkdb_tpl_name ) ); $template->pparse( 'body' ); + // // page footer for linkdb + // + $template->set_filenames( array( 'pa_footer' => "pa_footer.tpl" ) ); ! $template->assign_vars( array( ! 'S_TIMEZONE' => sprintf( $lang['All_times'], $lang[number_format( $board_config['board_timezone'] )] ), ! 'LINKDB_VERSION' => $linkdb_config['linkdb_versions'] ! ) ); $linkdb->modules[$linkdb->module_name]->_linkdb(); *************** *** 170,173 **** include( $mx_root_path . 'includes/page_tail.' . $phpEx ); } - ?> \ No newline at end of file --- 158,160 ---- Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_linkdb/db_upgrade.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** db_upgrade.php 2 May 2006 23:27:29 -0000 1.10 --- db_upgrade.php 30 Jun 2006 19:54:14 -0000 1.11 *************** *** 30,34 **** } ! $mx_module_version = '1.0.0'; $mx_module_copy = 'Original phpBB <i>LinkDb</i> MOD by <a href="http://www.phpbb.com/phpBB/viewtopic.php?p=1183059" target="_blank">CRLin</a>, <a href="http://www.hostsector.com/~mohd/" target="_blank">pafileDB</a> & <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=110836" target="_blank">Advanced Links Mod</a> :: Adapted for mxBB by <a href="http://www.mxbb-portal.com" target="_blank">Jon</a>'; --- 30,34 ---- } ! $mx_module_version = '2.8.0'; $mx_module_copy = 'Original phpBB <i>LinkDb</i> MOD by <a href="http://www.phpbb.com/phpBB/viewtopic.php?p=1183059" target="_blank">CRLin</a>, <a href="http://www.hostsector.com/~mohd/" target="_blank">pafileDB</a> & <a href="http://www.phpbb.com/phpBB/viewtopic.php?t=110836" target="_blank">Advanced Links Mod</a> :: Adapted for mxBB by <a href="http://www.mxbb-portal.com" target="_blank">Jon</a>'; |