#2307 improve redirect to htmlUI
This commit is contained in:
parent
4cdb7b2317
commit
810f68605e
|
@ -376,6 +376,7 @@ chmod g+sw $modules_dir/htmlUI/var/html/img
|
|||
cp $modules_dir/htmlUI/var/redirect.php $modules_dir/index.php
|
||||
cp $modules_dir/htmlUI/var/redirect.php $modules_dir/htmlUI/index.php
|
||||
cp $modules_dir/htmlUI/var/redirect.php $modules_dir/htmlUI/var/index.php
|
||||
cp $modules_dir/htmlUI/var/redirect.php $modules_dir/htmlUI/var/html/index.php
|
||||
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
|
|
@ -161,6 +161,8 @@ install: configure_apache
|
|||
|
||||
${CP} ${VAR_DIR}/redirect.php ${USR_VAR_DIR}/Campcaster/index.php
|
||||
${CP} ${VAR_DIR}/redirect.php ${USR_VAR_DIR}/Campcaster/htmlUI/index.php
|
||||
${CP} ${VAR_DIR}/redirect.php ${USR_VAR_DIR}/Campcaster/htmlUI/var/index.php
|
||||
${CP} ${VAR_DIR}/redirect.php ${USR_VAR_DIR}/Campcaster/htmlUI/var/html/index.php
|
||||
${CP} ${VAR_DIR}/*.php ${USR_VAR_DIR}/Campcaster/htmlUI/var
|
||||
${CAT} ${VAR_DIR}/ui_conf.php.template | ${SED} -e ${REPLACE_SED_STRING} > ${USR_VAR_DIR}/Campcaster/htmlUI/var/ui_conf.php
|
||||
${CP} ${VAR_DIR}/.htaccess ${USR_VAR_DIR}/Campcaster/htmlUI/var
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
<?php
|
||||
header('LOCATION: ui_browser.php');
|
||||
?>
|
|
@ -1,3 +0,0 @@
|
|||
<?php
|
||||
header('LOCATION: /campcaster/htmlUI/var/html/ui_browser.php');
|
||||
?>
|
|
@ -1,3 +1,10 @@
|
|||
<?php
|
||||
header('LOCATION: /campcaster/htmlUI/var/html/ui_browser.php');
|
||||
if (strpos($_SERVER['PHP_SELF'], '~') !== false) {
|
||||
list(, $user, ) = explode('/', $_SERVER['PHP_SELF']);
|
||||
$base = "/$user/campcaster";
|
||||
} else {
|
||||
$base = "/campcaster";
|
||||
}
|
||||
|
||||
header("LOCATION: $base/htmlUI/var/html/ui_browser.php");
|
||||
?>
|
Loading…
Reference in New Issue