0byt3m1n1-V2
Path:
/
home
/
nlpacade
/
www
/
arcaneoverseas.com
/
application
/
controllers
/
admin
/
[
Home
]
File: file.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class File extends CI_Controller { /** * Index Page for this controller. * * Maps to the following URL * http://example.com/index.php/welcome * - or - * http://example.com/index.php/welcome/index * - or - * Since this controller is set as the default controller in * config/routes.php, it's displayed at http://example.com/ * * So any other public methods not prefixed with an underscore will * map to /index.php/welcome/<method_name> * @see http://codeigniter.com/user_guide/general/urls.html */ public function index($destination) { $options = array( 'upload_dir' => dirname(__FILE__) . '/../../upload/'.$destination.'/', 'upload_url' => dirname($_SERVER['PHP_SELF']) . '/../../upload/'.$destination.'/', 'image_versions' => array( 'thumbnail' => array( 'upload_dir' => dirname(__FILE__) . '/../../upload/'.$destination.'/thumbnails/', 'upload_url' => dirname($_SERVER['PHP_SELF']) . '/../../upload/'.$destination.'/thumbnails/', 'max_width' => 80, 'max_height' => 80 ) ), 'destination' => $destination ); $this->load->library('ajax_file'); $this->ajax_file->setOption($options); header('Pragma: no-cache'); header('Cache-Control: private, no-cache'); header('Content-Disposition:inline;filename="files.txt"'); switch ($_SERVER['REQUEST_METHOD']) { case 'HEAD': case 'GET': $this->ajax_file->get(); break; case 'POST': $this->ajax_file->post(); break; case 'DELETE': $this->ajax_file->delete(); break; default: header('HTTP/1.0 405 Method Not Allowed'); echo "seomthing"; } } } /* End of file welcome.php */ /* Location: ./application/controllers/welcome.php */
©
2018.