Statistik  Mitglieder gesamt: 68142  Mitglieder online: 2  Gäste online: 3 mehr...
Anzeige
| Thread: Seite soll blinken ...
 28.09.2008 12:58 Uhr
|
|
|
|
|
Ja aber die frage is ja, wie kapiert das Script, ahhh jetz is ein neuer eintrag drinne?
Coder der gbadmin.php wo die Wünsche reinkommen: PHP: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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
| <?
require("functions/config.php");
require("functions/functions.php");
require("functions/admin.php");
$_REQUEST['cc'] = intval($_REQUEST['cc']);
$password = md5($password);
if($password != $_REQUEST['passwd']) $_REQUEST['passwd'] = md5($_REQUEST['passwd']);
if($password == $_REQUEST['passwd'])
{
if($_REQUEST['delete'] && $_REQUEST['werg'][1])
{
$data = loaddata();
$i = 0;
foreach($data as $erg)
{
$erg = explode("::", $erg);
$cerg = 0;
foreach($erg as $terg)
{
$tmperg[$cerg] = ($cerg!=0) ? base64_decode($terg) : $terg;
$cerg++;
}
$erg = $tmperg;
if($_REQUEST['werg'][1] == $erg[1])
{
$data[$i] = "";
echo "<meta http-equiv='refresh' content='0; URL=geloschtr.htm'> </b><br><br>";
}
$i++;
}
adminwdata($data);
}
if($_REQUEST['change'])
{
$data = loaddata();
$i = 0;
foreach($data as $erg)
{
$erg = explode("::", $erg);
$cerg = 0;
foreach($erg as $terg)
{
$tmperg[$cerg] = ($cerg!=0) ? base64_decode($terg) : $terg;
$cerg++;
}
$erg = $tmperg;
if($_REQUEST['werg'][1]==$erg[1])
{
$show = ($_REQUEST['werg'][0] == "on") ? 1 : 0;
$data[$i] = $show."::".base64_encode($_REQUEST['werg'][1])."::".base64_encode($_REQUEST['werg'][2])."::".base64_encode($_REQUEST['werg'][3])."::".base64_encode(stripslashes($_REQUEST['werg'][4]))."::".base64_encode(stripslashes($_REQUEST['werg'][5]))."::".base64_encode(stripslashes($_REQUEST['werg'][6]))."::".base64_encode(stripslashes($_REQUEST['werg'][7]))."::".base64_encode(stripslashes($_REQUEST['werg'][8]))."::".base64_encode(stripslashes($_REQUEST['werg'][9]));
echo "<b>Eintrag geändert!</b><br><br>";
}
$i++;
}
adminwdata($data);
}
$data = array_reverse(loaddata());
$table = "";
$i = 0;
$st = 0;
foreach($data as $erg)
{
if($i >= $_REQUEST['cc'])
{
$entrynum = count($data);
$erg = explode("::", $erg);
$cerg = 0;
foreach($erg as $terg)
{
if($cerg == 0)
{
}
else
$tmperg[$cerg] = base64_decode($terg);
$cerg++;
}
$erg = $tmperg;
unset($tmperg);
$erg[4] = "<name=\"werg[4]\" rows=5 cols=40>".$erg[4]."</textarea></font></strong><br><font size='-3' color='red'><strong>IP:".$erg[3]."</strong></font>";
$erg[5] = "<br><name=\"werg[5]\" rows=6 cols=40>".$erg[5]."</textarea>";
$erg[5] = trim($erg[5]);
$erg[8] = "<name=\"werg[8]\" rows=5 cols=40>".$erg[8]."</textarea>";
$erg[9] = "<name=\"werg[9]\" rows=3 cols=40>".$erg[9]."</textarea>";
$content = "<strong>Gruß:</strong><br><input type=hidden name=\"werg[1]\" value=\"".$erg[1]."\">".$erg[8]."<input type=hidden name=cc value=\"".$_REQUEST['cc']."\"><br><input type=hidden name=passwd value=\"".$_REQUEST['passwd']."\"><br>";
$table .= tplprint("tpl/admtable.tpl", array(
"NAME" => $erg[4],
"EMAIL" => $erg[5],
"ICQ" => $erg[6],
"HP" => $erg[7],
"CONTENT" => $content,
"DATE" => date("d.m.Y", $erg[2]),
"TIME" => date("H:i", $erg[2]),
"SHOW" => $erg[0],
"NUMBER" => ($entrynum-$i)));
unset($erg);
if($i == $entries+$_REQUEST['cc']-1) break;
$st++;
}
$i++;
}
$mnum = $entrynum;
$sites = "";
$i=-$entries;
$ic = 1;
while($mnum>0)
{
$mnum = $mnum - $entries;
$i = $i + $entries;
if($_REQUEST['cc'] == $i) $sites .= "<b>$ic</b> ";
else $sites .= "<a href=\"gbadmin.php?cc=$i&passwd=".$_REQUEST['passwd']."\">$ic</a> ";
$ic++;
}
$menu = tplprint("tpl/menu.tpl", array(
"ENTRYNUM" => $entrynum,
"SITES" => $sites));
echo tplprint("tpl/admin.tpl", array(
"ENTRIES" => $table,
"MENU" => $menu,
"PASSWORD" => $_REQUEST['passwd']));
}
else
{
?>
<html>
<head><title>Wunschbox</title></head>
<body>
<font size=4><b>Login:</b></font><br><br>
<form action=gbadmin.php method=POST>
Passwort: <input type=password name="passwd"> <input type=submit name="submit" value="Login">
</form>
</body>
</html>
<?php
}
?> |
Coder der tpl datei: PHP: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
|
<meta http-equiv="refresh" content="30">
<html>
<head>
<title>Hörerwünsche</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#A1D1EC" vlink="#A1D1EC" alink="A1D1EC">
<link rel='stylesheet' href='format.css' type='text/css'>
<link rel='stylesheet' href='menue.css' type='text/css'>
</head>
<body>
<table align='center' cellspacing='0' cellpadding='0' border='0' id='aussen'>
<tr>
<td>
<table align='center' cellspacing='0' cellpadding='0' border='0' id='main_top'>
</tr>
<tr>
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
{MENU}<center><font size="+2"><strong>Hörerwünsche</strong></font></center>
<center><form action="http://volldampf-radio.com/x648Modiecke/gbadmin.html" target="inhalt" method="SUBMIT"><input type="submit" name="no_ssl" value="Aktualisieren" /></form></a>
<strong><font size="-1">(automatisch alle 30 Sekunden)</font></strong>
</center>
{ENTRIES}
<br>
<br>
<center><font size=1>Bei Fragen melde dich bei : VDR_SCHLUMPF@yahoo.de</font></center>
<br>
</font>
</body>
</html> |
Coder der gb.php die den eintrag verfasst: PHP: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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
| <body bgcolor="#000099"><?php
require("functions/config.php");
require("functions/functions.php");
require("functions/visitor.php");
switch($_REQUEST['service'])
{
case "entry":
$_REQUEST['name'] = strip_tags($_REQUEST['name']);
$_REQUEST['name'] = trim($_REQUEST['name']);
if(!$html) $_REQUEST['text'] = htmlspecialchars($_REQUEST['text']);
$_REQUEST['text'] = trim($_REQUEST['text']);
if(!empty($_REQUEST['name']) && !empty($_REQUEST['text']))
{
$out = "";
$_REQUEST['email'] = strip_tags(trim($_REQUEST['email']));
if(strlen($_REQUEST['text']) > $maxlength && $maxlength > 0) $out .= "<li>"._tolong."</li>";
if(empty($_REQUEST['email']) && $angemail) $out .= "<li>"._nomail."</li>";
$_REQUEST['icq'] = strip_tags(trim($_REQUEST['icq']));
$_REQUEST['homepage'] = strip_tags(trim($_REQUEST['homepage']));
if(!checkhp($_REQUEST['homepage']) && !empty($_REQUEST['homepage'])) $out .= "<li>"._wronghp."</li>";
if(antispam($antispam)) $out = "<li>"._spam."</li>";
$_REQUEST['text'] = stripslashes($_REQUEST['text']);
if(empty($out))
{
if($enablemail) @mail($mail,"Neuer Wunsch",
"<html><body><b>".date("d.m.Y - H:i", time())."</b><br><br>
<b>IP: </b>".$getip."<br>
<b>Name: </b>".$_REQUEST['name']."<br>
<b>Interpret: </b>".$_REQUEST['email']."<br>
<b>Titel: </b>".$_REQUEST['icq']."<br>
<b>Text: </b>".$_REQUEST['text']."</body></html>",
"From: \"WunschBox\" <$mail>\nX-Mailer: PHP/" . phpversion()."\nMime-Version: 1.0\nContent-Type: text/html; charset=\"ISO-8859-1\"");
if($bbcode) $_REQUEST['text'] = bbcode($_REQUEST['text']);
else $_REQUEST['text'] = nl2br($_REQUEST['text']);
if($enreplace) $_REQUEST['text'] = replacement($_REQUEST['text'], $badwords);
if($ensmilies) $_REQUEST['text'] = smilies($_REQUEST['text'], $smilies);
$_REQUEST['text'] = ($chars>0) ? split_text($_REQUEST['text'], $chars) : $_REQUEST['text'];
$show = ($admincheck) ? 0 : 1;
writedata($show, array(time(), $getip, stripslashes($_REQUEST['name']), $_REQUEST['email'], $_REQUEST['icq'], $_REQUEST['homepage'], $_REQUEST['text']));
if($thanks)
{
$out .= "<center>"._thankyou."</center><br>";
}
if($admincheck)
{
$out .= "<center>"._check."</center><br>";
}
if(!empty($out))
{
echo tplprint("tpl/saved.tpl", array("MESSAGE" => $out));
}
else
{
header("Location: gb.php");
exit;
}
}
else
{
$tout = "<b>"._wrong."</b><br>\n<ul>";
$tout .= $out;
$tout .= "</ul>";
echo tplprint("tpl/saved.tpl", array("MESSAGE" => $tout));
}
}
else
{
$out = "<b>"._missing."</b><br>";
$out .= "<ul>\n";
if(empty($_REQUEST['name'])) $out .= "<li>"._mname."</li><br>";
if(empty($_REQUEST['text'])) $out .= "<li>"._mcontent."</li><br>";
$out .= "</ul>";
echo tplprint("tpl/saved.tpl", array("MESSAGE" => $out));
}
break;
case "uin":
if($_REQUEST['uin'])
{
addicq($_REQUEST['uin']);
break;
}
default:
$data = array_reverse(loaddata());
$table = "";
$i=0;
$entrynum = count($data);
foreach($data as $erg)
{
if($i >= $_REQUEST['cc'])
{
$erg = explode("::", $erg);
$tth = 0;
foreach($erg as $tempd)
{
$ergtemp[$tth] = (($tth == 4) && ($encodemails)) ? $tempd : base64_decode($tempd);
$tth++;
}
$erg = $ergtemp;
unset($ergtemp);
$erg[4] = trim($erg[4]);
if(!empty($erg[4]))
{
$erg[4] = ($encodemails) ? "<script language=\"JavaScript\">writemail(\"".$erg[4]."\")</script>" : "<a href=\"mailto:".$erg[4]."\"><img src=\"img/mail.gif\" alt=\"Email\" border=0></a>";
}
$erg[5] = trim($erg[5]);
if(!empty($erg[5])) $erg[5] = "<a href=\"gb.php?service=uin&uin=".$erg[5]."\"><img src=\"img/icq.gif\" alt=\"ICQ\" border=0></a>";
$erg[6] = trim($erg[6]);
if(!empty($erg[6])) $erg[6] = "<a href=\"".$erg[6]."\" target=\"_blank\"><img src=\"img/hp.gif\" alt=\"Homepage\" border=0></a>";
if(empty($erg[4]) && empty($erg[5]) && empty($erg[6])) $erg[5] = _nodata;
if(!empty($erg[8])) $erg[8] = _comment.$erg[8];
$table .= tplprint("tpl/table.tpl", array(
"NAME" => $erg[3],
"EMAIL" => $erg[5],
"ICQ" => $erg[4],
"HP" => $erg[6],
"CONTENT" => $erg[7],
"COMMENT" => $erg[8],
"DATE" => date("d.m.Y", $erg[1]),
"TIME" => date("H:i", $erg[1]),
"NUMBER" => ($entrynum-$i)));
if($i == $entries+$_REQUEST['cc']-1) break;
unset($erg);
}
$i++;
}
$mnum = $entrynum;
$sites = "";
$i=-$entries;
$ic = 1;
while($mnum>0)
{
$mnum = $mnum - $entries;
$i = $i + $entries;
if($_REQUEST['cc'] == $i) $sites .= "<b>$ic</b> ";
else $sites .= "<a href=\"gb.php?cc=$i\">$ic</a> ";
$ic++;
}
$menu = tplprint("tpl/menu.tpl", array(
"ENTRYNUM" => $entrynum,
"SITES" => $sites));
echo tplprint("tpl/index.tpl", array(
"ENTRIES" => $table,
"MENU" => $menu,
"SUBMIT" => tplprint("tpl/submit.tpl", array())));
}
?> |
 3 mal bearbeitet gok09: 28.09.2008, 12:59 Uhr gok09: 28.09.2008, 13:00 Uhr gok09: 28.09.2008, 14:48 Uhr
|
|
 29.09.2008 20:22 Uhr
|
|
|
|
|
Hm, habs nochmal getstet aber der schreibt mir keien Meldung raus obwohl ein eintrag hinzugekommen ist.
Ich hab ja auch keine chechWishes.php aahhh :D
|
|
|