|
|
|
| Latest News |
Latest Threads |
|
|
 |
| 57.317 Posts & 4.945 Themen in 78 Foren |
|
|
|
|
 |
Forensuche |
|
Suchbegriff |
Benutzerauswahl |
Ergebnisse anzeigen |
 |
 |
GB Spamschutz 37 Beiträge in diesem Thema |
|
|
 |
|
|
 |
29.01.2007 - 14:59 Uhr |
|
|
|
|
Hi Cyrus würd dir gern helfen aber Dafür bin ich noch zu sehr Noob dafür interessant ist es schon wollt mich auch bilden per buch php kit 5.0 aber als ich die Sonderzeichen gelesen habe hab ich Rot gesehn und dachte mir da fuscht du lieber bei dir am Xp rum da drückst du nur system wiederherstellung und fertig 
|
|
| Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Tigra - 29.01.2007 - 15:03 Uhr |
|
|
|
| |
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
29.01.2007 - 15:05 Uhr |
|
|
|
|
Eventuell geht es hiermit:
Hier klicken zum aufklappen 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 | | PHP-Quelltext <?php
if ($config['gbook_eod']==1) {
$error=0;
if (isset($_REQUEST['action'])) $ACTION=$_REQUEST['action'];
else $ACTION='view';
if ($ACTION==$_POST['save'] || $ACTION==$_POST['preview']) {
$floodcontrol=time() - ($config['gbook_floodctrl']*60);
$infocount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['gbook']." WHERE gbook_ip='".$thisUSER['ipaddr']."' && gbook_userid='".$USER['id']."' && gbook_time>'".$floodcontrol."' LIMIT 1"));
if (trim($_POST['content'])=='' || trim($_POST['gbook_title'])=='' || trim($_POST['gbook_autor'])=='') $error=1;
elseif (strlen(trim($_POST['content']))>$config['gbook_maxchars']) {$event=2; $charcount=strlen($_POST['content']);}
elseif ($infocount[0]>0) $error=3;
elseif (!checkusername($_POST['gbook_autor'],1)) $error=4;
elseif (($_POST['gbook_notify']==1 || $_POST['gbook_email']!='') && !emailcheck($_POST['gbook_email'],1)) $error=5;
else {
if ($ACTION==$_POST['save']) {
if(!isset($_POST[spam_check])) {header ("location: include.php?path=start.php"); exit();};
if ($DB->query("INSERT INTO ".$db_tab['gbook']." (gbook_autor, gbook_title, gbook_email, gbook_icqnr, gbook_time, gbook_text, gbook_check, gbook_hpage, gbook_ip, gbook_userid, gbook_notify) VALUES ('".$_POST['gbook_autor']."','".addslashes($_POST['gbook_title'])."','".$_POST['gbook_email']."','".$_POST['gbook_icqnr']."','".time()."','".addslashes($_POST['content'])."','".$_POST['gbook_check']."','".$_POST['gbook_hpage']."','".$thisUSER['ipaddr']."','".$USER['id']."','".$_POST['gbook_notify']."')")) {
$gbid=$DB->insert_id();
$autor=$_POST['gbook_autor'];
$mail_title=$config['site_name'].' - '.$lang['new_gbentry'].': '.$_POST['gbook_title'];
eval ("\$mail_text= \"".getTemplate("guestbook/signgb_mail_notify")."\";");
notifymail('gbook',$mail_title,$mail_text);
$im_title=$lang['new_gbentry'].': '.$_POST['gbook_title'];
eval ("\$im_text= \"".getTemplate("guestbook/signgb_im_notify")."\";");
notifyim('gbook',$im_title,$im_text);
header("location: include.php?event=7session_id()); exit();
}
$error=6;
}
elseif ($ACTION==$_POST['preview']) {
$counter=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['gbook'].""));
$gbook_number=$counter[0]+1;
if ($_POST['gbook_check']==1 && $_POST['gbook_email']!='') {
$userinfo['user_email']=$gbook_email;
eval ("\$gbook_email= \"".getTemplate("member_email_iconlink")."\";");
}
else $gbook_email=' ';
if ($_POST['gbook_hpage']!='') {
if (eregi("http://",$_POST['gbook_hpage'])) $info_link=$_POST['gbook_hpage'];
else $info_link="http://".$_POST['gbook_hpage'];
eval ("\$gbook_hpage= \"".getTemplate("member_hpage_iconlink")."\";");
}
else $gbook_hpage=' ';
if ($_POST['gbook_icqnr']>0) {
$userinfo['user_icqid']=$_POST['gbook_icqnr'];
eval ("\$gbook_icq= \"".getTemplate("member_icq_iconlink")."\";");
}
else $gbook_icq=' ';
$gbook_title=htmlentities($_POST['gbook_title']);
$gbook_text=$PARSE->parse($_POST['content'],0,$config['gbook_ubb'],$config['gbook_smilies'],$config['gbook_images'],1);
$gbook_time=formattime();
eval ("\$site_body.= \"".getTemplate("guestbook/signgb_preview")."\";");
}
}
}
if ($error>0) eval ("\$sign_message= \"".getTemplate("guestbook/signgb_error".$error."")."\";");
else eval ("\$sign_message= \"".getTemplate("guestbook/signgb_message")."\";");
if ($_POST['gbook_autor']!='') $gbook_autor=$_POST['gbook_autor'];
else $gbook_autor=$USER['nick'];
if ($_POST['gbook_email']!='') $gbook_email=$_POST['gbook_email'];
else $gbook_email=$USER['email'];
if ($_POST['gbook_check']==1) $check1="checked";
elseif ($ACTION=='view') $check1="checked";
if ($config['gbook_commenteod']==1) {
if ($_POST['gbook_notify']==1) $check2="checked";
eval ("\$sign_comment= \"".getTemplate("guestbook/signgb_comment")."\";");
}
if ($_POST['gbook_hpage']!='') $gbook_hpage=htmlentities($_POST['gbook_hpage']);
elseif ($USER['hpage']!='') $gbook_hpage=$USER['hpage'];
if (intval($_POST['gbook_icqnr'])>0) $gbook_icqnr=$_POST['gbook_icqnr'];
elseif (intval($USER['icqid'])>0) $gbook_icqnr=intval($USER['icqid']);
if (trim($_POST['gbook_title'])!='') $gbook_title=htmlentities($_POST['gbook_title']);
if (trim($_POST['content'])!='') $gbook_text=htmlentities($_POST['content']);
unset($sign_format);
if ($config['gbook_ubb']==1) eval ("\$sign_format= \"".getTemplate("format_text")."\";");
if ($config['gbook_smilies']==1) {
$smilies=new smilies();
$sign_format.=$smilies->getSmilies("1");
}
if ($sign_format) eval ("\$sign_format= \"".getTemplate("format_table")."\";");
eval ("\$site_body.= \"".getTemplate("guestbook/signgb")."\";");
}
else {$event=23; include ("admin/config/event.php");}
?> | |  |
|
|
|
| |
|
|
|
|
 |
|
|
 |
29.01.2007 - 15:06 Uhr |
|
|
|
|
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /srv/www/htdocs/web109/html/guestbook/signgb.php on line 35
|
|
|
| |
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
29.01.2007 - 15:15 Uhr |
|
|
|
|
SO nun muss ich überlgen 
|
|
|
| |
|
|
|
|
 |
|
|
 |
29.01.2007 - 15:19 Uhr |
|
|
|
|
Wäre es möglich in der signgb.php bzw in der signgb.htm was einzubauen sowie es nueschtmanescht auf seine seite hat ?
sieh hier Nueschtmanescht's GB
|
|
|
| |
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
29.01.2007 - 15:21 Uhr |
|
|
|
|
Ja das machen wir doch gerade bzw versuchen es ^^
So den Code nochmal testen (signgb.php)
Hier klicken zum aufklappen 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 | | PHP-Quelltext <?php
if ($config['gbook_eod']==1) {
$error=0;
if (isset($_REQUEST['action'])) $ACTION=$_REQUEST['action'];
else $ACTION='view';
if ($ACTION==$_POST['save'] || $ACTION==$_POST['preview']) {
$floodcontrol=time() - ($config['gbook_floodctrl']*60);
$infocount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['gbook']." WHERE gbook_ip='".$thisUSER['ipaddr']."' && gbook_userid='".$USER['id']."' && gbook_time>'".$floodcontrol."' LIMIT 1"));
if (trim($_POST['content'])=='' || trim($_POST['gbook_title'])=='' || trim($_POST['gbook_autor'])=='') $error=1;
elseif (strlen(trim($_POST['content']))>$config['gbook_maxchars']) {$event=2; $charcount=strlen($_POST['content']);}
elseif ($infocount[0]>0) $error=3;
elseif (!checkusername($_POST['gbook_autor'],1)) $error=4;
elseif (($_POST['gbook_notify']==1 || $_POST['gbook_email']!='') && !emailcheck($_POST['gbook_email'],1)) $error=5;
else {
if ($ACTION==$_POST['save']) {
if(!isset($_POST[spam_check])) {header ("location: include.php?path=start.php"); exit();};
if ($DB->query("INSERT INTO ".$db_tab['gbook']." (gbook_autor, gbook_title, gbook_email, gbook_icqnr, gbook_time, gbook_text, gbook_check, gbook_hpage, gbook_ip, gbook_userid, gbook_notify) VALUES ('".$_POST['gbook_autor']."','".addslashes($_POST['gbook_title'])."','".$_POST['gbook_email']."','".$_POST['gbook_icqnr']."','".time()."','".addslashes($_POST['content'])."','".$_POST['gbook_check']."','".$_POST['gbook_hpage']."','".$thisUSER['ipaddr']."','".$USER['id']."','".$_POST['gbook_notify']."')")) {
$gbid=$DB->insert_id();
$autor=$_POST['gbook_autor'];
$mail_title=$config['site_name'].' - '.$lang['new_gbentry'].': '.$_POST['gbook_title'];
eval ("$mail_text= "".getTemplate("guestbook/signgb_mail_notify")."";");
notifymail('gbook',$mail_title,$mail_text);
$im_title=$lang['new_gbentry'].': '.$_POST['gbook_title'];
eval ("$im_text= "".getTemplate("guestbook/signgb_im_notify")."";");
notifyim('gbook',$im_title,$im_text);
header("location: include.php?event=7session_id()); exit();
}
$error=6;
}
elseif ($ACTION==$_POST['preview']) {
$counter=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['gbook'].""));
$gbook_number=$counter[0]+1;
if ($_POST['gbook_check']==1 && $_POST['gbook_email']!='') {
$userinfo['user_email']=$gbook_email;
eval ("$gbook_email= "".getTemplate("member_email_iconlink")."";");
}
else $gbook_email=' ';
if ($_POST['gbook_hpage']!='') {
if (eregi("http://",$_POST['gbook_hpage'])) $info_link=$_POST['gbook_hpage'];
else $info_link="http://".$_POST['gbook_hpage'];
eval ("$gbook_hpage= "".getTemplate("member_hpage_iconlink")."";");
}
else $gbook_hpage=' ';
if ($_POST['gbook_icqnr']>0) {
$userinfo['user_icqid']=$_POST['gbook_icqnr'];
eval ("$gbook_icq= "".getTemplate("member_icq_iconlink")."";");
}
else $gbook_icq=' ';
$gbook_title=htmlentities($_POST['gbook_title']);
$gbook_text=$PARSE->parse($_POST['content'],0,$config['gbook_ubb'],$config['gbook_smilies'],$config['gbook_images'],1);
$gbook_time=formattime();
eval ("$site_body.= "".getTemplate("guestbook/signgb_preview")."";");
}
}
}
if ($error>0) eval ("$sign_message= "".getTemplate("guestbook/signgb_error".$error."")."";");
else eval ("$sign_message= "".getTemplate("guestbook/signgb_message")."";");
if ($_POST['gbook_autor']!='') $gbook_autor=$_POST['gbook_autor'];
else $gbook_autor=$USER['nick'];
if ($_POST['gbook_email']!='') $gbook_email=$_POST['gbook_email'];
else $gbook_email=$USER['email'];
if ($_POST['gbook_check']==1) $check1="checked";
elseif ($ACTION=='view') $check1="checked";
if ($config['gbook_commenteod']==1) {
if ($_POST['gbook_notify']==1) $check2="checked";
eval ("$sign_comment= "".getTemplate("guestbook/signgb_comment")."";");
}
if ($_POST['gbook_hpage']!='') $gbook_hpage=htmlentities(addslashes(str_replace("'", "",str_replace("<", "",str_replace(">", "",$_POST['gbook_hpage'])))));
elseif ($USER['hpage']!='') $gbook_hpage=$USER['hpage'];
if (intval($_POST['gbook_icqnr'])>0) $gbook_icqnr=$_POST['gbook_icqnr'];
elseif (intval($USER['icqid'])>0) $gbook_icqnr=intval($USER['icqid']);
if (trim($_POST['gbook_title'])!='') $gbook_title=htmlentities($_POST['gbook_title']);
if (trim($_POST['content'])!='') $gbook_text=htmlentities($_POST['content']);
unset($sign_format);
if ($config['gbook_ubb']==1) eval ("$sign_format= "".getTemplate("format_text")."";");
if ($config['gbook_smilies']==1) {
$smilies=new smilies();
$sign_format.=$smilies->getSmilies("1");
}
if ($sign_format) eval ("$sign_format= "".getTemplate("format_table")."";");
eval ("$site_body.= "".getTemplate("guestbook/signgb")."";");
}
else {$event=23; include ("admin/config/event.php");}
?> | |  |
|
|
|
| |
|
|
|
|
 |
|
|
 |
29.01.2007 - 15:24 Uhr |
|
|
|
|
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /srv/www/htdocs/web109/html/guestbook/signgb.php on line 25
mal ne dumme frage,muss eigentlich nur die signgb.php geändert werden oder muss da auch was an der template signgb.htm geändert werden.Bin nur laie ^^
|
|
|
| |
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
29.01.2007 - 15:27 Uhr |
|
|
|
|
So langsam weiss ich auch nicht weiter.
Hier klicken zum aufklappen 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 | | PHP-Quelltext <?php
if ($config['gbook_eod']==1) {
$error=0;
if (isset($_REQUEST['action'])) $ACTION=$_REQUEST['action'];
else $ACTION='view';
if ($ACTION==$_POST['save'] || $ACTION==$_POST['preview']) {
$floodcontrol=time() - ($config['gbook_floodctrl']*60);
$infocount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['gbook']." WHERE gbook_ip='".$thisUSER['ipaddr']."' && gbook_userid='".$USER['id']."' && gbook_time>'".$floodcontrol."' LIMIT 1"));
if (trim($_POST['content'])=='' || trim($_POST['gbook_title'])=='' || trim($_POST['gbook_autor'])=='') $error=1;
elseif (strlen(trim($_POST['content']))>$config['gbook_maxchars']) {$event=2; $charcount=strlen($_POST['content']);}
elseif ($infocount[0]>0) $error=3;
elseif (!checkusername($_POST['gbook_autor'],1)) $error=4;
elseif (($_POST['gbook_notify']==1 || $_POST['gbook_email']!='') && !emailcheck($_POST['gbook_email'],1)) $error=5;
else {
if ($ACTION==$_POST['save']) {
if(!isset($_POST[spam_check])) {header ("location: include.php?path=start.php"); exit();};
if ($DB->query("INSERT INTO ".$db_tab['gbook']." (gbook_autor, gbook_title, gbook_email, gbook_icqnr, gbook_time, gbook_text, gbook_check, gbook_hpage, gbook_ip, gbook_userid, gbook_notify) VALUES ('".$_POST['gbook_autor']."','".addslashes($_POST['gbook_title'])."','".$_POST['gbook_email']."','".$_POST['gbook_icqnr']."','".time()."','".addslashes($_POST['content'])."','".$_POST['gbook_check']."','".$_POST['gbook_hpage']."','".$thisUSER['ipaddr']."','".$USER['id']."','".$_POST['gbook_notify']."')")) {
$gbid=$DB->insert_id();
$autor=$_POST['gbook_autor'];
$mail_title=$config['site_name'].' - '.$lang['new_gbentry'].': '.$_POST['gbook_title'];
eval ("$mail_text= "".getTemplate("guestbook/signgb_mail_notify")."";");
notifymail('gbook',$mail_title,$mail_text);
$im_title=$lang['new_gbentry'].': '.$_POST['gbook_title'];
eval ("$im_text= "".getTemplate("guestbook/signgb_im_notify")."";");
notifyim('gbook',$im_title,$im_text);
header("location: include.php?event=7session_id()); exit();
}
$error=6;
}
elseif ($ACTION==$_POST['preview']) {
$counter=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['gbook'].""));
$gbook_number=$counter[0]+1;
if ($_POST['gbook_check']==1 && $_POST['gbook_email']!='') {
$userinfo['user_email']=$gbook_email;
eval ("$gbook_email= "".getTemplate("member_email_iconlink")."";");
}
else $gbook_email=' ';
if ($_POST['gbook_hpage']!='') {
if (eregi("http://",$_POST['gbook_hpage'])) $info_link=$_POST['gbook_hpage'];
else $info_link="http://".$_POST['gbook_hpage'];
eval ("$gbook_hpage= "".getTemplate("member_hpage_iconlink")."";");
}
else $gbook_hpage=' ';
if ($_POST['gbook_icqnr']>0) {
$userinfo['user_icqid']=$_POST['gbook_icqnr'];
eval ("$gbook_icq= "".getTemplate("member_icq_iconlink")."";");
}
else $gbook_icq=' ';
$gbook_title=htmlentities($_POST['gbook_title']);
$gbook_text=$PARSE->parse($_POST['content'],0,$config['gbook_ubb'],$config['gbook_smilies'],$config['gbook_images'],1);
$gbook_time=formattime();
eval ("$site_body.= "".getTemplate("guestbook/signgb_preview")."";");
}
}
}
if ($error>0) eval ("$sign_message= "".getTemplate("guestbook/signgb_error".$error."")."";");
else eval ("$sign_message= "".getTemplate("guestbook/signgb_message")."";");
if ($_POST['gbook_autor']!='') $gbook_autor=$_POST['gbook_autor'];
else $gbook_autor=$USER['nick'];
if ($_POST['gbook_email']!='') $gbook_email=$_POST['gbook_email'];
else $gbook_email=$USER['email'];
if ($_POST['gbook_check']==1) $check1="checked";
elseif ($ACTION=='view') $check1="checked";
if ($config['gbook_commenteod']==1) {
if ($_POST['gbook_notify']==1) $check2="checked";
eval ("$sign_comment= "".getTemplate("guestbook/signgb_comment")."";");
}
if ($_POST['gbook_hpage']!='') $gbook_hpage=htmlentities(addslashes(str_replace("'", "",str_replace("<", "",str_replace(">", "",$_POST['gbook_hpage'])))));
elseif ($USER['hpage']!='') $gbook_hpage=$USER['hpage'];
if (intval($_POST['gbook_icqnr'])>0) $gbook_icqnr=$_POST['gbook_icqnr'];
elseif (intval($USER['icqid'])>0) $gbook_icqnr=intval($USER['icqid']);
if (trim($_POST['gbook_title'])!='') $gbook_title=htmlentities($_POST['gbook_title']);
if (trim($_POST['content'])!='') $gbook_text=htmlentities($_POST['content']);
unset($sign_format);
if ($config['gbook_ubb']==1) eval ("$sign_format= "".getTemplate("format_text")."";");
if ($config['gbook_smilies']==1) {
$smilies=new smilies();
$sign_format.=$smilies->getSmilies("1");
}
if ($sign_format) eval ("$sign_format= "".getTemplate("format_table")."";");
eval ("$site_body.= "".getTemplate("guestbook/signgb")."";");
}
else {$event=23; include ("admin/config/event.php");}
?> | |  |
An den Templates dann auch:
guestbook/signgb.htm
Hier klicken zum aufklappen | | Quellcode <tr>
<td class="left" nowrap>Spambotschutz</td>
<td class="right" colspan="2"><input class="checkbox" type="checkbox" name="spam_check" value="1" /><font class="small"> Bitte anklicken, sonst findet kein Eintrag statt!</font> </td>
</tr> | |
Das müsstest du hinzufügen über diesem hier:
Hier klicken zum aufklappen | | Quellcode <tr>
<td class="heads" colspan="3" align="center">
<input type="hidden" name="gbook_time" value="$gbook_time" />
<input type="hidden" name="gb_uid" value="$gb_uid" />
<input type="submit" name="action" value="$lang[preview]" />
<input type="hidden" name="preview" value="$lang[preview]" />
<input type="submit" name="action" value="$lang[save]" />
<input type="hidden" name="save" value="$lang[save]" /></td>
</tr>
</form>
</table> | |
|
|
|
| |
|
|
|
|
 |
|
|
 |
29.01.2007 - 15:30 Uhr |
|
|
|
|
Den code über die signgb.htm hab ich nun drinne immerhin 
aber nach wie vor
Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /srv/www/htdocs/web109/html/guestbook/signgb.php on line 23
|
|
| Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von Cyrus - 29.01.2007 - 15:33 Uhr |
|
|
|
| |
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
29.01.2007 - 15:38 Uhr |
|
|
|
|
Hier klicken zum aufklappen 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 | | PHP-Quelltext <?php
if ($config['gbook_eod']==1) {
$error=0;
if (isset($_REQUEST['action'])) $ACTION=$_REQUEST['action'];
else $ACTION='view';
if ($ACTION==$_POST['save'] || $ACTION==$_POST['preview']) {
$floodcontrol=time() - ($config['gbook_floodctrl']*60);
$infocount=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['gbook']." WHERE gbook_ip='".$thisUSER['ipaddr']."' && gbook_userid='".$USER['id']."' && gbook_time>'".$floodcontrol."' LIMIT 1"));
if (trim($_POST['content'])=='' || trim($_POST['gbook_title'])=='' || trim($_POST['gbook_autor'])=='') $error=1;
elseif (strlen(trim($_POST['content']))>$config['gbook_maxchars']) {$event=2; $charcount=strlen($_POST['content']);}
elseif ($infocount[0]>0) $error=3;
elseif (!checkusername($_POST['gbook_autor'],1)) $error=4;
elseif (($_POST['gbook_notify']==1 || $_POST['gbook_email']!='') && !emailcheck($_POST['gbook_email'],1)) $error=5;
else {
if ($ACTION==$_POST['save']) {
if(!isset($_POST[spam_check])) {header ("location: include.php?path=start.php"); exit();};
if ($DB->query("INSERT INTO ".$db_tab['gbook']." (gbook_autor, gbook_title, gbook_email, gbook_icqnr, gbook_time, gbook_text, gbook_check, gbook_hpage, gbook_ip, gbook_userid, gbook_notify) VALUES ('".$_POST['gbook_autor']."','".addslashes($_POST['gbook_title'])."','".$_POST['gbook_email']."','".$_POST['gbook_icqnr']."','".time()."','".addslashes($_POST['content'])."','".$_POST['gbook_check']."','".$_POST['gbook_hpage']."','".$thisUSER['ipaddr']."','".$USER['id']."','".$_POST['gbook_notify']."')")) {
$gbid=$DB->insert_id();
$autor=$_POST['gbook_autor'];
$mail_title=$config['site_name'].' - '.$lang['new_gbentry'].': '.$_POST['gbook_title'];
eval ("\$mail_text= \"".getTemplate("guestbook/signgb_mail_notify")."\";");
notifymail('gbook',$mail_title,$mail_text);
$im_title=$lang['new_gbentry'].': '.$_POST['gbook_title'];
eval ("\$im_text= \"".getTemplate("guestbook/signgb_im_notify")."\";");
notifyim('gbook',$im_title,$im_text);
header("location: include.php?event=7session_id()); exit();
}
$error=6;
}
elseif ($ACTION==$_POST['preview']) {
$counter=$DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['gbook'].""));
$gbook_number=$counter[0]+1;
if ($_POST['gbook_check']==1 && $_POST['gbook_email']!='') {
$userinfo['user_email']=$gbook_email;
eval ("$gbook_email= "".getTemplate("member_email_iconlink")."\";");
}
else $gbook_email=' ';
if ($_POST['gbook_hpage']!='') {
if (eregi("http://",$_POST['gbook_hpage'])) $info_link=$_POST['gbook_hpage'];
else $info_link="http://".$_POST['gbook_hpage'];
eval ("\$gbook_hpage= \"".getTemplate("member_hpage_iconlink")."\";");
}
else $gbook_hpage=' ';
if ($_POST['gbook_icqnr']>0) {
$userinfo['user_icqid']=$_POST['gbook_icqnr'];
eval ("\$gbook_icq= \"".getTemplate("member_icq_iconlink")."\";");
}
else $gbook_icq=' ';
$gbook_title=htmlentities($_POST['gbook_title']);
$gbook_text=$PARSE->parse($_POST['content'],0,$config['gbook_ubb'],$config['gbook_smilies'],$config['gbook_images'],1);
$gbook_time=formattime();
eval ("\$site_body.= \"".getTemplate("guestbook/signgb_preview")."\";");
}
}
}
if ($error>0) eval ("\$sign_message= \"".getTemplate("guestbook/signgb_error".$error."")."\";");
else eval ("\$sign_message= \"".getTemplate("guestbook/signgb_message")."\";");
if ($_POST['gbook_autor']!='') $gbook_autor=$_POST['gbook_autor'];
else $gbook_autor=$USER['nick'];
if ($_POST['gbook_email']!='') $gbook_email=$_POST['gbook_email'];
else $gbook_email=$USER['email'];
if ($_POST['gbook_check']==1) $check1="checked";
elseif ($ACTION=='view') $check1="checked";
if ($config['gbook_commenteod']==1) {
if ($_POST['gbook_notify']==1) $check2="checked";
eval ("\$sign_comment= \"".getTemplate("guestbook/signgb_comment")."\";");
}
if ($_POST['gbook_hpage']!='') $gbook_hpage=htmlentities(addslashes(str_replace("'", "",str_replace("<", "",str_replace(">", "",$_POST['gbook_hpage'])))));
elseif ($USER['hpage']!='') $gbook_hpage=$USER['hpage'];
if (intval($_POST['gbook_icqnr'])>0) $gbook_icqnr=$_POST['gbook_icqnr'];
elseif (intval($USER['icqid'])>0) $gbook_icqnr=intval($USER['icqid']);
if (trim($_POST['gbook_title'])!='') $gbook_title=htmlentities($_POST['gbook_title']);
if (trim($_POST['content'])!='') $gbook_text=htmlentities($_POST['content']);
unset($sign_format);
if ($config['gbook_ubb']==1) eval ("\$sign_format= \"".getTemplate("format_text")."\";");
if ($config['gbook_smilies']==1) {
$smilies=new smilies();
$sign_format.=$smilies->getSmilies("1");
}
if ($sign_format) eval ("\$sign_format= \"".getTemplate("format_table")."\";");
eval ("\$site_body.= \"".getTemplate("guestbook/signgb")."\";");
}
else {$event=23; include ("admin/config/event.php");}
?> | |  |
|
|
|
| |
|
|
|
|
 |
|
|
 |
29.01.2007 - 17:57 Uhr |
|
|
|
|
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /srv/www/htdocs/web109/html/guestbook/signgb.php on line 32
|
|
|
| |
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
29.01.2007 - 19:34 Uhr |
|
|
|
|
Ich krieg ne Kriese, ich weiss auch nicht weiter, sorry.
|
|
|
| |
|
|
|
|
 |
|
|
 |
29.01.2007 - 19:35 Uhr |
|
|
|
|
Hast du noch die orginal Dateien? Spiel die mal auf und schau ob ne Fehlermeldung kommt.
ändere den Code mal danach an der Orginaldatei.
|
|
|
| |
|
|
|
|
 |
WEBI Unberechenbares Urgestein |
 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
 |
29.01.2007 - 19:36 Uhr |
|
|
|
|
Hatte er doch Anfangs gemacht so wie ich es verstanden habe, nur ich sehe darin keinen Fehler.
|
|
|
| |
|
|
|
|
 |
|
|
 |
29.01.2007 - 19:53 Uhr |
|
|
|
|
Ich hab mal unsere Daten verglichen und verschiedenes gefunden was bei mir anders da steht.
Z.B. hab ich
| | PHP-Quelltext
if(!isset($_POST[spam_check])) {header ("location: include.php?path=start.php"); exit();};
if(isset($_POST[spam_check1])) {header ("location: include.php?path=start.php"); exit();};
$floodcontrol=time() - ($config['gbook_floodctrl']*60);
| |
und du
| | PHP-Quelltext
$floodcontrol=time() - ($config['gbook_floodctrl']*60);
| |
Dann hab ich
| | PHP-Quelltext
if ($_POST['gbook_hpage']!='') $gbook_hpage=htmlentities($_POST['gbook_hpage']);
| |
Und du
| | PHP-Quelltext
if ($_POST['gbook_hpage']!='') $gbook_hpage=htmlentities(addslashes(str_replace("'", "",str_replace("<", "",str_replace(">", "",$_POST['gbook_hpage'])))));
| |
Hab gedacht es könnte daran liegen.
MFG und nicht für Ungut. O.o ;-)
|
|
|
| |
|
|
|
|
 |
Ähnliche Themen |
| |
Es wurden keine ähnlichen Themen gefunden.
|
|
|
|
|
|
|
|
|
|