|
|
Quellcode |
1 |
<if(isset($birthdaybit) || isset($eventbit) || isset($useranniversarybit) || isset($nextuseranniversarybit))> |
|
|
Quellcode |
1 |
<if(isset($birthdaybit) || isset($eventbit) || isset($nextbirthdaybit))> |
Benutzerinformationen überspringen
Registrierungsdatum: 16. März 2008
Wohnort: Murnau (hergezogen)
WBB Version: alle
|
|
PHP-Quelltext |
1 |
<if(isset($birthdaybit) || isset($eventbit) || isset($useranniversarybit) || isset($nextuseranniversarybit|| isset($nextbirthdaybit ))>
|
Zitat
Parse error: syntax error, unexpected T_BOOLEAN_OR, expecting ',' or ')' in /mnt/sites/honda-clique-freiamt.ch/web/wbb2/index.php(1286) : eval()'d code on line 311
Benutzerinformationen überspringen
Registrierungsdatum: 16. März 2008
Wohnort: Murnau (hergezogen)
WBB Version: alle
Benutzerinformationen überspringen
Registrierungsdatum: 16. März 2008
Wohnort: Murnau (hergezogen)
WBB Version: alle
|
|
Quellcode |
1 |
<if(isset($birthdaybit) || isset($eventbit) || isset($useranniversarybit) || isset($nextuseranniversarybit))> |
|
|
Quellcode |
1 |
<if(isset($birthdaybit) || isset($eventbit) || isset($useranniversarybit) || isset($nextuseranniversarybit|| isset($nextbirthdaybit ))> |
Zitat
Original von *Jacqy*
wie hast du das denn gemacht im index.tpl?
dein code mit meinem ersetzt?
Benutzerinformationen überspringen
Registrierungsdatum: 16. März 2008
Wohnort: Murnau (hergezogen)
WBB Version: alle
Benutzerinformationen überspringen
Registrierungsdatum: 16. März 2008
Wohnort: Murnau (hergezogen)
WBB Version: alle
Benutzerinformationen überspringen
Registrierungsdatum: 16. März 2008
Wohnort: Murnau (hergezogen)
WBB Version: alle
|
|
PHP-Quelltext |
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 |
So nun aufgepasst!!!!
Wer schon den BirthdayHack von mir eingebaut hat macht hier weiter, die anderen springen zum n�hsten Punkt.
öffne acp/lib/functions.php und suche:
function makenewthread($boardid, $prefix, $topic, $message, $threadstarterid, $threadstartername, $iconid,$allowbbcode=1, $allowsmilies=1,$allowimages=1){
global $db, $n, $parse,$docensor,$REMOTE_ADDR,$SERVER_ADDR,$board;
require_once('class_parse.php');
require_once('class_parsecode.php');
$time=time();
$visible=1 ;
/* insert thread */
$db->query("INSERT INTO bb".$n."_threads (boardid,prefix,topic,iconid,starttime,starterid,starter,lastposttime,lastposterid,lastposter,attachments,pollid,important,visible) VALUES ('$boardid','".addslashes($prefix)."','".addslashes($topic)."','$iconid','$time','$threadstarterid','".addslashes($threadstartername)."','$time','$threadstarterid','".addslashes($threadstartername)."','".count($attachmentids)."','$poll_id','$important','$visible')");
$threadid = $db->insert_id();
if ($REMOTE_ADDR=="") $ip_address=$SERVER_ADDR;
else $ip_address=$REMOTE_ADDR;
/* insert post */
$db->query("INSERT INTO bb".$n."_posts (threadid,userid,username,iconid,posttopic,posttime,message,attachments,allowsmilies,allowhtml,allowbbcode,allowimages,showsignature,ipaddress,visible) VALUES ".
"('$threadid','$threadstarterid','".addslashes($threadstartername)."','$iconid','".addslashes($topic)."','$time','".addslashes($message)."','','$allowsmilies','$allowhtml','$allowbbcode','$allowimages','".intval($_POST['showsignature'])."','".addslashes($ip_address)."','$visible')");
$postid = $db->insert_id();
/* create postcache */
$parse = &new parse($docensor, 75, 1, '', $usecode, 1, 1);
$cache = $parse->doparse($message, $allowsmilies, $allowhtml, $allowbbcode, $allowimages);
$db->query("REPLACE INTO bb".$n."_postcache (postid, threadid, cache) VALUES ('".$postid."', '".$threadid."', '".addslashes($cache)."')");
$db->unbuffered_query("UPDATE bb".$n."_subscribeboards SET countemails=countemails+1 WHERE boardid='$boardid' AND userid<>'$threadstarterid' AND emailnotify=1 AND countemails<'$maxnotifymails'", 1);
wordmatch($postid, $message, $topic);
/* update board info */
$db->unbuffered_query("UPDATE bb".$n."_boards SET threadcount=threadcount+1, postcount=postcount+1, lastthreadid='$threadid', lastposttime='$time', lastposterid='$threadstarterid', lastposter='".addslashes($threadstartername)."' WHERE boardid IN ($boardid)", 1);
/* update global threadcount & postcount */
$db->unbuffered_query("UPDATE bb".$n."_stats SET threadcount=threadcount+1, postcount=postcount+1", 1);
}
und ersetze mit:
function makenewthread($boardid, $prefix, $topic, $message, $threadstarterid, $threadstartername, $iconid,$allowbbcode=1, $allowsmilies=1,$allowimages=1){
global $db, $n, $parse,$docensor,$REMOTE_ADDR,$SERVER_ADDR,$board;
require_once('class_parse.php');
require_once('class_parsecode.php');
$time=time();
$visible=1 ;
/* insert thread */
$db->query("INSERT INTO bb".$n."_threads (boardid,prefix,topic,iconid,starttime,starterid,starter,lastposttime,lastposterid,lastposter,attachments,pollid,important,visible) VALUES ('$boardid','".addslashes($prefix)."','".addslashes($topic)."','$iconid','$time','$threadstarterid','".addslashes($threadstartername)."','$time','$threadstarterid','".addslashes($threadstartername)."','".count($attachmentids)."','$poll_id','$important','$visible')");
$threadid = $db->insert_id();
if ($REMOTE_ADDR=="") $ip_address=$SERVER_ADDR;
else $ip_address=$REMOTE_ADDR;
/* insert post */
$db->query("INSERT INTO bb".$n."_posts (threadid,userid,username,iconid,posttopic,posttime,message,attachments,allowsmilies,allowhtml,allowbbcode,allowimages,showsignature,ipaddress,visible) VALUES ".
"('$threadid','$threadstarterid','".addslashes($threadstartername)."','$iconid','".addslashes($topic)."','$time','".addslashes($message)."','','$allowsmilies','$allowhtml','$allowbbcode','$allowimages','".intval($_POST['showsignature'])."','".addslashes($ip_address)."','$visible')");
$postid = $db->insert_id();
/* create postcache */
$parse = &new parse($docensor, 75, 1, '', $usecode, 1, 1);
$cache = $parse->doparse($message, $allowsmilies, $allowhtml, $allowbbcode, $allowimages);
$db->query("REPLACE INTO bb".$n."_postcache (postid, threadid, cache) VALUES ('".$postid."', '".$threadid."', '".addslashes($cache)."')");
$db->unbuffered_query("UPDATE bb".$n."_subscribeboards SET countemails=countemails+1 WHERE boardid='$boardid' AND userid<>'$threadstarterid' AND emailnotify=1 AND countemails<'$maxnotifymails'", 1);
wordmatch($postid, $message, $topic);
/* update board info */
$db->unbuffered_query("UPDATE bb".$n."_boards SET threadcount=threadcount+1, postcount=postcount+1, lastthreadid='$threadid', lastposttime='$time', lastposterid='$threadstarterid', lastposter='".addslashes($threadstartername)."' WHERE boardid IN ($boardid)", 1);
/* update global threadcount & postcount */
$db->unbuffered_query("UPDATE bb".$n."_stats SET threadcount=threadcount+1, postcount=postcount+1", 1);
return $postid;
}
speichern!
-----------------
|

'' Benutzerinformationen überspringen
Registrierungsdatum: 16. März 2008
Wohnort: Murnau (hergezogen)
WBB Version: alle
und das ist wieder ein anderer hack.
sonst funzt es mit dem NewThreadOnReg nicht Forensoftware: Burning Board® 3.1.7, entwickelt von WoltLab® GmbH