mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 14:37:20 +00:00
Merge branch 'seeddms-5.0.x' into seeddms-5.1.x
This commit is contained in:
commit
7fd7d0c7e2
|
@ -56,16 +56,19 @@ class UI extends UI_Default {
|
||||||
* to rootDir or an extension dir if it has set the include path
|
* to rootDir or an extension dir if it has set the include path
|
||||||
*/
|
*/
|
||||||
$filename = '';
|
$filename = '';
|
||||||
|
$httpbasedir = '';
|
||||||
foreach($EXT_CONF as $extname=>$extconf) {
|
foreach($EXT_CONF as $extname=>$extconf) {
|
||||||
if(!isset($extconf['disable']) || $extconf['disable'] == false) {
|
if(!isset($extconf['disable']) || $extconf['disable'] == false) {
|
||||||
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$theme."/class.".$class.".php";
|
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$theme."/class.".$class.".php";
|
||||||
if(file_exists($filename)) {
|
if(file_exists($filename)) {
|
||||||
|
$httpbasedir = 'ext/'.$extname.'/';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$filename = '';
|
$filename = '';
|
||||||
if(isset($extconf['views'][$class])) {
|
if(isset($extconf['views'][$class])) {
|
||||||
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$theme."/".$extconf['views'][$class]['file'];
|
$filename = $settings->_rootDir.'ext/'.$extname.'/views/'.$theme."/".$extconf['views'][$class]['file'];
|
||||||
if(file_exists($filename)) {
|
if(file_exists($filename)) {
|
||||||
|
$httpbasedir = 'ext/'.$extname.'/';
|
||||||
$classname = $extconf['views'][$class]['name'];
|
$classname = $extconf['views'][$class]['name'];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -81,6 +84,7 @@ class UI extends UI_Default {
|
||||||
$view = new $classname($params, $theme);
|
$view = new $classname($params, $theme);
|
||||||
/* Set some configuration parameters */
|
/* Set some configuration parameters */
|
||||||
$view->setParam('refferer', $_SERVER['REQUEST_URI']);
|
$view->setParam('refferer', $_SERVER['REQUEST_URI']);
|
||||||
|
$view->setParam('absbaseprefix', $settings->_httpRoot.$httpbasedir);
|
||||||
$view->setParam('class', $class);
|
$view->setParam('class', $class);
|
||||||
$view->setParam('session', $session);
|
$view->setParam('session', $session);
|
||||||
$view->setParam('settings', $settings);
|
$view->setParam('settings', $settings);
|
||||||
|
|
|
@ -149,12 +149,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
parse_str($_SERVER['QUERY_STRING'], $tmp);
|
parse_str($_SERVER['QUERY_STRING'], $tmp);
|
||||||
$tmp['action'] = 'footerjs';
|
$tmp['action'] = 'footerjs';
|
||||||
$tmp['hash'] = $hashjs;
|
$tmp['hash'] = $hashjs;
|
||||||
echo '<script src="../out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
|
echo '<script src="'.$this->params['absbaseprefix'].'out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
|
||||||
}
|
}
|
||||||
if(method_exists($this, 'js')) {
|
if(method_exists($this, 'js')) {
|
||||||
parse_str($_SERVER['QUERY_STRING'], $tmp);
|
parse_str($_SERVER['QUERY_STRING'], $tmp);
|
||||||
$tmp['action'] = 'js';
|
$tmp['action'] = 'js';
|
||||||
echo '<script src="../out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
|
echo '<script src="'.$this->params['absbaseprefix'].'out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
|
||||||
}
|
}
|
||||||
echo "</body>\n</html>\n";
|
echo "</body>\n</html>\n";
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user