本文整理汇总了PHP中core::update方法的典型用法代码示例。如果您正苦于以下问题:PHP core::update方法的具体用法?PHP core::update怎么用?PHP core::update使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类core
的用法示例。
在下文中一共展示了core::update方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: update
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');
}
}
示例2: index
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');
}
}
示例3: index
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');
}
}
示例4: dirname
ini_set('log_errors', "1");
ini_set('html_errors', "0");
/**
* @copyright Alexey Kachalov <alex-kachalov@mail.ru>
* @author Alexey Kachalov <alex-kachalov@mail.ru>
* @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();