Exemple #1
0
 function __init()
 {
     access_policy('auth');
     $this->menu = $this->makeMenu('index,user');
     $this->invokeModel();
     $this->invokeModel('msg');
 }
Exemple #2
0
	function __init()
	{
    access_policy('auth,admin');
    $this->menu = $this->makeMenu('index,message,vis,code');
		$this->invokeModel('friends');
		$this->invokeModel('msg');
		$this->invokeModel('endpoint');
	}
Exemple #3
0
 function ajax_vote()
 {
     access_policy('write');
     if (substr($_REQUEST['text'], 0, 1) != '#') {
         $_REQUEST['text'] = '#' . $_REQUEST['text'];
     }
     $this->ajax_comment();
 }
Exemple #4
0
 function ajax_commiturl()
 {
     access_policy('write');
     $this->skipView = false;
     if ($_REQUEST['newurl']) {
         $this->changeResult = $this->model->changeMyUrl($_REQUEST['newurl']);
     }
     $this->myNewUrl = getDefault($_REQUEST['newurl'], $this->user->getUrl());
 }
Exemple #5
0
	function __init()
	{
    access_policy('auth');
    
		foreach(DB_GetList('SELECT c_status,COUNT(*) as count FROM '.getTableName('connections').'
		  WHERE c_from = ?
			GROUP BY c_status', array($this->user->entity)) as $item)
			$menuCount[$item['c_status']] = $item['count'];
		$countArray = array();
    if($menuCount['friend'] > 0) $countArray[] = ' ('.$menuCount['friend'].')'; else $countArray[] = '';
		$countArray[] = '';
    if($menuCount['req.rcv'] > 0) $countArray[] = ' ('.$menuCount['req.rcv'].')'; else $countArray[] = '';
    if($menuCount['req.sent'] > 0) $countArray[] = ' ('.$menuCount['req.sent'].')'; else $countArray[] = '';
    
    $this->menu = $this->makeMenu('index,add,ab,rcv', $countArray);
		$this->invokeModel();
    $this->myEntity = $this->user->selfEntity();
    $this->integrate('ab');
	}
Exemple #6
0
  function cron()
  {
    access_policy('cron');
		$this->skipView = false;
    $this->invokeModel();
  }
Exemple #7
0
 function __init()
 {
     access_policy('auth');
 }
Exemple #8
0
 function __init()
 {
     access_policy('auth,admin');
 }
Exemple #9
0
 function __init()
 {
     access_policy('auth');
     $this->invokeModel('msg');
     $this->menu = $this->makeMenu('index', array(), array('id' => $_REQUEST['id']));
 }
Exemple #10
0
 function ajax_abremove()
 {
     access_policy('write');
     $this->skipView = false;
     $this->myEntry = $this->model->ABRemoveEntry($this->myEntity);
 }