29 require_once
'./include/common.inc.php';
30 defined(
'XOOPS_INSTALL') or die('XOOPS Installation wizard die');
32 include_once './class/pathcontroller.php';
46 if (
$_SERVER[
'REQUEST_METHOD'] ==
'POST' ) {
51 <script type=
"text/javascript">
52 function removeTrailing(
id, val) {
53 if (val[val.length-1] ==
'/') {
54 val = val.substr(0, val.length-1);
60 function updPath( key, val ) {
61 val = removeTrailing(key, val);
63 key+
'pathimg',
'<?php echo $_SERVER['PHP_SELF
']; ?>',
64 { method:
'get',parameters:
'action=checkpath&var='+key+
'&path='+val }
66 $(key+
'perms').style.display=
'none';
74 <input type=
"text" name=
"root" id=
"root" value=
"<?php echo $ctrl->xoopsPath['root']; ?>" onchange=
"updPath('root', this.value)" />
77 if (
$ctrl->validPath[
'root'] && !empty(
$ctrl->permErrors[
'root'])) {
78 echo
'<div id="rootperms" class="x2-note">';
80 echo
'<ul class="diags">';
90 echo
'<div id="rootperms" class="x2-note" style="display: none;" />';
97 <input type=
"text" name=
"data" id=
"data" value=
"<?php echo $ctrl->xoopsPath['data']; ?>" onchange=
"updPath('data', this.value)" />
100 if (
$ctrl->validPath[
'data'] && !empty(
$ctrl->permErrors[
'data'])) {
101 echo
'<div id="dataperms" class="x2-note">';
103 echo
'<ul class="diags">';
113 echo
'<div id="dataperms" class="x2-note" style="display: none;" />';
120 <input type=
"text" name=
"lib" id=
"lib" value=
"<?php echo $ctrl->xoopsPath['lib']; ?>" onchange=
"updPath('lib', this.value)" />
122 <div
id=
"libperms" class=
"x2-note" style=
"display: none;" />
127 <label
class=
"xolabel" for=
"url"><?php echo
XOOPS_URL_LABEL; ?></label>
129 <input type=
"text" name=
"URL" id=
"url" value=
"<?php echo $ctrl->xoopsUrl; ?>" onchange=
"removeTrailing('url', this.value)" />
136 include
'./include/install_tpl.php';