Seditio Source
Root |
./othercms/GetSimpleCMS-3.3.16/admin/uploadify-check-exists.php
<?php
/**
 * Upload Folder Checker Ajax
 *
 * Return true if the file exists
 *
 * @author Ronnie Garcia
 * @package GetSimple
 * @subpackage Files
 */
 
include('inc/common.php');
login_cookie_check();

$path = (isset($_GET['path'])) ? $_GET['path'] . "/" : "";
$name = clean_img_name($_POST['filename']);
if (
file_exists(GSDATAUPLOADPATH .$path . $name)) {
    echo
1;
} else {
    echo
0;
}