Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GSoC-FUQT] Advanced File Uploader: added facility to edit and/or del…
…ete uploaded files in the gallery tab. git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_dev@8815 b72ed6b6-b9f8-46b5-92b4-906544132732
- Loading branch information
Amit Shanker
committed
Jun 8, 2010
1 parent
2944023
commit ca88a61
Showing
4 changed files
with
136 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
$filename = getcwd()."/".trim($_GET['file'], "\""); | ||
|
||
$fh = fopen($filename, 'w') or die("can't open file"); | ||
fclose($filename); | ||
|
||
//echo $filename; | ||
if (unlink($filename)) | ||
echo 'File '.$filename.' deleted'; | ||
else | ||
echo 'Oops, There was an error deleting the file'; | ||
|
||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters