The New Desing

This commit is contained in:
Serghey Rodin 2015-05-29 02:07:55 +03:00
commit 067a2c862a
305 changed files with 22231 additions and 7576 deletions

View file

@ -0,0 +1,25 @@
<?php
// Define a destination
$targetFolder = '/home/admin/'; // Relative to the root
$verifyToken = md5('unique_salt' . $_POST['timestamp']);
if (!empty($_FILES) && $_POST['token'] == $verifyToken) {
$tempFile = $_FILES['Filedata']['tmp_name'];
$targetPath = $targetFolder;
$targetFile = rtrim($targetPath,'/') . '/' . $_FILES['Filedata']['name'];
// Validate the file type
//$fileTypes = array('jpg','jpeg','gif','png'); // File extensions
//$fileParts = pathinfo($_FILES['Filedata']['name']);
//if (in_array($fileParts['extension'],$fileTypes)) {
move_uploaded_file($tempFile,$targetFile);
echo '1';
//} else {
// echo 'Invalid file type.';
// }
}
?>