Esempio n. 1
0
 private function pendingRelationships()
 {
     if ($this->registry->getObject('authenticate')->isLoggedIn()) {
         require_once FRAMEWORK_PATH . 'models/relationships.php';
         $relationships = new Relationships($this->registry);
         $pending = $relationships->getRelationships(0, $this->registry->getObject('authenticate')->getUser()->getUserID(), 0);
         $this->registry->getObject('template')->buildFromTemplates('header.tpl.php', 'friends/pending.tpl.php', 'footer.tpl.php');
         $this->registry->getObject('template')->getPage()->addTag('pending', array('SQL', $pending));
     } else {
         $this->registry->errorPage('Please login', 'Please login to manage pending connections');
     }
 }