First Commit
[kimblog.git/.git] / api / del.php
1 <?php
2
3 if (isset($_GET['f'])){
4     if (file_exists('../p/'.$_GET['f']) and strpos('.',$_GET['f'])==false and strpos('/',$_GET['f'])==false){
5         unlink('../p/'.$_GET['f']);
6         header('Location: ../delete.php');
7     }
8     else{
9         header('Location: ../delete.php?error=<div_class="error">Post_not_exists</div>');
10     }
11 }
12 else{
13     header('Location: ../delete.php');
14 }