Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $this->auth(false);
     $this->_m(_array_keys(w('faq desk')));
     return;
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     $this->auth(false);
     $this->_m(w('create clear check report total modify'));
     $this->load('objects');
 }
Esempio n. 3
0
 public function __construct()
 {
     parent::__construct();
     $this->auth(false);
     $this->_m(array('episode' => w(), 'publish' => w(), 'like' => w(), 'cp' => array('show' => w('create modify remove'), 'episode' => w('create modify remove'), 'publish' => w('modify remove'))));
     return;
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(array('view' => w(), 'star' => w(), 'attend' => w(), 'tag' => w(), 'acp' => w('edit')));
     $this->auth(false);
     $g = getdate();
     $d = explode(' ', gmdate('j n Y', _localtime()));
     $v_week = $d[0] + (7 - ($g['wday'] - 1)) - (!$g['wday'] ? 7 : 0);
     $this->day['midnight'] = _timestamp($d[1], $d[0], $d[2]);
     $this->day['week'] = _timestamp($d[1], $v_week, $d[2]);
     $this->day['midnight_one'] = $this->day['midnight'] + 86400;
     $this->day['midnight_two'] = $this->day['midnight'] + 86400 * 2;
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(_array_keys(w('ticket optimize')));
     $this->auth(false);
 }
Esempio n. 6
0
 function __construct()
 {
     parent::__construct();
     $this->_m(_array_keys(w('create clear check report total edit')));
     $this->auth(false);
 }
Esempio n. 7
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(_array_keys(w('news event artist people')));
     $this->load('objects');
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct();
     $this->auth(false);
     $this->_m(_array_keys(w('like')));
 }
Esempio n. 9
0
 public function __construct()
 {
     parent::__construct();
 }
Esempio n. 10
0
 function __construct()
 {
     parent::__construct();
     $this->auth(false);
 }
Esempio n. 11
0
 function __construct()
 {
     parent::__construct();
     $this->_m(_array_keys(w('email')));
     $this->auth(false);
 }
Esempio n. 12
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(array('create' => w('create_contact list_prov list_tech ticket_members')));
 }
Esempio n. 13
0
 function __construct()
 {
     parent::__construct();
     $this->_m(array('search' => w(), 'view' => w(), 'create' => w()));
     $this->auth(false);
 }
Esempio n. 14
0
 public function __construct()
 {
     parent::__construct();
     $this->auth(false);
     $this->_m(array('import' => w('news'), 'members' => w('profile'), 'subdomain' => w('artist member'), 'bios' => w('rand')));
 }
Esempio n. 15
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(array('all' => w(), 'create' => array('dept', 'position', 'value' => w('member')), 'search' => w('table field'), 'edit' => w('contact dept position'), 'delete' => w(), 'authorize' => w('field value founder check'), 'group' => w('create remove'), 'tab' => w(), 'mfield' => w('create'), 'value' => array('call', 'create' => w('query'), 'modify', 'remove'), 'remove' => w(), 'groups' => w('create call modify remove')));
 }
Esempio n. 16
0
 public function __construct()
 {
     parent::__construct();
     $this->auth(false);
     $this->_m(_array_keys(w('artists corp emoticon feed fetch jobs uptime random services tos')));
 }
Esempio n. 17
0
 public function __construct()
 {
     parent::__construct();
     $this->auth(false);
     $this->_m(_array_keys(w('colors lines todo')));
 }
Esempio n. 18
0
File: _ac.php Progetto: nopticon/mag
 public function __construct()
 {
     parent::__construct();
     $this->_m(array('connected' => w()));
     return;
 }
Esempio n. 19
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(_array_keys(w('view add update share confirm thanks')));
 }
Esempio n. 20
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(_array_keys(w('create modify remove')));
     $this->tags = w();
 }
Esempio n. 21
0
    public function __construct()
    {
        global $bio;
        parent::__construct();
        $this->auth(false);
        $this->_m(array('page' => w(), 'messages' => w(), 'account' => w(), 'password' => w(), 'analytics' => w(), 'biography' => w('modify'), 'fans' => w('add remove'), 'interviews' => w('create modify remove'), 'journal' => w('create modify remove'), 'messages' => w('modify remove'), 'options' => w('modify'), 'permission' => w('create remove'), 'record' => w('view remove'), 'gallery' => array('set' => w('create modify remove'), 'photo' => w('create modify remove')), 'music' => array('cd' => w('create modify remove'), 'song' => w('create modify remove'), 'lyrics' => w('create modify remove'))));
        $this->m(w('home write sent draft'), 'messages_a');
        //
        // This bio!
        //
        $v = $this->__(w('domain alias tab:home'));
        if (empty($v->domain) && empty($v->alias)) {
            $warning->fatal();
        }
        if (!empty($v->domain)) {
            $v->domain = $this->strip_domain($v->domain);
        } elseif (!empty($v->alias)) {
            $v->alias = _low($v->alias, true);
            if ($v->alias === false) {
                $warning->fatal();
            }
        }
        //
        $sql = 'SELECT *
			FROM _bio b, _bio_type t
			WHERE (b.bio_alias = ?
				OR b.bio_domain = ?)
				AND b.bio_active = ?
				AND b.bio_type = t.type_id
			LIMIT 1';
        if (!($_bio = sql_fieldrow(sql_filter($sql, $v->alias, $v->domain, 1)))) {
            $warning->fatal();
        }
        if ($v->tab != 'home') {
            $sql = 'SELECT relation_id
				FROM _bio_relation r, _bio_modules m, _bio_publish p
				WHERE p.publish_local = ?
					AND r.relation_alias = ?
					AND r.relation_id = m.module_relation
					AND p.publish_module = m.module_id';
            if (!sql_field(sql_filter($sql, $_bio->bio_id, $v->tab), 'relation_id', 0)) {
                $warning->fatal();
            }
        }
        switch ($_bio->type_alias) {
            case 'artist':
            case 'page':
                if ($bio->v('auth_member')) {
                    $sql = 'SELECT auth_id
						FROM _bio_auth
						WHERE auth_local = ?
							AND auth_remote = ?
						LIMIT 1';
                    if (sql_field(sql_filter($sql, $_bio->bio_id, $bio->v('bio_id')))) {
                        $bio->v('auth_page', true);
                    }
                }
                break;
            default:
                break;
        }
        //
        // Access Control
        switch ($_bio->bio_access) {
            case BIO_ACCESS_FOLLOWER:
                if (!$bio->v('auth_member')) {
                    $bio->login();
                    _login();
                }
                if (!$this->bio_follower($_bio->bio_id) && !$bio->v('auth_page')) {
                    _fatal();
                }
                break;
            case BIO_ACCESS_ALL:
                break;
            default:
                break;
        }
        return;
    }
Esempio n. 22
0
 public function __construct()
 {
     parent::__construct();
     $this->auth(false);
     $this->_m(_array_keys(w('birthday mfeed optimize contest press')));
 }
Esempio n. 23
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(array('comments' => array('validation', 'xcfcron', 'xcf' => w('f')), 'download' => w()));
     $this->auth(false);
 }
Esempio n. 24
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(array('emoticons' => w('add edit delete'), 'help' => w('add edit delete')));
     return;
 }
Esempio n. 25
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(array('mini' => w(), 'view' => w(), 'create' => w(), 'search' => w('table field status'), 'note' => w('create modify remove'), 'ticket' => w('modify remove status cat groups'), 'tech' => w('query add remove'), 'cat' => w('create call modify remove')));
     $this->exclude = w('mini');
 }
Esempio n. 26
0
 public function __construct()
 {
     parent::__construct();
     $this->_m(_array_keys(w('commit update share')));
 }