Project

General

Profile

Statistics
| Branch: | Revision:

colonymech / docs / www / colonyscout / internal / uploadify / uploadify / check.php @ f59acf11

History | View | Annotate | Download (336 Bytes)

1
<?php
2
// Uploadify v1.6.2
3
// Copyright (C) 2009 by Ronnie Garcia
4
// Co-developed by Travis Nickels
5
$fileArray = array();
6
foreach ($_POST as $key => $value) {
7
        if ($key != 'folder') {
8
                if (file_exists($_SERVER['DOCUMENT_ROOT'] . $_POST['folder'] . '/' . $value)) {
9
                        $fileArray[$key] = $value;
10
                }
11
        }
12
}
13
echo json_encode($fileArray);
14
?>