<?php
//login code
include "../admin/adminses.php";

@$uploadDir = '../media/';
@chmod ("$uploadDir", 0777);
$uploadFile = $uploadDir . @$_FILES['userfile']['name'];
// $uploadFile;
if (move_uploaded_file(@$_FILES['userfile']['tmp_name'], $uploadFile))
{
//$url=$_SERVER['HTTP_HOST'];
@chmod ($uploadFile, 0664 );
@$contentcenter.= "<img align=left src=\"".$uploadFile."\"><small>Перетащите картинку<br />
или копировать/вставить<br />
в рабочую область<br />
(IE7)</small>\n";
@chmod ("$uploadDir", 0755);
}
else
{

@$contentcenter.= "XXX!";
}

?>


<html>
<head>
<title>upload</title>
</head>
<body>
<?php echo $contentcenter ?>
</body>
</html>
