Esempio n. 1
0
function replace_inv($name)
{
    global $options;
    $name = preg_replace('/^([Xx][Mm][Ll]|[^' . NameStartChar . '])/ux', $options['h'], $name);
    $name = preg_replace('/[^' . NameChar . ']/ux', $options['h'], $name);
    if (!valid_xml($name)) {
        exit(E_NAME_ERR);
    }
    return $name;
}
Esempio n. 2
0
    }
}
$path = GSDATAOTHERPATH . 'logs/';
$data = getFiles($path);
sort($data);
foreach ($data as $file) {
    if (isFile($file, $path, '.log')) {
        echo '<tr><td>/data/other/logs/' . $file . '</td><td>' . valid_xml($path . $file) . '</td></tr>';
    }
}
$path = GSUSERSPATH;
$data = getFiles($path);
sort($data);
foreach ($data as $file) {
    if (isFile($file, $path)) {
        echo '<tr><td>/backups/users/' . $file . '</td><td>' . valid_xml($path . $file) . '</td></tr>';
    }
}
?>
			</table>
			
			<h3><?php 
i18n('DIR_PERMISSIONS');
?>
</h3>
			<table class="highlight healthcheck">
				<?php 
$me = check_perms(GSDATAOTHERPATH . 'plugins.xml');
?>
<tr><td><?php 
i18n('FILE_NAME');
Esempio n. 3
0
    }
}
$path = '../backups/other';
$data = getFiles($path);
sort($data);
foreach ($data as $file) {
    if (isFile($file, $path)) {
        echo '<tr><td>' . tsl($path) . $file . '</td><td>' . @valid_xml(tsl($path) . $file) . '</td></tr>';
    }
}
$path = '../backups/pages';
$data = getFiles($path);
sort($data);
foreach ($data as $file) {
    if (isFile($file, $path)) {
        echo '<tr><td>' . tsl($path) . $file . '</td><td>' . @valid_xml(tsl($path) . $file) . '</td></tr>';
    }
}
?>
			</table>
			
			<h3><?php 
echo $i18n['DIR_PERMISSIONS'];
?>
</h3>
			<table class="highlight healthcheck">
				<tr><td style="width:345px;" >../data/pages/</td><td><?php 
if (check_perms("../data/pages/") >= '0755') {
    echo '<span class="OKmsg" >' . check_perms("../data/pages/") . ' ' . $i18n['WRITABLE'] . ' - ' . $i18n['OK'] . '</span>';
} else {
    echo '<span class="ERRmsg" >' . check_perms("../data/pages/") . ' ' . $i18n['NOT_WRITABLE'] . ' - ' . $i18n['ERROR'] . '!</span>';