public function index()
 {
     $data['title'] = lang_key('themes');
     $data['sel_menu'] = 'themes';
     $data['content'] = load_admin_view('themes/index_view', '', TRUE);
     load_admin_view('template/template_view', $data);
 }
 public function delete($id = '', $confirmation = '')
 {
     if ($confirmation == '') {
         $data['content'] = load_admin_view('confirmation_view', array('id' => $id, 'url' => site_url('admin/category/delete')), TRUE);
         load_admin_view('template/template_view', $data);
     } else {
         if ($confirmation == 'yes') {
             if (constant("ENVIRONMENT") == 'demo') {
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
             } else {
                 $this->category_model->delete_category_by_id($id);
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('data_updated') . '</div>');
             }
         }
         redirect(site_url('admin/category/all'));
     }
 }
 function regdomain()
 {
     $this->session->set_userdata('form_key', rand(1, 500));
     $data = array('error' => '<div class="alert alert-danger" style="margin-top:10px;">' . lang_key('login_failed') . '</div>');
     load_admin_view('regdomain_view', $data);
 }
示例#4
0
 public function deleteuser($page = '0', $id = '', $confirmation = '')
 {
     if (!is_admin()) {
         echo lang_key('dont_have_permission');
         die;
     }
     if ($confirmation == '') {
         $data['content'] = load_admin_view('confirmation_view', array('id' => $id, 'url' => site_url('admin/deleteuser/' . $page)), TRUE);
         load_admin_view('template/template_view', $data);
     } else {
         if ($confirmation == 'yes') {
             if (constant("ENVIRONMENT") == 'demo') {
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
             } else {
                 $this->load->model('user/user_model');
                 $this->user_model->delete_user_by_id($id);
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('user_deleted') . '</div>');
             }
         }
         redirect(site_url('admin/users/all/' . $page));
     }
 }
 public function deletetransaction($unique_id, $confirmation = '')
 {
     if (!is_admin()) {
         echo lang_key('dont_have_permission');
         die;
     }
     if ($confirmation == '') {
         $data['content'] = load_admin_view('confirmation_view', array('id' => $unique_id, 'url' => site_url('admin/classified/deletetransaction/')), TRUE);
         load_admin_view('template/template_view', $data);
     } else {
         if ($confirmation == 'yes') {
             if (constant("ENVIRONMENT") == 'demo') {
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
             } else {
                 $this->classified_model->delete_transaction($unique_id);
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('transaction_deleted') . '</div>');
             }
             $value['trans'] = $this->classified_model->get_all_transaction();
             $data['title'] = lang_key('transaction');
             $data['content'] = load_admin_view('classified/approve_payment_view', $value, TRUE);
             load_admin_view('template/template_view', $data);
         }
     }
 }
 public function settings($key = 'package_settings')
 {
     if (!is_admin()) {
         echo lang_key('dont_have_permission');
         die;
     }
     $this->load->model('admin/system_model');
     $this->load->model('options_model');
     $settings = $this->options_model->getvalues($key);
     $settings = json_encode($settings);
     $value['settings'] = $settings;
     $data['title'] = lang_key('package_settings');
     $data['content'] = load_admin_view('packages/settings_view', $value, TRUE);
     load_admin_view('template/template_view', $data);
 }
 public function featuredimguploader()
 {
     load_admin_view('slider/featured_img_uploader_view');
 }
 public function edit($alias = '')
 {
     $data['widget'] = $this->widget_model->get_widget_by_alias($alias);
     load_admin_view('widgets/editwidget_view', $data);
 }
示例#9
0
 public function profile_photo_uploader()
 {
     load_admin_view('users/profile_photo_uploader_view');
 }
示例#10
0
 function newaccount()
 {
     $this->load->model('admin/package_model');
     $data['packages'] = $this->package_model->get_all_packages_by_range('all');
     load_admin_view('register_view', $data);
 }
示例#11
0
 public function menu($start = 0)
 {
     $data['title'] = lang_key('menu');
     $data['content'] = load_admin_view('pages/menu_view', '', TRUE);
     load_admin_view('template/template_view', $data);
 }
示例#12
0
 public function generatesitemap()
 {
     $data['title'] = lang_key('generate_site_map');
     $data['content'] = load_admin_view('sitemap/site_map_panel_view', '', TRUE);
     load_admin_view('template/template_view', $data);
 }
示例#13
0
 public function all()
 {
     $value['posts'] = $this->plugins_model->get_all_plugins_by_range('all', '', '');
     $data['title'] = 'All Plugins';
     $data['content'] = load_admin_view('plugins/allplugins_view', $value, TRUE);
     load_admin_view('template/template_view', $data);
 }
 public function featuredimguploader()
 {
     load_admin_view('categories/featured_img_uploader_view');
 }
 public function deletereview($page = '0', $post_id = '', $id = '', $confirmation = '')
 {
     if (!is_admin()) {
         $post = $this->business_model->get_post_by_id($post_id);
         if ($post->created_by != $this->session->userdata('user_id')) {
             echo lang_key('dont_have_permission');
             die;
         }
     }
     if ($confirmation == '') {
         $data['content'] = load_admin_view('confirmation_view', array('id' => $id, 'url' => site_url('admin/business/deletereview/' . $page . '/' . $post_id)), TRUE);
         load_admin_view('template/template_view', $data);
     } else {
         if ($confirmation == 'yes') {
             if (constant("ENVIRONMENT") == 'demo') {
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">Data updated.[NOT AVAILABLE ON DEMO]</div>');
             } else {
                 $this->business_model->delete_review_by_id($id);
                 $this->session->set_flashdata('msg', '<div class="alert alert-success">' . lang_key('review_deleted') . '</div>');
             }
         }
         redirect(site_url('admin/business/view_all_reviews/' . $page . '/' . $post_id));
     }
 }