diff options
author | Antonio Gallo <tonicucoz@gmail.com> | 2010-10-30 16:17:50 +0000 |
---|---|---|
committer | Antonio Gallo <tonicucoz@gmail.com> | 2010-10-30 16:17:50 +0000 |
commit | 19272c7c88f5df7fbba47f120efe440b5a472315 (patch) | |
tree | f083c49d68644ca2aea0175c886e94de4e6eb18c /h-source/Application/Controllers/UsersController.php | |
parent | 4641de870cfa9c5d4c41a94328a8fb1f4adfdc78 (diff) |
improved users history - part 1
Diffstat (limited to 'h-source/Application/Controllers/UsersController.php')
-rw-r--r-- | h-source/Application/Controllers/UsersController.php | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/h-source/Application/Controllers/UsersController.php b/h-source/Application/Controllers/UsersController.php index db30483..cfa5170 100644 --- a/h-source/Application/Controllers/UsersController.php +++ b/h-source/Application/Controllers/UsersController.php @@ -361,68 +361,5 @@ class UsersController extends BaseController $this->redirect('users/login/'.$this->lang,0); } } - - public function meet($lang = 'en', $user = '') - { - $clean['user'] = ctype_alnum($user) ? sanitizeAll($user) : ''; - $data['title'] = "meet ".$clean['user']." - ".Website::$generalName; - - if (strcmp($clean['user'],'') !== 0) - { - $this->shift(2); - - $res = $this->m['UsersModel']->db->select('regusers','has_confirmed,deleted,username','username="'.$clean['user'].'" and has_confirmed=0 and deleted="no"'); -// echo $this->m['UsersModel']->getQuery(); - if (count($res) > 0) - { - $whereArray = array( - 'username' => $clean['user'], - 'has_confirmed' => 0, - 'deleted' => 'no' - ); - - $data['table'] = $this->m['ProfileModel']->select('regusers.e_mail,regusers.username,profile.*')->from('regusers inner join profile')->on('regusers.id_user = profile.created_by')->where($whereArray)->send(); - - // echo $this->m['HardwareModel']->getQuery(); - - $data['meet_username'] = $res[0]['regusers']['username']; - - $this->append($data); - $this->load('meet'); - $this->right(); - } - } - } - - public function contributions($lang = 'en', $user = '') - { - $clean['user'] = ctype_alnum($user) ? sanitizeAll($user) : ''; - $data['title'] = $clean['user']." contributions - ".Website::$generalName; - - if (strcmp($clean['user'],'') !== 0) - { - $this->shift(2); - - $res = $this->m['UsersModel']->db->select('regusers','has_confirmed,deleted,username','username="'.$clean['user'].'" and has_confirmed=0 and deleted="no"'); - - if (count($res) > 0) - { - $whereArray = array( - 'username' => $clean['user'], - 'has_confirmed' => 0, - 'deleted' => 'no' - ); - - $data['table'] = $this->m['HardwareModel']->select('hardware.*,regusers.username')->where($whereArray)->send(); - // echo $this->m['HardwareModel']->getQuery(); - - $data['meet_username'] = $res[0]['regusers']['username']; - - $this->append($data); - $this->load('contributions'); - $this->right(); - } - } - } }
\ No newline at end of file |