Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
// Variabeln
$alt_head = '../lib/texte/alt_headerbanner.txt';
$alt_pops = '../lib/texte/alt_bettelseitenpopup.txt';
$alt_start = '../lib/texte/alt_startseitenpopup.txt';
$alt_bettel = '../lib/texte/bettelwerbung.txt';
$alt_box1 = '../lib/texte/box1.txt';
if (!isset($_POST['updaten'])) $_POST['updaten'] = '';
if ($_POST['updaten'] == 'Updaten !') {
// Alternativ Header schreiben
$_POST['head'] = str_replace('\\', '', $_POST['head']);
$fp = @fopen ($alt_head, "w");
fwrite ($fp, $_POST['head']);
fclose ($fp);
// Alternativ Popups schreiben
$_POST['pops'] = str_replace('\\', '', $_POST['pops']);
$fp = @fopen ($alt_pops, "w");
fwrite ($fp, $_POST['pops']);
fclose ($fp);
// Alternativ Start-Popups schreiben
$_POST['start'] = str_replace('\\', '', $_POST['start']);
$fp = @fopen ($alt_start, "w");
fwrite ($fp, $_POST['start']);
fclose ($fp);
// Bettelseite Werbung schreiben
$_POST['bettelwerbung'] = str_replace('\\', '', $_POST['bettelwerbung']);
$fp = @fopen ($alt_bettel, "w");
fwrite ($fp, $_POST['bettelwerbung']);
fclose ($fp);
// Box 1 schreiben
$_POST['box1'] = str_replace('\\', '', $_POST['box1']);
$fp = @fopen ($alt_box1, "w");
fwrite ($fp, $_POST['box1']);
fclose ($fp);
}
// Dateien auslesen
$fp = fopen ($alt_head, "r");
$head = @fread ($fp, filesize ($alt_head));
fclose ($fp);
$head = str_replace('\\', '', $head);
$fp = fopen ($alt_pops, "r");
$pops = @fread ($fp, filesize ($alt_pops));
fclose ($fp);
$pops = str_replace('\\', '', $pops);
$fp = fopen ($alt_start, "r");
$start = @fread ($fp, filesize ($alt_start));
fclose ($fp);
$start = str_replace('\\', '', $start);
// Bettelwerbung Banner
$fp = fopen ($alt_bettel, "r");
$binhalt = @fread ($fp, filesize ($alt_bettel));
fclose ($fp);
$binhalt = str_replace('\\', '', $binhalt);
// Box 1
$fp = fopen ($alt_box1, "r");
$box1 = @fread ($fp, filesize ($alt_box1));
fclose ($fp);
$box1 = str_replace('\\', '', $box1);
?>
<?php head("Alternativwerbung bearbeiten (html erlaubt!)");?>
<div align="center">
<br />
<form action="" method="post">
<b>Headerwerbung (Banner)</b><br>
<textarea name="head" style="width:90%; height:120px;"><?php echo $head;?></textarea><br>
<br>
<b>Startseitenpopup</b><br>
<textarea name="start" style="width:90%; height:120px;"><?php echo $start;?></textarea><br>
<br>
<b>Bettelseitenpopup</b><br>
<textarea name="pops" style="width:90%; height:120px;"><?php echo $pops;?></textarea><br>
<br>
<b>Bettelwerbung</b><br>
<textarea name="bettelwerbung" style="width:90%; height:120px;"><?php echo $binhalt;?></textarea><br>
<br>
<b>Menübox I</b><br>
<textarea name="box1" style="width:90%; height:120px;"><?php echo $box1;?></textarea><br>
<br>
<input type="Submit" name="updaten" value="Updaten !">
</form>
</div>
<?php foot();?>