36 $ret = (isset($global[$key]) && is_array($global[$key])) ? $global[$key] : $default;
39 $ret = (isset($global[$key])) ? strtotime($global[$key]) : $default;
42 $ret = (isset($global[$key])) ? filter_var($global[$key], FILTER_SANITIZE_MAGIC_QUOTES) : $default;
46 $ret = (isset($global[$key])) ? filter_var($global[$key], FILTER_SANITIZE_NUMBER_INT) : $default;
76 $done = array(
'preferences',
'blocksadmin',
'extensions',
'modulesadmin',
'groups',
'tplsets',
'users');
77 if (in_array(
$name, $done)) {
81 $path =
'modules/' . $domain .
'/language/';
83 $ret = include_once
$file;
97 static $tblVersion = array();
98 if (is_array($tblVersion) && array_key_exists($version .
'.' . $value, $tblVersion)) {
99 return $tblVersion[$version .
'.' . $value];
102 $path =
$xoops->path(
'modules/system/admin/' . $version .
'/xoops_version.php');
107 $tblVersion[$version .
'.' . $value] = $retvalue;
122 $url =
$xoops->url(
'modules/system/images/icons/' . $style .
'/' . $img);
134 $path =
$xoops->path(
'modules/' .
$xoops->module->getVar(
'dirname',
'n') .
'/templates/admin/' .
$name .
'.tpl');
138 echo
"Unable to read " .
$name;
150 $chmod =
'<div id="loading_' .
$id .
'" align="center" style="display:none;">' .
'<img src="./images/mimetypes/spinner.gif" title="Loading" alt="Loading" width="12px"/></div>' .
'<div id="chmod' .
$id .
'">' .
'<select size="1" onChange="filemanager_modify_chmod(\'' . $path_file .
'\', \
'' .
$id .
'\')
" name="chmod
" id="chmod
">';
151 if ($value_chmod == 777) {
152 $chmod .= '<option value="777
" selected><span style="color:green
">777</span></option>';
154 $chmod .= '<option value="777
"><span style="color:green
">777</span></option>';
157 if ($value_chmod == 776) {
158 $chmod .= '<option value="776
" selected>776</option>';
160 $chmod .= '<option value="776
">776</option>';
163 if ($value_chmod == 766) {
164 $chmod .= '<option value="766
" selected>766</option>';
166 $chmod .= '<option value="766
">766</option>';
169 if ($value_chmod == 666) {
170 $chmod .= '<option value="666
" selected>666</option>';
172 $chmod .= '<option value="666
">666</option>';
175 if ($value_chmod == 664) {
176 $chmod .= '<option value="664
" selected>664</option>';
178 $chmod .= '<option value="664
">664</option>';
181 if ($value_chmod == 644) {
182 $chmod .= '<option value="644
" selected>644</option>';
184 $chmod .= '<option value="644
">644</option>';
187 if ($value_chmod == 444) {
188 $chmod .= '<option value="444
" selected><span style="color:red
">444</span></option>';
190 $chmod .= '<option value="444
">444</option>';
193 if ($value_chmod == 440) {
194 $chmod .= '<option value="440
" selected>440</option>';
196 $chmod .= '<option value="440
">440</option>';
199 if ($value_chmod == 400) {
200 $chmod .= '<option value="400
" selected>400</option>';
202 $chmod .= '<option value="400
">400</option>';
204 $chmod .= '</select>';
system_loadTemplate($name)
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
system_adminVersion($version, $value= '')
modify_chmod($value_chmod, $path_file, $id)
system_cleanVars(&$global, $key, $default= '', $type= 'int')
system_loadLanguage($name, $domain= '', $language=null)