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;
}
Exemple #2
0
echo gib_bg_color($status == 2 ? 2 : 0);
?>
>&nbsp;<strong><font color="#FFFFFF"><?php 
echo html_specialchars($phpwcms["content_path"] . "/rss");
?>
</font></strong>&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_path_status($phpwcms["root"] . "/" . $phpwcms["content_path"] . "/pages");
?>
    <td align="right" class="v10">frontend&nbsp;pages:&nbsp;</td>
    <td<?php 
echo gib_bg_color($status);
?>
>&nbsp;<strong><font color="#FFFFFF"><?php 
echo html_specialchars($phpwcms["content_path"] . "/pages");
?>
</font></strong>&nbsp;</td>
    <td><img src="../img/leer.gif" alt="" width="1" height="19"></td>
    <td><?php 
echo gib_status_text($status == 1 ? 3 : $status);
?>
</td>
  </tr>