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