[uploader] / udeleter.php Repository:

View of /udeleter.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (download) (annotate)
Mon Jan 1 15:25:20 2007 EST (3 years, 8 months ago) by jerome
File size: 617 byte(s)
Spaces -> Tabs

<?php include "include.php" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
    <link rel="stylesheet" type="text/css" href="style.css" />
    <title>File deleted!</title>
    </head>
<body><p>
<?php
    $file 
$_GET['file'];
    
$deleted false;
    if(
$h = @opendir($uploaddir)) {
    while(
$f readdir($h)) {
        if(
$file == sha1($delkey $f)) {
        
$deleted true;
        echo 
"<span class='red'>$f</span> is no more!<br/>";
        
unlink($uploaddir $f);
        }
    }
    if(!
$deleted) {
        echo 
"This is not a valid file (anymore?)<br/>";
    }
    }
?>
</p></body>
</html>

TiCPU
ViewVC Help
Powered by ViewVC 1.0.1