1
0
mirror of https://github.com/e107inc/e107.git synced 2025-06-26 02:43:16 +02:00

Work on override class and multi-site support.

This commit is contained in:
CaMer0n
2012-06-08 06:03:07 +00:00
parent 425937e1a4
commit 25d7cb258d
7 changed files with 230 additions and 27 deletions

View File

@ -101,6 +101,9 @@ class e_thumbpage
$sql_info = array(); //compact('mySQLserver', 'mySQLuser', 'mySQLpassword', 'mySQLdefaultdb', 'mySQLprefix', 'mySQLcharset');
//e107::getInstance()->initCore($e107_paths, $self, $sql_info, varset($e107_CONFIG, array()));
$e107 = e107::getInstance();
$e107->site_path = substr(md5($mySQLdefaultdb.".".$mySQLprefix),0,10);
$e107->prepare_request();
$e107->setDirs($e107_paths, varset($E107_CONFIG, array()));
$e107->set_constants();
@ -110,7 +113,7 @@ class e_thumbpage
$e107->set_request(false);
$e107->set_urls(false);
unset($tmp, $self);
// basic Admin area detection - required for proper path parsing
define('ADMIN', strpos(e_SELF, ($e107->getFolder('admin')) !== false || strpos(e_PAGE, 'admin') !== false));
@ -159,6 +162,8 @@ class e_thumbpage
$this->_src_path = $path;
return true;
}
// echo "path=".$path."<br />";
return false;
}