Example #1
0
        return '<span class="result-y">y</span> ' . $msg;
    } else {
        switch ($path) {
            case 'lib':
            case 'data':
            default:
                $msg = ERR_COULD_NOT_ACCESS;
                break;
        }
        $msg = $myts->htmlspecialchars($msg, ENT_QUOTES, _UPGRADE_CHARSET, false);
        return '<span class="result-x">x</span> ' . $msg;
    }
}
$vars =& $_SESSION['settings'];
$ctrl = new PathStuffController();
if ($res = $ctrl->execute()) {
    return $res;
}
$myts = MyTextSanitizer::getInstance();
?>

<form action='<?php 
echo $_SERVER['PHP_SELF'];
?>
' method='post'>

    <fieldset>
        <legend><?php 
echo LEGEND_XOOPS_PATHS;
?>
</legend>
if ($_SERVER['REQUEST_METHOD'] == 'GET' && @$_GET['action'] == 'checkrootpath') {
    $ctrl->xoopsRootPath = $_GET['path'];
    echo genRootCheckHtml($ctrl->checkRootPath());
    exit;
}
if ($_SERVER['REQUEST_METHOD'] == 'GET' && @$_GET['action'] == 'checktrustpath') {
    $ctrl->xoopsTrustPath = $_GET['path'];
    echo genTrustPathCheckHtml($ctrl->checkTrustPath());
    exit;
}
if ($_SERVER['REQUEST_METHOD'] == 'GET' && @$_GET['action'] == 'createtrustpath') {
    $ctrl->xoopsTrustPath = $_GET['path'];
    echo genCreateTrustPathHtml($ctrl->createTrustPath());
    exit;
}
$ctrl->execute();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    return;
}
ob_start();
?>
 <script type="text/javascript" src="pathsettings.js"></script>

<div class="blokz">
<fieldset>
<h3><?php 
echo _INSTALL_WEB_LOCATIONS;
?>
</h3>
<label for="url"><?php 
echo _INSTALL_WEB_LOCATIONS_LABEL;