예제 #1
0
 function __init()
 {
     access_policy('auth');
     $this->menu = $this->makeMenu('index,user');
     $this->invokeModel();
     $this->invokeModel('msg');
 }
예제 #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');
	}
예제 #3
0
 function ajax_vote()
 {
     access_policy('write');
     if (substr($_REQUEST['text'], 0, 1) != '#') {
         $_REQUEST['text'] = '#' . $_REQUEST['text'];
     }
     $this->ajax_comment();
 }
예제 #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());
 }
예제 #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');
	}
예제 #6
0
  function cron()
  {
    access_policy('cron');
		$this->skipView = false;
    $this->invokeModel();
  }
예제 #7
0
 function __init()
 {
     access_policy('auth');
 }
예제 #8
0
 function __init()
 {
     access_policy('auth,admin');
 }
예제 #9
0
 function __init()
 {
     access_policy('auth');
     $this->invokeModel('msg');
     $this->menu = $this->makeMenu('index', array(), array('id' => $_REQUEST['id']));
 }
예제 #10
0
 function ajax_abremove()
 {
     access_policy('write');
     $this->skipView = false;
     $this->myEntry = $this->model->ABRemoveEntry($this->myEntity);
 }