function assignVariables()
 {
     $umask = isset($_POST['umask']) ? $_POST['umask'] : '022';
     if (isset($_POST['umask']) && !empty($_POST['umask'])) {
         $test = testUmask(1, ilang('test_check_umask'), $umask, ilang('test_check_umask_failed'));
         $this->smarty->assign('test', $test);
     }
     $this->smarty->assign('umask', $umask);
     $this->smarty->assign('errors', $this->errors);
 }
Example #2
0
            if (!$found_grantall) {
                $tmp[0]['server_db_grants'] = testDummy('db_grants', lang('error_nograntall_found'), 'yellow');
            } else {
                $tmp[0]['server_db_grants'] = testDummy('db_grants', lang('msg_grantall_found'), 'green');
            }
        }
        break;
}
$smarty->assign('count_server_info', count($tmp[0]));
$smarty->assign('server_info', $tmp);
$tmp = array(0 => array(), 1 => array());
$dir = $config['root_path'] . DIRECTORY_SEPARATOR . 'tmp';
$tmp[1]['tmp'] = testDirWrite(0, $dir, $dir);
$dir = TMP_TEMPLATES_C_LOCATION;
$tmp[1]['templates_c'] = testDirWrite(0, $dir, $dir);
$dir = $config['root_path'] . DIRECTORY_SEPARATOR . 'modules';
$tmp[1]['modules'] = testDirWrite(0, $dir, $dir);
$global_umask = get_site_preference('global_umask', '022');
$tmp[1][lang('global_umask')] = testUmask(0, lang('global_umask'), $global_umask);
$result = is_writable(CONFIG_FILE_LOCATION);
#$tmp[1]['config_file'] = testFileWritable(0, lang('config_writable'), CONFIG_FILE_LOCATION, '');
$tmp[1]['config_file'] = testDummy('', substr(sprintf('%o', fileperms(CONFIG_FILE_LOCATION)), -4), $result ? 'red' : 'green', $result ? lang('config_writable') : '');
$smarty->assign('count_permission_info', count($tmp[0]));
$smarty->assign('permission_info', $tmp);
if (isset($_GET['cleanreport']) && $_GET['cleanreport'] == 1) {
    echo $smarty->fetch('systeminfo.txt.tpl');
} else {
    echo $smarty->fetch('systeminfo.tpl');
}
include_once "footer.php";
# vim:ts=4 sw=4 noet