@@ -26,7 +26,7 @@ |
||
26 | 26 | function smarty_block_noshortcodes($params, $content, $template, &$repeat) |
27 | 27 | { |
28 | 28 | // only output on the closing tag |
29 | - if(!$repeat){ |
|
29 | + if (!$repeat) { |
|
30 | 30 | if (isset($content)) { |
31 | 31 | $ts = \Xoops\Core\Text\Sanitizer::getInstance(); |
32 | 32 | return $ts->escapeShortCodes($content); |
@@ -7,7 +7,7 @@ discard block |
||
7 | 7 | $shortcodes = \Xoops\Core\Text\Sanitizer::getInstance()->getShortCodes(); |
8 | 8 | $shortcodes->addShortcode( |
9 | 9 | 'nosc42', |
10 | - function ($attributes, $content, $tagName) { |
|
10 | + function($attributes, $content, $tagName) { |
|
11 | 11 | return base64_decode($content); |
12 | 12 | } |
13 | 13 | ); |
@@ -17,13 +17,13 @@ discard block |
||
17 | 17 | |
18 | 18 | $text = preg_replace_callback( |
19 | 19 | $scPattern, |
20 | - function ($innerMatches) { |
|
21 | - return '[nosc42]' . base64_encode($innerMatches[1]) . '[/nosc42]'; |
|
20 | + function($innerMatches) { |
|
21 | + return '[nosc42]'.base64_encode($innerMatches[1]).'[/nosc42]'; |
|
22 | 22 | }, |
23 | 23 | $output |
24 | 24 | ); |
25 | - if ($text===null) { |
|
26 | - trigger_error('preg_last_error=' . preg_last_error(), E_USER_WARNING); |
|
25 | + if ($text === null) { |
|
26 | + trigger_error('preg_last_error='.preg_last_error(), E_USER_WARNING); |
|
27 | 27 | return $output; |
28 | 28 | } |
29 | 29 |
@@ -22,13 +22,13 @@ |
||
22 | 22 | $xoops = Xoops::getInstance(); |
23 | 23 | |
24 | 24 | if (XoopsLoad::fileExists($xoops->path('media/xoops/images/icons/bookmarks/index.html'))) { |
25 | - $url = $xoops->url('media/xoops/images/icons/bookmarks/' . $argStr); |
|
25 | + $url = $xoops->url('media/xoops/images/icons/bookmarks/'.$argStr); |
|
26 | 26 | } else { |
27 | - if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/' . $argStr))) { |
|
28 | - $url = $xoops->url('modules/system/images/icons/default/' . $argStr); |
|
27 | + if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/'.$argStr))) { |
|
28 | + $url = $xoops->url('modules/system/images/icons/default/'.$argStr); |
|
29 | 29 | } else { |
30 | 30 | $url = $xoops->url('modules/system/images/icons/default/xoops/xoops.png'); |
31 | 31 | } |
32 | 32 | } |
33 | - return "\necho '" . addslashes($url) . "';"; |
|
33 | + return "\necho '".addslashes($url)."';"; |
|
34 | 34 | } |
@@ -24,13 +24,13 @@ |
||
24 | 24 | $ico = trim($arg, " '\"\t\n\r\0\x0B"); |
25 | 25 | |
26 | 26 | if (XoopsLoad::fileExists($xoops->path('media/xoops/images/icons/16/index.html'))) { |
27 | - $url = $xoops->url('media/xoops/images/icons/16/' . $ico); |
|
27 | + $url = $xoops->url('media/xoops/images/icons/16/'.$ico); |
|
28 | 28 | } else { |
29 | - if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/' . $ico))) { |
|
30 | - $url = $xoops->url('modules/system/images/icons/default/' . $ico); |
|
29 | + if (XoopsLoad::fileExists($xoops->path('modules/system/images/icons/default/'.$ico))) { |
|
30 | + $url = $xoops->url('modules/system/images/icons/default/'.$ico); |
|
31 | 31 | } else { |
32 | 32 | $url = $xoops->url('modules/system/images/icons/default/xoops/xoops2.png'); |
33 | 33 | } |
34 | 34 | } |
35 | - return "<?php echo '" . addslashes($url) . "'; ?>"; |
|
35 | + return "<?php echo '".addslashes($url)."'; ?>"; |
|
36 | 36 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $urlstr = "$urlstr&{$var['name']}={$var['value']}"; |
74 | 74 | } |
75 | 75 | if (strlen($urlstr) > 0) { |
76 | - $urlstr = '?' . substr($urlstr, 1); |
|
76 | + $urlstr = '?'.substr($urlstr, 1); |
|
77 | 77 | } |
78 | 78 | } |
79 | 79 | |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | } |
95 | 95 | // Now, return entire link URL :-) |
96 | 96 | if (empty($module)) { |
97 | - echo $xoops->url($page . $urlstr); |
|
97 | + echo $xoops->url($page.$urlstr); |
|
98 | 98 | } else { |
99 | - echo $xoops->url("modules/{$module}/{$page}" . $urlstr); |
|
99 | + echo $xoops->url("modules/{$module}/{$page}".$urlstr); |
|
100 | 100 | } |
101 | 101 | } |
@@ -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'])) { |