|
From: Florin C B. <ory...@us...> - 2011-05-01 22:43:33
|
Update of /cvsroot/mxbb/mx_ggsitemaps_adv
In directory vz-cvs-4.sog:/tmp/cvs-serv13874
Modified Files:
db_install.php
Log Message:
some fixes for v3
Index: db_install.php
===================================================================
RCS file: /cvsroot/mxbb/mx_ggsitemaps_adv/db_install.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** db_install.php 25 Jun 2008 19:04:07 -0000 1.3
--- db_install.php 1 May 2011 22:43:31 -0000 1.4
***************
*** 9,35 ****
*/
$phpEx = substr(strrchr(__FILE__, '.'), 1);
! if ( file_exists( 'viewtopic.' . $phpEx ) ) {
define('IN_PHPBB', true);
$phpbb_root_path = $mx_root_path_int = $lang_path = './';
! } else {
define('IN_PORTAL', true);
$mx_root_path_int = './../../';
$lang_path = './../modules/mx_ggsitemaps_adv/';
! if (file_exists( $mx_root_path_int . "mx_login.$phpEx" )) {
define( 'MXBB27x', true );
}
}
!
! if ( !defined('IN_ADMIN') ) {
include($mx_root_path_int . 'common.'.$phpEx);
// Start session management
! if (defined('IN_PORTAL')) {
! if ( defined('MXBB27x') ) {
$userdata = session_pagestart($user_ip, PAGE_INDEX);
mx_init_userprefs($userdata);
! } else {
$mx_user->init($user_ip, PAGE_INDEX);
}
! } else {
include($phpbb_root_path . 'extension.inc');
$userdata = session_pagestart($user_ip, PAGE_INDEX);
--- 9,45 ----
*/
$phpEx = substr(strrchr(__FILE__, '.'), 1);
! if ( file_exists( 'viewtopic.' . $phpEx ) )
! {
define('IN_PHPBB', true);
$phpbb_root_path = $mx_root_path_int = $lang_path = './';
! }
! else
! {
define('IN_PORTAL', true);
$mx_root_path_int = './../../';
$lang_path = './../modules/mx_ggsitemaps_adv/';
! if (file_exists( $mx_root_path_int . "mx_login.$phpEx" ))
! {
define( 'MXBB27x', true );
}
}
! if ( !defined('IN_ADMIN') )
! {
include($mx_root_path_int . 'common.'.$phpEx);
// Start session management
! if (defined('IN_PORTAL'))
! {
! if ( defined('MXBB27x') )
! {
$userdata = session_pagestart($user_ip, PAGE_INDEX);
mx_init_userprefs($userdata);
! }
! else
! {
$mx_user->init($user_ip, PAGE_INDEX);
}
! }
! else
! {
include($phpbb_root_path . 'extension.inc');
$userdata = session_pagestart($user_ip, PAGE_INDEX);
***************
*** 37,45 ****
init_userprefs($userdata);
}
! if( !$userdata['session_logged_in'] ) {
die("Hacking attempt(3)");
}
!
! if( $userdata['user_level'] != ADMIN ) {
die("Hacking attempt(4)");
}
--- 47,56 ----
init_userprefs($userdata);
}
! if( !$userdata['session_logged_in'] )
! {
die("Hacking attempt(3)");
}
! if( $userdata['user_level'] != ADMIN )
! {
die("Hacking attempt(4)");
}
***************
*** 47,56 ****
}
// Define lang file
! if ( !file_exists($lang_path . 'language/lang_' . $board_config['default_lang'] . '/lang_ggs_admin.' . $phpEx)) {
include_once($lang_path . 'language/lang_english/lang_ggs_admin.' . $phpEx);
! } else {
include_once($lang_path . 'language/lang_' . $board_config['default_lang'] . '/lang_ggs_admin.' . $phpEx);
}
! $mx_module_version = '1.3.1';
//$mx_module_copy = 'mx Sitemaps by <a href="http://www.phpbb-seo.com/" target="_phpbbseo" title="Search Engine optimisation">phpBB SEO</a>';
$mx_module_copy = 'Original <i>mx Sitemaps</i> by [dcz] <a href="http://www.phpbb-seo.com/" target="_phpbbseo" title="Search Engine optimisation">phpBB SEO</a> :: Adapted for MX-Publisher by dcz & <a href="http://www.mx-publisher.com">The MXP Development Team</a>';
--- 58,70 ----
}
// Define lang file
! if ( !file_exists($lang_path . 'language/lang_' . $board_config['default_lang'] . '/lang_ggs_admin.' . $phpEx))
! {
include_once($lang_path . 'language/lang_english/lang_ggs_admin.' . $phpEx);
! }
! else
! {
include_once($lang_path . 'language/lang_' . $board_config['default_lang'] . '/lang_ggs_admin.' . $phpEx);
}
! $mx_module_version = '2.0.2';
//$mx_module_copy = 'mx Sitemaps by <a href="http://www.phpbb-seo.com/" target="_phpbbseo" title="Search Engine optimisation">phpBB SEO</a>';
$mx_module_copy = 'Original <i>mx Sitemaps</i> by [dcz] <a href="http://www.phpbb-seo.com/" target="_phpbbseo" title="Search Engine optimisation">phpBB SEO</a> :: Adapted for MX-Publisher by dcz & <a href="http://www.mx-publisher.com">The MXP Development Team</a>';
***************
*** 251,255 ****
"INSERT INTO ".$mx_table_prefix."ggs_config VALUES ('yahoo_exclude_mx', '')",
"INSERT INTO ".$mx_table_prefix."ggs_config VALUES ('ggs_c_info', '(C) 2006 dcz - http://www.phpbb-seo.com/')",
! "INSERT INTO ".$mx_table_prefix."ggs_config VALUES ('ggs_ver', 'v1.3.0')",
);
}
--- 265,269 ----
"INSERT INTO ".$mx_table_prefix."ggs_config VALUES ('yahoo_exclude_mx', '')",
"INSERT INTO ".$mx_table_prefix."ggs_config VALUES ('ggs_c_info', '(C) 2006 dcz - http://www.phpbb-seo.com/')",
! "INSERT INTO ".$mx_table_prefix."ggs_config VALUES ('ggs_ver', 'v1.3.1')",
);
}
|