@@ -61,7 +61,7 @@ |
||
61 | 61 | $keyName = '', |
62 | 62 | $identifierName = '' |
63 | 63 | ) { |
64 | - if ($db===null) { |
|
64 | + if ($db === null) { |
|
65 | 65 | $this->db2 = \Xoops\Core\Database\Factory::getConnection(); |
66 | 66 | $db = $this->db2; |
67 | 67 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @version $Id$ |
23 | 23 | */ |
24 | 24 | |
25 | -include __DIR__ . '/mainfile.php'; |
|
25 | +include __DIR__.'/mainfile.php'; |
|
26 | 26 | $xoops = Xoops::getInstance(); |
27 | 27 | $xoops_url = \XoopsBaseConfig::get('url'); |
28 | 28 | $xoops->events()->triggerEvent('core.pmlite.start'); |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | $msg_id = isset($_GET['msg_id']) ? (int)($_GET['msg_id']) : 0; |
36 | 36 | |
37 | 37 | if (empty($_GET['refresh']) && isset($_POST['op']) && $_POST['op'] !== "submit") { |
38 | - $jump = "pmlite.php?refresh=" . time(); |
|
38 | + $jump = "pmlite.php?refresh=".time(); |
|
39 | 39 | if ($send == 1) { |
40 | 40 | $jump .= "&send={$send}"; |
41 | 41 | } else { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | } |
49 | 49 | } |
50 | 50 | } |
51 | - header('location: ' . $jump); |
|
51 | + header('location: '.$jump); |
|
52 | 52 | exit(); |
53 | 53 | } |
54 | 54 | |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | $tpl = new XoopsTpl(); |
65 | 65 | if ($count != 1) { |
66 | 66 | $error_message = XoopsLocale::E_SELECTED_USER_DOES_NOT_EXIST; |
67 | - $error_message .= "<br />" . XoopsLocale::E_GO_BACK_AND_TRY_AGAIN; |
|
68 | - $error_message .= "<br />[ <a href='javascript:history.go(-1)'>" . XoopsLocale::GO_BACK . "</a> ]"; |
|
67 | + $error_message .= "<br />".XoopsLocale::E_GO_BACK_AND_TRY_AGAIN; |
|
68 | + $error_message .= "<br />[ <a href='javascript:history.go(-1)'>".XoopsLocale::GO_BACK."</a> ]"; |
|
69 | 69 | $tpl->assign('error_message', $error_message); |
70 | 70 | } else { |
71 | 71 | if ($xoops->security()->check()) { |
@@ -81,19 +81,19 @@ discard block |
||
81 | 81 | $pm->setVar("from_userid", $xoops->user->getVar("uid")); |
82 | 82 | if (!$pm_handler->insert($pm)) { |
83 | 83 | $error_message = $pm->getHtmlErrors(); |
84 | - $error_message .= "<br /><a href='javascript:history.go(-1)'>" . XoopsLocale::GO_BACK . "</a>"; |
|
84 | + $error_message .= "<br /><a href='javascript:history.go(-1)'>".XoopsLocale::GO_BACK."</a>"; |
|
85 | 85 | $tpl->assign('error_message', $error_message); |
86 | 86 | } else { |
87 | 87 | // @todo: Send notification email if user has selected this in the profile |
88 | 88 | $info_message = XoopsLocale::S_MESSAGED_HAS_BEEN_POSTED; |
89 | 89 | $info_message .= "<br />"; |
90 | - $info_message .= "<br /><a href=\"javascript:window.opener.location='" . $xoops_url . "/viewpmsg.php';window.close();\">" . XoopsLocale::CLICK_HERE_TO_VIEW_YOU_PRIVATE_MESSAGES . "</a>"; |
|
91 | - $info_message .= "<br /><br /><a href=\"javascript:window.close();\">" . XoopsLocale::OR_CLICK_HERE_TO_CLOSE_WINDOW . "</a>"; |
|
90 | + $info_message .= "<br /><a href=\"javascript:window.opener.location='".$xoops_url."/viewpmsg.php';window.close();\">".XoopsLocale::CLICK_HERE_TO_VIEW_YOU_PRIVATE_MESSAGES."</a>"; |
|
91 | + $info_message .= "<br /><br /><a href=\"javascript:window.close();\">".XoopsLocale::OR_CLICK_HERE_TO_CLOSE_WINDOW."</a>"; |
|
92 | 92 | $tpl->assign('info_message', $info_message); |
93 | 93 | } |
94 | 94 | } else { |
95 | 95 | $error_message = implode('<br />', $xoops->security()->getErrors()); |
96 | - $error_message .= "<br /><a href=\"javascript:window.close();\">" . XoopsLocale::OR_CLICK_HERE_TO_CLOSE_WINDOW . "</a>"; |
|
96 | + $error_message .= "<br /><a href=\"javascript:window.close();\">".XoopsLocale::OR_CLICK_HERE_TO_CLOSE_WINDOW."</a>"; |
|
97 | 97 | $tpl->assign('error_message', $error_message); |
98 | 98 | } |
99 | 99 | } |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $pm_uname = XoopsUser::getUnameFromId($pm->getVar("from_userid")); |
111 | 111 | $message = "[quote]\n"; |
112 | 112 | $message .= sprintf(XoopsLocale::CF_WROTE, $pm_uname); |
113 | - $message .= "\n" . $pm->getVar("msg_text", "E") . "\n[/quote]"; |
|
113 | + $message .= "\n".$pm->getVar("msg_text", "E")."\n[/quote]"; |
|
114 | 114 | } else { |
115 | 115 | unset($pm); |
116 | 116 | $reply = 0; |
@@ -123,8 +123,8 @@ discard block |
||
123 | 123 | |
124 | 124 | if ($reply == 1) { |
125 | 125 | $subject = $pm->getVar('subject', 'E'); |
126 | - if (!preg_match("/^" . XoopsLocale::C_RE . "/i", $subject)) { |
|
127 | - $subject = XoopsLocale::C_RE . ' ' . $subject; |
|
126 | + if (!preg_match("/^".XoopsLocale::C_RE."/i", $subject)) { |
|
127 | + $subject = XoopsLocale::C_RE.' '.$subject; |
|
128 | 128 | } |
129 | 129 | $form->addElement(new Xoops\Form\Label(XoopsLocale::C_TO, $pm_uname)); |
130 | 130 | $form->addElement(new Xoops\Form\Hidden('to_userid', $pm->getVar("from_userid"))); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * @version $Id$ |
22 | 22 | */ |
23 | 23 | |
24 | -include __DIR__ . '/mainfile.php'; |
|
24 | +include __DIR__.'/mainfile.php'; |
|
25 | 25 | $xoops = Xoops::getInstance(); |
26 | 26 | $xoops->events()->triggerEvent('core.lostpass.start'); |
27 | 27 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $xoopsMailer->setTemplate("lostpass2.tpl"); |
55 | 55 | $xoopsMailer->assign("SITENAME", $xoops->getConfig('sitename')); |
56 | 56 | $xoopsMailer->assign("ADMINMAIL", $xoops->getConfig('adminmail')); |
57 | - $xoopsMailer->assign("SITEURL", $xoops_url . "/"); |
|
57 | + $xoopsMailer->assign("SITEURL", $xoops_url."/"); |
|
58 | 58 | $xoopsMailer->assign("IP", $_SERVER['REMOTE_ADDR']); |
59 | 59 | $xoopsMailer->assign("NEWPWD", $newpass); |
60 | 60 | $xoopsMailer->setToUsers($userObject); |
@@ -79,9 +79,9 @@ discard block |
||
79 | 79 | $xoopsMailer->setTemplate("lostpass1.tpl"); |
80 | 80 | $xoopsMailer->assign("SITENAME", $xoops->getConfig('sitename')); |
81 | 81 | $xoopsMailer->assign("ADMINMAIL", $xoops->getConfig('adminmail')); |
82 | - $xoopsMailer->assign("SITEURL", $xoops_url . "/"); |
|
82 | + $xoopsMailer->assign("SITEURL", $xoops_url."/"); |
|
83 | 83 | $xoopsMailer->assign("IP", $_SERVER['REMOTE_ADDR']); |
84 | - $xoopsMailer->assign("NEWPWD_LINK", $xoops_url . "/lostpass.php?email=" . $email . "&code=" . $areyou); |
|
84 | + $xoopsMailer->assign("NEWPWD_LINK", $xoops_url."/lostpass.php?email=".$email."&code=".$areyou); |
|
85 | 85 | $xoopsMailer->setToUsers($userObject); |
86 | 86 | $xoopsMailer->setFromEmail($xoops->getConfig('adminmail')); |
87 | 87 | $xoopsMailer->setFromName($xoops->getConfig('sitename')); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @author Kazumi Ono <[email protected]> |
26 | 26 | */ |
27 | 27 | |
28 | -include __DIR__ . '/mainfile.php'; |
|
28 | +include __DIR__.'/mainfile.php'; |
|
29 | 29 | |
30 | 30 | $xoops = Xoops::getInstance(); |
31 | 31 | $xoops_url = \XoopsBaseConfig::get('url'); |
@@ -58,12 +58,12 @@ discard block |
||
58 | 58 | $xoops->theme()->addMeta( |
59 | 59 | 'meta', |
60 | 60 | 'keywords', |
61 | - XoopsLocale::USERNAME . ", " . XoopsLocale::PASSWORD . ", " . XoopsLocale::Q_LOST_YOUR_PASSWORD |
|
61 | + XoopsLocale::USERNAME.", ".XoopsLocale::PASSWORD.", ".XoopsLocale::Q_LOST_YOUR_PASSWORD |
|
62 | 62 | ); |
63 | 63 | $xoops->theme()->addMeta( |
64 | 64 | 'meta', |
65 | 65 | 'description', |
66 | - XoopsLocale::Q_LOST_YOUR_PASSWORD . " " . XoopsLocale::NO_PROBLEM_ENTER_EMAIL_WE_HAVE_ON_FILE |
|
66 | + XoopsLocale::Q_LOST_YOUR_PASSWORD." ".XoopsLocale::NO_PROBLEM_ENTER_EMAIL_WE_HAVE_ON_FILE |
|
67 | 67 | ); |
68 | 68 | $xoops->tpl()->assign('lang_login', XoopsLocale::A_LOGIN); |
69 | 69 | $xoops->tpl()->assign('lang_username', XoopsLocale::C_USERNAME); |
@@ -91,11 +91,11 @@ discard block |
||
91 | 91 | } |
92 | 92 | } |
93 | 93 | if (!$isExternal) { |
94 | - header('Location: ' . $redirect); |
|
94 | + header('Location: '.$redirect); |
|
95 | 95 | exit(); |
96 | 96 | } |
97 | 97 | } |
98 | - header('Location: ' . $xoops_url . '/userinfo.php?uid=' . $xoopsUser->getVar('uid')); |
|
98 | + header('Location: '.$xoops_url.'/userinfo.php?uid='.$xoopsUser->getVar('uid')); |
|
99 | 99 | exit(); |
100 | 100 | } |
101 | 101 | |
@@ -106,8 +106,8 @@ discard block |
||
106 | 106 | if ($xoops->isUser()) { |
107 | 107 | $xoops->getHandlerOnline()->destroy($xoops->user->getVar('uid')); |
108 | 108 | } |
109 | - $message = XoopsLocale::S_YOU_ARE_NOW_LOGGED_OUT . '<br />' . XoopsLocale::S_THANK_YOU_FOR_VISITING_OUR_SITE; |
|
110 | - $xoops->redirect($xoops_url . '/', 1, $message); |
|
109 | + $message = XoopsLocale::S_YOU_ARE_NOW_LOGGED_OUT.'<br />'.XoopsLocale::S_THANK_YOU_FOR_VISITING_OUR_SITE; |
|
110 | + $xoops->redirect($xoops_url.'/', 1, $message); |
|
111 | 111 | } |
112 | 112 | |
113 | 113 | if ($op === 'delete') { |
@@ -120,12 +120,12 @@ discard block |
||
120 | 120 | // users in the webmasters group may not be deleted |
121 | 121 | $xoops->redirect('user.php', 5, XoopsLocale::E_USER_IN_WEBMASTER_GROUP_CANNOT_BE_REMOVED); |
122 | 122 | } |
123 | - if (!(bool) $ok) { |
|
123 | + if (!(bool)$ok) { |
|
124 | 124 | $xoops->header(); |
125 | 125 | echo $xoops->confirm( |
126 | 126 | array('op' => 'delete', 'ok' => 1), |
127 | 127 | 'user.php', |
128 | - XoopsLocale::Q_ARE_YOU_SURE_TO_DELETE_ACCOUNT . '<br/>' . XoopsLocale::THIS_WILL_REMOVE_ALL_YOUR_INFO |
|
128 | + XoopsLocale::Q_ARE_YOU_SURE_TO_DELETE_ACCOUNT.'<br/>'.XoopsLocale::THIS_WILL_REMOVE_ALL_YOUR_INFO |
|
129 | 129 | ); |
130 | 130 | $xoops->footer(); |
131 | 131 | } else { |
@@ -18,11 +18,11 @@ |
||
18 | 18 | $usergroups = $GLOBALS['xoopsUser']->getGroups(); |
19 | 19 | $result_upload = array_intersect($usergroups, $allowed_groups_upload); |
20 | 20 | if ($result_upload || $result_upload!=null) { |
21 | - $upload_files=true; |
|
21 | + $upload_files=true; |
|
22 | 22 | } |
23 | - $result_createfolder = array_intersect($usergroups, $allowed_groups_createfolder); |
|
24 | - if ($result_createfolder || $result_createfolder!=null) { |
|
25 | - $create_folders=true; |
|
23 | + $result_createfolder = array_intersect($usergroups, $allowed_groups_createfolder); |
|
24 | + if ($result_createfolder || $result_createfolder!=null) { |
|
25 | + $create_folders=true; |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | // XOOPS |
@@ -4,7 +4,7 @@ discard block |
||
4 | 4 | // YOU CAN COPY AND CHANGE THESE VARIABLES IN FOLDERS config.php FILES |
5 | 5 | //------------------------------------------------------------------------------ |
6 | 6 | // $image_max_width=0; |
7 | -$image_max_width=1000; |
|
7 | +$image_max_width = 1000; |
|
8 | 8 | |
9 | 9 | // XOOPS |
10 | 10 | global $xoopsUser; |
@@ -12,17 +12,17 @@ discard block |
||
12 | 12 | // 2 : members |
13 | 13 | // 3 : anonymous |
14 | 14 | // 4 : your new group |
15 | -$allowed_groups_upload=array(1,2); // id des groupes autorisés en upload |
|
16 | -$allowed_groups_createfolder=array(1); // id des groupes autorisés create folder |
|
15 | +$allowed_groups_upload = array(1, 2); // id des groupes autorisés en upload |
|
16 | +$allowed_groups_createfolder = array(1); // id des groupes autorisés create folder |
|
17 | 17 | if ($xoopsUser) { |
18 | 18 | $usergroups = $GLOBALS['xoopsUser']->getGroups(); |
19 | 19 | $result_upload = array_intersect($usergroups, $allowed_groups_upload); |
20 | - if ($result_upload || $result_upload!=null) { |
|
21 | - $upload_files=true; |
|
20 | + if ($result_upload || $result_upload != null) { |
|
21 | + $upload_files = true; |
|
22 | 22 | } |
23 | 23 | $result_createfolder = array_intersect($usergroups, $allowed_groups_createfolder); |
24 | - if ($result_createfolder || $result_createfolder!=null) { |
|
25 | - $create_folders=true; |
|
24 | + if ($result_createfolder || $result_createfolder != null) { |
|
25 | + $create_folders = true; |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | // XOOPS |
@@ -21,14 +21,14 @@ discard block |
||
21 | 21 | * @version $Id$ |
22 | 22 | */ |
23 | 23 | |
24 | -include __DIR__ . '/mainfile.php'; |
|
24 | +include __DIR__.'/mainfile.php'; |
|
25 | 25 | |
26 | 26 | $xoops = Xoops::getInstance(); |
27 | 27 | $xoops->events()->triggerEvent('core.viewpmsg.start'); |
28 | 28 | |
29 | 29 | if (!$xoops->isUser()) { |
30 | - $errormessage = XoopsLocale::E_YOU_ARE_NOT_REGISTERED . "<br />" |
|
31 | - . XoopsLocale::E_REGISTER_FIRST_TO_SEND_PRIVATE_MESSAGES . ""; |
|
30 | + $errormessage = XoopsLocale::E_YOU_ARE_NOT_REGISTERED."<br />" |
|
31 | + . XoopsLocale::E_REGISTER_FIRST_TO_SEND_PRIVATE_MESSAGES.""; |
|
32 | 32 | $xoops->redirect("user.php", 2, $errormessage); |
33 | 33 | } else { |
34 | 34 | $pm_handler = $xoops->getHandlerPrivateMessage(); |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | $clean_msg_id = array_map("intval", $clean_msg_id); |
55 | 55 | } |
56 | 56 | $size = count($clean_msg_id); |
57 | - $msg =& $clean_msg_id; |
|
57 | + $msg = & $clean_msg_id; |
|
58 | 58 | for ($i = 0; $i < $size; ++$i) { |
59 | 59 | $pm = $pm_handler->get((int)($msg[$i])); |
60 | 60 | if ($pm->getVar('to_userid') == $xoops->user->getVar('uid')) { |
@@ -143,7 +143,7 @@ |
||
143 | 143 | */ |
144 | 144 | public static function getLangList() |
145 | 145 | { |
146 | - $lang_list = XoopsLists::getDirListAsArray(\XoopsBaseConfig::get('root-path') . '/language/'); |
|
146 | + $lang_list = XoopsLists::getDirListAsArray(\XoopsBaseConfig::get('root-path').'/language/'); |
|
147 | 147 | |
148 | 148 | return $lang_list; |
149 | 149 | } |
@@ -156,7 +156,7 @@ |
||
156 | 156 | if (!isset($this->_tempArr[$name])) { |
157 | 157 | $this->_tempArr[$name] = $value; |
158 | 158 | } else { |
159 | - $this->_tempArr[$name] .= $delim . $value; |
|
159 | + $this->_tempArr[$name] .= $delim.$value; |
|
160 | 160 | } |
161 | 161 | } |
162 | 162 |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | if (!isset($this->tempArr[$name])) { |
134 | 134 | $this->tempArr[$name] = $value; |
135 | 135 | } else { |
136 | - $this->tempArr[$name] .= $delim . $value; |
|
136 | + $this->tempArr[$name] .= $delim.$value; |
|
137 | 137 | } |
138 | 138 | } |
139 | 139 | |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | */ |
183 | 183 | public function handleCharacterData(SaxParser $parser, &$data) |
184 | 184 | { |
185 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
185 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
186 | 186 | switch ($parser->getParentTag()) { |
187 | 187 | case 'themeset': |
188 | 188 | $parser->setThemeSetData('date', $data); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | */ |
214 | 214 | public function handleBeginElement(SaxParser $parser, &$attributes) |
215 | 215 | { |
216 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
216 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
217 | 217 | $parser->resetTempArr(); |
218 | 218 | } |
219 | 219 | |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | */ |
224 | 224 | public function handleEndElement(SaxParser $parser) |
225 | 225 | { |
226 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
226 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
227 | 227 | //todo where does this method come from?? |
228 | 228 | $parser->setCreditsData($parser->getTempArr()); |
229 | 229 | } |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | */ |
250 | 250 | public function handleCharacterData(SaxParser $parser, &$data) |
251 | 251 | { |
252 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
252 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
253 | 253 | switch ($parser->getParentTag()) { |
254 | 254 | case 'template': |
255 | 255 | $parser->setTempArr('description', $data); |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | */ |
284 | 284 | public function handleCharacterData(SaxParser $parser, &$data) |
285 | 285 | { |
286 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
286 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
287 | 287 | switch ($parser->getParentTag()) { |
288 | 288 | case 'themeset': |
289 | 289 | $parser->setThemeSetData('generator', $data); |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | */ |
313 | 313 | public function handleCharacterData(SaxParser $parser, &$data) |
314 | 314 | { |
315 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
315 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
316 | 316 | switch ($parser->getParentTag()) { |
317 | 317 | case 'themeset': |
318 | 318 | $parser->setThemeSetData('name', $data); |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | */ |
347 | 347 | public function handleCharacterData(SaxParser $parser, &$data) |
348 | 348 | { |
349 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
349 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
350 | 350 | switch ($parser->getParentTag()) { |
351 | 351 | case 'author': |
352 | 352 | $parser->setTempArr('email', $data); |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | */ |
378 | 378 | public function handleCharacterData(SaxParser $parser, &$data) |
379 | 379 | { |
380 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
380 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
381 | 381 | switch ($parser->getParentTag()) { |
382 | 382 | case 'author': |
383 | 383 | $parser->setTempArr('link', $data); |
@@ -408,7 +408,7 @@ discard block |
||
408 | 408 | */ |
409 | 409 | public function handleBeginElement(SaxParser $parser, &$attributes) |
410 | 410 | { |
411 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
411 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
412 | 412 | $parser->resetTempArr(); |
413 | 413 | if (isset($attributes['name'])) { |
414 | 414 | $parser->setTempArr('name', $attributes['name']); |
@@ -421,7 +421,7 @@ discard block |
||
421 | 421 | */ |
422 | 422 | public function handleEndElement(SaxParser $parser) |
423 | 423 | { |
424 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
424 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
425 | 425 | $value = $parser->getTempArr(); |
426 | 426 | $parser->setTemplatesData($value); |
427 | 427 | } |
@@ -447,7 +447,7 @@ discard block |
||
447 | 447 | */ |
448 | 448 | public function handleBeginElement(SaxParser $parser, &$attributes) |
449 | 449 | { |
450 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
450 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
451 | 451 | $parser->resetTempArr(); |
452 | 452 | if (isset($attributes['name'])) { |
453 | 453 | $parser->setTempArr('name', $attributes['name']); |
@@ -460,7 +460,7 @@ discard block |
||
460 | 460 | */ |
461 | 461 | public function handleEndElement(SaxParser $parser) |
462 | 462 | { |
463 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
463 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
464 | 464 | $value = $parser->getTempArr(); |
465 | 465 | $parser->setImagesData($value); |
466 | 466 | } |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | */ |
487 | 487 | public function handleCharacterData(SaxParser $parser, &$data) |
488 | 488 | { |
489 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
489 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
490 | 490 | switch ($parser->getParentTag()) { |
491 | 491 | case 'template': |
492 | 492 | case 'image': |
@@ -518,7 +518,7 @@ discard block |
||
518 | 518 | */ |
519 | 519 | public function handleCharacterData(SaxParser $parser, &$data) |
520 | 520 | { |
521 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
521 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
522 | 522 | switch ($parser->getParentTag()) { |
523 | 523 | case 'template': |
524 | 524 | $parser->setTempArr('type', $data); |
@@ -549,7 +549,7 @@ discard block |
||
549 | 549 | */ |
550 | 550 | public function handleCharacterData(SaxParser $parser, &$data) |
551 | 551 | { |
552 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
552 | + if (!is_a($parser, 'XoopsThemeSetParser')) return; |
|
553 | 553 | switch ($parser->getParentTag()) { |
554 | 554 | case 'image': |
555 | 555 | $parser->setTempArr('tag', $data); |
@@ -182,7 +182,9 @@ discard block |
||
182 | 182 | */ |
183 | 183 | public function handleCharacterData(SaxParser $parser, &$data) |
184 | 184 | { |
185 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
185 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
186 | + return; |
|
187 | + } |
|
186 | 188 | switch ($parser->getParentTag()) { |
187 | 189 | case 'themeset': |
188 | 190 | $parser->setThemeSetData('date', $data); |
@@ -213,7 +215,9 @@ discard block |
||
213 | 215 | */ |
214 | 216 | public function handleBeginElement(SaxParser $parser, &$attributes) |
215 | 217 | { |
216 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
218 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
219 | + return; |
|
220 | + } |
|
217 | 221 | $parser->resetTempArr(); |
218 | 222 | } |
219 | 223 | |
@@ -223,7 +227,9 @@ discard block |
||
223 | 227 | */ |
224 | 228 | public function handleEndElement(SaxParser $parser) |
225 | 229 | { |
226 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
230 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
231 | + return; |
|
232 | + } |
|
227 | 233 | //todo where does this method come from?? |
228 | 234 | $parser->setCreditsData($parser->getTempArr()); |
229 | 235 | } |
@@ -249,7 +255,9 @@ discard block |
||
249 | 255 | */ |
250 | 256 | public function handleCharacterData(SaxParser $parser, &$data) |
251 | 257 | { |
252 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
258 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
259 | + return; |
|
260 | + } |
|
253 | 261 | switch ($parser->getParentTag()) { |
254 | 262 | case 'template': |
255 | 263 | $parser->setTempArr('description', $data); |
@@ -283,7 +291,9 @@ discard block |
||
283 | 291 | */ |
284 | 292 | public function handleCharacterData(SaxParser $parser, &$data) |
285 | 293 | { |
286 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
294 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
295 | + return; |
|
296 | + } |
|
287 | 297 | switch ($parser->getParentTag()) { |
288 | 298 | case 'themeset': |
289 | 299 | $parser->setThemeSetData('generator', $data); |
@@ -312,7 +322,9 @@ discard block |
||
312 | 322 | */ |
313 | 323 | public function handleCharacterData(SaxParser $parser, &$data) |
314 | 324 | { |
315 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
325 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
326 | + return; |
|
327 | + } |
|
316 | 328 | switch ($parser->getParentTag()) { |
317 | 329 | case 'themeset': |
318 | 330 | $parser->setThemeSetData('name', $data); |
@@ -346,7 +358,9 @@ discard block |
||
346 | 358 | */ |
347 | 359 | public function handleCharacterData(SaxParser $parser, &$data) |
348 | 360 | { |
349 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
361 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
362 | + return; |
|
363 | + } |
|
350 | 364 | switch ($parser->getParentTag()) { |
351 | 365 | case 'author': |
352 | 366 | $parser->setTempArr('email', $data); |
@@ -377,7 +391,9 @@ discard block |
||
377 | 391 | */ |
378 | 392 | public function handleCharacterData(SaxParser $parser, &$data) |
379 | 393 | { |
380 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
394 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
395 | + return; |
|
396 | + } |
|
381 | 397 | switch ($parser->getParentTag()) { |
382 | 398 | case 'author': |
383 | 399 | $parser->setTempArr('link', $data); |
@@ -408,7 +424,9 @@ discard block |
||
408 | 424 | */ |
409 | 425 | public function handleBeginElement(SaxParser $parser, &$attributes) |
410 | 426 | { |
411 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
427 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
428 | + return; |
|
429 | + } |
|
412 | 430 | $parser->resetTempArr(); |
413 | 431 | if (isset($attributes['name'])) { |
414 | 432 | $parser->setTempArr('name', $attributes['name']); |
@@ -421,7 +439,9 @@ discard block |
||
421 | 439 | */ |
422 | 440 | public function handleEndElement(SaxParser $parser) |
423 | 441 | { |
424 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
442 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
443 | + return; |
|
444 | + } |
|
425 | 445 | $value = $parser->getTempArr(); |
426 | 446 | $parser->setTemplatesData($value); |
427 | 447 | } |
@@ -447,7 +467,9 @@ discard block |
||
447 | 467 | */ |
448 | 468 | public function handleBeginElement(SaxParser $parser, &$attributes) |
449 | 469 | { |
450 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
470 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
471 | + return; |
|
472 | + } |
|
451 | 473 | $parser->resetTempArr(); |
452 | 474 | if (isset($attributes['name'])) { |
453 | 475 | $parser->setTempArr('name', $attributes['name']); |
@@ -460,7 +482,9 @@ discard block |
||
460 | 482 | */ |
461 | 483 | public function handleEndElement(SaxParser $parser) |
462 | 484 | { |
463 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
485 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
486 | + return; |
|
487 | + } |
|
464 | 488 | $value = $parser->getTempArr(); |
465 | 489 | $parser->setImagesData($value); |
466 | 490 | } |
@@ -486,7 +510,9 @@ discard block |
||
486 | 510 | */ |
487 | 511 | public function handleCharacterData(SaxParser $parser, &$data) |
488 | 512 | { |
489 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
513 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
514 | + return; |
|
515 | + } |
|
490 | 516 | switch ($parser->getParentTag()) { |
491 | 517 | case 'template': |
492 | 518 | case 'image': |
@@ -518,7 +544,9 @@ discard block |
||
518 | 544 | */ |
519 | 545 | public function handleCharacterData(SaxParser $parser, &$data) |
520 | 546 | { |
521 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
547 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
548 | + return; |
|
549 | + } |
|
522 | 550 | switch ($parser->getParentTag()) { |
523 | 551 | case 'template': |
524 | 552 | $parser->setTempArr('type', $data); |
@@ -549,7 +577,9 @@ discard block |
||
549 | 577 | */ |
550 | 578 | public function handleCharacterData(SaxParser $parser, &$data) |
551 | 579 | { |
552 | - if (!is_a($parser,'XoopsThemeSetParser')) return; |
|
580 | + if (!is_a($parser,'XoopsThemeSetParser')) { |
|
581 | + return; |
|
582 | + } |
|
553 | 583 | switch ($parser->getParentTag()) { |
554 | 584 | case 'image': |
555 | 585 | $parser->setTempArr('tag', $data); |