Intial revision.

This commit is contained in:
root 2010-03-21 14:50:44 -04:00
commit f87492d73e
19 changed files with 607 additions and 0 deletions

26
modules/expunge.php Normal file
View 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');
}
}
?>