Subversion-Projekte lars-tiefland.content-management

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?
2
	$self=basename($PHP_SELF);
3
 
4
	define ("modul_name", "online_shop");
5
	define ("tool_name", "prodanetImport");
6
	require_once "../connect2.php";
7
 
8
	session_start();
9
 
10
	if ($_FILES)
11
	{
12
		if ($_FILES[importfile][error] == 0)
13
		{
14
			if
15
			(
16
				move_uploaded_file
17
				(
18
					$_FILES[importfile][tmp_name],
19
					"/web/apache/content-management/Online-Shop/prodanetImportTools/importbuffer/".urlencode($_FILES[importfile][name])
20
				)
21
			)
22
			{
23
				echo "Datei ".$_FILES[importfile][name]." hochgeladen. Import erfolgt in ".(5 - date("i") % 5)." Minuten.";
24
			}
25
			else
26
			{
27
				echo "move_uploaded_file fehler.";
28
			}
29
		}
30
		else
31
		{
32
			echo "<pre>";
33
			print_r($_FILES);
34
			echo "</pre>";
35
		}
36
	}
37
 
38
?>
39
<html>
40
<head>
41
<title><? echo $webs[kunde_bezeichnung] ?>: Redaktionssystem</title>
42
<meta http-equiv="Content-Type" content="text/html; charset=<? echo $charset ?>">
43
<link rel=stylesheet type="text/css" href="redaktion.css">
44
<style type="text/css">
45
body
46
{
47
	font-family: Arial, Helvetica, sans-serif; font-size: 10pt;
48
<? if ($webs[font_color_seite])		{ ?>color:				#<? echo $webs[font_color_seite] ?>;<? } ?>
49
<? if ($webs[bgcolor_seite])		{ ?>background-color:	#<? echo $webs[bgcolor_seite] ?>;<? } ?>
50
<? if ($webs[hintergrundbild]) 		{ ?>background-image: url(../images/hintergrundbild/<? echo $webs[hintergrundbild] ?>);<? } ?>
51
}
52
 
53
.links
54
{
55
font-size: 10pt;
56
<? if ($webs[font_color_links])		{ ?>color:				#<? echo $webs[font_color_links] ?>;<? } ?>
57
<? if ($webs[bgcolor_links])		{ ?>background-color:	#<? echo $webs[bgcolor_links] ?>;<? } ?>
58
}
59
 
60
.rechts
61
{
62
font-size: 10pt;
63
<? if ($webs[font_color_rechts])	{ ?>color:				#<? echo $webs[font_color_rechts] ?>;<? } ?>
64
<? if ($webs[bgcolor_rechts])		{ ?>background-color:	#<? echo $webs[bgcolor_rechts] ?>;<? } ?>
65
}
66
 
67
A:link {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo $webs[font_color_rechts] ?>}
68
A:visited {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo $webs[font_color_rechts] ?>}
69
A:active {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo $webs[font_color_rechts] ?>}
70
A:hover {font-family: Arial, Helvetica, sans-serif; font-size: 10pt; color: #<? echo $webs[font_color_rechts] ?>}
71
</style>
72
<meta name="description" content="Redaktionssystem">
73
<meta name="author" content="Webagentur Niewerth">
74
<meta name="robots" content="noindex">
75
</head>
76
 
77
<body bgcolor="#<? echo $webs[bgcolor_seite]; ?>" leftmargin="20" topmargin="10" marginwidth="20" marginheight="10" text="#000000">
78
<form method="post" action="<? echo $self ?>" name="formname" enctype="multipart/form-data">
79
  <table width="600" border="1" cellspacing="0" cellpadding="3">
80
    <tr>
81
      <td class="links">Prodanet Importdatei einspielen</td>
82
    </tr>
83
    <tr>
84
      <td class="rechts" align="center">
85
        <br><input type="file" name="importfile"><br>&nbsp;
86
      </td>
87
    </tr>
88
    <tr align="right">
89
      <td class="links">
90
        <input type="submit" name="Abschicken" value="Abschicken">
91
        <input type="reset" value="Abbrechen">
92
      </td>
93
    </tr>
94
  </table>
95
</form>
96
</body>