admin/controller/common/profile.php
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
class ControllerCommonProfile extends Controller {
private $error = array();
public function index() {
$this->load->language('common/profile');
$this->document->setTitle($this->language->get('heading_title'));
$this->load->model('user/user');
if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) {
$user_data = array_merge($this->request->post, array(
'user_group_id' => $this->user->getGroupId(),
'status' => 1,
));
$this->model_user_user->editUser($this->user->getId(), $user_data);
$this->session->data['success'] = $this->language->get('text_success');
$this->response->redirect($this->url->link('common/profile', 'user_token=' . $this->session->data['user_token']));
}
if (isset($this->session->data['success'])) {
$data['success'] = $this->session->data['success'];
unset($this->session->data['success']);
} else {
$data['success'] = '';
}
if (isset($this->error['warning'])) {
$data['error_warning'] = $this->error['warning'];
} else {
$data['error_warning'] = '';
}
if (isset($this->error['username'])) {
$data['error_username'] = $this->error['username'];
} else {
$data['error_username'] = '';
}
if (isset($this->error['password'])) {
$data['error_password'] = $this->error['password'];
} else {
$data['error_password'] = '';
}
if (isset($this->error['confirm'])) {
$data['error_confirm'] = $this->error['confirm'];
} else {
$data['error_confirm'] = '';
}
if (isset($this->error['firstname'])) {
$data['error_firstname'] = $this->error['firstname'];
} else {
$data['error_firstname'] = '';
后面还有 153 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
