Seditio Source
Root |
./othercms/Just-CMS v1.3.2 Valentina/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;
}