|
Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/laciasmara.com/public_html/shop/application/controllers/admin/ |
Upload File : |
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
class Home_centerbanners extends Admin_Controller
{
function __construct()
{
parent::__construct();
$this->load->model('home_centerbanner_m');
}
//this is to list all home_centerbanners
public function index()
{
$this->edit(1);
}
//to edit brand in admin
public function edit($id = NULL)
{
//check if id exist. If not exist, show 404.
$count = $this->home_centerbanner_m->count_exist($id);
if ($count == 0) {
//page not exist
show_404();
}
$this->data['home_centerbanners'] = $this->home_centerbanner_m->get($id);
//validation check in action
$config = array(
array(
'field' => 'banner1_link',
'label' => 'Banner 1 Link',
'rules' => 'trim'
),
array(
'field' => 'banner2_link',
'label' => 'Banner 2 link',
'rules' => 'trim'
),
array(
'field' => 'banner3_link',
'label' => 'Banner 3 link',
'rules' => 'trim'
),
array(
'field' => 'banner4_link',
'label' => 'Banner 4 Link',
'rules' => 'trim'
),
array(
'field' => 'banner5_link',
'label' => 'Banner 5 Link',
'rules' => 'trim'
),
array(
'field' => 'banner6_link',
'label' => 'Banner 6 Link',
'rules' => 'trim'
),
array(
'field' => 'banner7_link',
'label' => 'Banner 7 Link',
'rules' => 'trim'
),
);
$this->load->library('form_validation');
$this->form_validation->set_error_delimiters('<div class="error">', '</div>'); //above is to add class to form validation error, to be styled
$this->form_validation->set_rules($config);
$this->form_validation->set_error_delimiters('<div class="error">', '</div>');
if ($this->form_validation->run() == TRUE) {
if ($_POST) {
//check & processing image 1 banner upload files
if ($_FILES['userfile15']['size'] !== 0) {
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = '800';
$config['max_height'] = '500';
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile15')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('error', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image15 = $this->upload->data();
$image_filename15 = $image15['file_name'];
}
}
if ($_FILES['userfile1']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner1_image_width, staticbanner1_image_height')->from('configuration')->where('id_configuration', 1);
$banner1_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner1_dimension->staticbanner1_image_width;
$config['max_height'] = $banner1_dimension->staticbanner1_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile1')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror1', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image1 = $this->upload->data();
$image_filename1 = $image1['file_name'];
}
}
//check & processing image 2 banner upload files
if ($_FILES['userfile2']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner2_image_width, staticbanner2_image_height')->from('configuration')->where('id_configuration', 1);
$banner2_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner2_dimension->staticbanner2_image_width;
$config['max_height'] = $banner2_dimension->staticbanner2_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile2')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror2', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image2 = $this->upload->data();
$image_filename2 = $image2['file_name'];
}
}
//check & processing image 3 banner upload files
if ($_FILES['userfile3']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner3_image_width, staticbanner3_image_height')->from('configuration')->where('id_configuration', 1);
$banner3_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner3_dimension->staticbanner3_image_width;
$config['max_height'] = $banner3_dimension->staticbanner3_image_width;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile3')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror3', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image3 = $this->upload->data();
$image_filename3 = $image3['file_name'];
}
}
//check & processing image 4 banner upload files
if ($_FILES['userfile4']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner4_image_width, staticbanner4_image_height')->from('configuration')->where('id_configuration', 1);
$banner4_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner4_dimension->staticbanner4_image_width;
$config['max_height'] = $banner4_dimension->staticbanner4_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile4')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror4', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image4 = $this->upload->data();
$image_filename4 = $image4['file_name'];
}
}
//check & processing image 5 banner upload files
if ($_FILES['userfile5']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner5_image_width, staticbanner5_image_height')->from('configuration')->where('id_configuration', 1);
$banner5_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner5_dimension->staticbanner5_image_width;
$config['max_height'] = $banner5_dimension->staticbanner5_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile5')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror5', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image5 = $this->upload->data();
$image_filename5 = $image5['file_name'];
}
}
//check & processing image 6 banner upload files
if ($_FILES['userfile6']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner6_image_width, staticbanner6_image_height')->from('configuration')->where('id_configuration', 1);
$banner6_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner6_dimension->staticbanner6_image_width;
$config['max_height'] = $banner6_dimension->staticbanner6_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile6')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror6', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image6 = $this->upload->data();
$image_filename6 = $image6['file_name'];
}
}
//check & processing image 7 banner upload files
if ($_FILES['userfile7']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner6_image_width, staticbanner6_image_height')->from('configuration')->where('id_configuration', 1);
$banner7_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner7_dimension->staticbanner6_image_width;
$config['max_height'] = $banner7_dimension->staticbanner6_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile7')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror7', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image7 = $this->upload->data();
$image_filename7 = $image7['file_name'];
}
}
//check & processing image 8 banner upload files
if ($_FILES['userfile8']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner6_image_width, staticbanner6_image_height')->from('configuration')->where('id_configuration', 1);
$banner8_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner8_dimension->staticbanner6_image_width;
$config['max_height'] = $banner8_dimension->staticbanner6_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile8')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror8', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image8 = $this->upload->data();
$image_filename8 = $image8['file_name'];
}
}
//check & processing image 9 banner upload files
if ($_FILES['userfile9']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner6_image_width, staticbanner6_image_height')->from('configuration')->where('id_configuration', 1);
$banner9_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner9_dimension->staticbanner6_image_width;
$config['max_height'] = $banner9_dimension->staticbanner6_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile9')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror9', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image9 = $this->upload->data();
$image_filename9 = $image9['file_name'];
}
}
//check & processing image 10 banner upload files
if ($_FILES['userfile10']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner6_image_width, staticbanner6_image_height')->from('configuration')->where('id_configuration', 1);
$banner10_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner10_dimension->staticbanner6_image_width;
$config['max_height'] = $banner10_dimension->staticbanner6_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile10')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror10', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image10 = $this->upload->data();
$image_filename10 = $image10['file_name'];
}
}
//check & processing image 11 banner upload files
if ($_FILES['userfile11']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner6_image_width, staticbanner6_image_height')->from('configuration')->where('id_configuration', 1);
$banner11_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner11_dimension->staticbanner6_image_width;
$config['max_height'] = $banner11_dimension->staticbanner6_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile11')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror11', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image11 = $this->upload->data();
$image_filename11 = $image11['file_name'];
}
}
//check & processing image 12 banner upload files
if ($_FILES['userfile12']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner6_image_width, staticbanner6_image_height')->from('configuration')->where('id_configuration', 1);
$banner12_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner12_dimension->staticbanner6_image_width;
$config['max_height'] = $banner12_dimension->staticbanner6_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile12')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror11', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image12 = $this->upload->data();
$image_filename12 = $image12['file_name'];
}
}
//check & processing image 12 banner upload files
if ($_FILES['userfile13']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner6_image_width, staticbanner6_image_height')->from('configuration')->where('id_configuration', 1);
$banner13_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner13_dimension->staticbanner6_image_width;
$config['max_height'] = $banner13_dimension->staticbanner6_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile13')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror13', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image13 = $this->upload->data();
$image_filename13 = $image13['file_name'];
}
}
//check & processing image 12 banner upload files
if ($_FILES['userfile14']['size'] !== 0) {
//get banner dimensioon
$this->db->select('staticbanner6_image_width, staticbanner6_image_height')->from('configuration')->where('id_configuration', 1);
$banner14_dimension = $this->db->get()->row();
$config['upload_path'] = './uploads/page/';
$config['allowed_types'] = 'jpg';
$config['max_size'] = '200';
$config['max_width'] = $banner14_dimension->staticbanner6_image_width;
$config['max_height'] = $banner14_dimension->staticbanner6_image_height;
$this->load->library('upload', $config);
$this->upload->initialize($config);
if (!$this->upload->do_upload('userfile14')) {
//echo $this->upload->display_errors(); die();
$this->session->set_flashdata('staticerror14', '<br>
<p style="background:orange; color:white; padding:5px; font-weight:bold;">Image Upload Error. Wrong format or size.</p>');
redirect('admin/home_centerbanners/edit/' . $id);
} else {
$image14 = $this->upload->data();
$image_filename14 = $image14['file_name'];
}
}
$data = array(
'banner1_link' => $this->security->xss_clean($this->input->post('banner1_link')),
'banner2_link' => $this->security->xss_clean($this->input->post('banner2_link')),
'banner3_link' => $this->security->xss_clean($this->input->post('banner3_link')),
'banner3_link_en' => $this->security->xss_clean($this->input->post('banner3_link_en')),
'banner4_link' => $this->security->xss_clean($this->input->post('banner4_link')),
'banner4_link_en' => $this->security->xss_clean($this->input->post('banner4_link_en')),
'banner5_link' => $this->security->xss_clean($this->input->post('banner5_link')),
'banner6_link' => $this->security->xss_clean($this->input->post('banner6_link')),
'banner7_link' => $this->security->xss_clean($this->input->post('banner7_link')),
'banner8_link' => $this->security->xss_clean($this->input->post('banner8_link')),
'banner9_link' => $this->security->xss_clean($this->input->post('banner9_link')),
'banner10_link' => $this->security->xss_clean($this->input->post('banner10_link')),
'banner11_link' => $this->security->xss_clean($this->input->post('banner11_link')),
'banner12_link' => $this->security->xss_clean($this->input->post('banner12_link')),
'banner13_link' => $this->security->xss_clean($this->input->post('banner13_link')),
'banner14_link' => $this->security->xss_clean($this->input->post('banner14_link')),
'popup_active' => $this->input->post('popup_active'),
'popup_text' => $this->input->post('popup_text'),
'popup_day_expire' => $this->input->post('popup_day_expire')
);
//image upload
if (isset($image_filename1)) {
$data['banner1_image'] = $image_filename1;
}
//image upload
if (isset($image_filename2)) {
$data['banner2_image'] = $image_filename2;
}
//image upload
if (isset($image_filename3)) {
$data['banner3_image'] = $image_filename3;
}
//image upload
if (isset($image_filename4)) {
$data['banner4_image'] = $image_filename4;
}
//image upload
if (isset($image_filename5)) {
$data['banner5_image'] = $image_filename5;
}
//image upload
if (isset($image_filename6)) {
$data['banner6_image'] = $image_filename6;
}
//image upload
if (isset($image_filename7)) {
$data['banner7_image'] = $image_filename7;
}
//image upload
if (isset($image_filename8)) {
$data['banner8_image'] = $image_filename8;
}
//image upload
if (isset($image_filename9)) {
$data['banner9_image'] = $image_filename9;
}
//image upload
if (isset($image_filename10)) {
$data['banner10_image'] = $image_filename10;
}
//image upload
if (isset($image_filename11)) {
$data['banner11_image'] = $image_filename11;
}
//image upload
if (isset($image_filename12)) {
$data['banner12_image'] = $image_filename12;
}
//image upload
if (isset($image_filename13)) {
$data['banner13_image'] = $image_filename13;
}
//image upload
if (isset($image_filename14)) {
$data['banner14_image'] = $image_filename14;
}
if (isset($image_filename15)) {
$data['popup_image'] = $image_filename15;
}
$this->home_centerbanner_m->edit_home_centerbanners($id, $data);
$user_id = $this->session->userdata('admin')['id'];
$activity = 'User mengedit home center banner';
log_activity($user_id, $activity);
$this->session->set_flashdata('success', '<br><p style="background:green; color:white; padding:5px; font-weight:bold;">Home center Banner Edit Successful</p>');
redirect('admin/home_centerbanners');
}
}
$this->data['subview'] = 'admin/home_centerbanners/edit';
$this->load->view('admin/templates/header', $this->data_header);
$this->load->view('admin/_layout_main', $this->data);
$this->load->view('admin/templates/footer');
}
//to delete a brand
public function delete($id)
{
//check if id exist. If not exist, show 404.
$count = $this->home_centerbanners_m->count_exist($id);
if ($count == 0) {
//page not exist
show_404();
}
//delete brand
$this->home_centerbanner_m->delete($id);
$this->session->set_flashdata('success', '<br><p style="background:green; color:white; padding:5px; font-weight:bold;">Home center Banner Delete Successful</p>');
redirect('admin/home_centerbanners');
}
public function delete_popup_image()
{
//get image file name for deletion
$this->db->select('popup_image')->from('home_centerbanners')->where('id_home_centerbanners', 1);
$image = $this->db->get()->row()->popup_image;
//Delete the actual image file from server. FCPATH is codeigniter base path
unlink(FCPATH . '/uploads/page/' . $image);
//Delete image field from database
$data = array(
'popup_image' => '',
);
$this->db->where('id_home_centerbanners', 1);
$this->db->update('home_centerbanners', $data);
$user_id = $this->session->userdata('admin')['id'];
$activity = 'User menghapus pop up image';
log_activity($user_id, $activity);
$this->session->set_flashdata('success', '<br><p style="background:green; color:white; padding:5px; font-weight:bold;">Popup Image Delete Successful</p>');
redirect('admin/home_centerbanners');
}
public function delete_static_banner($image_number = NULL)
{
if ($image_number == NULL) {
show_404();
}
//get image file name for deletion
$this->db->select('banner1_image, banner2_image, banner3_image, banner4_image, banner5_image, banner6_image, banner7_image, banner8_image, banner9_image, banner10_image, banner11_image, banner12_image, banner13_image, banner14_image');
$this->db->from('home_centerbanners');
$this->db->where('id_home_centerbanners', 1);
switch ($image_number) {
case '1':
$image = $this->db->get()->row()->banner1_image;
break;
case '2':
$image = $this->db->get()->row()->banner2_image;
break;
case '3':
$image = $this->db->get()->row()->banner3_image;
break;
case '4':
$image = $this->db->get()->row()->banner4_image;
break;
case '5':
$image = $this->db->get()->row()->banner5_image;
break;
case '6':
$image = $this->db->get()->row()->banner6_image;
break;
case '7':
$image = $this->db->get()->row()->banner7_image;
break;
case '8':
$image = $this->db->get()->row()->banner8_image;
break;
case '9':
$image = $this->db->get()->row()->banner9_image;
break;
case '10':
$image = $this->db->get()->row()->banner10_image;
break;
case '11':
$image = $this->db->get()->row()->banner11_image;
break;
case '12':
$image = $this->db->get()->row()->banner12_image;
break;
case '13':
$image = $this->db->get()->row()->banner13_image;
break;
case '14':
$image = $this->db->get()->row()->banner14_image;
break;
}
//Delete the actual image file from server. FCPATH is codeigniter base path
unlink(FCPATH . '/uploads/page/' . $image);
//Delete image field from database
$data = array(
'banner' . $image_number . '_image' => '',
);
$this->db->where('id_home_centerbanners', 1);
$this->db->update('home_centerbanners', $data);
$user_id = $this->session->userdata('admin')['id'];
$activity = 'User menghapus static banner depan';
log_activity($user_id, $activity);
$this->session->set_flashdata('success', '<br><p style="background:green; color:white; padding:5px; font-weight:bold;">Static Image Delete Successful</p>');
redirect('admin/home_centerbanners');
}
}