function indexAction()
 {
     if ($this->getRequest()->getParam('ref')) {
         $user = new UsersModel();
         $this->view->InvitedUser = $user->InvitedContact(decode($this->getRequest()->getParam('ref')));
         if ($this->session->user["id"] > 0) {
             $this->_redirect("bio/" . encode($this->view->InvitedUser["uid"]) . "#slams/post");
         }
         $user = new UsersModel($this->view->InvitedUser["uid"]);
         $this->view->InviteeUser = $user->Info();
     }
     if ($this->getRequest()->getParam('userid')) {
         if ($this->session->user["id"] > 0) {
             $this->_redirect("bio/" . $this->getRequest()->getParam('userid'));
         }
         $user = new UsersModel(decode($this->getRequest()->getParam("userid")));
         $iV = $this->view->InviteeUser = $user->Info();
         $this->view->error = array("<strong>Login</strong> to view " . ($iV['gender'] == 'M' ? 'his' : 'her') . " <strong>tweets</strong>, <strong>slambook</strong> and other <strong>exciting</strong> stuffs.<br />New users can <strong>signup</strong> with a <strong>single step &raquo;</strong>", 60, "welcome");
     }
     if ($this->session->user["id"] > 0) {
         $this->_redirect("my");
     }
     $user = new UsersModel();
     $this->view->users = $user->Search(array(), array(0, 12), NULL, array("gender DESC"));
 }
 function init()
 {
     HackCheck();
     $this->session = Zend_Registry::get('session');
     $this->cache = Zend_Registry::get('cache');
     $this->db = Zend_Registry::get('db');
     $user = new UsersModel($this->getRequest()->getParam('of') == "null" || $this->getRequest()->getParam('of') == "" ? $this->session->user["id"] : decode($this->getRequest()->getParam('of')));
     $this->view->userExt = $user->Info();
     $this->slam = new SlamModel($this->view->userExt["id"]);
     $this->admin = new AdminModel();
     $this->view->user = $this->session->user;
     $this->prefix = $this->session->user['id'] == $this->view->userExt['id'] ? 'You' : ($this->view->userExt['gender'] == 'M' ? 'He' : 'She');
     if ($this->session->error != "") {
         $this->view->error = $this->session->error;
     }
     $this->session->error = NULL;
 }