• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

XOOPS Cube Legacy base repository


Commit MetaInfo

Révision27f18238ca01614e514f17f028bcfe139fbd0342 (tree)
l'heure2013-04-12 16:53:58
Auteurkilica <kilica.hikawa@gmai...>
Commiterkilica

Message de Log

#44 refactoring for user module

Change Summary

Modification

--- a/html/modules/user/admin/forms/UserFilterForm.class.php
+++ b/html/modules/user/admin/forms/UserFilterForm.class.php
@@ -107,39 +107,39 @@ class User_UserFilterForm extends User_AbstractFilterForm
107107 $option_field = $root->mContext->mRequest->getRequest('option_field');
108108 $search = $root->mContext->mRequest->getRequest('search');
109109
110- if (isset($_REQUEST['uid'])) {
111- $this->mNavi->addExtra('uid', xoops_getrequest('uid'));
112- $this->_mCriteria->add(new Criteria('uid', xoops_getrequest('uid')));
110+ if (isset($uid)) {
111+ $this->mNavi->addExtra('uid', $uid);
112+ $this->_mCriteria->add(new Criteria('uid', $uid));
113113 }
114114
115- if (isset($_REQUEST['email'])) {
116- $this->mNavi->addExtra('email', xoops_getrequest('email'));
117- $this->_mCriteria->add(new Criteria('email', xoops_getrequest('email')));
115+ if (isset($email)) {
116+ $this->mNavi->addExtra('email', $email);
117+ $this->_mCriteria->add(new Criteria('email', $email));
118118 }
119119
120- if (isset($_REQUEST['attachsig'])) {
121- $this->mNavi->addExtra('attachsig', xoops_getrequest('attachsig'));
122- $this->_mCriteria->add(new Criteria('attachsig', xoops_getrequest('attachsig')));
120+ if (isset($attachsig)) {
121+ $this->mNavi->addExtra('attachsig', $attachsig);
122+ $this->_mCriteria->add(new Criteria('attachsig', $attachsig));
123123 }
124124
125- if (isset($_REQUEST['rank'])) {
126- $this->mNavi->addExtra('rank', xoops_getrequest('rank'));
127- $this->_mCriteria->add(new Criteria('rank', xoops_getrequest('rank')));
125+ if (isset($rank)) {
126+ $this->mNavi->addExtra('rank', $rank);
127+ $this->_mCriteria->add(new Criteria('rank', $rank));
128128 }
129129
130- if (isset($_REQUEST['level'])) {
131- $this->mNavi->addExtra('level', xoops_getrequest('level'));
132- $this->_mCriteria->add(new Criteria('level', xoops_getrequest('level')));
130+ if (isset($level)) {
131+ $this->mNavi->addExtra('level', $level);
132+ $this->_mCriteria->add(new Criteria('level', $level));
133133 }
134134
135- if (isset($_REQUEST['timezone_offset'])) {
136- $this->mNavi->addExtra('timezone_offset', xoops_getrequest('timezone_offset'));
137- $this->_mCriteria->add(new Criteria('timezone_offset', xoops_getrequest('timezone_offset')));
135+ if (isset($timezone_offset)) {
136+ $this->mNavi->addExtra('timezone_offset', $timezone_offset);
137+ $this->_mCriteria->add(new Criteria('timezone_offset', $timezone_offset));
138138 }
139139
140- if (isset($_REQUEST['user_mailok'])) {
141- $this->mNavi->addExtra('user_mailok', xoops_getrequest('user_mailok'));
142- $this->_mCriteria->add(new Criteria('user_mailok', xoops_getrequest('user_mailok')));
140+ if (isset($user_mailok)) {
141+ $this->mNavi->addExtra('user_mailok', $user_mailok);
142+ $this->_mCriteria->add(new Criteria('user_mailok', $user_mailok));
143143 }
144144
145145 //wanikoo