PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- public function editsignature()
- {
- $blogquery = $this->db->query("SELECT * FROM `posts` LIMIT 0, 5");
- $datestring = "%Y";
- 'blog_title' => $this->config->item('site_title'),
- 'blog_heading' => $this->config->item('site_heading'),
- 'template_dir' => base_url().'templates/'.$this->config->item('template').'/ucp/',
- 'page_name' => 'Editing Signature',
- 'year' => mdate($datestring).' | Powered by FractalBB',
- 'userdata' => $this->user_model->getDetails(get_cookie('token')),
- 'username' => $this->user_model->userFromToken(get_cookie('token')), //Get username using v1.2 method
- 'signature' => $this->user_model->getDetails(get_cookie('token'))['signature'],//95 строка
- 'latest_posts' => $blogquery->result_array(),
- 'ucp_modules' => $this->modules->generateUCPLinks()
- );
- $this->parser->parse('../../templates/'.$this->config->item('template').'/ucp/header',$data); //Initiate the 'header' file with all the data above
- $this->parser->parse('../../templates/'.$this->config->item('template').'/ucp/sig',$data); //Initiate the 'sig' file with all the data above
- $this->parser->parse('../../templates/'.$this->config->item('template').'/ucp/footer',$data); //Initiate the 'footer' file with all the data above
- }