function __construct() { parent::__construct(); $group = $this->ion_auth->get_groups(array('neglectgroup' => array('admin'))); if (!$this->ion_auth->in_group($group)) { $this->session->set_flashdata('message', 'You must be a Company Admin OR a End User to view this page'); redirect('/'); } if (!$this->ion_auth->is_admin()) { if (check_account_expiration() == 1) { redirect(site_url('account/plans')); } } }
function __construct() { parent::__construct(); $this->load->model('sites/sitemodel'); $this->load->model('sites/pagemodel'); $this->load->library('facebook'); $this->load->library('twitteroauth'); $this->data['title'] = ucfirst($this->router->fetch_class()); $this->data['pageTitle'] = ucfirst($this->router->fetch_class()); if (!$this->ion_auth->logged_in()) { redirect('/login'); } if (!$this->ion_auth->is_admin()) { if (check_account_expiration() == 1) { redirect(site_url('account/plans')); } } }
public function __construct() { parent::__construct(); $this->load->model('sites/sitemodel'); $this->load->model('sites/pagemodel'); $this->load->model('visitor/visitor_count_model'); $this->data['title'] = "Visitor"; $this->data['pageMetaDescription'] = "Visitor Tracker"; $this->data['pageHeading'] = "Visitor List"; if (!$this->ion_auth->logged_in()) { redirect('/login'); } if ($this->ion_auth->is_admin()) { redirect('/'); } if (!$this->ion_auth->is_admin()) { if (check_account_expiration() == 1) { redirect(site_url('account/plans')); } } }
function __construct() { parent::__construct(); $this->load->model('domain/domainmodel'); $this->load->model('sites/sitemodel'); $this->load->model('domain/users_domains_model'); $this->load->model('domain/addon_domain_order_model'); $this->load->model('domain/addon_domain_transaction_model'); $this->load->library('table'); $this->load->helper('form'); $this->data['title'] = ucfirst($this->router->fetch_class()); $this->data['pageTitle'] = ucfirst($this->router->fetch_class()); if (!$this->ion_auth->logged_in()) { redirect('/login'); } if (!$this->ion_auth->is_admin()) { if (check_account_expiration() == 1) { redirect(site_url('account/plans')); } } $this->data['pageHeading'] = 'Premium Domain'; $this->data['pageMetaDescription'] = $this->router->fetch_class(); }
public function plans() { $this->data['pageHeading'] = 'Plans & Feature'; $this->data['message'] = ''; $this->data['css'] = array('<link href="' . base_url() . 'assets/css/plans.css" rel="stylesheet">'); if ($this->ion_auth->in_group(array('business'))) { $this->data['plans'] = $this->plans_model->get_plans(2); } elseif ($this->ion_auth->in_group(array('students'))) { $this->data['plans'] = $this->plans_model->get_plans(3); } elseif ($this->ion_auth->in_group(array('ecommerce'))) { $this->data['plans'] = $this->plans_model->get_plans(4); } else { $this->data['plans'] = $this->plans_model->get_plans(); } if (!$this->ion_auth->is_admin()) { if (check_account_expiration() == 1) { $this->data['got_expired'] = 1; } } $this->template->load('main', 'account', 'account/plans', $this->data); }
" type="hidden" /> <input name="plan_discount" value="<?php echo $plan->discount_type == 'percentage' ? abs($plan->price * $plan->discount / 100) : abs($plan->discount); ?> " type="hidden" /> <input name="plan_ammount" value="<?php echo abs($plan->price); ?> " type="hidden" /> </form> </div> </div> <div class="panel-footer"> <?php if (userdata('plan_id') === $plan->plan_id) { if (check_account_expiration() == 1) { ?> <a role="button" class="btn btn-primary" onclick="javascript:upgrade('<?php echo $plan->plan_name; ?> ')" href="javascript:void(0)" style="cursor: default;">Extend Plan</a> <?php } else { ?> <a role="button" class="btn btn-primary" href="javascript:void(0)" style="cursor: not-allowed;">Active Plan</a> <?php } } else { ?>