function update($id = '') { $this->load->library('form_validation'); $this->form_validation->CI =& $this; $this->form_validation->set_error_delimiters(' <ul class="help-block"><li class="text-error">', '</li></ul> '); if ($this->form_validation->run('update') == FALSE) { $data['include'] = $this->load->view('/update/include', '', TRUE); $data['content'] = $this->load->view('/update/content', $data, TRUE); $this->load->view("admin/main", $data); } else { core::update('pbk', 'gammu', array('GroupID' => $this->input->post('GroupID'), 'Name' => $this->input->post('Name'), 'Number' => $this->input->post('Number')), $this->input->post('id')); redirect('pbk'); } }
function index() { $this->load->library('form_validation'); $this->form_validation->CI =& $this; $this->form_validation->set_error_delimiters('<p class="text-error">*', '</p>'); if ($this->form_validation->run('create') == FALSE) { $data['content'] = $this->load->view('/create/content', '', TRUE); $this->load->view("admin/main", $data); } else { $this->session->set_flashdata('sukses', 'sukses'); $password_encrypt = sha1(md5($this->input->post('password_baru'))); core::update('admin', 'gammu', array('password' => $password_encrypt), $this->session->userdata('id')); redirect('ubah_password'); } }
function index() { $this->load->library('form_validation'); $this->form_validation->CI =& $this; $this->form_validation->set_error_delimiters('<p class="text-error">*', '</p>'); $this->form_validation->set_message('alpha_dash', 'Karakter yang di ijinkan ( huruf, angka, underscores dan dashes)'); if ($this->form_validation->run('create') == FALSE) { $data['content'] = $this->load->view('/content', '', TRUE); $this->load->view("admin/main", $data); } else { $this->session->set_flashdata('sukses', 'sukses'); $username = $this->input->post('username_baru'); $this->session->set_userdata('username', $username); core::update('admin', 'gammu', array('username' => $username), $this->session->userdata('id')); redirect('ubah_username'); } }
ini_set('log_errors', "1"); ini_set('html_errors', "0"); /** * @copyright Alexey Kachalov <*****@*****.**> * @author Alexey Kachalov <*****@*****.**> * @access public * @see http://178.140.61.70/ * @license GNU Public Licence - Version 3 */ require_once dirname(__FILE__) . '/core.class.php'; $core = new core(); if (isset($_GET['update'])) { if (!empty($_GET['update'])) { $args = explode(',', $_GET['update']); foreach ($args as $arg) { $core->update($arg); } } else { $core->update(); } die; } elseif (isset($_GET['get'])) { if (!empty($_GET['get'])) { $core->update($_GET['get']); header("Location: " . str_replace('index.php', '', $_SERVER['PHP_SELF']) . "cache/" . $_GET['get'] . ".png"); } else { } die; } elseif (isset($_GET['info'])) { if (!empty($_GET['info'])) { $info = array();