Intial revision.
This commit is contained in:
commit
f87492d73e
19 changed files with 607 additions and 0 deletions
26
modules/expunge.php
Normal file
26
modules/expunge.php
Normal file
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
class expunge extends admin
|
||||
{
|
||||
public function __default()
|
||||
{
|
||||
$this->db->execute('DELETE FROM incoming WHERE id = "' . $_REQUEST['id'] . '";');
|
||||
|
||||
$path = getcwd() . '/../incoming/' . $_REQUEST['id'] . '/';
|
||||
$files = scandir($path);
|
||||
|
||||
foreach ($files as $file)
|
||||
{
|
||||
if ($file != '.' && $file != '..')
|
||||
{
|
||||
unlink($path . $file);
|
||||
}
|
||||
}
|
||||
|
||||
rmdir($path);
|
||||
|
||||
header('Location: /admin');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue