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); ?> > <font color="#FFFFFF"><?php echo html_specialchars($phpwcms["templates"] . "/inc_css/frontend.css"); ?> </font> </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: </td> <td<?php echo gib_bg_color($status == 2 ? 2 : 0); ?> > <font color="#FFFFFF"><?php echo html_specialchars("include/config/conf.indexpage.inc.php"); ?> </font> </td> <td><img src="../img/leer.gif" alt="" width="1" height="19"></td> <td><?php echo gib_status_text($status);