public function index() { $this->lang->load('ae_change_pass', $this->selected_lang); if ($this->input->post()) { $this->lang->load('error', $this->selected_lang); if ($this->input->post("prev_pass") && $this->input->post("new_pass") && $this->input->post("repeat_pass")) { if ($this->input->post("new_pass") === $this->input->post("repeat_pass")) { $prev_pass = $this->input->post("prev_pass"); $new_pass = $this->input->post("new_pass"); $this->load->model("user_manager_model"); if ($this->user_manager_model->change_logged_user_pass($prev_pass, $new_pass)) { $message = $this->lang->line("success_password_change"); } else { $message = $this->lang->line("match_prev_password"); } } else { $message = $this->lang->line("match_repeat_password"); } } else { $message = $this->lang->line("fill_all_fields"); } } if (isset($message)) { $this->data['message'] = $message; } $this->data['lang_pages'] = get_lang_pages(get_link("admin_change_pass", TRUE)); $this->data['header_title'] = $this->lang->line("change_pass"); $this->send_admin_output("change_pass"); return; }
public function index() { $this->load->model("user_manager_model"); $this->load->model("module_manager_model"); $user_info =& $this->user_manager_model->get_user_info(); $this->data['modules'] = array(); $modules = $this->module_manager_model->get_user_modules_names($user_info->get_id()); foreach ($modules as $module) { $name = $module['name']; $link = $module['link']; $id = $module['id']; $model_name = $module['model']; if (!$model_name) { continue; } $this->load->model($model_name . "_model"); $model = $this->{$model_name . "_model"}; if (!method_exists($model, "get_dashbord_info")) { continue; } $text = $model->{"get_dashbord_info"}(); $this->data['modules'][] = array("id" => $id, "name" => $name, "link" => $link, "text" => $text); } $this->lang->load('ae_dashboard', $this->selected_lang); $this->data['lang_pages'] = get_lang_pages(get_link("admin_dashboard", TRUE)); $this->data['header_title'] = $this->lang->line("dashboard"); $this->send_admin_output("dashboard"); return; }
public function index() { $this->load->model("access_manager_model"); $this->load->model("user_manager_model"); $this->load->model("module_manager_model"); $this->lang->load('ae_access', $this->selected_lang); $this->data['message'] = get_message(); $this->data['users_info'] = $this->user_manager_model->get_all_users_info(); $this->data['modules_info'] = $this->module_manager_model->get_all_modules_info($this->selected_lang); if ($this->input->post()) { $this->lang->load('error', $this->selected_lang); if ($this->input->post('post_type') === "user_access") { $this->change_user_access(); } if ($this->input->post('post_type') === "module_access") { $this->change_module_access(); } } $this->data['selected_user_id'] = $this->session->flashdata('selected_user_id'); $this->data['selected_module_id'] = $this->session->flashdata('selected_module_id'); $this->data['access_info'] = array(); foreach ($this->data['users_info'] as $user) { $user_id = $user['user_id']; $modules = $this->access_manager_model->get_user_modules($user_id); foreach ($modules as $module) { $this->data['access_info'][$user_id][$module] = 1; } } $this->data['lang_pages'] = get_lang_pages(get_link("admin_access", TRUE)); $this->data['header_title'] = $this->lang->line("access_levels"); $this->send_admin_output("access"); return; }
public function index() { $this->lang->load('ae_log', $this->selected_lang); $this->data['logs'] = $this->log_manager_model->get_today_logs(2, 30); $this->data['lang_pages'] = get_lang_pages(get_link("admin_log", TRUE)); $this->data['header_title'] = $this->lang->line("log"); $this->send_admin_output("log"); return; }
public function index() { $this->load->model("module_manager_model"); $this->lang->load('ae_module', $this->selected_lang); $this->data['modules_info'] = $this->module_manager_model->get_all_modules_info($this->selected_lang); $this->data['lang_pages'] = get_lang_pages(get_link("admin_module", TRUE)); $this->data['header_title'] = $this->lang->line("modules"); $this->send_admin_output("module"); return; }
public function index() { $this->load->model("hit_counter_model"); $this->lang->load('ae_hit_counter', $this->selected_lang); $this->data['counters_info'] = $this->hit_counter_model->get_all_counts(); $this->data['lang_pages'] = get_lang_pages(get_link("admin_hit_counter", TRUE)); $this->data['header_title'] = $this->lang->line("visiting_counter"); $this->send_admin_output("hit_counter"); return; }
public function index() { $this->lang->load('ae_post', $this->selected_lang); if ($this->input->post("post_type") === "add_post") { return $this->add_post(); } $this->set_posts_info(); $this->data['lang_pages'] = get_lang_pages(get_link("admin_post", TRUE)); $this->data['header_title'] = $this->lang->line("posts"); $this->send_admin_output("post"); return; }
public function index() { $this->data['message'] = get_message(); $this->lang->load('ce_home', $this->selected_lang); $this->data['lang_pages'] = get_lang_pages(get_link("home_url", TRUE)); $this->data['header_title'] .= $this->lang->line("header_title"); $this->data['header_meta_description'] .= $this->lang->line("header_meta_description"); $this->data['header_meta_keywords'] .= $this->lang->line("header_meta_keywords"); $this->data['header_canonical_url'] = get_link("home_url"); $this->send_customer_output("home"); return; }
public function index() { $this->lang->load('ae_constant', $this->selected_lang); if ($this->input->post()) { if ($this->input->post("post_type") === "constants_list") { return $this->modify_constants(); } if ($this->input->post("post_type") === "add_constant") { return $this->add_constant(); } } $this->data['message'] = get_message(); $this->data['constants'] = $this->constant_manager_model->get_all(); $this->data['lang_pages'] = get_lang_pages(get_link("admin_constant", TRUE)); $this->data['header_title'] = $this->lang->line("constants"); $this->send_admin_output("constant"); return; }
public function index() { $this->load->model("user_manager_model"); $this->lang->load('ae_user', $this->selected_lang); if ($this->input->post()) { $this->lang->load('error', $this->selected_lang); if ($this->input->post("post_type") === "add_user") { $this->add_user(); } if ($this->input->post("post_type") === "users_list") { $this->modify_users(); } } $this->data['users_info'] = $this->user_manager_model->get_all_users_info(); $this->data['lang_pages'] = get_lang_pages(get_link("admin_user", TRUE)); $this->data['header_title'] = $this->lang->line("users"); $this->send_admin_output("user"); return; }