@@ -28,14 +28,14 @@ |
||
28 | 28 | $arg = reset($params); |
29 | 29 | $ico = trim($arg, " '\"\t\n\r\0\x0B"); |
30 | 30 | |
31 | - if (XoopsLoad::fileExists($xoops->path('media/xoops/images/icons/32/' . $icons . '/index.html'))) { |
|
32 | - $url = $xoops->url('media/xoops/images/icons/32/' . $icons . '/' . $ico); |
|
31 | + if (XoopsLoad::fileExists($xoops->path('media/xoops/images/icons/32/'.$icons.'/index.html'))) { |
|
32 | + $url = $xoops->url('media/xoops/images/icons/32/'.$icons.'/'.$ico); |
|
33 | 33 | } else { |
34 | - if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/' . $ico))) { |
|
35 | - $url = $xoops->url('modules/system/images/icons/default/' . $ico); |
|
34 | + if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/'.$ico))) { |
|
35 | + $url = $xoops->url('modules/system/images/icons/default/'.$ico); |
|
36 | 36 | } else { |
37 | 37 | $url = $xoops->url('modules/system/images/icons/default/xoops/xoops.png'); |
38 | 38 | } |
39 | 39 | } |
40 | - return "<?php echo '" . addslashes($url) . "'; ?>"; |
|
40 | + return "<?php echo '".addslashes($url)."'; ?>"; |
|
41 | 41 | } |
@@ -5,11 +5,11 @@ discard block |
||
5 | 5 | //todo, check this file |
6 | 6 | $path = '/path/to/xoops/directory'; |
7 | 7 | |
8 | -include $path . '/mainfile.php'; |
|
8 | +include $path.'/mainfile.php'; |
|
9 | 9 | if (!defined('XOOPS_ROOT_PATH')) { |
10 | 10 | exit(); |
11 | 11 | } |
12 | -include_once XOOPS_ROOT_PATH . '/language/' . $xoopsConfig['language'] . '/user.php'; |
|
12 | +include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/user.php'; |
|
13 | 13 | $op = (isset($_POST['op']) && $_POST['op'] == 'dologin') ? 'dologin' : 'login'; |
14 | 14 | |
15 | 15 | $username = isset($_POST['username']) ? trim($_POST['username']) : ''; |
@@ -21,17 +21,17 @@ discard block |
||
21 | 21 | echo ' |
22 | 22 | <html> |
23 | 23 | <head> |
24 | - <meta http-equiv="content-type" content="text/html; charset=' . XoopsLocale::getCharset() . '" /> |
|
25 | - <meta http-equiv="content-language" content="' . XoopsLocale::getLangCode() . '" /> |
|
26 | - <title>' . $xoopsConfig['sitename'] . '</title> |
|
27 | - <link rel="stylesheet" type="text/css" media="all" href="' . XOOPS_URL . '/xoops.css" /> |
|
24 | + <meta http-equiv="content-type" content="text/html; charset=' . XoopsLocale::getCharset().'" /> |
|
25 | + <meta http-equiv="content-language" content="' . XoopsLocale::getLangCode().'" /> |
|
26 | + <title>' . $xoopsConfig['sitename'].'</title> |
|
27 | + <link rel="stylesheet" type="text/css" media="all" href="' . XOOPS_URL.'/xoops.css" /> |
|
28 | 28 | '; |
29 | 29 | $style = xoops_getcss($xoopsConfig['theme_set']); |
30 | 30 | if ($style == '') { |
31 | 31 | $style = xoops_getcss($xoopsConfig['theme_set']); |
32 | 32 | } |
33 | 33 | if ($style != '') { |
34 | - echo '<link rel="stylesheet" type="text/css" media="all" href="' . $style . '" />'; |
|
34 | + echo '<link rel="stylesheet" type="text/css" media="all" href="'.$style.'" />'; |
|
35 | 35 | } |
36 | 36 | echo ' |
37 | 37 | </head> |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | $user = $member_handler->loginUser($username, $password); |
45 | 45 | if (is_object($user)) { |
46 | 46 | if (0 == $user->getVar('level')) { |
47 | - redirect_header(XOOPS_URL . '/index.php', 5, XoopsLocale::E_SELECTED_USER_DEACTIVATED_OR_NOT_ACTIVE); |
|
47 | + redirect_header(XOOPS_URL.'/index.php', 5, XoopsLocale::E_SELECTED_USER_DEACTIVATED_OR_NOT_ACTIVE); |
|
48 | 48 | exit(); |
49 | 49 | } |
50 | 50 | if ($xoopsConfig['closesite'] == 1) { |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | } |
58 | 58 | if (!$allowed) { |
59 | - redirect_header(XOOPS_URL . '/index.php', 1, XoopsLocale::E_NO_ACCESS_PERMISSION); |
|
59 | + redirect_header(XOOPS_URL.'/index.php', 1, XoopsLocale::E_NO_ACCESS_PERMISSION); |
|
60 | 60 | exit(); |
61 | 61 | } |
62 | 62 | } |
@@ -67,13 +67,13 @@ discard block |
||
67 | 67 | $_SESSION['xoopsUserId'] = $user->getVar('uid'); |
68 | 68 | $_SESSION['xoopsUserGroups'] = $user->getGroups(); |
69 | 69 | if (!empty($xoopsConfig['use_ssl'])) { |
70 | - xoops_confirm(array($xoopsConfig['sslpost_name'] => session_id()), XOOPS_URL . '/misc.php?action=showpopups&type=ssllogin', XoopsLocale::PRESS_BUTTON_BELLOW_TO_LOGIN, XoopsLocale::A_LOGIN); |
|
70 | + xoops_confirm(array($xoopsConfig['sslpost_name'] => session_id()), XOOPS_URL.'/misc.php?action=showpopups&type=ssllogin', XoopsLocale::PRESS_BUTTON_BELLOW_TO_LOGIN, XoopsLocale::A_LOGIN); |
|
71 | 71 | } else { |
72 | 72 | echo sprintf(XoopsLocale::SF_THANK_YOU_FOR_LOGGING_IN, $user->getVar('uname')); |
73 | - echo '<div style="text-align:center;"><input value="' . XoopsLocale::A_CLOSE . '" type="button" onclick="document.window.opener.location.reload();document.window.close();" /></div>'; |
|
73 | + echo '<div style="text-align:center;"><input value="'.XoopsLocale::A_CLOSE.'" type="button" onclick="document.window.opener.location.reload();document.window.close();" /></div>'; |
|
74 | 74 | } |
75 | 75 | } else { |
76 | - xoops_error(XoopsLocale::E_INCORRECT_LOGIN . '<br /><a href="login.php">' . XoopsLocale::GO_BACK . '</a>'); |
|
76 | + xoops_error(XoopsLocale::E_INCORRECT_LOGIN.'<br /><a href="login.php">'.XoopsLocale::GO_BACK.'</a>'); |
|
77 | 77 | } |
78 | 78 | } |
79 | 79 | |
@@ -83,16 +83,16 @@ discard block |
||
83 | 83 | <form action="login.php" method="post"> |
84 | 84 | <table class="outer" width="95%"> |
85 | 85 | <tr> |
86 | - <td class="head">' . XoopsLocale::C_USERNAME . '</td> |
|
86 | + <td class="head">' . XoopsLocale::C_USERNAME.'</td> |
|
87 | 87 | <td class="even"><input type="text" name="username" value="" /></td> |
88 | 88 | </tr> |
89 | 89 | <tr> |
90 | - <td class="head">' . XoopsLocale::C_PASSWORD . '</td> |
|
90 | + <td class="head">' . XoopsLocale::C_PASSWORD.'</td> |
|
91 | 91 | <td class="even"><input type="password" name="userpass" value="" /></td> |
92 | 92 | </tr> |
93 | 93 | <tr> |
94 | 94 | <td class="head"> </td> |
95 | - <td class="even"><input type="hidden" name="op" value="dologin" /><input type="submit" name="submit" value="' . XoopsLocale::A_LOGIN . '" /></td> |
|
95 | + <td class="even"><input type="hidden" name="op" value="dologin" /><input type="submit" name="submit" value="' . XoopsLocale::A_LOGIN.'" /></td> |
|
96 | 96 | </tr> |
97 | 97 | </table> |
98 | 98 | </form> |
@@ -25,14 +25,14 @@ discard block |
||
25 | 25 | global $xoopsModule, $xoopsConfig, $mydirname, $mydirpath, $mytrustdirname, $mytrustdirpath, $mymenu_fake_uri; |
26 | 26 | |
27 | 27 | $mymenu_find_paths = array( |
28 | - $mydirpath . '/admin/mymenu.php', $mydirpath . '/mymenu.php', $mytrustdirpath . '/admin/mymenu.php', |
|
29 | - $mytrustdirpath . '/mymenu.php', |
|
28 | + $mydirpath.'/admin/mymenu.php', $mydirpath.'/mymenu.php', $mytrustdirpath.'/admin/mymenu.php', |
|
29 | + $mytrustdirpath.'/mymenu.php', |
|
30 | 30 | ); |
31 | 31 | |
32 | 32 | foreach ($mymenu_find_paths as $mymenu_find_path) { |
33 | 33 | if (file_exists($mymenu_find_path)) { |
34 | 34 | include $mymenu_find_path; |
35 | - include_once dirname(__FILE__) . '/adminmenu_functions.php'; |
|
35 | + include_once dirname(__FILE__).'/adminmenu_functions.php'; |
|
36 | 36 | altsys_adminmenu_insert_mymenu($xoopsModule); |
37 | 37 | altsys_adminmenu_hack_ft(); |
38 | 38 | break; |
@@ -45,17 +45,17 @@ discard block |
||
45 | 45 | { |
46 | 46 | $mylang = Xoops::getInstance()->getConfig('language'); |
47 | 47 | |
48 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/altsys/language/' . $mylang . '/' . $type . '.php')) { |
|
49 | - include_once XOOPS_ROOT_PATH . '/modules/altsys/language/' . $mylang . '/' . $type . '.php'; |
|
48 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/altsys/language/'.$mylang.'/'.$type.'.php')) { |
|
49 | + include_once XOOPS_ROOT_PATH.'/modules/altsys/language/'.$mylang.'/'.$type.'.php'; |
|
50 | 50 | } else { |
51 | - if (file_exists(XOOPS_TRUST_PATH . '/libs/altsys/language/' . $mylang . '/' . $type . '.php')) { |
|
52 | - include_once XOOPS_TRUST_PATH . '/libs/altsys/language/' . $mylang . '/' . $type . '.php'; |
|
51 | + if (file_exists(XOOPS_TRUST_PATH.'/libs/altsys/language/'.$mylang.'/'.$type.'.php')) { |
|
52 | + include_once XOOPS_TRUST_PATH.'/libs/altsys/language/'.$mylang.'/'.$type.'.php'; |
|
53 | 53 | } else { |
54 | - if (file_exists(XOOPS_ROOT_PATH . '/modules/altsys/language/english/' . $type . '.php')) { |
|
55 | - include_once XOOPS_ROOT_PATH . '/modules/altsys/language/english/' . $type . '.php'; |
|
54 | + if (file_exists(XOOPS_ROOT_PATH.'/modules/altsys/language/english/'.$type.'.php')) { |
|
55 | + include_once XOOPS_ROOT_PATH.'/modules/altsys/language/english/'.$type.'.php'; |
|
56 | 56 | } else { |
57 | - if (file_exists(XOOPS_TRUST_PATH . '/libs/altsys/language/english/' . $type . '.php')) { |
|
58 | - include_once XOOPS_TRUST_PATH . '/libs/altsys/language/english/' . $type . '.php'; |
|
57 | + if (file_exists(XOOPS_TRUST_PATH.'/libs/altsys/language/english/'.$type.'.php')) { |
|
58 | + include_once XOOPS_TRUST_PATH.'/libs/altsys/language/english/'.$type.'.php'; |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 | } |
@@ -103,9 +103,9 @@ discard block |
||
103 | 103 | case ALTSYS_CORE_TYPE_X20S : |
104 | 104 | case ALTSYS_CORE_TYPE_ORE : |
105 | 105 | case ALTSYS_CORE_TYPE_X22 : |
106 | - return XOOPS_URL . '/modules/system/admin.php?fct=preferences&op=showmod&mod=' . $mid; |
|
106 | + return XOOPS_URL.'/modules/system/admin.php?fct=preferences&op=showmod&mod='.$mid; |
|
107 | 107 | case ALTSYS_CORE_TYPE_XC21L : |
108 | - return XOOPS_URL . '/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $mid; |
|
108 | + return XOOPS_URL.'/modules/legacy/admin/index.php?action=PreferenceEdit&confmod_id='.$mid; |
|
109 | 109 | } |
110 | 110 | } |
111 | 111 | |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | if (substr($file, -4) != '.php') { |
133 | 133 | continue; |
134 | 134 | } |
135 | - @unlink(XOOPS_COMPILE_PATH . '/' . $file); |
|
135 | + @unlink(XOOPS_COMPILE_PATH.'/'.$file); |
|
136 | 136 | } |
137 | 137 | closedir($dh); |
138 | 138 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | // Define Stylesheet |
53 | 53 | $xoops->theme()->addStylesheet('modules/system/css/admin.css'); |
54 | 54 | $xoops->theme()->addStylesheet('modules/system/css/code_mirror/docs.css'); |
55 | -$xoops->theme()->addStylesheet('media/jquery/ui/' . $xoops->getModuleConfig('jquery_theme', 'system') . '/ui.all.css'); |
|
55 | +$xoops->theme()->addStylesheet('media/jquery/ui/'.$xoops->getModuleConfig('jquery_theme', 'system').'/ui.all.css'); |
|
56 | 56 | // Define Breadcrumb and tips |
57 | 57 | $system_breadcrumb->addLink(_AM_SYSTEM_FILEMANAGER_NAV_MAIN, system_adminVersion('filemanager', 'adminpath')); |
58 | 58 | |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | |
69 | 69 | $nbcolonnes_file = 4; |
70 | 70 | $width = 100 / $nbcolonnes_file; |
71 | - $root = XOOPS_ROOT_PATH . '/'; |
|
72 | - $url_file = XOOPS_URL . '/'; |
|
71 | + $root = XOOPS_ROOT_PATH.'/'; |
|
72 | + $url_file = XOOPS_URL.'/'; |
|
73 | 73 | $xoops->tpl()->assign('width', $width); |
74 | 74 | |
75 | 75 | if (file_exists($root)) { |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | // All files |
83 | 83 | foreach ($files as $file) { |
84 | 84 | if (!preg_match('#.back#', $file)) { |
85 | - if (file_exists($root . $file) && $file != '.' && $file != '..' && !is_dir($root . $file)) { |
|
85 | + if (file_exists($root.$file) && $file != '.' && $file != '..' && !is_dir($root.$file)) { |
|
86 | 86 | /* @var $folder XoopsFileHandler */ |
87 | - $folder = XoopsFile::getHandler('file', $root . $file); |
|
87 | + $folder = XoopsFile::getHandler('file', $root.$file); |
|
88 | 88 | $extension_verif = $folder->ext(); |
89 | 89 | |
90 | 90 | switch ($extension_verif) { |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | case 'gz': |
107 | 107 | $extension_verif = 'rar'; |
108 | 108 | $edit = true; |
109 | - $unzip = '<img class="cursorpointer" src="./images/icons/untar.png" onclick=\'filemanager_unzip_file("' . $root . $file . '", "' . $root . '", "' . $file . '");\' width="16" alt="edit" /> '; |
|
109 | + $unzip = '<img class="cursorpointer" src="./images/icons/untar.png" onclick=\'filemanager_unzip_file("'.$root.$file.'", "'.$root.'", "'.$file.'");\' width="16" alt="edit" /> '; |
|
110 | 110 | break; |
111 | 111 | case 'css': |
112 | 112 | $extension_verif = 'css'; |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | //Edit ? |
144 | 144 | $file_arr['edit'] = $edit; |
145 | 145 | //File |
146 | - $file_arr['path_file'] = $root . $file; |
|
146 | + $file_arr['path_file'] = $root.$file; |
|
147 | 147 | $file_arr['path'] = $root; |
148 | 148 | //Chmod |
149 | 149 | $file_arr['chmod'] = substr($folder->perms(), 1); |
@@ -151,14 +151,14 @@ discard block |
||
151 | 151 | $file_arr['chmod'] = modify_chmod($file_arr['chmod'], $file_arr['path_file'], $count_file); |
152 | 152 | |
153 | 153 | if ($extension_verif == 'picture') { |
154 | - list($width, $height) = getimagesize($root . $file); |
|
154 | + list($width, $height) = getimagesize($root.$file); |
|
155 | 155 | if ($height > 60) { |
156 | - $file_arr['img'] = '<img src="' . $url_file . $file . '" height="47" title="" alt="" />'; |
|
156 | + $file_arr['img'] = '<img src="'.$url_file.$file.'" height="47" title="" alt="" />'; |
|
157 | 157 | } else { |
158 | - $file_arr['img'] = '<img src="' . $url_file . $file . '" title="" alt="" />'; |
|
158 | + $file_arr['img'] = '<img src="'.$url_file.$file.'" title="" alt="" />'; |
|
159 | 159 | } |
160 | 160 | } else { |
161 | - $file_arr['img'] = '<img src="./images/mimetypes/' . $extension_verif . '_48.png" title="" alt="" />'; |
|
161 | + $file_arr['img'] = '<img src="./images/mimetypes/'.$extension_verif.'_48.png" title="" alt="" />'; |
|
162 | 162 | } |
163 | 163 | $file_arr['extension'] = $extension_verif; |
164 | 164 | $file_arr['file'] = htmlentities($file); |
@@ -180,10 +180,10 @@ discard block |
||
180 | 180 | if (isset($_REQUEST['path_file'])) { |
181 | 181 | //save file |
182 | 182 | $copy_file = $_REQUEST['path_file']; |
183 | - copy($copy_file, $_REQUEST['path'] . $_REQUEST['file'] . '.back'); |
|
183 | + copy($copy_file, $_REQUEST['path'].$_REQUEST['file'].'.back'); |
|
184 | 184 | //Save modif |
185 | 185 | if (isset($_REQUEST['filemanager'])) { |
186 | - $open = fopen("" . $_REQUEST['path_file'] . "", "w+"); |
|
186 | + $open = fopen("".$_REQUEST['path_file']."", "w+"); |
|
187 | 187 | if (!fwrite($open, utf8_encode(stripslashes($_REQUEST['filemanager'])))) { |
188 | 188 | $xoops->redirect("admin.php?fct=filemanager", 2, _AM_SYSTEM_FILEMANAGER_ERROR); |
189 | 189 | } |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | $xoops->redirect("admin.php?fct=filemanager", 2, XoopsLocale::S_DATABASE_UPDATED); |
193 | 193 | } else { |
194 | 194 | //restore |
195 | - $old_file = $_REQUEST['path_file'] . '.back'; |
|
195 | + $old_file = $_REQUEST['path_file'].'.back'; |
|
196 | 196 | //echo $old_file; |
197 | 197 | $new_file = $_REQUEST['path_file']; |
198 | 198 | //echo $new_file; |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | if ($_REQUEST['path'] != '') { |
217 | 217 | $path = trim($_REQUEST['path']); |
218 | 218 | } else { |
219 | - $path = XOOPS_ROOT_PATH . '/'; |
|
219 | + $path = XOOPS_ROOT_PATH.'/'; |
|
220 | 220 | } |
221 | 221 | $mimetypes = include $xoops->path('include/mimetypes.inc.php'); |
222 | 222 | $uploader = new XoopsMediaUploader($path, $mimetypes, 500000); |
@@ -235,12 +235,12 @@ discard block |
||
235 | 235 | break; |
236 | 236 | |
237 | 237 | case 'filemanager_add_dir_save': |
238 | - $path = $system->cleanVars($_REQUEST, 'path', XOOPS_ROOT_PATH . '/', 'string'); |
|
238 | + $path = $system->cleanVars($_REQUEST, 'path', XOOPS_ROOT_PATH.'/', 'string'); |
|
239 | 239 | |
240 | 240 | $folder = XoopsFile::getHandler('folder'); |
241 | - if ($folder->create($path . $_REQUEST['dir_name'], 0777)) { |
|
242 | - $indexFile = XOOPS_ROOT_PATH . "/modules/system/index.html"; |
|
243 | - copy($indexFile, $path . $_REQUEST['dir_name'] . "/index.html"); |
|
241 | + if ($folder->create($path.$_REQUEST['dir_name'], 0777)) { |
|
242 | + $indexFile = XOOPS_ROOT_PATH."/modules/system/index.html"; |
|
243 | + copy($indexFile, $path.$_REQUEST['dir_name']."/index.html"); |
|
244 | 244 | $xoops->redirect('admin.php?fct=filemanager', 2, _AM_SYSTEM_FILEMANAGER_DIR_SUCCESS); |
245 | 245 | } else { |
246 | 246 | $xoops->redirect('admin.php?fct=filemanager', 2, _AM_SYSTEM_FILEMANAGER_DIR_ERROR); |
@@ -248,11 +248,11 @@ discard block |
||
248 | 248 | break; |
249 | 249 | |
250 | 250 | case 'filemanager_add_file_save': |
251 | - $path = $system->cleanVars($_REQUEST, 'path', XOOPS_ROOT_PATH . '/', 'string'); |
|
251 | + $path = $system->cleanVars($_REQUEST, 'path', XOOPS_ROOT_PATH.'/', 'string'); |
|
252 | 252 | if ($path == '') { |
253 | - $path = XOOPS_ROOT_PATH . '/'; |
|
253 | + $path = XOOPS_ROOT_PATH.'/'; |
|
254 | 254 | } |
255 | - $open = fopen($path . $_REQUEST['file_name'], "w+"); |
|
255 | + $open = fopen($path.$_REQUEST['file_name'], "w+"); |
|
256 | 256 | fclose($open); |
257 | 257 | $xoops->redirect('admin.php?fct=filemanager', 2, _AM_SYSTEM_FILEMANAGER_FILE_SUCCESS); |
258 | 258 | //if ($file->create ($path . $_REQUEST['file_name'])) { |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | */ |
22 | 22 | |
23 | 23 | // Require mainfile |
24 | -require dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/mainfile.php' ; |
|
24 | +require dirname(dirname(dirname(dirname(dirname(__FILE__))))).'/mainfile.php'; |
|
25 | 25 | |
26 | 26 | $xoops = Xoops::getInstance(); |
27 | 27 | $xoops->disableErrorReporting(); |
@@ -41,26 +41,26 @@ discard block |
||
41 | 41 | case 'filemanager_display_folder': |
42 | 42 | |
43 | 43 | $_REQUEST['dir'] = urldecode($_REQUEST['dir']); |
44 | - $root = XOOPS_ROOT_PATH . '/'; |
|
44 | + $root = XOOPS_ROOT_PATH.'/'; |
|
45 | 45 | |
46 | - if (file_exists($root . $_REQUEST['dir'])) { |
|
47 | - $files = scandir($root . $_REQUEST['dir']); |
|
46 | + if (file_exists($root.$_REQUEST['dir'])) { |
|
47 | + $files = scandir($root.$_REQUEST['dir']); |
|
48 | 48 | natcasesort($files); |
49 | 49 | |
50 | 50 | if (count($files) > 2) { /* The 2 accounts for . and .. */ |
51 | 51 | echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">"; |
52 | 52 | if ('/' == $_REQUEST['dir']) { |
53 | 53 | $url = $xoops->url('modules/system/admin.php?fct=filemanager'); |
54 | - echo "<a href=\"" . $url . "\"><strong>/</strong></a>"; |
|
54 | + echo "<a href=\"".$url."\"><strong>/</strong></a>"; |
|
55 | 55 | } |
56 | 56 | // All dirs |
57 | 57 | foreach ($files as $file) { |
58 | - if (file_exists($root . $_REQUEST['dir'] . $file) && $file != '.' && $file != '..' && is_dir($root . $_REQUEST['dir'] . $file)) { |
|
58 | + if (file_exists($root.$_REQUEST['dir'].$file) && $file != '.' && $file != '..' && is_dir($root.$_REQUEST['dir'].$file)) { |
|
59 | 59 | //retirer .svn |
60 | 60 | $file_no_valid = array('.svn', 'conf', 'db', 'locks', 'hooks', 'cache', 'templates_c'); |
61 | 61 | |
62 | 62 | if (!in_array($file, $file_no_valid)) { |
63 | - echo "<li class=\"directory collapsed\"><a href='" . $_REQUEST['dir'] . $file . "' rel=\"" . htmlentities($_REQUEST['dir'] . $file) . "/\">" . htmlentities($file) . "</a></li>"; |
|
63 | + echo "<li class=\"directory collapsed\"><a href='".$_REQUEST['dir'].$file."' rel=\"".htmlentities($_REQUEST['dir'].$file)."/\">".htmlentities($file)."</a></li>"; |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | } |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | $path_file = $_REQUEST['file']; |
80 | 80 | } else { |
81 | 81 | $file_arr = explode("/", $_REQUEST['file']); |
82 | - $path_file = XOOPS_ROOT_PATH . '/'; |
|
83 | - $url_file = XOOPS_URL . '/'; |
|
82 | + $path_file = XOOPS_ROOT_PATH.'/'; |
|
83 | + $url_file = XOOPS_URL.'/'; |
|
84 | 84 | |
85 | 85 | for ($i = 3; $i < count($file_arr); $i++) { |
86 | - $path_file .= $file_arr[$i] . '/'; |
|
87 | - $url_file .= $file_arr[$i] . '/'; |
|
86 | + $path_file .= $file_arr[$i].'/'; |
|
87 | + $url_file .= $file_arr[$i].'/'; |
|
88 | 88 | } |
89 | 89 | } |
90 | 90 | |
@@ -96,11 +96,11 @@ discard block |
||
96 | 96 | echo ' |
97 | 97 | <div class="xo-btn-actions"> |
98 | 98 | <div class="xo-buttons"> |
99 | - <button class="ui-corner-all tooltip" type="button" onclick="filemanager_load_tree();filemanager_display_file(\'\', 0)" title="' . _AM_SYSTEM_FILEMANAGER_HOME . '"> |
|
100 | - <img src="' . system_AdminIcons('home.png') . '" alt="' . _AM_SYSTEM_FILEMANAGER_HOME . '" /> |
|
99 | + <button class="ui-corner-all tooltip" type="button" onclick="filemanager_load_tree();filemanager_display_file(\'\', 0)" title="' . _AM_SYSTEM_FILEMANAGER_HOME.'"> |
|
100 | + <img src="' . system_AdminIcons('home.png').'" alt="'._AM_SYSTEM_FILEMANAGER_HOME.'" /> |
|
101 | 101 | </button> |
102 | - <button class="ui-corner-all tooltip" onclick="filemanager_add_directory(\'' . $path_file . '\')" title="' . _AM_SYSTEM_FILEMANAGER_ADDDIR . '"> |
|
103 | - <img src="' . system_AdminIcons('folder_add.png') . '" alt="' . _AM_SYSTEM_FILEMANAGER_ADDDIR . '" /> |
|
102 | + <button class="ui-corner-all tooltip" onclick="filemanager_add_directory(\'' . $path_file.'\')" title="'._AM_SYSTEM_FILEMANAGER_ADDDIR.'"> |
|
103 | + <img src="' . system_AdminIcons('folder_add.png').'" alt="'._AM_SYSTEM_FILEMANAGER_ADDDIR.'" /> |
|
104 | 104 | </button>'; |
105 | 105 | $verif = true; |
106 | 106 | $protected = array( |
@@ -108,26 +108,26 @@ discard block |
||
108 | 108 | 'uploads', 'xoops_lib', 'xoops_data' |
109 | 109 | ); |
110 | 110 | foreach ($protected as $folder) { |
111 | - $root_path = XOOPS_ROOT_PATH . '/' . $folder . '/'; |
|
111 | + $root_path = XOOPS_ROOT_PATH.'/'.$folder.'/'; |
|
112 | 112 | if (eregi($root_path, $path_file)) { |
113 | 113 | if (($root_path == $path_file)) { |
114 | 114 | $verif = false; |
115 | 115 | } |
116 | 116 | } |
117 | - if (XOOPS_ROOT_PATH . '/' == $path_file) { |
|
117 | + if (XOOPS_ROOT_PATH.'/' == $path_file) { |
|
118 | 118 | $verif = false; |
119 | 119 | } |
120 | 120 | } |
121 | 121 | if ($verif) { |
122 | - echo '<button class="ui-corner-all tooltip" onclick="filemanager_confirm_delete_directory(\'' . $path_file . '\')" title="' . _AM_SYSTEM_FILEMANAGER_DELDIR . '"> |
|
123 | - <img src="' . system_AdminIcons('folder_delete.png') . '" alt="' . _AM_SYSTEM_FILEMANAGER_DELDIR . '" /> |
|
122 | + echo '<button class="ui-corner-all tooltip" onclick="filemanager_confirm_delete_directory(\''.$path_file.'\')" title="'._AM_SYSTEM_FILEMANAGER_DELDIR.'"> |
|
123 | + <img src="' . system_AdminIcons('folder_delete.png').'" alt="'._AM_SYSTEM_FILEMANAGER_DELDIR.'" /> |
|
124 | 124 | </button>'; |
125 | 125 | } |
126 | - echo '<button class="ui-corner-all tooltip" onclick="filemanager_add_file(\'' . $path_file . '\')" title="' . _AM_SYSTEM_FILEMANAGER_ADDFILE . '"> |
|
127 | - <img src="' . system_AdminIcons('add.png') . '" alt="' . _AM_SYSTEM_FILEMANAGER_ADDFILE . '" /> |
|
126 | + echo '<button class="ui-corner-all tooltip" onclick="filemanager_add_file(\''.$path_file.'\')" title="'._AM_SYSTEM_FILEMANAGER_ADDFILE.'"> |
|
127 | + <img src="' . system_AdminIcons('add.png').'" alt="'._AM_SYSTEM_FILEMANAGER_ADDFILE.'" /> |
|
128 | 128 | </button> |
129 | - <button class="ui-corner-all tooltip" onclick="filemanager_upload(\'' . $path_file . '\')" title="' . _AM_SYSTEM_FILEMANAGER_UPLOAD . '"> |
|
130 | - <img src="' . system_AdminIcons('upload.png') . '" alt="' . _AM_SYSTEM_FILEMANAGER_UPLOAD . '" /> |
|
129 | + <button class="ui-corner-all tooltip" onclick="filemanager_upload(\'' . $path_file.'\')" title="'._AM_SYSTEM_FILEMANAGER_UPLOAD.'"> |
|
130 | + <img src="' . system_AdminIcons('upload.png').'" alt="'._AM_SYSTEM_FILEMANAGER_UPLOAD.'" /> |
|
131 | 131 | </button> |
132 | 132 | </div> |
133 | 133 | <div class="clear"> </div> |
@@ -136,14 +136,14 @@ discard block |
||
136 | 136 | // All files |
137 | 137 | echo '<table cellpadding="0" cellspacing="0" border="0" align="center"> |
138 | 138 | <tr> |
139 | - <td align="center" width="' . $width . '%" style="padding-bottom:12px">'; |
|
139 | + <td align="center" width="' . $width.'%" style="padding-bottom:12px">'; |
|
140 | 140 | foreach ($files as $file) { |
141 | 141 | if (!preg_match('#.back#', $file)) { |
142 | - if (file_exists($path_file . $file) && $file != '.' && $file != '..' && !is_dir($path_file . $file)) { |
|
142 | + if (file_exists($path_file.$file) && $file != '.' && $file != '..' && !is_dir($path_file.$file)) { |
|
143 | 143 | //echo $path_file . $file.'<br />'; |
144 | 144 | $unzip = ''; |
145 | 145 | $edit = false; |
146 | - $file1 = XoopsFile::getHandler('file', $path_file . $file); |
|
146 | + $file1 = XoopsFile::getHandler('file', $path_file.$file); |
|
147 | 147 | $extension_verif = $file1->ext(); |
148 | 148 | |
149 | 149 | switch ($extension_verif) { |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | case 'gz': |
166 | 166 | $extension_verif = 'rar'; |
167 | 167 | $edit = true; |
168 | - $unzip = '<img class="cursorpointer" src="./images/icons/untar.png" onclick=\'filemanager_unzip_file("' . $path_file . $file . '", "' . $path_file . '", "' . $file . '");\' width="16" alt="edit" /> '; |
|
168 | + $unzip = '<img class="cursorpointer" src="./images/icons/untar.png" onclick=\'filemanager_unzip_file("'.$path_file.$file.'", "'.$path_file.'", "'.$file.'");\' width="16" alt="edit" /> '; |
|
169 | 169 | break; |
170 | 170 | case 'css': |
171 | 171 | $extension_verif = 'css'; |
@@ -200,37 +200,37 @@ discard block |
||
200 | 200 | break; |
201 | 201 | } |
202 | 202 | if ($edit == true) { |
203 | - $edit = '<img class="cursorpointer" src="' . system_AdminIcons('edit.png') . '" onclick=\'filemanager_edit_file("' . $path_file . $file . '", "' . $path_file . '", "' . $file . '", "' . $extension_verif . '");\' width="16" alt="edit" />'; |
|
203 | + $edit = '<img class="cursorpointer" src="'.system_AdminIcons('edit.png').'" onclick=\'filemanager_edit_file("'.$path_file.$file.'", "'.$path_file.'", "'.$file.'", "'.$extension_verif.'");\' width="16" alt="edit" />'; |
|
204 | 204 | } else { |
205 | 205 | $edit = ''; |
206 | 206 | } |
207 | 207 | //Chmod |
208 | 208 | $chmod = substr($file1->perms(), 1); |
209 | 209 | |
210 | - $chmod = modify_chmod($chmod, $path_file . $file, $count_file); |
|
210 | + $chmod = modify_chmod($chmod, $path_file.$file, $count_file); |
|
211 | 211 | |
212 | 212 | //Img |
213 | 213 | if ($extension_verif == 'picture') { |
214 | - list($width, $height) = getimagesize($path_file . $file); |
|
214 | + list($width, $height) = getimagesize($path_file.$file); |
|
215 | 215 | if ($height > 60) { |
216 | - $img = '<img src="' . $url_file . $file . '" height="47" title="" alt="" />'; |
|
216 | + $img = '<img src="'.$url_file.$file.'" height="47" title="" alt="" />'; |
|
217 | 217 | } else { |
218 | - $img = '<img src="' . $url_file . $file . '" title="" alt="" />'; |
|
218 | + $img = '<img src="'.$url_file.$file.'" title="" alt="" />'; |
|
219 | 219 | } |
220 | 220 | } else { |
221 | - $img = '<img src="./images/mimetypes/' . $extension_verif . '_48.png" title="" alt="" />'; |
|
221 | + $img = '<img src="./images/mimetypes/'.$extension_verif.'_48.png" title="" alt="" />'; |
|
222 | 222 | } |
223 | 223 | echo '<div style="border: 1px solid #cccccc;"> |
224 | 224 | <table cellpadding="0" cellspacing="0"> |
225 | 225 | <tr class="odd"> |
226 | - <td align="left">' . $chmod . '</td> |
|
227 | - <td align="right">' . $unzip . $edit . ' <img class="cursorpointer" src="' . system_AdminIcons('delete.png') . '" onclick=\'filemanager_confirm_delete_file("' . $path_file . $file . '", "' . $path_file . '");\' width="16" alt="delete" /></td> |
|
226 | + <td align="left">' . $chmod.'</td> |
|
227 | + <td align="right">' . $unzip.$edit.' <img class="cursorpointer" src="'.system_AdminIcons('delete.png').'" onclick=\'filemanager_confirm_delete_file("'.$path_file.$file.'", "'.$path_file.'");\' width="16" alt="delete" /></td> |
|
228 | 228 | </tr> |
229 | 229 | <tr> |
230 | - <td colspan="2" align="center" height="60px"><br />' . $img . '</td> |
|
230 | + <td colspan="2" align="center" height="60px"><br />' . $img.'</td> |
|
231 | 231 | </tr> |
232 | 232 | <tr> |
233 | - <td colspan="2" align="center">' . $file . '<br /><br /></td> |
|
233 | + <td colspan="2" align="center">' . $file.'<br /><br /></td> |
|
234 | 234 | </tr> |
235 | 235 | </table> |
236 | 236 | </div> |
@@ -259,13 +259,13 @@ discard block |
||
259 | 259 | if ($_REQUEST['path'] != '') { |
260 | 260 | $path = trim($_REQUEST['path']); |
261 | 261 | } else { |
262 | - $path = XOOPS_ROOT_PATH . '/'; |
|
262 | + $path = XOOPS_ROOT_PATH.'/'; |
|
263 | 263 | } |
264 | 264 | |
265 | 265 | //Button restore |
266 | - if (file_exists($path_file . '.back')) { |
|
267 | - $restore = '<button class="ui-corner-all tooltip" type="button" onclick="filemanager_restore(\'' . $path_file . '\')" value="' . _AM_SYSTEM_FILEMANAGER_RESTORE . '" title="' . _AM_SYSTEM_FILEMANAGER_RESTORE . '"> |
|
268 | - <img src="' . system_AdminIcons('revert.png') . '" alt="' . _AM_SYSTEM_FILEMANAGER_RESTORE . '" /> |
|
266 | + if (file_exists($path_file.'.back')) { |
|
267 | + $restore = '<button class="ui-corner-all tooltip" type="button" onclick="filemanager_restore(\''.$path_file.'\')" value="'._AM_SYSTEM_FILEMANAGER_RESTORE.'" title="'._AM_SYSTEM_FILEMANAGER_RESTORE.'"> |
|
268 | + <img src="' . system_AdminIcons('revert.png').'" alt="'._AM_SYSTEM_FILEMANAGER_RESTORE.'" /> |
|
269 | 269 | </button>'; |
270 | 270 | } else { |
271 | 271 | $restore = ''; |
@@ -285,12 +285,12 @@ discard block |
||
285 | 285 | <td> |
286 | 286 | <div class="xo-btn-actions"> |
287 | 287 | <div class="xo-buttons"> |
288 | - <button class="ui-corner-all tooltip" type="submit" value="' . _AM_SYSTEM_FILEMANAGER_SAVE . '" title="' . _AM_SYSTEM_FILEMANAGER_SAVE . '"> |
|
289 | - <img src="' . system_AdminIcons('save.png') . '" alt="' . _AM_SYSTEM_FILEMANAGER_SAVE . '" /> |
|
288 | + <button class="ui-corner-all tooltip" type="submit" value="' . _AM_SYSTEM_FILEMANAGER_SAVE.'" title="'._AM_SYSTEM_FILEMANAGER_SAVE.'"> |
|
289 | + <img src="' . system_AdminIcons('save.png').'" alt="'._AM_SYSTEM_FILEMANAGER_SAVE.'" /> |
|
290 | 290 | </button> |
291 | - ' . $restore . ' |
|
292 | - <button class="ui-corner-all tooltip" type="button" onclick="$(\'#edit_file\').fadeOut(\'fast\');$(\'#display_file\').fadeIn(\'fast\');" title="' . _AM_SYSTEM_FILEMANAGER_CANCEL . '"> |
|
293 | - <img src="' . system_AdminIcons('cancel.png') . '" alt="' . _AM_SYSTEM_FILEMANAGER_CANCEL . '" /> |
|
291 | + ' . $restore.' |
|
292 | + <button class="ui-corner-all tooltip" type="button" onclick="$(\'#edit_file\').fadeOut(\'fast\');$(\'#display_file\').fadeIn(\'fast\');" title="' . _AM_SYSTEM_FILEMANAGER_CANCEL.'"> |
|
293 | + <img src="' . system_AdminIcons('cancel.png').'" alt="'._AM_SYSTEM_FILEMANAGER_CANCEL.'" /> |
|
294 | 294 | </button> |
295 | 295 | <div class="clear"></div> |
296 | 296 | </div> |
@@ -298,10 +298,10 @@ discard block |
||
298 | 298 | </td> |
299 | 299 | </tr> |
300 | 300 | <tr><td> |
301 | - <textarea id="code_mirror" name="filemanager" rows=24 cols=110>' . $content . '</textarea> |
|
301 | + <textarea id="code_mirror" name="filemanager" rows=24 cols=110>' . $content.'</textarea> |
|
302 | 302 | </td></tr> |
303 | 303 | </table>'; |
304 | - echo '<input type="hidden" name="path_file" value="' . $path_file . '"><input type="hidden" name="path" value="' . $path . '"><input type="hidden" name="file" value="' . trim($_REQUEST['file']) . '"><input type="hidden" name="ext" value="' . $ext . '"></form>'; |
|
304 | + echo '<input type="hidden" name="path_file" value="'.$path_file.'"><input type="hidden" name="path" value="'.$path.'"><input type="hidden" name="file" value="'.trim($_REQUEST['file']).'"><input type="hidden" name="ext" value="'.$ext.'"></form>'; |
|
305 | 305 | break; |
306 | 306 | |
307 | 307 | case 'filemanager_unzip_file': |
@@ -310,7 +310,7 @@ discard block |
||
310 | 310 | if ($_REQUEST['path'] != '') { |
311 | 311 | $path = trim($_REQUEST['path']); |
312 | 312 | } else { |
313 | - $path = XOOPS_ROOT_PATH . '/'; |
|
313 | + $path = XOOPS_ROOT_PATH.'/'; |
|
314 | 314 | } |
315 | 315 | $file = $_REQUEST['file']; |
316 | 316 | |
@@ -337,14 +337,14 @@ discard block |
||
337 | 337 | |
338 | 338 | //Confirm delete file |
339 | 339 | case 'filemanager_confirm_delete_file': |
340 | - echo '<div class="confirmMsg">' . sprintf(_AM_SYSTEM_FILEMANAGER_SUREDEL, $_REQUEST['file']) . '<br /><br /><div class="buttons"><a href="#" class="ui-corner-all" onclick="filemanager_delete_file(\'' . $_REQUEST['path_file'] . '\', \'' . $_REQUEST['path'] . '\');">' . _AM_SYSTEM_FILEMANAGER_DELETE . '</a> <a href="#" class="ui-corner-all" onclick="$(\'#confirm_delete\').hide();filemanager_load_tree(); filemanager_display_file(\'\', 0)">' . _AM_SYSTEM_FILEMANAGER_CANCEL . '</a></div></div>'; |
|
340 | + echo '<div class="confirmMsg">'.sprintf(_AM_SYSTEM_FILEMANAGER_SUREDEL, $_REQUEST['file']).'<br /><br /><div class="buttons"><a href="#" class="ui-corner-all" onclick="filemanager_delete_file(\''.$_REQUEST['path_file'].'\', \''.$_REQUEST['path'].'\');">'._AM_SYSTEM_FILEMANAGER_DELETE.'</a> <a href="#" class="ui-corner-all" onclick="$(\'#confirm_delete\').hide();filemanager_load_tree(); filemanager_display_file(\'\', 0)">'._AM_SYSTEM_FILEMANAGER_CANCEL.'</a></div></div>'; |
|
341 | 341 | break; |
342 | 342 | |
343 | 343 | //Delete one file |
344 | 344 | case 'filemanager_delete_file': |
345 | 345 | $file = XoopsFile::getHandler('file', $_REQUEST['path_file']); |
346 | 346 | if (!$file->delete()) { |
347 | - echo $xoops->alert('error',_AM_SYSTEM_FILEMANAGER_ERROR); |
|
347 | + echo $xoops->alert('error', _AM_SYSTEM_FILEMANAGER_ERROR); |
|
348 | 348 | } else { |
349 | 349 | echo $xoops->alert('info', _AM_SYSTEM_FILEMANAGER_DELETE_FILE); |
350 | 350 | } |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | if ($_REQUEST['path'] != '') { |
356 | 356 | $path = trim($_REQUEST['path']); |
357 | 357 | } else { |
358 | - $path = XOOPS_ROOT_PATH . '/'; |
|
358 | + $path = XOOPS_ROOT_PATH.'/'; |
|
359 | 359 | } |
360 | 360 | |
361 | 361 | $form = new Xoops\Form\ThemeForm('', 'upload_form', 'admin.php?fct=filemanager', "post", true); |
@@ -371,7 +371,7 @@ discard block |
||
371 | 371 | if ($_REQUEST['path'] != '') { |
372 | 372 | $path = trim($_REQUEST['path']); |
373 | 373 | } else { |
374 | - $path = XOOPS_ROOT_PATH . '/'; |
|
374 | + $path = XOOPS_ROOT_PATH.'/'; |
|
375 | 375 | } |
376 | 376 | |
377 | 377 | $form = new Xoops\Form\Theme\Form('', 'newdir_form', 'admin.php?fct=filemanager', "post", true); |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | //Confirm delete directory |
387 | 387 | case 'filemanager_confirm_delete_directory': |
388 | 388 | $path = $system->cleanVars($_REQUEST, 'path', '', 'string'); |
389 | - echo '<div class="confirmMsg">' . sprintf(_AM_SYSTEM_FILEMANAGER_DIR_SUREDEL, $path) . '<br /><br /><div class="buttons"><a href="#" class="ui-corner-all" onclick="filemanager_delete_directory(\'' . $path . '\');">' . _AM_SYSTEM_FILEMANAGER_DELETE . '</a> <a href="#" class="ui-corner-all" onclick="$(\'#confirm_delete\').hide();filemanager_load_tree(); filemanager_display_file(\'\', 0)">' . _AM_SYSTEM_FILEMANAGER_CANCEL . '</a></div></div>'; |
|
389 | + echo '<div class="confirmMsg">'.sprintf(_AM_SYSTEM_FILEMANAGER_DIR_SUREDEL, $path).'<br /><br /><div class="buttons"><a href="#" class="ui-corner-all" onclick="filemanager_delete_directory(\''.$path.'\');">'._AM_SYSTEM_FILEMANAGER_DELETE.'</a> <a href="#" class="ui-corner-all" onclick="$(\'#confirm_delete\').hide();filemanager_load_tree(); filemanager_display_file(\'\', 0)">'._AM_SYSTEM_FILEMANAGER_CANCEL.'</a></div></div>'; |
|
390 | 390 | break; |
391 | 391 | |
392 | 392 | // Delete one directory |
@@ -403,7 +403,7 @@ discard block |
||
403 | 403 | if ($name === '.' || $name === '..') { |
404 | 404 | continue; |
405 | 405 | } |
406 | - $full_name = $dossier . '/' . $name; |
|
406 | + $full_name = $dossier.'/'.$name; |
|
407 | 407 | |
408 | 408 | if (is_dir($full_name)) { |
409 | 409 | deltree($full_name); |
@@ -417,9 +417,9 @@ discard block |
||
417 | 417 | } |
418 | 418 | |
419 | 419 | if (deltree($_REQUEST['path'])) { |
420 | - echo $xoops->alert('info',_AM_SYSTEM_FILEMANAGER_DELDIR_OK); |
|
420 | + echo $xoops->alert('info', _AM_SYSTEM_FILEMANAGER_DELDIR_OK); |
|
421 | 421 | } else { |
422 | - echo $xoops->alert('error',_AM_SYSTEM_FILEMANAGER_DELDIR_NOTOK); |
|
422 | + echo $xoops->alert('error', _AM_SYSTEM_FILEMANAGER_DELDIR_NOTOK); |
|
423 | 423 | } |
424 | 424 | break; |
425 | 425 | |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | if ($_REQUEST['path'] != '') { |
428 | 428 | $path = trim($_REQUEST['path']); |
429 | 429 | } else { |
430 | - $path = XOOPS_ROOT_PATH . '/'; |
|
430 | + $path = XOOPS_ROOT_PATH.'/'; |
|
431 | 431 | } |
432 | 432 | |
433 | 433 | $form = new Xoops\Form\ThemeForm('', 'newdir_form', 'admin.php?fct=filemanager', "post", true); |
@@ -445,10 +445,10 @@ discard block |
||
445 | 445 | if ($_REQUEST['path_file'] != '') { |
446 | 446 | $path = trim($_REQUEST['path_file']); |
447 | 447 | } else { |
448 | - $path = XOOPS_ROOT_PATH . '/'; |
|
448 | + $path = XOOPS_ROOT_PATH.'/'; |
|
449 | 449 | } |
450 | 450 | |
451 | - if (chmod($path, '0' . $_REQUEST['chmod'])) { |
|
451 | + if (chmod($path, '0'.$_REQUEST['chmod'])) { |
|
452 | 452 | $new_chmod = modify_chmod($_REQUEST['chmod'], $path, $_REQUEST['id']); |
453 | 453 | echo $new_chmod; |
454 | 454 | } |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | |
458 | 458 | //Restore |
459 | 459 | case 'filemanager_restore': |
460 | - $old_file = $_REQUEST['path_file'] . '.back'; |
|
460 | + $old_file = $_REQUEST['path_file'].'.back'; |
|
461 | 461 | $new_file = $_REQUEST['path_file']; |
462 | 462 | if (file_exists($old_file)) { |
463 | 463 | if (unlink($new_file)) { |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * _CHARSET UTF-8 |
7 | 7 | */ |
8 | 8 | |
9 | - //Nav |
|
9 | + //Nav |
|
10 | 10 | define('_AM_SYSTEM_FILEMANAGER_NAV_MANAGER','File Manager'); |
11 | 11 | define('_AM_SYSTEM_FILEMANAGER_NAV_MAIN','File Manager'); |
12 | 12 |
@@ -7,56 +7,56 @@ |
||
7 | 7 | */ |
8 | 8 | |
9 | 9 | //Nav |
10 | -define('_AM_SYSTEM_FILEMANAGER_NAV_MANAGER','File Manager'); |
|
11 | -define('_AM_SYSTEM_FILEMANAGER_NAV_MAIN','File Manager'); |
|
10 | +define('_AM_SYSTEM_FILEMANAGER_NAV_MANAGER', 'File Manager'); |
|
11 | +define('_AM_SYSTEM_FILEMANAGER_NAV_MAIN', 'File Manager'); |
|
12 | 12 | |
13 | 13 | //Tips |
14 | -define('_AM_SYSTEM_FILEMANAGER_NAV_TIPS',' |
|
14 | +define('_AM_SYSTEM_FILEMANAGER_NAV_TIPS', ' |
|
15 | 15 | <ul> |
16 | 16 | <li>Change file permission, content or just delete an unused file from your XOOPS site.</li> |
17 | 17 | </ul> |
18 | 18 | '); |
19 | 19 | |
20 | 20 | // Main |
21 | -define('_AM_SYSTEM_FILEMANAGER_DIRECTORY','Directory'); |
|
22 | -define('_AM_SYSTEM_FILEMANAGER_FILES','Files'); |
|
23 | -define('_AM_SYSTEM_FILEMANAGER_GENERATE','Force generation'); |
|
24 | -define('_AM_SYSTEM_FILEMANAGER_SELECT_THEME','Select theme'); |
|
25 | -define('_AM_SYSTEM_FILEMANAGER_FORCE_GENERATED','Force generated'); |
|
26 | -define('_AM_SYSTEM_FILEMANAGER_NAV_FILE_GENERATED','Files generated'); |
|
27 | -define('_AM_SYSTEM_FILEMANAGER_NOT_CREATED','No files created'); |
|
28 | -define('_AM_SYSTEM_FILEMANAGER_HOME','Home'); |
|
29 | -define('_AM_SYSTEM_FILEMANAGER_SAVE','Save'); |
|
30 | -define('_AM_SYSTEM_FILEMANAGER_CANCEL','Cancel'); |
|
31 | -define('_AM_SYSTEM_FILEMANAGER_RESTORE','Restore'); |
|
32 | -define('_AM_SYSTEM_FILEMANAGER_REFRESH','Refresh'); |
|
33 | -define('_AM_SYSTEM_FILEMANAGER_UPLOAD','Upload file'); |
|
34 | -define('_AM_SYSTEM_FILEMANAGER_UPLOAD_CHOOSE','Select file to upload'); |
|
35 | -define('_AM_SYSTEM_FILEMANAGER_ADDDIR','Add Directory'); |
|
36 | -define('_AM_SYSTEM_FILEMANAGER_ADDDIR_NAME','Choose name of directory'); |
|
37 | -define('_AM_SYSTEM_FILEMANAGER_ADDFILE','Add New File'); |
|
38 | -define('_AM_SYSTEM_FILEMANAGER_DELDIR','Delete Directory'); |
|
21 | +define('_AM_SYSTEM_FILEMANAGER_DIRECTORY', 'Directory'); |
|
22 | +define('_AM_SYSTEM_FILEMANAGER_FILES', 'Files'); |
|
23 | +define('_AM_SYSTEM_FILEMANAGER_GENERATE', 'Force generation'); |
|
24 | +define('_AM_SYSTEM_FILEMANAGER_SELECT_THEME', 'Select theme'); |
|
25 | +define('_AM_SYSTEM_FILEMANAGER_FORCE_GENERATED', 'Force generated'); |
|
26 | +define('_AM_SYSTEM_FILEMANAGER_NAV_FILE_GENERATED', 'Files generated'); |
|
27 | +define('_AM_SYSTEM_FILEMANAGER_NOT_CREATED', 'No files created'); |
|
28 | +define('_AM_SYSTEM_FILEMANAGER_HOME', 'Home'); |
|
29 | +define('_AM_SYSTEM_FILEMANAGER_SAVE', 'Save'); |
|
30 | +define('_AM_SYSTEM_FILEMANAGER_CANCEL', 'Cancel'); |
|
31 | +define('_AM_SYSTEM_FILEMANAGER_RESTORE', 'Restore'); |
|
32 | +define('_AM_SYSTEM_FILEMANAGER_REFRESH', 'Refresh'); |
|
33 | +define('_AM_SYSTEM_FILEMANAGER_UPLOAD', 'Upload file'); |
|
34 | +define('_AM_SYSTEM_FILEMANAGER_UPLOAD_CHOOSE', 'Select file to upload'); |
|
35 | +define('_AM_SYSTEM_FILEMANAGER_ADDDIR', 'Add Directory'); |
|
36 | +define('_AM_SYSTEM_FILEMANAGER_ADDDIR_NAME', 'Choose name of directory'); |
|
37 | +define('_AM_SYSTEM_FILEMANAGER_ADDFILE', 'Add New File'); |
|
38 | +define('_AM_SYSTEM_FILEMANAGER_DELDIR', 'Delete Directory'); |
|
39 | 39 | |
40 | -define('_AM_SYSTEM_FILEMANAGER_RESTORE_ERROR_FILE_EXISTS','Error: File not exist'); |
|
41 | -define('_AM_SYSTEM_FILEMANAGER_RESTORE_ERROR_FILE_DELETE','Error: File not delete'); |
|
42 | -define('_AM_SYSTEM_FILEMANAGER_RESTORE_ERROR_FILE_RENAME','Error: File not rename'); |
|
43 | -define('_AM_SYSTEM_FILEMANAGER_BACK','Back'); |
|
44 | -define('_AM_SYSTEM_FILEMANAGER_DELETE','Delete'); |
|
45 | -define('_AM_SYSTEM_FILEMANAGER_ERROR','Error'); |
|
46 | -define('_AM_SYSTEM_FILEMANAGER_EDIT','Edit of:'); |
|
47 | -define('_AM_SYSTEM_FILEMANAGER_EMPTY_FILE','File empty'); |
|
48 | -define('_AM_SYSTEM_FILEMANAGER_DELDIR_NOTOK','Error: delete this directory'); |
|
49 | -define('_AM_SYSTEM_FILEMANAGER_DELDIR_OK','Directory successfully deleted'); |
|
40 | +define('_AM_SYSTEM_FILEMANAGER_RESTORE_ERROR_FILE_EXISTS', 'Error: File not exist'); |
|
41 | +define('_AM_SYSTEM_FILEMANAGER_RESTORE_ERROR_FILE_DELETE', 'Error: File not delete'); |
|
42 | +define('_AM_SYSTEM_FILEMANAGER_RESTORE_ERROR_FILE_RENAME', 'Error: File not rename'); |
|
43 | +define('_AM_SYSTEM_FILEMANAGER_BACK', 'Back'); |
|
44 | +define('_AM_SYSTEM_FILEMANAGER_DELETE', 'Delete'); |
|
45 | +define('_AM_SYSTEM_FILEMANAGER_ERROR', 'Error'); |
|
46 | +define('_AM_SYSTEM_FILEMANAGER_EDIT', 'Edit of:'); |
|
47 | +define('_AM_SYSTEM_FILEMANAGER_EMPTY_FILE', 'File empty'); |
|
48 | +define('_AM_SYSTEM_FILEMANAGER_DELDIR_NOTOK', 'Error: delete this directory'); |
|
49 | +define('_AM_SYSTEM_FILEMANAGER_DELDIR_OK', 'Directory successfully deleted'); |
|
50 | 50 | |
51 | 51 | // Message |
52 | -define('_AM_SYSTEM_FILEMANAGER_UPLOAD_FILE','Files successfully uploaded'); |
|
53 | -define('_AM_SYSTEM_FILEMANAGER_EXTRACT_FILE','Files successfully extracted'); |
|
54 | -define('_AM_SYSTEM_FILEMANAGER_EXTRACT_ERROR','Files could not be extracted'); |
|
55 | -define('_AM_SYSTEM_FILEMANAGER_DELETE_FILE','Files successfully deleted'); |
|
56 | -define('_AM_SYSTEM_FILEMANAGER_DIR_SUCCESS','Directory successfully created'); |
|
57 | -define('_AM_SYSTEM_FILEMANAGER_DIR_ERROR','Directory could not be created'); |
|
58 | -define('_AM_SYSTEM_FILEMANAGER_DIR_RYSDEL','Are you sure to delete this folder?'); |
|
59 | -define('_AM_SYSTEM_FILEMANAGER_FILE_SUCCESS','File successfully created'); |
|
52 | +define('_AM_SYSTEM_FILEMANAGER_UPLOAD_FILE', 'Files successfully uploaded'); |
|
53 | +define('_AM_SYSTEM_FILEMANAGER_EXTRACT_FILE', 'Files successfully extracted'); |
|
54 | +define('_AM_SYSTEM_FILEMANAGER_EXTRACT_ERROR', 'Files could not be extracted'); |
|
55 | +define('_AM_SYSTEM_FILEMANAGER_DELETE_FILE', 'Files successfully deleted'); |
|
56 | +define('_AM_SYSTEM_FILEMANAGER_DIR_SUCCESS', 'Directory successfully created'); |
|
57 | +define('_AM_SYSTEM_FILEMANAGER_DIR_ERROR', 'Directory could not be created'); |
|
58 | +define('_AM_SYSTEM_FILEMANAGER_DIR_RYSDEL', 'Are you sure to delete this folder?'); |
|
59 | +define('_AM_SYSTEM_FILEMANAGER_FILE_SUCCESS', 'File successfully created'); |
|
60 | 60 | define('_AM_SYSTEM_FILEMANAGER_SUREDEL', 'Are you sure to delete this file %s?'); |
61 | 61 | define('_AM_SYSTEM_FILEMANAGER_DIR_SUREDEL', 'Are you sure you want to delete this directory %s?<br />Warning: all subdirectories and files file will be deleted'); |
62 | 62 | ?> |
@@ -14,6 +14,6 @@ |
||
14 | 14 | * Typical writable permission would be 665 (user read/write, group read/write, other read) |
15 | 15 | * If problems persist, escalate permission to 777 (world read/write/execute) as a last resort. |
16 | 16 | */ |
17 | -if (! defined('XOOPS_INSTALL')) { |
|
17 | +if (!defined('XOOPS_INSTALL')) { |
|
18 | 18 | header('Location: install/index.php'); |
19 | 19 | } |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | { |
31 | 31 | $xoops = Xoops::getInstance(); |
32 | 32 | $db = $xoops->db(); |
33 | - $value = getDbValue($db, 'config', 'conf_id', "`conf_name` = 'ldap_use_TLS' AND `conf_catid` = " . XOOPS_CONF_AUTH); |
|
33 | + $value = getDbValue($db, 'config', 'conf_id', "`conf_name` = 'ldap_use_TLS' AND `conf_catid` = ".XOOPS_CONF_AUTH); |
|
34 | 34 | return (bool)($value); |
35 | 35 | } |
36 | 36 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | ); |
56 | 56 | foreach ($data as $name => $values) { |
57 | 57 | if (!getDbValue($db, 'config', 'conf_id', "`conf_modid`=0 AND `conf_catid`=7 AND `conf_name`='$name'")) { |
58 | - $this->query("INSERT INTO `$table` (conf_modid,conf_catid,conf_name,conf_title,conf_value,conf_desc,conf_formtype,conf_valuetype,conf_order) " . "VALUES ( 0,7,'$name',$values)"); |
|
58 | + $this->query("INSERT INTO `$table` (conf_modid,conf_catid,conf_name,conf_title,conf_value,conf_desc,conf_formtype,conf_valuetype,conf_order) "."VALUES ( 0,7,'$name',$values)"); |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 | return true; |
@@ -20,22 +20,22 @@ |
||
20 | 20 | * @version $Id$ |
21 | 21 | */ |
22 | 22 | |
23 | -define("_THEME_LOGIN","Login"); |
|
24 | -define("_THEME_REGISTER","Register"); |
|
23 | +define("_THEME_LOGIN", "Login"); |
|
24 | +define("_THEME_REGISTER", "Register"); |
|
25 | 25 | |
26 | -define("_THEME_HOME","Home"); |
|
26 | +define("_THEME_HOME", "Home"); |
|
27 | 27 | |
28 | -define("_THEME_WELCOME","Welcome"); |
|
28 | +define("_THEME_WELCOME", "Welcome"); |
|
29 | 29 | |
30 | 30 | |
31 | -define("_THEME_QUICK","Quick links"); |
|
32 | -define("_THEME_ADMIN","Administration"); |
|
33 | -define("_THEME_MYACCOUNT","View account"); |
|
34 | -define("_THEME_EDITPROFILE","Edit account"); |
|
35 | -define("_THEME_NOTIFICATION","Notifications"); |
|
36 | -define("_THEME_PM","Inbox"); |
|
37 | -define("_THEME_LOGOUT","Logout"); |
|
31 | +define("_THEME_QUICK", "Quick links"); |
|
32 | +define("_THEME_ADMIN", "Administration"); |
|
33 | +define("_THEME_MYACCOUNT", "View account"); |
|
34 | +define("_THEME_EDITPROFILE", "Edit account"); |
|
35 | +define("_THEME_NOTIFICATION", "Notifications"); |
|
36 | +define("_THEME_PM", "Inbox"); |
|
37 | +define("_THEME_LOGOUT", "Logout"); |
|
38 | 38 | |
39 | -define("_THEME_BACKTOP","Back to top"); |
|
39 | +define("_THEME_BACKTOP", "Back to top"); |
|
40 | 40 | |
41 | -define("_THEME_LANGUAGE","Choose your language"); |
|
41 | +define("_THEME_LANGUAGE", "Choose your language"); |