Warning: copy(): Unable to access in /srv/www/htdocs/web38/html/hoinker/admin/m_up.php on line 26
PHP-Code:
<?
copy($_FILES['file_1']['tmp_name'], "/srv/www/htdocs/web38/html/hoinker/save/".(time()).".gif");
?>
Vielen Dank!
<?
copy($_FILES['file_1']['tmp_name'], "/srv/www/htdocs/web38/html/hoinker/save/".(time()).".gif");
?>
<? session_start(); ?>
<? require_once("../includes/funcs.php"); ?>
<? if($_SESSION['ADMIN'] != "1"){ header("Location: ./index.php"); } ?>
<html>
<head>
<style>
<!--
body { margin: 15; }
td, a { color: #FFFFFF; font-family: Verdana, Arial; font-size: 10pt; }
a { font-weight: bold; }
-->
</style>
</head>
<body>
<table border=1 width="100%" align="center" cellspacing=0 cellpadding=1>
<tr><td bgcolor="#333366" style="color: #FFFFFF" align="center">Hochladen</td></tr>
<tr><td bgcolor="#336699" style="color: #FFFFFF" align="center">
<?
if($inkat != "" && $inkat){
//mysql_query("INSERT INTO `cv_data` (ID,CAT,TIME,HITS) VALUES ('', '".$inkat."', '".(time())."', '0')");
//echo mysql_error();
copy($_FILES['file_1']['tmp_name'], "/srv/www/htdocs/web38/html/hoinker/save/".(time()).".gif");
copy($_FILES['file_2']['tmp_name'], "/srv/www/htdocs/web38/html/hoinker/save/".(time()).".ico");
print_r($_FILES);
echo "Erfolgreich hochgeladen!";
}
?>
<form action="m_up.php" method="POST" enctype="multipart/form-data">
<table>
<tr><td>In Kategorie:</td><td><select name="inkat">
<? require_once("../includes/select_menu.php"); ?></select></td></tr>
<tr><td>Datei 1 (*.gif):</td><td><input type=file name="file_1"></td></tr>
<tr><td>Datei 2 (*.ico):</td><td><input type=file name="file_2"></td></tr>
</table>
<input type=submit name=submit value="Hochladen">
</form>
</td></tr>
</table>
</body>
</html>
Kommentar