HOME


Mini Shell 1.0
DIR: /home/islapiiu/sites/thomas-gall/newsite/control-panel/delete/ajax/
Upload File :
Current File : /home/islapiiu/sites/thomas-gall/newsite/control-panel/delete/ajax/blog-photo.php
<?phpinclude_once(dirname(__FILE__) . '/../../../class/include.php');include_once(dirname(__FILE__) . '/../../auth.php');if ($_POST['option'] == 'delete') {    $BLOG_PHOTO = new BlogPhoto($_POST['id']);    unlink('../../../upload/blog-post/gallery/' . $BLOG_PHOTO->image_name);    unlink('../../../upload/blog-post/gallery/thumb/' . $BLOG_PHOTO->image_name);    $result = $BLOG_PHOTO->delete();    if ($result) {        $data = array("status" => TRUE);        header('Content-type: application/json');        echo json_encode($data);    }}