application/controllers/Institute.php
/*****BACKUP / RESTORE / DELETE DATA PAGE**********/
BACKUP / RESTORE / DELETE DATA PAGE
BACKUP / RESTORE / DELETE DATA PAGE
function backup_restore($operation = '', $type = '')
    {
        if ($operation == 'create') {
            $this->crud_model->create_backup($type);
        }
        if ($operation == 'restore') {
            $this->crud_model->restore_backup();
            $this->session->set_flashdata('backup_message', 'Backup Restored');
            redirect(base_url() . 'institute/backup_restore/', 'refresh');
        }
        if ($operation == 'delete') {
            $this->crud_model->truncate($type);
            $this->session->set_flashdata('backup_message', 'Data removed');
            redirect(base_url() . 'institute/backup_restore/', 'refresh');
        }
        $page_data['page_info']  = 'Create backup / restore from backup';
        $page_data['page_name']  = 'backup_restore';
        $page_data['page_title'] = get_phrase('manage_backup_restore');
        $this->load->view('backend/index', $page_data);
    }
function backup_restore ( $ operation = '' , $ type = '' ) { if ( $ operation == 'create' ) { $ this -> crud_model -> create_backup ( $ type ) ; } if ( $ operation == 'restore' ) { $ this -> crud_model -> restore_backup ( ) ; $ this -> session -> set_flashdata ( 'backup_message' , 'Backup Restored' ) ; redirect ( base_url ( ) . 'institute/backup_restore/' , 'refresh' ) ; } if ( $ operation == 'delete' ) { $ this -> crud_model -> truncate ( $ type ) ; $ this -> session -> set_flashdata ( 'backup_message' , 'Data removed' ) ; redirect ( base_url ( ) . 'institute/backup_restore/' , 'refresh' ) ; } $ page_data [ 'page_info' ] = 'Create backup / restore from backup' ; $ page_data [ 'page_name' ] = 'backup_restore' ; $ page_data [ 'page_title' ] = get_phrase ( 'manage_backup_restore' ) ; $ this -> load -> view ( 'backend/index' , $ page_data ) ; }
BACKUP / RESTORE / DELETE DATA PAGE
BACKUP / RESTORE / DELETE DATA PAGE