/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); if (VPost::search_button(false) || VGet::search()) { $this->_search = trim(VRequest::search('Lynxpress')); } //set the status in the attribute for more readability if (VRequest::post_status(false) && !VPost::empty_trash(false)) { switch (VRequest::post_status()) { case 'publish': $this->_status = 'publish'; break; case 'draft': $this->_status = 'draft'; break; case 'trash': $this->_status = 'trash'; break; default: $this->_status = 'all'; } } else { $this->_status = 'all'; } $this->build_title(); if ($this->_user['post']) { Helper::get_categories($this->_categories, $this->_action_msg, 'post'); $this->trash(); $this->untrash(); $this->delete(); $this->get_posts(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); //set the status in the attribute for more readability if (VRequest::comment_status(false) && !isset($_POST['empty'])) { switch (VRequest::comment_status()) { case 'approved': $this->_status = 'approved'; break; case 'spam': $this->_status = 'spam'; break; case 'trash': $this->_status = 'trash'; break; default: $this->_status = 'pending'; break; } } else { $this->_status = 'pending'; } if (VPost::search_button(false) || VGet::search()) { $this->_search = trim(VRequest::search('Lynxpress')); } $this->_title = $this->build_title(); if ($this->_user['comments']) { $this->create(); $this->update(); $this->delete(); if (VGet::action() != 'reply') { $this->get_comments(); } } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Timeline Settings'; $this->get_prefs(); $this->create(); $this->delete(); }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Timeline'; $this->get_prefs(); $this->_since = VGet::since(substr($this->_prefs->_data['last_visit'], 0, 10)); $this->get_timeline(); }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Add Plugin'; if ($this->_user['settings']) { $this->create(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Social'; if ($this->_user['settings']) { $this->get_content(); $this->update(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Post Settings'; if ($this->_user['settings']) { $this->get_setting(); $this->update(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Templates Library'; if ($this->_user['settings']) { $this->get_templates(); $this->create(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Activity'; if ($this->_user['settings']) { $this->delete(); $this->get_content(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Plugins'; if ($this->_user['settings']) { $this->delete(); $this->get_plugins(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Update'; if ($this->_user['settings']) { $this->_action_msg = ActionMessages::ws_update_check(Helper::check_update()); $this->update(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_key = VGet::website(); $this->_slug = VGet::slug(); $this->get_prefs(); $this->get_post(); $this->build_title(); $this->create(); }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Categories'; if ($this->_user['settings']) { $this->create(); $this->delete(); $this->get_cats(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Default Page'; if ($this->_user['settings']) { $this->get_content(); $this->update(); $method = 'get_' . $this->_setting->_data['type']; $this->{$method}(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Templates'; if ($this->_user['settings']) { $this->get_setting(); $this->delete(); $this->update(); $this->get_templates(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'User Roles'; if ($this->_user['settings']) { $this->create(); $this->update(); $this->delete(); $this->_setting =& Roles::load(); $this->_setting->refresh(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Add New User'; if ($this->_user['settings']) { $this->_new_user = new User(); $roles =& Roles::load(); $this->_roles = $roles->_roles; if (VPost::new_user(false)) { $this->create(); } } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Links'; if (VPost::search_button(false)) { $this->_search = VPost::search('foo'); } if ($this->_user['settings']) { $this->update(); $this->delete(); $this->get_links(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Dashboard'; if ($this->_user['dashboard']) { $this->get_activity(); $this->get_recent_comments(); $this->get_draft(); Helper::get_categories($this->_categories, $this->_action_msg, 'post'); if (Helper::check_update() === true) { $this->_action_msg = ActionMessages::ws_update_check(true, true); } } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Albums'; if ($this->_user['album_photo']) { if (VPost::search_button(false) || VGet::search()) { $this->_search = trim(VRequest::search('Lynxpress')); $this->_title .= ' > Search for "' . $this->_search . '"'; } $this->create(); $this->update(); $this->delete(); $this->get_albums(); Helper::get_categories($this->_categories, $this->_action_msg, 'album'); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Manage Post'; if ($this->_user['post']) { $this->get_post(); Helper::get_categories($this->_categories, $this->_action_msg, 'post'); $this->get_setting(); $this->get_medias(); if (VPost::action() == 'to_insert') { $this->create(); } elseif (VPost::action() == 'to_update') { $this->update(); } } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); if (VGet::id() && $this->_user['settings']) { $this->_title = 'Edit User'; $this->_roles =& Roles::load(); $this->_roles = $this->_roles->_roles; } else { $this->_title = 'Profile'; } $this->get_user(); $this->get_pictures(); if (VPost::update_profile(false)) { $this->update(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); if (VGet::view() && in_array(VGet::view(), array('upload', 'linkage', 'album', 'video'))) { $this->_view_type = VGet::view(); } else { $this->_view_type = 'upload'; } if ($this->_view_type == 'album') { Helper::get_categories($this->_categories, $this->_action_msg, 'album'); } $this->build_title(); $this->_media = new Media(); if ($this->_user['media']) { $this->create(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); if (VGet::action() == 'edit' && VGet::id()) { $this->_view_type = 'edit'; $this->_title = 'Edit Link'; } else { $this->_view_type = 'new'; $this->_title = 'New Link'; } if ($this->_user['settings']) { $this->get_link(); if (VPost::new_link(false)) { $this->create(); } elseif (VPost::update_link(false)) { $this->update(); } } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); if (VRequest::type() && in_array(VRequest::type(), array('image', 'video', 'alien'))) { $this->_view_type = VRequest::type(); } else { $this->_view_type = 'image'; } $this->build_title(); if ($this->_user['media']) { if (VPost::search_button(false) || VGet::search()) { $this->_search = trim(VRequest::search('Lynxpress')); $this->_title .= ' > Search for "' . $this->_search . '"'; } if ($this->_view_type == 'video') { Helper::get_categories($this->_categories, $this->_action_msg, 'video'); } $this->update(); $this->delete(); $this->get_medias(); } }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Plugins'; $this->get_plugins(); }
/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); $this->_title = 'Settings'; }