Initial import
This commit is contained in:
17
one-api/application/controllers/v1/su/Photo.php
Normal file
17
one-api/application/controllers/v1/su/Photo.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
class Photo extends CI_Controller
|
||||
{
|
||||
var $base_dir = "/home/one/project/one/one-media/one-photo/patient/";
|
||||
function test() {
|
||||
echo "Test";
|
||||
}
|
||||
function small(){
|
||||
$y = $this->input->get("y");
|
||||
$pid = $this->input->get("pid");
|
||||
$foto_file = $this->base_dir . "$y" . "/" . $pid . "_thumb.jpg";
|
||||
header('Content-type: image/jpg');
|
||||
|
||||
echo file_get_contents($foto_file);
|
||||
}
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user