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; }
echo gib_bg_color($status == 2 ? 2 : 0); ?> > <strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["content_path"] . "/rss"); ?> </font></strong> </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 pages: </td> <td<?php echo gib_bg_color($status); ?> > <strong><font color="#FFFFFF"><?php echo html_specialchars($phpwcms["content_path"] . "/pages"); ?> </font></strong> </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>