27 require_once __DIR__ .
'/include/common.inc.php';
33 if (
$_SERVER[
'REQUEST_METHOD'] ==
'GET' && @$_GET[
'var'] && @$_GET[
'action'] ==
'checkpath') {
35 $ctrl->xoopsPath[
$path] = htmlspecialchars( trim($_GET[
'path']) );
40 if (
$_SERVER[
'REQUEST_METHOD'] ==
'POST' ) {
45 <script type=
"text/javascript">
46 function removeTrailing(
id, val) {
47 if (val[val.length-1] ==
'/') {
48 val = val.substr(0, val.length-1);
54 function updPath( key, val ) {
55 val = removeTrailing(key, val);
57 key+
'pathimg',
'<?php echo $_SERVER['PHP_SELF
']; ?>',
58 { method:
'get',parameters:
'action=checkpath&var='+key+
'&path='+val }
60 $(key+
'perms').style.display=
'none';
66 <input type=
"text" name=
"root" id=
"root" value=
"<?php echo $ctrl->xoopsPath['root']; ?>" onchange=
"updPath('root', this.value)" />
69 if (
$ctrl->validPath[
'root'] && !empty(
$ctrl->permErrors[
'root'])) {
70 echo
'<div id="rootperms" class="x2-note">';
72 echo
'<ul class="diags">';
82 echo
'<div id="rootperms" class="x2-note" style="display: none;" />';
89 <input type=
"text" name=
"data" id=
"data" value=
"<?php echo $ctrl->xoopsPath['data']; ?>" onchange=
"updPath('data', this.value)" />
92 if (
$ctrl->validPath[
'data'] && !empty(
$ctrl->permErrors[
'data'])) {
93 echo
'<div id="dataperms" class="x2-note">';
95 echo
'<ul class="diags">';
105 echo
'<div id="dataperms" class="x2-note" style="display: none;" />';
112 <input type=
"text" name=
"lib" id=
"lib" value=
"<?php echo $ctrl->xoopsPath['lib']; ?>" onchange=
"updPath('lib', this.value)" />
114 <div
id=
"libperms" class=
"x2-note" style=
"display: none;" />
118 <label
class=
"xolabel" for=
"url"><?php echo
XOOPS_URL_LABEL; ?></label>
120 <input type=
"text" name=
"URL" id=
"url" value=
"<?php echo $ctrl->xoopsUrl; ?>" onchange=
"removeTrailing('url', this.value)" />
const CHECKING_PERMISSIONS
genPathCheckHtml($path, $valid)
const XOOPS_DATA_PATH_HELP
const XOOPS_ROOT_PATH_LABEL
const XOOPS_LIB_PATH_LABEL
const ERR_NEED_WRITE_ACCESS
const XOOPS_LIB_PATH_HELP
const XOOPS_DATA_PATH_LABEL
const XOOPS_ROOT_PATH_HELP