26 $ret = (isset($global[$key]) && is_array($global[$key])) ? $global[$key] : $default;
29 $ret = (isset($global[$key])) ? strtotime($global[$key]) : $default;
32 $ret = (isset($global[$key])) ? filter_var($global[$key], FILTER_SANITIZE_MAGIC_QUOTES) : $default;
35 $ret = (isset($global[$key])) ? filter_var($global[$key], FILTER_SANITIZE_NUMBER_INT) : $default;
64 $path =
'modules/' . $domain .
'/language/';
68 $ret = include_once
$GLOBALS[
'xoops']->path(
$path .
'english/admin/' . $name .
'.php');
75 static $tblVersion = array();
76 if (is_array($tblVersion) && array_key_exists($version .
'.' . $value, $tblVersion)) {
77 return $tblVersion[$version .
'.' . $value];
79 $path = XOOPS_ROOT_PATH .
'/modules/system/admin/' . $version .
'/xoops_version.php';
80 if (file_exists(
$path)) {
85 $tblVersion[$version .
'.' . $value] = $retvalue;
94 $url =
$GLOBALS[
'xoops']->url(
'modules/system/images/icons/' . $style .
'/' . $img);
102 $path = XOOPS_ROOT_PATH .
'/modules/' . $xoopsModule->getVar(
'dirname',
'n') .
'/templates/admin/' . $name .
'.html';
103 if (file_exists(
$path)) {
104 echo $sysTpl->fetch(
$path);
106 echo
"Unable to read " . $name;
112 $chmod =
'<div id="loading_' . $id .
'" align="center" style="display:none;">'
113 .
'<img src="./images/mimetypes/spinner.gif" title="Loading" alt="Loading" width="12px"/></div>'
114 .
'<div id="chmod' . $id .
'">'
115 .
'<select size="1" onChange="filemanager_modify_chmod(\'' . $path_file .
'\', \
'' . $id .
'\')
" name="chmod
" id="chmod
">';
116 if ($value_chmod == 777) {
117 $chmod .= '<option value="777
" selected><span style="color:green
">777</span></option>';
119 $chmod .= '<option value="777
"><span style="color:green
">777</span></option>';
122 if ($value_chmod == 776) {
123 $chmod .= '<option value="776
" selected>776</option>';
125 $chmod .= '<option value="776
">776</option>';
128 if ($value_chmod == 766) {
129 $chmod .= '<option value="766
" selected>766</option>';
131 $chmod .= '<option value="766
">766</option>';
134 if ($value_chmod == 666) {
135 $chmod .= '<option value="666
" selected>666</option>';
137 $chmod .= '<option value="666
">666</option>';
140 if ($value_chmod == 664) {
141 $chmod .= '<option value="664
" selected>664</option>';
143 $chmod .= '<option value="664
">664</option>';
146 if ($value_chmod == 644) {
147 $chmod .= '<option value="644
" selected>644</option>';
149 $chmod .= '<option value="644
">644</option>';
152 if ($value_chmod == 444) {
153 $chmod .= '<option value="444
" selected><span style="color:red
">444</span></option>';
155 $chmod .= '<option value="444
">444</option>';
158 if ($value_chmod == 440) {
159 $chmod .= '<option value="440
" selected>440</option>';
161 $chmod .= '<option value="440
">440</option>';
164 if($value_chmod == 400) {
165 $chmod .= '<option value="400
" selected>400</option>';
167 $chmod .= '<option value="400
">400</option>';
169 $chmod .= '</select>';