1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

porting some 0.7 environment changes

This commit is contained in:
secretr
2010-12-13 11:22:57 +00:00
parent 12412de469
commit e34d294993
2 changed files with 55 additions and 42 deletions

View File

@@ -101,12 +101,14 @@ 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->prepare_request();
$e107->setDirs($e107_paths, varset($E107_CONFIG, array()));
$e107->set_constants();
$e107->set_paths();
$e107->file_path = $e107->fix_windows_paths($self)."/";
$e107->set_base_path();
$e107->set_urls();
$e107->set_request(false);
$e107->set_urls(false);
unset($tmp, $self);
// parse request
@@ -115,8 +117,8 @@ class e_thumbpage
function parseRequest()
{
//parse_str(str_replace('&', '&', e_QUERY), $this->_request);
parse_str($_SERVER['QUERY_STRING'], $this->_request);
parse_str(str_replace('&', '&', e_QUERY), $this->_request);
//parse_str($_SERVER['QUERY_STRING'], $this->_request);
return $this;
}