From: <wis...@us...> - 2012-09-09 17:42:09
|
Revision: 10166 http://xoops.svn.sourceforge.net/xoops/?rev=10166&view=rev Author: wishcraft Date: 2012-09-09 17:42:02 +0000 (Sun, 09 Sep 2012) Log Message: ----------- Xortify 3.10 (Production) - Performance Enhancement as well as fixes to Ninjas after cache files routine - see changelog.txt for changes Modified Paths: -------------- XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/docs/changelog.txt XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/preloads/core.php XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/providers/providers.php Modified: XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/docs/changelog.txt =================================================================== --- XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/docs/changelog.txt 2012-09-09 17:04:52 UTC (rev 10165) +++ XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/docs/changelog.txt 2012-09-09 17:42:02 UTC (rev 10166) @@ -1,5 +1,5 @@ ======================================== - 2012/09/10 02:32:05 Version 3.10 STABLE + 2012/09/10 03:40:00 Version 3.10 -PROD- ======================================== - Changed /include/update.php - added instance key checking and updating (Wishcraft) - Changed /include/install.php - added instance key checking and writing (Wishcraft) @@ -7,11 +7,15 @@ - Changed /language/english/admin.php - changes to dashboard language file (Wishcraft) - Changed /admin/index.php - changes to dashboard added instance key information (Wishcraft) - Changed /include/functions.php - function unlinkOldCachefiles() fixed filename issue *Bug 04* (Wishcraft) + - Changed /preloads/core.php - loading of /include/instance.php intanciated (Wishcraft) + - Changed /preloads/provider.php - function init() modified, loading of instance.php instanciated (Wishcraft) + - Changed /xoops_version.php - new google analytics preference added, image locations changed! (Wishcraft) - Changed **GLOBAL** renamed $GLOBALS['xortify to $_SESSION['xortify'][' - removed use of globals!! performance!! (Wishcraft) - Added /include/instance.php - Instance Key Define File (Wishcraft) - Added /template/xortify_instance_key.php.txt - Instance Key Template for PHP File (Wishcraft) - Added /include/post.footer.end.php - reinstated footer end file loader (was missing) (Wishcraft) - Added /include/functions.php - function writeInstanceKey() added to unify local client! (Wishcraft) + - Moved /Frameworks/moduleclasses/icons to /xortify/images move of the internal images (Wishcraft) ======================================== 2012/08/23 23:33:15 Version 3.09 BETA Modified: XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/preloads/core.php =================================================================== --- XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/preloads/core.php 2012-09-09 17:04:52 UTC (rev 10165) +++ XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/preloads/core.php 2012-09-09 17:42:02 UTC (rev 10166) @@ -35,6 +35,7 @@ include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php'; include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php'; +include_once XOOPS_ROOT_PATH.'/modules/xortify/include/instance.php'; class XortifyCorePreload extends XoopsPreloadItem { Modified: XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/providers/providers.php =================================================================== --- XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/providers/providers.php 2012-09-09 17:04:52 UTC (rev 10165) +++ XoopsModules/xortify/releases/3.10/htdocs/modules/xortify/providers/providers.php 2012-09-09 17:42:02 UTC (rev 10166) @@ -36,6 +36,7 @@ include_once( XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php' ); +include_once( XOOPS_ROOT_PATH.'/modules/xortify/include/instance.php' ); class Providers { @@ -46,7 +47,7 @@ defined('DS') or define('DS', DIRECTORY_SEPARATOR); defined('NWLINE')or define('NWLINE', "\n"); - global $xoops, $xoopsPreload, $xoopsLogger, $xoopsErrorHandler, $xoopsSecurity, $sess_handler; + global $xoops, $xoopsPreload, $xoopsLogger, $xoopsErrorHandler, $xoopsSecurity, $sess_handler, $xoopsConfig; include_once XOOPS_ROOT_PATH . DS . 'include' . DS . 'defines.php'; include_once XOOPS_ROOT_PATH . DS . 'include' . DS . 'version.php'; @@ -78,6 +79,43 @@ include_once $xoops->path('class/database/databasefactory.php'); $GLOBALS['xoopsDB'] =& XoopsDatabaseFactory::getDatabaseConnection(); + /** + * Get xoops configs + * Requires functions and database loaded + */ + $config_handler =& xoops_gethandler('config'); + $xoopsConfig = $config_handler->getConfigsByCat(XOOPS_CONF); + + /** + * User Sessions + */ + $xoopsUser = ''; + $xoopsUserIsAdmin = false; + $member_handler =& xoops_gethandler('member'); + $sess_handler =& xoops_gethandler('session'); + if ($xoopsConfig['use_ssl'] + && isset($_POST[$xoopsConfig['sslpost_name']]) + && $_POST[$xoopsConfig['sslpost_name']] != '' + ) { + session_id($_POST[$xoopsConfig['sslpost_name']]); + } else if ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '' && $xoopsConfig['session_expire'] > 0) { + if (isset($_COOKIE[$xoopsConfig['session_name']])) { + session_id($_COOKIE[$xoopsConfig['session_name']]); + } + if (function_exists('session_cache_expire')) { + session_cache_expire($xoopsConfig['session_expire']); + } + @ini_set('session.gc_maxlifetime', $xoopsConfig['session_expire'] * 60); + } + session_set_save_handler(array(&$sess_handler, 'open'), + array(&$sess_handler, 'close'), + array(&$sess_handler, 'read'), + array(&$sess_handler, 'write'), + array(&$sess_handler, 'destroy'), + array(&$sess_handler, 'gc')); + if (strlen(session_id())==0) + session_start(); + $module_handler = xoops_gethandler('module'); $config_handler = xoops_gethandler('config'); if (!is_object($_SESSION['xortify'][XORTIFY_INSTANCE_KEY]['module'])) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |