Esempio n. 1
0
function set_chmod($path, $rights, $status, $file_folder = 0)
{
    $Cpath = $_SERVER['DOCUMENT_ROOT'] . $path;
    if (@file_exists($Cpath)) {
        if (@chmod($Cpath, $rights)) {
            $status = $file_folder ? check_path_status($path) : check_file_status($path);
        }
    }
    return $status;
}
Esempio n. 2
0
echo gib_bg_color($status == 2 ? 2 : 0);
?>
>&nbsp;<font color="#FFFFFF"><?php 
echo html_specialchars($phpwcms["templates"] . "/inc_css/frontend.css");
?>
</font>&nbsp;</td>
    <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
    <td><?php 
echo gib_status_text($status);
?>
</td>
  </tr>

  <tr><td colspan="4" class="v10"><img src="../img/leer.gif" alt="" width="1" height="2"></td></tr>
  <tr><?php 
$status = check_file_status($phpwcms["root"] . "/include/config/conf.indexpage.inc.php");
if ($status != 2) {
    $status = set_chmod($phpwcms["root"] . "/" . $phpwcms["templates"] . "/include/config/conf.indexpage.inc.php", 0666, $status, 1);
}
?>
    <td align="right" class="v10">index level settings:&nbsp;</td>
    <td<?php 
echo gib_bg_color($status == 2 ? 2 : 0);
?>
>&nbsp;<font color="#FFFFFF"><?php 
echo html_specialchars("include/config/conf.indexpage.inc.php");
?>
</font>&nbsp;</td>
    <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
    <td><?php 
echo gib_status_text($status);