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:
|
require_once('acp/lib/class_parse.php');
// ####### neuen thread erstellen #######
// $threadstarterid,$allowsmilies,$allowbbcode,$allowhtml
// boardid = Nr. des Forums einsetzen !!
// und die Icon-nr auch...
$boardid = 83;
$prefix = "";
$topic = "Cashgewinner";
$iconid = 16;
$threadstartername = "Cashinfo";
$lastposter = "";
$message = "$wbbuserdata[username] hat die 1000 gewonnen";
$time=time();
$visible=1 ;
// thread erstellen
$db->query("INSERT INTO bb".$n."_threads (boardid,prefix,topic,iconid,starttime,starterid,starter,lastposttime,lastposterid,lastposter,pollid,important,visible) VALUES ('$boardid','".addslashes($prefix)."','".addslashes($topic)."','$iconid','$time','$threadstarterid','".addslashes($threadstartername)."','$time','$threadstarterid','".addslashes($threadstartername)."','$poll_id','$important','$visible')");
$threadid = $db->insert_id();
/* insert post */
$db->query("INSERT INTO bb".$n."_posts (threadid,userid,username,iconid,posttopic,posttime,message,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(); |