|
 |
|
 |
 |
Birthdaybot problem
so habe mir den birthday bot instaliert funz auch alles soweit nun zum problem habe zu testzwecken mal mein geb auf heute umdatiert und er schreibt email pn gästebuch und forum nur kann man den post im forum nicht öffnen könntet ihr mir da bitte weiter helfen
meine hp :http://www.glc-funclan.de
Version:phpkit 1.6.5
mfg zicke
Das verlinkte Bild http://www.burnerfm.de/user906.png existiert nicht mehr bzw. wurde falsch verlinkt!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 11.01.2010 - 11:07 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
RE: Birthdaybot problem
Wie meinste das net öffnen?
Also wenn ich hier draufklicke, komme ich in den Thread wo steht das ein Geburtstagsthread erstellt wurde.
Das verlinkte Bild http://www4.pic-upload.de/11.01.10/6i5jprqp7mg.jpg existiert nicht mehr bzw. wurde falsch verlinkt!
Ja es ist geschafft bin seit 02.07.10 stolzer PAPA eines Mädchen => Eingeschränkter Support meinerseits !!!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 11.01.2010 - 11:59 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.

RE: Birthdaybot problem
Schau mal in der Datenbank nach ob ein Thread erstellt wurde. Unter pk__forumpost und dann suche die ID 192
Ja es ist geschafft bin seit 02.07.10 stolzer PAPA eines Mädchen => Eingeschränkter Support meinerseits !!!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 11.01.2010 - 23:17 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
RE: Birthdaybot problem
Versuch mal bitte nochmals dein Geburtstag auf das aktuelle Datum zu setzen, wenn es dann nicht geht poste mal die forumsnewpost.php
Ja es ist geschafft bin seit 02.07.10 stolzer PAPA eines Mädchen => Eingeschränkter Support meinerseits !!!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 12.01.2010 - 12:03 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
RE: Birthdaybot problem
so gemacht läßt sich wieder net öffnen hmm...(sry hab die klappfunz. nicht gefunden)
Klapptext Inhalt anzeigen
|
PHP - Code Anfang: (639 Zeilen) | Code markieren
|
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 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 |
|
<?php
# PHPKIT WCMS | Web Content Management System
#
#
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS
# FILE AND/OR TO REMOVE THIS INFORMATION
#
# SIE SIND NICHT BERECHTIGT, UNRECHTMÃSSIGE KOPIEN DIESER
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN
#
# This file / the PHPKIT software is no freeware! For further
# information please visit our website or contact us via email:
#
# Diese Datei / die PHPKIT Software ist keine Freeware! Für weitere
# Informationen besuchen Sie bitte unsere Website oder kontaktieren uns per E-Mail:
#
# email : info@phpkit.com
# website : Web Server's Default Page
# licence : http://www.phpkit.com/licence/phpkit
# copyright : Copyright (c) 2002-2009 mxbyte gbr | Web Server's Default Page
if(!defined('pkFRONTEND') || pkFRONTEND!='public')
die('Direct access to this location is not permitted.');
include(pkDIRPUBLICINC.'forumsheader'.pkEXT);
$cat_option = '';
if($config['forum_doublepost']!=1 && $threadid>0 && pkGetUservalue('id'))
$doublepostinfo=$SQL->fetch_array($SQL->query("SELECT forumpost_id, forumpost_autorid FROM ".pkSQLTAB_FORUM_POST." WHERE forumpost_threadid='".$threadid."' ORDER by forumpost_time DESC LIMIT 1"));
if($threadid==0 && $catid==0)
{
if(is_array($forumcat_cache))
{
foreach($forumcat_cache_byname as $selectcat)
{
if((userrights($selectcat['forumcat_mods'])=="true" || userrights($selectcat['forumcat_user'])=="true" || getrights($selectcat['forumcat_trights'])=="true") && $selectcat['forumcat_status']==1 && $selectcat['forumcat_threads_option']==1)
{
$cat_option.='<option value="'.$selectcat['forumcat_id'].'">'.pkEntities($selectcat['forumcat_name']).'</option>';
}
}
if($cat_option)
eval("\$cat_option= \"".pkTpl("forum/newpost_cat_option")."\";");
}
}
/**************************************** FORUM Anhang Anfang ****************************************/
$forumatt_info=$SQL->fetch_array($SQL->query("SELECT * FROM `".pkSQLPREFIX."_forumatt` WHERE `forumatt_id`='1' LIMIT 1"));
$id_thread=$SQL->fetch_array($SQL->query("SELECT `forumthread_catid` FROM `".pkSQLTAB_FORUM_THREAD."` WHERE `forumthread_id`='".intval($threadid)."' LIMIT 1"));
$id_cat_go=($id_thread['forumthread_catid']>0) ? $id_thread['forumthread_catid'] : $catid;
$id_cat=$SQL->fetch_array($SQL->query("SELECT * FROM `".pkSQLTAB_FORUM_CATEGORY."` WHERE `forumcat_id`='".intval($id_cat_go)."' LIMIT 1"));
if(mt_rand(1,15)==7){
if($forumatt_info['forumatt_delete']==1){
$getdel=$SQL->query("SELECT `forumpost_forumatt_file`, `forumpost_id` FROM `".pkSQLTAB_FORUM_POST."` WHERE `forumpost_forumatt_time`<'".(time() - $forumatt_info['forumatt_delete_time']*86400)."' AND `forumpost_forumatt_auto`<>'1'");
while ($getdel_att=$SQL->fetch_array($getdel)) {
@unlink($forumatt_info['forumatt_dir'].$getdel_att['forumpost_forumatt_file']);
$SQL->query("UPDATE `".pkSQLTAB_FORUM_POST."` SET `forumpost_forumatt_file`='', `forumpost_forumatt_file_org`='', `forumpost_forumatt_size`='', `forumpost_forumatt_count`='', `forumpost_forumatt_auto`='', `forumpost_forumatt_time`='', `forumpost_forumatt_look`='' WHERE `forumpost_id`='".intval($getdel_att['forumpost_id'])."' LIMIT 1");
}
}
}
$forumatt_size_info=htmlentities(html_entity_decode(trim($forumatt_info['forumatt_size'])));
$forumatt_permitted_info=htmlentities(html_entity_decode(trim($forumatt_info['forumatt_permitted'])));
$forumatt_no_permitted_info=htmlentities(html_entity_decode(trim($forumatt_info['forumatt_no_permitted'])));
$not_allow = array("ä","ö","ü"," ","Ã","Ã","Ã","Ã","?",";","§","&","/","(",")","=");
$_FILES['forumatt_go']['name']=strtolower(str_replace($not_allow,"",$_FILES['forumatt_go']['name']));
if(getrights($id_cat['forumcat_forumatt_status']) AND $forumatt_info['forumatt_off']==1 AND $id_cat['forumcat_forumatt_off']==1) {
if($id_cat['forumcat_rrights']=='guest') eval ("\$row_selected_att= \"".pkTpl("forum/post_selected_gast")."\";");
elseif($id_cat['forumcat_rrights']=='user') eval ("\$row_selected_att= \"".pkTpl("forum/post_selected_user")."\";");
elseif($id_cat['forumcat_rrights']=='member') eval ("\$row_selected_att= \"".pkTpl("forum/post_selected_member")."\";");
elseif($id_cat['forumcat_rrights']=='vip') eval ("\$row_selected_att= \"".pkTpl("forum/post_selected_vip")."\";");
elseif($id_cat['forumcat_rrights']=='mod') eval ("\$row_selected_att= \"".pkTpl("forum/post_selected_mod")."\";");
elseif($id_cat['forumcat_rrights']=='admin' AND getrights('admin')) eval ("\$row_selected_att= \"".pkTpl("forum/post_selected_gast")."\";");
$_FILES['forumatt_go']['name']=$_FILES['forumatt_go']['name'];
} else $_FILES['forumatt_go']['name']='';
if(!function_exists('forumatt_no')) {
function forumatt_no($text) {
global $forumatt_info;
if(empty($forumatt_info['forumatt_no_permitted'])) return false;
$error_mail = explode("\r", $forumatt_info['forumatt_no_permitted']);
$wert=strlen($text);
$wert=$wert-2;
$text = substr($text, 0, $wert);
foreach($error_mail as $daten) {
if(stristr($text,$daten))
return false;}
return true;}
}
if(!function_exists('forumatt_no_end')) {
function forumatt_no_end($text) {
global $forumatt_info;
$end_att = pathinfo($text);
$forumatt_endung = $end_att['extension'];
$forumatt_typ = explode("\r", $forumatt_info['forumatt_permitted']);
foreach($forumatt_typ as $daten_1) {
if($daten_1==$forumatt_endung) {
return true;}
}
return false;}
}
if(!function_exists('new_name')) {
function new_name($data) {
for($x = 48; $x <= 57; $x++) {
$array[] = chr($x);}
for($x = 65; $x <= 90; $x++) {
$array[] = chr($x);}
for($x = 97; $x <= 122; $x++) {
$array[] = chr($x);}
for($x = 1; $x <= $data; $x++) {
mt_srand((double)microtime()*1000000);
$rand = rand(0,25);
$ausgabe .= $array[$rand];}
return $ausgabe;}
}
if($_FILES['forumatt_go']['name']!='') $error_ok_go=''; else $error_ok_go='1';
$size_att = $_FILES['forumatt_go']['size'];
$zufall_att = rand(20,60);
$zufall_att = new_name($zufall_att);
$size_kb=@round($size_att / 1024);
/**************************************** FORUM Anhang Ende ****************************************/
if($catid>0 && ($forumcat['forumcat_threads_option']!=1 || $forumcat['forumcat_status']!=1))
{
pkEvent('forum_closed');
}
elseif(($catid==0 || !$catid) && ($threadid==0 || !$threadid) && !$cat_option)
{
pkEvent('access_refused');
}
elseif($threadid!=0 && !pkGetConfig('forum_doublepost') && pkGetUservalue('id') && pkGetUservalue('id')==$doublepostinfo['forumpost_autorid'])
{
pkEvent('entry_repeat',true,pkLink('forumsthread','','threadid='.$threadid));
}
elseif($threadid!=0 && ($forumthread['forumthread_status']==0 || $forumthread['forumthread_status']==3))
{
pkEvent('thread_closed',true,pkLink('forumsthread','','threadid='.$threadid));
}
elseif
(
(
$catid!=0 &&
(
userrights($forumcat['forumcat_mods']) ||
userrights($forumcat['forumcat_user']) ||
getrights($forumcat['forumcat_trights'])
)
)
||
($catid==0 && $threadid==0 && $cat_option!='')#???
||
($threadid!=0 &&
(
getrights($forumcat['forumcat_wrights']) ||
userrights($forumcat['forumcat_mods']) ||
userrights($forumcat['forumcat_user'])
)
)
)
{
$ACTION=(isset($_POST['action'])) ? $_POST['action'] : 'view';
if($ACTION==$_POST['save'] || $ACTION==$_POST['preview'])
{
if(!pkGetUserValue('id') && !pkCaptchaCodeValid($ENV->_post(pkCAPTCHAVARNAME)))
{
unset($ACTION);
}
if(!empty($_POST['content']))
{
$post_text=$_POST['content'];
}
else
{
unset($ACTION);
}
if(!$_POST['threadid'] && trim($_POST['post_title'])!='')
{
$post_title=$_POST['post_title'];
}
elseif(!$_POST['threadid'])
{
unset($ACTION);
}
if(pkGetUservalue('id'))
{
$post_autor=pkGetUservalue('nick');
}
elseif(!pkGetUservalue('id') && !empty($_POST['post_autor']) && checkusername($_POST['post_autor'],1))
{
$post_autor=$_POST['post_autor'];
}
elseif(!pkGetUservalue('id'))
{
$post_autor=$_POST['post_autor'];
unset($ACTION);
}
}
/**************************************** FORUM Anhang Anfang ****************************************/
if(forumatt_no($_FILES['forumatt_go']['name']) or $error_ok_go==1) $_FILES['forumatt_go']['name']=$_FILES['forumatt_go']['name'];
else {unset($ACTION); $error_forumatt_1='1';}
if($size_kb<=$forumatt_info['forumatt_size'] or $error_ok_go==1) $_FILES['forumatt_go']['name']=$_FILES['forumatt_go']['name'];
else {unset($ACTION); $error_forumatt_2='2';}
if(forumatt_no_end($_FILES['forumatt_go']['name']) or $error_ok_go==1) $_FILES['forumatt_go']['name']=$_FILES['forumatt_go']['name'];
else {unset($ACTION); $error_forumatt_3='3';}
/**************************************** FORUM Anhang Ende ****************************************/
if($ACTION==$_POST['save'] && (isset($_POST['threadid']) || isset($_POST['catid'])))
{
$check_time=pkTIME-1800;
$SQL->query("UPDATE ".pkSQLTAB_FORUM_POST." SET forumpost_uid='' WHERE forumpost_time<'".$check_time."'");
$postuid=$SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_FORUM_POST." WHERE forumpost_uid='".$SQL->f($_POST['post_uid'])."' AND forumpost_time>'".$check_time."' LIMIT 1"));
if($postuid[0]==0)
{
unset($update_threadcount);
if($threadid>0)
{
$SQL->query("UPDATE ".pkSQLTAB_FORUM_THREAD."
SET forumthread_replycount=forumthread_replycount+1,
forumthread_lastreply_autor='".$SQL->f($_POST['post_autor'])."',
forumthread_lastreply_time='".pkTIME."',
forumthread_lastreply_autorid='".$SQL->i(pkGetUservalue('id'))."'
WHERE forumthread_id='".$threadid."'");
}
else
{
$SQL->query("INSERT INTO ".pkSQLTAB_FORUM_THREAD."
(forumthread_autor,forumthread_autorid,forumthread_catid,
forumthread_icon,forumthread_title,forumthread_lastreply_time,
forumthread_lastreply_autor,forumthread_lastreply_autorid)
VALUES
('".$SQL->f($_POST['post_autor'])."',
'".$SQL->i(pkGetUservalue('id'))."',
'".$SQL->i($catid)."',
'".$SQL->f($_POST['post_icon'])."',
'".$SQL->f($_POST['post_title'])."',
'".pkTIME."',
'".$SQL->f($_POST['post_autor'])."',
'".$SQL->i(pkGetUservalue('id'))."')");
$threadid=$SQL->insert_id();
$update_threadcount=", forumcat_threadcount=forumcat_threadcount+1";
#Bedankomat by www.kit-coding.de ANFANG
if(intval($_POST['post_dankomat'])==1 || $ACTION=='save'){
$SQL->query("UPDATE ".pkSQLTAB_FORUM_THREAD." set `forumthread_dankomat`='1' WHERE `forumthread_id`='".$threadid."' limit 1");
}
#Bedankomat by www.kit-coding.de ENDE
}
$sqlcommand="forumcat_id='".$catid."'";
$id=$forumcat_cache[$catid]['forumcat_subcat'];
if($id>0)
{
while($id>0)
{
$sqlcommand.=" OR forumcat_id='".$id."'";
$id=$forumcat_cache[$id]['forumcat_subcat'];
}
}
$SQL->query("UPDATE ".pkSQLTAB_FORUM_CATEGORY."
SET forumcat_postcount=forumcat_postcount+1 ".
$update_threadcount.",
forumcat_lastreply_time='".pkTIME."',
forumcat_lastreply_threadid='".$SQL->i($threadid)."',
forumcat_lastreply_autor='".$SQL->f($_POST['post_autor'])."',
forumcat_lastreply_autorid='".$SQL->i(pkGetUservalue('id'))."' WHERE ".
$sqlcommand);
$SQL->query("INSERT INTO ".pkSQLTAB_FORUM_POST."
(forumpost_threadid, forumpost_autor, forumpost_autorid,
forumpost_icon, forumpost_title, forumpost_text,
forumpost_time, forumpost_bbcode, forumpost_smilies,
forumpost_uid, forumpost_ipaddr, forumpost_reply)
VALUES
('".$SQL->i($threadid)."',
'".$SQL->f($_POST['post_autor'])."',
'".$SQL->i(pkGetUservalue('id'))."',
'".$SQL->f($_POST['post_icon'])."',
'".$SQL->f($_POST['post_title'])."',
'".$SQL->f($_POST['content'])."',
'".pkTIME."',
'".$SQL->i($_POST['post_bbcode'])."',
'".$SQL->i($_POST['post_smilies'])."',
'".$SQL->f($_POST['post_uid'])."',
'".$SQL->f($ENV->getvar('REMOTE_ADDR'))."',
'".$SQL->id($_POST['replyto'])."')");
$postid = $SQL->insert_id();
/**************************************** FORUM Anhang Anfang ****************************************/
if($_FILES['forumatt_go']['name']!='' AND $postid>0) {
$insert_att=$postid."_".$zufall_att.".ss.zip";
if($_POST['autodelete_no']==1 AND isset($_POST['autodelete_no']) AND getrights('admin') AND $forumatt_info['forumatt_delete']==1) {
$SQL->query("UPDATE `".pkSQLTAB_FORUM_POST."` SET `forumpost_forumatt_auto`='1' WHERE `forumpost_id`='".addslashes($postid)."'");}
if($forumatt_info['forumatt_delete']==0) $db_del_no=", `forumpost_forumatt_auto`='1'"; else $db_del_no='';
$SQL->query("UPDATE `".pkSQLTAB_FORUM_POST."` SET `forumpost_forumatt_file`='".addslashes($insert_att)."',`forumpost_forumatt_file_org`='".addslashes($_FILES['forumatt_go']['name'])."', `forumpost_forumatt_size`='".addslashes($size_kb)."', `forumpost_forumatt_time`='".time()."', `forumpost_forumatt_look`='".addslashes($_POST['forumpost_forumatt_look'])."' ".$db_del_no." WHERE `forumpost_id`='".addslashes($postid)."'");
if($id_cat['forumcat_rrights']=='admin' AND empty($_POST['forumpost_forumatt_look']))
$SQL->query("UPDATE `".pkSQLTAB_FORUM_POST."` SET `forumpost_forumatt_look`='admin' WHERE `forumpost_id`='".addslashes($postid)."'");
@move_uploaded_file($_FILES['forumatt_go']['tmp_name'], $forumatt_info['forumatt_dir'].$insert_att);
@chmod($forumatt_info['forumatt_dir'].$insert_att, 0644);
}
/**************************************** FORUM Anhang Ende ****************************************/
if(pkGetUservalue('id'))
{
$userposts = $SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_FORUM_POST." WHERE forumpost_autorid='".pkGetUservalue('id')."'"));
$SQL->query("UPDATE ".pkSQLTAB_USER." SET user_posts='".$userposts[0]."' WHERE user_id='".pkGetUservalue('id')."'");
}
}
if(pkGetUservalue('id'))
{
$exception=" AND forumnotify_userid!='".pkGetUservalue('id')."'";
}
else
{
unset($exception);
}
unset($mailhash);
unset($sqlcommand);
$getnotify=$SQL->query("SELECT forumnotify_email, forumnotify_userid FROM ".pkSQLTAB_FORUM_NOTIFY." WHERE forumnotify_threadid='".$threadid."' ".$exception);
while($notify=$SQL->fetch_array($getnotify))
{
if($notify['forumnotify_userid']>0)
{
if($sqlcommand)
{
$sqlcommand.=" OR user_id='".$notify['forumnotify_userid']."'";
}
else
{
$sqlcommand="SELECT user_email FROM ".pkSQLTAB_USER." WHERE user_id='".$notify['forumnotify_userid']."'";
}
}
else
{
$mailhash[$notify['forumnotify_email']]=$notify['forumnotify_email'];
}
}
if($sqlcommand)
{
$getmails=$SQL->query($sqlcommand);
while($userinfo=$SQL->fetch_array($getmails))
{
$mailhash[$userinfo['user_email']]=$userinfo['user_email'];
}
}
pkLoadLang('email');
$forumthread = $SQL->fetch_assoc($SQL->query("SELECT forumthread_title FROM ".pkSQLTAB_FORUM_THREAD." WHERE forumthread_id='".$threadid."' LIMIT 1"));
#mail notify
$link = pkGetConfig('site_url').'/include.php?path=forumsthread&threadid='.$threadid.'&postid='.$postid;
$mail_title = pkGetSpecialLang('newpost_notify_mail_title',pkGetConfig('site_name'),$forumthread['forumthread_title']);
$mail_text = pkGetSpecialLang('newpost_notify_mail_body',pkGetConfig('site_name'),$post_autor,$link);
notifymail('forum',$mail_title,$mail_text);
#pn notify
$pn_title = pkGetLang('new_post').' '.$_POST['post_title'];
$pn_text = pkGetSpecialLang('newpost_pn_notify',$post_autor,$threadid,$postid);
notifyim('forum',$pn_title,$pn_text);
if(is_array($mailhash))
{
$mail_title = pkGetSpecialLang('newpost_subscriber_mail_title',pkGetConfig('site_name'),$forumthread['forumthread_title']);
$mail_text = pkGetSpecialLang('newpost_subscriber_mail_body',
pkGetConfig('site_name'),
$post_autor,
$forumthread['forumthread_title'],
pkGetConfig('site_url').'/include.php?path=forumsthread&threadid='.$threadid.'&postid='.$postid,
pkGetConfig('site_name'),
pkGetConfig('site_url')
);
foreach($mailhash as $email)
{
mailsender($email,$mail_title,$mail_text);
}
}
if($_POST['post_notify']==1 && $threadid>0)
{
$post_email=pkGetUservalue('id') ? pkGetUservalue('email') : $_POST['post_email'];
if(emailcheck($post_email))
{
$SQL->query("INSERT INTO ".pkSQLTAB_FORUM_NOTIFY." (forumnotify_userid,forumnotify_email,forumnotify_threadid) VALUES ('".$SQL->i(pkGetUservalue('id'))."','".$SQL->f($post_email)."','".$SQL->i($threadid)."')");
}
}
$FORUM->setReaded($catid,$threadid,pkTIME);
pkHeaderLocation('forumsthread','','threadid='.$threadid.'&postid='.$postid,'post'.$postid);
}
else
{
pkLoadClass($BBCODE,'bbcode');
$error_message='';
if($ACTION==$_POST['preview'])
{
$row='odd';
if(!empty($_POST['post_icon']))
{
$post_icon="icons/".basename($_POST['post_icon']);
eval("\$post_icon= \"".pkTpl("forum/showthread_row_posticon")."\";");
}
$post_time=formattime();
$post_autor=pkEntities($post_autor);
$post_title=pkEntities($post_title);
$post_text=$BBCODE->parse($_POST['content'],0,intval($_POST['post_bbcode']),intval($_POST['post_smilies']),$config['forum_images'],1,pkGetConfig('forum_imageresize'),pkGetConfig('forum_textwrap'));
eval("\$preview_row= \"".pkTpl("forum/showthread_row")."\";");
eval("\$site_body.= \"".pkTpl("forum/newpost_preview")."\";");
}
elseif(!isset($ACTION) || $ACTION!='view')
{
$errorcount=0;
if(!pkCaptchaCodeValid($ENV->_post(pkCAPTCHAVARNAME)) && !pkGetUserValue('id') && isset($_POST['action']) && $_POST['action']!=$_POST['preview'])
{
$errorcount++;
$error_message.=pkGetLang('newpost_error_captcha');#pkGetLang('');
}
if(empty($post_text))
{
$errorcount++;
$error_message.=pkGetLang('newpost_error_text');
}
if(!$threadid && empty($post_title))
{
$errorcount++;
$error_message.=pkGetLang('newpost_error_title');
}
if(empty($post_autor))
{
$errorcount++;
$error_message.=pkGetLang('newpost_error_author');
}
elseif(!checkusername($post_autor,1))
{
$errorcount++;
$error_message.=pkGetLang('newpost_error_name');
}
/**************************************** FORUM Anhang Anfang ****************************************/
if($error_forumatt_1==1) {$errorcount++; eval ("\$error_message= \"".pkTpl("forum/newpost_error_datei")."\";");}
elseif($error_forumatt_2==2) {$errorcount++; eval ("\$error_message= \"".pkTpl("forum/newpost_error_size")."\";");}
elseif($error_forumatt_3==3) {$errorcount++; eval ("\$error_message= \"".pkTpl("forum/newpost_error_endung")."\";");}
/**************************************** FORUM Anhang Ende ****************************************/
if($errorcount)
{
$lang_newpost_error_occured=$errorcount>1 ? pkGetSpecialLang('newpost_errors_occured',$errorcount) : pkGetLang('newpost_error_occured');
eval("\$post_error=\"".pkTpl("forum/newpost_error")."\";");
}
}
if(intval($_REQUEST['quote'])>0)
{
if($forumpost=$SQL->fetch_array($SQL->query("SELECT forumpost_text, forumpost_title, forumpost_autor FROM ".pkSQLTAB_FORUM_POST." WHERE forumpost_id='".intval($_REQUEST['quote'])."' AND forumpost_threadid='".$threadid."' LIMIT 1")))
{
$replyto=intval($_REQUEST['replyto']);
$post_title='RE: '.pkEntities($forumpost['forumpost_title']);
$post_text=' Zitat'.$lang['original_written_by'].' '.$forumpost['forumpost_autor']."\".pkEntities($forumpost['forumpost_text']).'';
}
}
elseif(isset($_POST['replyto']) && intval($_POST['replayto'])>0)
{
$replyto=intval($_POST['replyto']);
}
if(pkGetUservalue('id'))
{
$usernick=pkGetUservalueF('nick');
eval("\$user_info= \"".pkTpl("forum/newpost_user")."\";");
}
else
{
if(empty($post_autor))
{
$post_autor=pkGetUservalueF('nick');
}
eval("\$user_info= \"".pkTpl("forum/newpost_guest")."\";");
eval("\$option_notify= \"".pkTpl("forum/newpost_option_notify_form")."\";");
}
unset($sign_format);
if($config['forum_ubb']==1)
{
if(intval($_POST['post_bbcode']==1) || $ACTION=='view')
{
$bbcode='checked';
}
eval("\$sign_format= \"".pkTpl("format_text")."\";");
eval("\$option_bbcode= \"".pkTpl("forum/newpost_option_bbcode")."\";");
}
#Bedankomat by www.kit-coding.de ANFANG
if(intval($_POST['post_dankomat'])==1 || $ACTION=='view'){
$dankomat='checked';
}
if($threadid<=0)
{eval("\$option_dankomat= \"".pkTpl("forum/newpost_option_dankomat")."\";");}
#Bedankomat by www.kit-coding.de ENDE
if($config['forum_smilies']==1)
{
$smilies=new smilies();
$sign_format.=$smilies->getSmilies(1);
if(intval($_POST['post_smilies'])==1 || $ACTION=='view')
{
$smilies='checked';
}
eval("\$option_smilies= \"".pkTpl("forum/newpost_option_smilies")."\";");
}
if($sign_format)
{
eval("\$sign_format= \"".pkTpl("format_table")."\";");
}
eval("\$theme_icon= \"".pkTpl("forum/newpost_noicon")."\";");
$dir='images/icons';
$width=2;
$a=opendir($dir);
while($datei=readdir($a))
{
if(strstr($datei,".gif"))
{
if($width==10)
{
$theme_icon.="</tr><tr>";
$width=1;
}
if(basename($_POST['post_icon'])==$datei)
{
$iconoption=" checked";
}
eval("\$theme_icon.= \"".pkTpl("forum/newpost_icons")."\";");
$width++;
unset($iconoption);
}
}
$cs=10-$width;
if($cs>0)
{
$theme_icon.='<td colspan="'.$cs.'"> </td>';
}
closedir($a);
if(empty($_POST['post_uid']))
{
srand((double) microtime()*1000000);
$post_uid = md5(uniqid(rand()));
}
else
{
$post_uid = pkEntities($_POST['post_uid']);
$post_title = pkEntities($_POST['post_title']);
$post_text = pkEntities($_POST['content']);
if($_POST['post_notify']==1)
{
$notify='checked';
}
}
/**************************************** FORUM Anhang Anfang ****************************************/
if($forumatt_info['forumatt_delete']==1) {
$forumatt_time_info=htmlentities(html_entity_decode(trim($forumatt_info['forumatt_delete_time'])));
eval ("\$delete_attachment_no= \"".pkTpl("forum/newpost_del_hinweis")."\";");
if(getrights('admin') AND $forumatt_info['forumatt_delete']==1) {
unset($delete_attachment_no);
eval ("\$delete_attachment_no= \"".pkTpl("forum/newpost_delete_no")."\";");}
}
if(getrights($id_cat['forumcat_forumatt_status']) AND $forumatt_info['forumatt_off']==1 AND $id_cat['forumcat_forumatt_off']==1)
eval ("\$post_attachment= \"".pkTpl("forum/newpost_att")."\";");
/**************************************** FORUM Anhang Ende ****************************************/
#captcha only shown for guests
$captcha = pkGetUserValue('id') ? '' : pkCaptchaField();
eval("\$site_body.= \"".pkTpl("forum/newpost")."\";");
if($config['forum_viewreply']>0 && $threadid>0)
{
unset($reply_row);
$query = $SQL->query("SELECT * FROM ".pkSQLTAB_FORUM_POST." WHERE forumpost_threadid='".$threadid."' ORDER BY forumpost_time DESC LIMIT ".pkGetConfig('forum_viewreply'));
while($replypost = $SQL->fetch_assoc($query))
{
$row = rowcolor($row);
$replypost_text = $BBCODE->parse($replypost['forumpost_text'],0,$replypost['forumpost_bbcode'],$replypost['forumpost_smilies'], $config['forum_images'],1,pkGetConfig('forum_imageresize'),pkGetConfig('forum_textwrap'));
$replypost_time = formattime($replypost['forumpost_time']);
$replypost_autor = pkEntities($replypost['forumpost_autor']);
eval("\$reply_row.=\"".pkTpl("forum/newpost_viewreplys_row")."\";");
}
if($reply_row)
{
eval("\$site_body.=\"".pkTpl("forum/newpost_viewreplys")."\";");
}
}
}
}
else
{
pkEvent('access_refused');
}
include(pkDIRPUBLICINC.'forumsfooter'.pkEXT);
?>
|
|
|
|
|
PHP - Code Ende: (639 Zeilen) | Code markieren
|
 | Der User Andre (BFM) hat am 14.01.10 - 00:32 diesen Beitrag editiert! Bearbeitungsgrund:Code in Klappfunktion gesetzt |
Das verlinkte Bild http://www.burnerfm.de/user906.png existiert nicht mehr bzw. wurde falsch verlinkt!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 12.01.2010 - 13:03 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
RE: Birthdaybot problem
Ich teste das die woche bei mir mal lokal mit deinen Code. Gedulde dich bitte noch bis Freitag.
 | Der User Andre (BFM) hat am 13.01.10 - 12:57 diesen Beitrag editiert! Bearbeitungsgrund:Also habe grade nochmal den Birthday Bot Lokal getestet und da geht alles. Also muss an irgendetwas anderes liegen, an dem Addon auf jedenfall mal nicht. Leg mir mal bitte nen Account an mit Adminrechten. Das ganze bitte per PN zuschicken, dann kann ich selber mal testen bei dir |
Ja es ist geschafft bin seit 02.07.10 stolzer PAPA eines Mädchen => Eingeschränkter Support meinerseits !!!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 13.01.2010 - 11:44 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.

RE: Birthdaybot problem
hatte dir ne pn geschrieben ist die vieleicht net angekommen ??
weil sehe das du noch net eingelogt warst auf meiner hp sonst schick ich sie dir nochmal
mfg zicke
Das verlinkte Bild http://www.burnerfm.de/user906.png existiert nicht mehr bzw. wurde falsch verlinkt!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 14.01.2010 - 08:14 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
RE: Birthdaybot problem
ich tippe ganz stark das die forumsthread.php (http://www.glc-funclan.de/include.php?path=forumsthread&threa did=197) en schatten hat hänge die mal hier im forum an
Das verlinkte Bild http://www.pimpyourkit.de/images/banner/siguser_1.gif existiert nicht mehr bzw. wurde falsch verlinkt!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 14.01.2010 - 09:11 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
RE: Birthdaybot problem
na dann bin ich ja mal gespannt ob die ein weg hat wenn ja werd ich sie verschrotten
Klapptext Inhalt anzeigen
|
PHP - Code Anfang: (746 Zeilen) | Code markieren
|
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 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 |
|
<?php
# PHPKIT WCMS | Web Content Management System
#
#
# YOU ARE NOT AUTHORISED TO CREATE ILLEGAL COPIES OF THIS
# FILE AND/OR TO REMOVE THIS INFORMATION
#
# SIE SIND NICHT BERECHTIGT, UNRECHTMÃSSIGE KOPIEN DIESER
# DATEI ZU ERSTELLEN UND/ODER DIESE INFORMATIONEN ZU ENTFERNEN
#
# This file / the PHPKIT software is no freeware! For further
# information please visit our website or contact us via email:
#
# Diese Datei / die PHPKIT Software ist keine Freeware! Für weitere
# Informationen besuchen Sie bitte unsere Website oder kontaktieren uns per E-Mail:
#
# email : info@phpkit.com
# website : Web Server's Default Page
# licence : http://www.phpkit.com/licence
# copyright : Copyright (c) 2002-2009 mxbyte gbr | Web Server's Default Page
if(!defined('pkFRONTEND') || pkFRONTEND!='public')
die('Direct access to this location is not permitted.');
include(pkDIRPUBLICINC.'forumsheader'.pkEXT);
/**************************************** FORUM Anhang Anfang ****************************************/
$array_pic=array('ace' => 'ace.gif','bmp' => 'bmp.gif','doc' => 'doc.gif','dot' => 'doc.gif','pot' => 'doc.gif','exe' => 'exe.gif','gif' => 'gif.gif','htm' => 'htm.gif','html' => 'html.gif','jpeg' => 'jpeg.gif','jpg' => 'jpg.gif','js' => 'js.gif','mdb' => 'mdb.gif','mp3' => 'mp3.gif','pdf' => 'pdf.gif','php' => 'php.gif','pps' => 'pps.gif','psd' => 'psd.gif','rar' => 'rar.gif','swf' => 'swf.gif','swt' => 'swt.gif','ttf' => 'ttf.gif','txt' => 'txt.gif','wav' => 'wav.gif','xls' => 'xls.gif','zip' => 'zip.gif','avi' => 'avi.gif','cs' => 'cs.gif','dll' => 'dll.gif','fla' => 'fla.gif','ppt' => 'ppt.gif','vsd' => 'vsd.gif','xml' => 'xml.gif','gz' => 'gz.gif','cgi' => 'cgi.gif','css' => 'css.gif','ico' => 'ico.gif','pl' => 'pl.gif','wmv' => 'wmv.gif');
$id_thread=$SQL->fetch_array($SQL->query("SELECT `forumthread_catid` FROM `".pkSQLTAB_FORUM_THREAD."` WHERE `forumthread_id`='".intval($threadid)."' LIMIT 1"));
$id_cat=$SQL->fetch_array($SQL->query("SELECT * FROM `".pkSQLTAB_FORUM_CATEGORY."` WHERE `forumcat_id`='".intval($id_thread['forumthread_catid'])."' LIMIT 1"));
/**************************************** FORUM Anhang Ende ****************************************/
##### Fünf Ãhnliche Themen by Proggi - www.kit-spiele.de #####
include(pkDIRPUBLICINC.'ks_addon/threads_like_the_same'.pkEXT);
##### Fünf Ãhnliche Themen by Proggi - www.kit-spiele.de #####
if(!$threadid>0 || ($threadid && !$forumthread['forumthread_id']))
{
pkEvent('thread_does_not_exists');
include(pkDIRPUBLICINC.'forumsfooter'.pkEXT);
return;
}
if(!$FORUM->getCategoryRrights($catid))
{
pkEvent('access_refused');
include(pkDIRPUBLICINC.'forumsfooter'.pkEXT);
return;
}
# if(!empty($forumthread['forumthread_title']))
# $config['site_title'].=' ('.pkGetLang('forumsthread').$forumthread['forumthread_title'].')';
if(userrights($forumcat['forumcat_mods'])=="true" && $_POST['actionmod']==pkGetLang('go') && isset($_POST['quick_mod']) && $_POST['quick_mod']!="-1")
{
$quick_mod=$_POST['quick_mod'];
if($quick_mod=='cs0' || $quick_mod=='cs1' || $quick_mod=='cs2' || $quick_mod=='cs3')
{
if($quick_mod=='cs0')
$cs=0;
elseif($quick_mod=='cs1')
$cs=1;
elseif($quick_mod=='cs2')
$cs=2;
elseif($quick_mod=='cs3')
$cs=3;
$SQL->query("UPDATE ".pkSQLTAB_FORUM_THREAD." SET forumthread_status='".$cs."' WHERE forumthread_id='".$threadid."'");
}
elseif(intval($quick_mod)>0)
$SQL->query("UPDATE ".pkSQLTAB_FORUM_THREAD." SET forumthread_catid='".intval($quick_mod)."' WHERE forumthread_id='".$threadid."'");
elseif($quick_mod=="del")
pkHeaderLocation('forumsmoderate','','threadid='.$threadid.'&alter_delete=1');
pkHeaderLocation('forumsthread','','threadid='.$threadid);
}
$entries=(isset($_REQUEST['entries']) && intval($_REQUEST['entries'])>0) ? intval($_REQUEST['entries']) : 0;
##### Thread Finish by burnerfm.de & pimpyourkit.de #####
if($forumthread['forumthread_status']!=0 && (getrights('mod') || $forumthread['forumthread_autorid'] == pkGetUservalue('id')))
{
$cut = 25; // Ab wann der Forumstitel gekürzt werden soll (Standard: 25)
$ACTION=(isset($_POST['action'])) ? $_POST['action'] : 'view';
$mehr = $cut <= strlen($forumthread['forumthread_title']) ? '...' : NULL;
$thread_finish1 = $forumthread['forumthread_finish'] == 1 ? 'checked="checked"' : '';
$thread_finish2 = $forumthread['forumthread_finish'] == 2 ? 'checked="checked"' : '';
$thread_finish0 = $thread_finish1 || $thread_finish2 ? '' : 'checked="checked"';
$thread_finish_info = substr($forumthread['forumthread_title'],0,$cut).$mehr;
eval("\$thread_finish= \"".pkTpl("forum/showthread_finish")."\";");
if(isset($_POST['thread_finish']) && intval($_POST['thread_finish'] == 1))
{
$SQL->query("UPDATE ".pkSQLTAB_FORUM_THREAD." SET forumthread_finish='1' WHERE forumthread_id='".$threadid."'");
pkHeaderLocation('forumscategory','','catid='.$catid);
}
if(isset($_POST['thread_finish']) && intval($_POST['thread_finish'] == 0))
{
$SQL->query("UPDATE ".pkSQLTAB_FORUM_THREAD." SET forumthread_finish='0' WHERE forumthread_id='".$threadid."'");
pkHeaderLocation('forumsthread','','threadid='.$threadid);
}
if(isset($_POST['thread_finish']) && intval($_POST['thread_finish'] == 2))
{
$SQL->query("UPDATE ".pkSQLTAB_FORUM_THREAD." SET forumthread_finish='2' WHERE forumthread_id='".$threadid."'");
pkHeaderLocation('forumsthread','','threadid='.$threadid);
}
}
##### Thread Finish by burnerfm.de & pimpyourkit.de #####
if(isset($_REQUEST['postid']))
{
$postid=($_REQUEST['postid']=='new' || $_REQUEST['postid']=='last') ? $_REQUEST['postid'] : (intval($_REQUEST['postid'])>0 ? intval($_REQUEST['postid']) : 0);
if($postid=='new')
$sqlcommand="AND forumpost_time>='".$FORUM->getUnreadedThreadtime($catid,$threadid)."' ORDER BY forumpost_time ".pkGetConfig('forum_postorder');
elseif($postid=='last')
$sqlcommand="ORDER BY forumpost_time DESC";
else
$sqlcommand=" AND forumpost_id='".$postid."'";
$info=$SQL->fetch_assoc($SQL->query("SELECT
forumpost_time,
forumpost_id FROM ".pkSQLTAB_FORUM_POST."
WHERE forumpost_threadid='".$threadid."' ".
$sqlcommand."
LIMIT 1"));
if($info['forumpost_id']>0)
{
list($counter)=$SQL->fetch_row($SQL->query("SELECT
COUNT(*)
FROM ".pkSQLTAB_FORUM_POST."
WHERE forumpost_time".(pkGetConfig('forum_postorder')=='ASC' ? '<': '>')."='".$info['forumpost_time']."' AND
forumpost_threadid='".$threadid."'"));
$epp=($forumcat['forumcat_posts']<=0) ? 15 : $forumcat['forumcat_posts'];
$entries=floor(($counter-1)/$epp)*$epp;
if($FORUM->getLayout()!=1)
{
pkHeaderLocation('forumsthread','','threadid='.$threadid.'&entries='.$entries,'post'.$info['forumpost_id']);
}
}
else
unset($postid);
}
$postcount=$SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_FORUM_POST." WHERE forumpost_threadid='".$threadid."'"));
$replycount=$postcount[0]-1;
if(!$postcount[0]>0 && !$catid)
pkHeaderLocation('forumsdisplay');
if(!$postcount[0]>0 && $catid)
pkHeaderLocation('forumscategory','','catid='.$catid);
pkLoadClass($BBCODE,'bbcode');
pkLoadFunc('user');
if(!eregi('showthread',$record_referer) && !eregi('threadid='.$threadid,$record_referer))
{
$lastpost=$SQL->fetch_array($SQL->query("SELECT forumpost_autor, forumpost_autorid, forumpost_time FROM ".pkSQLTAB_FORUM_POST." WHERE forumpost_threadid='".$threadid."' ORDER by forumpost_time DESC LIMIT 1"));
$SQL->query("UPDATE ".pkSQLTAB_FORUM_THREAD."
SET forumthread_viewcount=forumthread_viewcount+1,
forumthread_replycount='".$replycount."',
forumthread_lastreply_autor='".$SQL->f($lastpost['forumpost_autor'])."',
forumthread_lastreply_autorid='".intval($lastpost['forumpost_autorid'])."',
forumthread_lastreply_time='".intval($lastpost['forumpost_time'])."'
WHERE forumthread_id='".$threadid."'");
}
##### User Thread Aktiv burnerfm.de | pimpyourkit.de #####
$gastcount = 0;
$gast = 'Gäste';
$session_url = addslashes($_SERVER['REQUEST_URI']);
if(eregi('include.php',$session_url))
{
$session_update = str_replace('include.php','',$session_url);
$SQL->query("UPDATE ".pkSQLTAB_SESSION."
SET
session_url='".$session_update."'
WHERE session_url='".$session_url."'");
$session_url = $session_update;
}
else
$session_url = $session_url;
$getthreaduser = $SQL->query("SELECT session_userid FROM ".pkSQLTAB_SESSION." WHERE session_url = '".$session_url."'");
while($threaduser=$SQL->fetch_array($getthreaduser))
{
$session_id = intval($threaduser['session_userid']);
$useraktiv = $SQL->fetch_assoc($SQL->query("SELECT user_id, user_nick FROM ".pkSQLTAB_USER." WHERE user_id='".intval($threaduser['session_userid'])."' AND user_activate ORDER BY user_nick ASC LIMIT 1"));
if($threaduser['session_userid'] > 0)
{
$useraktiv_id = intval($useraktiv['user_id']);
$useraktiv_nick .= (empty($useraktiv_nick) ? '' : ', ').'<a href="?path=userinfo&id='.$useraktiv_id.'">'.pkEntities($useraktiv['user_nick']).'</a> ';
}
if(!empty($useraktiv_nick))
$useraktiv_and = pkGetLang('and');
$useraktiv_gast = $SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_SESSION." WHERE session_url = '".$session_url."' AND session_userid = 0"));
if($useraktiv_gast[0] == 1)
{
$gast = 'Gast';
$gastcount = $useraktiv_gast[0];
}
elseif($useraktiv_gast[0] > 1)
$gastcount = $useraktiv_gast[0];
}
$userthread_aktiv = '<table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumbody">
<tr>
<td class="heads" colspan="2">Online Status im Thread "'.$forumthread['forumthread_title'].'"</td>
</tr>
<tr>
<td class="left" width="25%"><font class="small">Momentan sind in diesem Thread online:</font></td>
<td class="left" width="75%">'.$useraktiv_nick.$useraktiv_and.' '.$gastcount.' '.$gast.'</td>
</tr>
</table><br />';
##### User Thread Aktiv burnerfm.de | pimpyourkit.de #####
$sqlcommand=($FORUM->getLayout()!=1) ? " LIMIT ".$entries.", ".$forumcat['forumcat_posts'] : '';
$getforumpost=$SQL->query("SELECT * FROM ".pkSQLTAB_FORUM_POST." WHERE forumpost_threadid='".$forumthread['forumthread_id']."' ORDER by forumpost_time ".$config['forum_postorder'].$sqlcommand);
unset($firstpost);
unset($sqlcommand);
while($forumpost=$SQL->fetch_array($getforumpost))
{
$post_cache[$forumpost['forumpost_id']]=$forumpost;
if(!$firstpost)
$firstpost=$forumpost;
if($forumpost['forumpost_autorid']>0)
{
if($sqlcommand)
$sqlcommand.=" OR user_id='".$forumpost['forumpost_autorid']."'";
else
$sqlcommand="SELECT * FROM ".pkSQLTAB_USER." WHERE user_id='".$forumpost['forumpost_autorid']."'";
}
}
if($sqlcommand)
{
$getuserinfo=$SQL->query($sqlcommand);
while($userinfo=$SQL->fetch_array($getuserinfo))
{
$user_cache[$userinfo['user_id']]=$userinfo;
}
}
foreach($post_cache as $forumpost)
{
if($FORUM->getLayout()==0 || ($FORUM->getLayout()==1 && ($postid==$forumpost['forumpost_id'] || $postid=="")))
{
$row=rowcolor($row);
if($forumpost['forumpost_autorid']>0)
$userinfo=$user_cache[$forumpost['forumpost_autorid']];
if($userinfo['user_id']>0)
{
$userinfo['user_nick']=pkEntities($userinfo['user_nick']);
if(isonline($userinfo['user_id']))
eval("\$info_os= \"".pkTpl("member_os_online")."\";");
else
eval("\$info_os= \"".pkTpl("member_os_offline")."\";");
if($userinfo['user_status']=='admin' && $userinfo['user_sex']=='w')
eval("\$post_autor_status= \"".pkTpl("forum/showthread_userstatus_admin_w")."\";");
elseif($userinfo['user_status']=='admin')
eval("\$post_autor_status= \"".pkTpl("forum/showthread_userstatus_admin")."\";");
elseif($userinfo['user_status']=="mod" && $userinfo['user_sex']=='w')
eval("\$post_autor_status= \"".pkTpl("forum/showthread_userstatus_mod_w")."\";");
elseif($userinfo['user_status']=="mod")
eval("\$post_autor_status= \"".pkTpl("forum/showthread_userstatus_mod")."\";");
elseif ($userinfo['user_status']=="member" && $userinfo['user_sex']=='w')
eval ("\$post_autor_status= \"".pkTpl("forum/showthread_userstatus_member_w")."\";");
elseif ($userinfo['user_status']=="member")
eval ("\$post_autor_status= \"".pkTpl("forum/showthread_userstatus_member")."\";");
elseif ($userinfo['user_status']=="user" && $userinfo['user_sex']=='w')
eval ("\$post_autor_status= \"".pkTpl("forum/showthread_userstatus_user_w")."\";");
elseif ($userinfo['user_status']=="user")
eval ("\$post_autor_status= \"".pkTpl("forum/showthread_userstatus_user")."\";");
elseif ($userinfo['user_status']=="ban")
eval ("\$post_autor_status= \"".pkTpl("forum/showthread_userstatus_ban")."\";");
#Bedankomat by www.kit-coding.de ANFANG
pkLoadClass($BEDANKOMAT,'bedankomat');
$BEDANKOMAT->Save($forumpost['forumpost_threadid'],$userinfo['user_id'],$forumpost['forumpost_id'],$userinfo['user_thanks'],$forumpost['forumpost_autor'],$forumpost['forumpost_autorid'],$userinfo['user_nick'],$forumthread['forumthread_dankomat'],$_GET['thanks'],$_GET['threadid'],$_GET['pid'],$_GET['uid'],$entries);
$thankinfos=$BEDANKOMAT->Load_Infos();
$thankpostlnk=$BEDANKOMAT->BForumPostLnk();
#Bedankomat by www.kit-coding.de ENDE
if($userinfo['user_posts']==0)
{
$postings=$SQL->fetch_array($SQL->query("SELECT COUNT(*) FROM ".pkSQLTAB_FORUM_POST." WHERE forumpost_autorid='".$userinfo['user_id']."'"));
$SQL->query("UPDATE ".pkSQLTAB_USER." SET user_posts='".$postings[0]."' WHERE user_id='".$userinfo['user_id']."' LIMIT 1");
$userinfo['user_posts']=$postings[0];
}
$post_count=postcount($userinfo['user_posts'],$userinfo['user_postdelay'],0);
if(trim($userinfo['user_hpage'])!='')
{
if(ereg("http://",$userinfo['user_hpage']))
$info_link=pkEntities($userinfo['user_hpage']);
else
$info_link='http://'.pkEntities($userinfo['user_hpage']);
eval("\$info_hpage= \"".pkTpl("forum/member_hpage_iconlink")."\";");
}
if($userinfo['user_emailshow']==1)
{
if($config['member_mailer']==1)
eval("\$info_email= \"".pkTpl("forum/member_email_iconlink2")."\";");
else
eval("\$info_email= \"".pkTpl("forum/member_email_iconlink")."\";");
}
if($userinfo['user_icqid']>0)
eval("\$info_icq= \"".pkTpl("forum/member_icq_iconlink")."\";");
/******************************** Pflichtfeld Anfang ********************************/
$userfields=$SQL->fetch_array($SQL->query("SELECT * FROM `".pkSQLTAB_USER_FIELDS."` WHERE `userid`='".intval($userinfo['user_id'])."' LIMIT 1"));
$getprofilefields=$SQL->query("SELECT * FROM `".pkSQLTAB_USER_PROFILEFIELDS."` WHERE `profilefields_forum`='1' ORDER by `profilefields_sorts` ASC, `profilefields_order` ASC");
while ($profilefields=$SQL->fetch_array($getprofilefields)) {
$f="field_".$profilefields['profilefields_id'];
if (($fieldcontent=htmlentities($userfields[$f]))=='') $fieldcontent=$lang['not_specified'];
if($profilefields['profilefields_bbcode']=='1') {
$fieldcontent=pkStringCut($userfields[$f],$profilefields['profilefields_cut']);
$fieldcontent=$BBCODE->parse($fieldcontent,0,$forumpost['forumpost_bbcode'],$forumpost['forumpost_smilies'],pkGetConfig('forum_images'),1,pkGetConfig('forum_imageresize'),pkGetConfig('forum_textwrap'));
} else $fieldcontent=pkStringCut($fieldcontent,$profilefields['profilefields_cut']);
$fieldforum=$BBCODE->parse($profilefields['profilefields_forum_description'],1,$forumpost['forumpost_bbcode'],$forumpost['forumpost_smilies'],pkGetConfig('forum_images'),1,pkGetConfig('forum_imageresize'),pkGetConfig('forum_textwrap'));
if (getrights($config['member_infoshow'])=="true" AND getrights($profilefields['profilefields_status'])=="true") {
eval ("\$pflicht_forum.= \"".pkTpl("forum/info_pflichtforum")."\";");}
}
/******************************** Pflichtfeld Ende ********************************/
# M-S-X Addon by Road Dogg @ Kit Coding #
if ($userinfo['user_msn']!="")
eval ("\$info_msn= \"".pkTpl("forum/member_msn_iconlink")."\";");
else $info_msn = "";
if ($userinfo['user_skype']!="")
eval ("\$info_skype= \"".pkTpl("forum/member_skype_iconlink")."\";");
else $info_skype = "";
if ($userinfo['user_xfire']!="")
eval ("\$info_xfire= \"".pkTpl("forum/member_xfire_iconlink")."\";");
else $info_xfire = "";
# M-S-X Addon by Road Dogg @ Kit Coding #
if($userinfo['user_imoption']==1)
eval("\$info_im= \"".pkTpl("forum/member_sendim_iconlink")."\";");
//Real Pic Anfang
if($config['realpic_eod']!=0 && $userinfo['user_realpic']!="" && $userinfo['user_id']!="" && filecheck($config['realpic_path'].'/'.$userinfo['user_realpic']) && $userinfo['user_picoption']==1)
{
$realpic_dimension=@getimagesize($config['realpic_path']."/".$userinfo['user_realpic']);
eval("\$realpic_show=\"".pkTpl("user_realavatar_show")."\";");
}
elseif($config['avatar_eod']!=0 && $userinfo['user_avatar']!="" && $userinfo['user_id']!="" && filecheck($config['avatar_path'].'/'.$userinfo['user_avatar']))
{
$avatar_dimension=@getimagesize($config['avatar_path']."/".$userinfo['user_avatar']);
eval("\$avatar_show=\"".pkTpl("user_avatar_show")."\";");
}
//Real Pic Ende
$info_sig=pkUserSignature($userinfo['user_sig']);
eval("\$info_user=\"".pkTpl("forum/member_userinfo_iconlink")."\";");
eval("\$post_autor=\"".pkTpl("forum/member_showprofil_textlink")."\";");
eval("\$info_buddie=\"".pkTpl("forum/member_buddie_iconlink")."\";");
}
if(($forumthread['forumthread_status']==1 || $forumthread['forumthread_status']==2) && (getrights($forumcat['forumcat_wrights'])=="true" || userrights($forumcat['forumcat_mods'],$forumcat['forumcat_rrights'])=="true" || userrights($forumcat['forumcat_user'],$forumcat['forumcat_rrights'])=="true"))
eval("\$quote_answer=\"".pkTpl("forum/showthread_quote")."\";");
if((pkGetUservalue('id') && $forumpost['forumpost_autorid']==pkGetUservalue('id') && ($forumthread['forumthread_status']==1 || $forumthread['forumthread_status']==2)) || userrights($forumcat['forumcat_mods'])=="true")
eval("\$post_edit= \"".pkTpl("forum/showthread_edit")."\";");
if($forumpost['forumpost_icon']!='')
{
$post_icon="icons/".$forumpost['forumpost_icon'];
eval("\$post_icon= \"".pkTpl("forum/showthread_row_posticon")."\";");
}
if($post_autor=='')
{
eval("\$info_os= \"".pkTpl("guest_os_icon")."\";");
eval ("\$post_count= \"".pkTpl("forum/showthread_userstatus_guest")."\";");
$post_autor=pkEntities($forumpost['forumpost_autor']);
}
if($forumpost['forumpost_editcount']>0)
{
$edit_time=formattime($forumpost['forumpost_edittime']);
$forumpost['forumpost_editautor']=pkEntities($forumpost['forumpost_editautor']);
eval("\$edit_message= \"".pkTpl("forum/showthread_row_editmessage")."\";");
}
if(userrights($forumcat['forumcat_mods'])=="true")
eval("\$post_ip= \"".pkTpl("forum/showthread_ip")."\";");
else
eval("\$post_ip= \"".pkTpl("forum/showthread_report")."\";");
$post_time=formattime($forumpost['forumpost_time']);
$post_title=pkEntities($forumpost['forumpost_title']);
$post_text=$BBCODE->parse($forumpost['forumpost_text'],0,$forumpost['forumpost_bbcode'],$forumpost['forumpost_smilies'],$config['forum_images'],1,pkGetConfig('forum_imageresize'),pkGetConfig('forum_textwrap'));
/**************************************** FORUM Anhang Anfang ****************************************/
$forumatt_info=$SQL->fetch_array($SQL->query("SELECT * FROM `".pkSQLPREFIX."_forumatt` WHERE `forumatt_id`='1' LIMIT 1"));
$endung_att = pathinfo($forumpost['forumpost_forumatt_file_org']);
$forum_endung = $array_pic[$endung_att['extension']];
if($forum_endung!='') $datei_typen_forum=$forum_endung;
else $datei_typen_forum='unknown.gif';
$ausgabe_att_id =trim($forumpost['forumpost_id']);
$ausgabe_att_file =htmlentities(html_entity_decode(trim($forumpost['forumpost_forumatt_file'])));
$ausgabe_att_org =htmlentities(html_entity_decode(trim($forumpost['forumpost_forumatt_file_org'])));
$ausgabe_att_size =htmlentities(html_entity_decode(trim($forumpost['forumpost_forumatt_size'])));
$ausgabe_att_count=htmlentities(html_entity_decode(trim($forumpost['forumpost_forumatt_count'])));
if($forumpost['forumpost_forumatt_look']=='guest') $status_att="Gäste";
elseif($forumpost['forumpost_forumatt_look']=='user') $status_att="User";
elseif($forumpost['forumpost_forumatt_look']=='member') $status_att="Member";
elseif($forumpost['forumpost_forumatt_look']=='vip') $status_att="VIP";
elseif($forumpost['forumpost_forumatt_look']=='mod') $status_att="Moderator";
elseif($forumpost['forumpost_forumatt_look']=='admin') $status_att="Administrator";
if($forumatt_info['forumatt_delete']==1 AND $forumpost['forumpost_forumatt_auto']==0) {
$tage_att=date("d", (time()-$forumpost['forumpost_forumatt_time']));
$tagen_delete_att=$forumatt_info['forumatt_delete_time']-$tage_att;
if($forumatt_info['forumatt_delete_time']>=$tage_att) {
eval ("\$attachment_delete= \"".pkTpl("forum/showthread_attachment_delete")."\";");
} else {
eval ("\$attachment_delete= \"".pkTpl("forum/showthread_attachment_delete_go")."\";");
}
} else unset($attachment_delete);
if($forumatt_info['forumatt_off']==1 AND $id_cat['forumcat_forumatt_off']==1) {
if($forumpost['forumpost_forumatt_file']!='' AND $forumpost['forumpost_forumatt_file_org']!='') {
if(getrights($forumpost['forumpost_forumatt_look']))
eval ("\$attachment_forum= \"".pkTpl("forum/showthread_attachment")."\";");
else eval ("\$attachment_forum= \"".pkTpl("forum/showthread_attachment_no")."\";");}
}
/**************************************** FORUM Anhang Ende ****************************************/
// ForenCrazyHack by InfoCMS.de
// Benutzerstatus
if ($userinfo[user_status]=="admin") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['admin_female'];} else {$info_userstatus=$lang['admin'];}}
elseif ($userinfo[user_status]=="mod") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['mod_female'];} else {$info_userstatus=$lang['mod'];}}
elseif ($userinfo[user_status]=="member") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['member_female'];} else {$info_userstatus=$lang['member'];}}
elseif ($userinfo[user_status]=="user") {if ($userinfo[user_sex]=="w") {$info_userstatus=$lang['user_female'];} else {$info_userstatus=$lang['user'];}}
if ($userinfo['user_sex']=="w") $info_sex=$lang['female_img']; // Usersex female
elseif ($userinfo['user_sex']=="m") $info_sex=$lang['male_img']; //Usersex male
else $info_sex=$lang['not_specified_img']; // Not specified
$lang['female_img']='<img border="0" src="images/female.gif" width="9" height="11" />';
$lang['male_img']='<img border="0" src="images/male.gif" width="9" height="11" />';
$lang['not_specified_img']='<img border="0" src="images/questionmark.gif" width="9" height="11" />';
$info_signin=formattime($userinfo['signin'],'','date'); // Dabei seit:
// Levelhack
$level = pow (log10 ($userinfo['user_posts']), 3);
$ep = floor (100 * ($level - floor ($level)));
$showlevel = floor ($level + 1);
$hpmulti = round (($userinfo['user_posts'])/((pkTIME-$userinfo['signin'])/86400) / 6, 1);
if ($hpmulti > 1.5) {
$hpmulti = 1.5;
}
if ($hpmulti < 1) {
$hpmulti = 1;
}
$maxhp = $level * 25 * $hpmulti;
$hp= ($userinfo['user_posts'])/((pkTIME-$userinfo['signin'])/86400) / 5;
if ($hp >= 1) {
$hp= $maxhp;
} else {
$hp= floor ($hp * $maxhp);
}
$hp= floor ($hp);
$maxhp= floor ($maxhp);
if ($maxhp <= 0) {
$zhp = 1;
} else {
$zhp = $maxhp;
}
$hpf= floor (100 * ($hp / $zhp)) - 1;
$maxmp= ((pkTIME-($userinfo['signin']))/86400 * $level) / 5;
$mp= ($userinfo['user_posts']) / 3;
if ($mp >= $maxmp) {
$mp = $maxmp;
}
$maxmp = floor ($maxmp);
$mp = floor ($mp);
if ($maxmp <= 0) {
$zmp = 1;
} else {
$zmp = $maxmp;
}
$mpf= floor (100 * ($mp / $zmp)) - 1;
// Ranggrafiken
if (($userinfo['user_posts']) > 199)
{ $ucrazyrang = "<img src=\"images/crazy/pip13.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 179)
{ $ucrazyrang = "<img src=\"images/crazy/pip12.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 159)
{ $ucrazyrang = "<img src=\"images/crazy/pip11.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 139)
{ $ucrazyrang = "<img src=\"images/crazy/pip10.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 119)
{ $ucrazyrang = "<img src=\"images/crazy/pip9.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 99)
{ $ucrazyrang = "<img src=\"images/crazy/pip8.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 79)
{ $ucrazyrang = "<img src=\"images/crazy/pip7.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 59)
{ $ucrazyrang = "<img src=\"images/crazy/pip6.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 39)
{ $ucrazyrang = "<img src=\"images/crazy/pip5.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 19)
{ $ucrazyrang = "<img src=\"images/crazy/pip4.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 9)
{ $ucrazyrang = "<img src=\"images/crazy/pip3.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 5)
{ $ucrazyrang = "<img src=\"images/crazy/pip2.gif\" border=0 alt=$post_count />"; }
elseif (($userinfo['user_posts']) > 0)
{$ucrazyrang = "<img src=\"images/crazy/pip1.gif\" border=0 alt=$post_count />"; }
else
{$ucrazyrang = ""; }
if (($userinfo['user_posts']) > 1500)
{ $ocrazyrang = "<img src=\"images/crazy/goldstar5.gif\" border=0 alt=$post_count /><br />"; }
elseif (($userinfo['user_posts']) > 1000)
{ $ocrazyrang = "<img src=\"images/crazy/goldstar4.gif\" border=0 alt=$post_count /><br />"; }
elseif (($userinfo['user_posts']) > 750)
{ $ocrazyrang = "<img src=\"images/crazy/goldstar3.gif\" border=0 alt=$post_count /><br />"; }
elseif (($userinfo['user_posts']) > 500)
{ $ocrazyrang = "<img src=\"images/crazy/goldstar2.gif\" border=0 alt=$post_count /><br />"; }
elseif (($userinfo['user_posts']) > 200)
{ $ocrazyrang = "<img src=\"images/crazy/goldstar1.gif\" border=0 alt=$post_count /><br />"; }
else
{$ocrazyrang = ""; }
eval("\$showthread_row.= \"".pkTpl("forum/showthread_row")."\";");
$lastreadedposting=$forumpost['forumpost_time'];
unset($avatar_show);
//Real Pic Anfang
unset($realpic_show);
//Real Pic Ende
#Bedankomat by www.kit-coding.de ENDE
unset($thankpostlnk);
unset($thankinfos);
unset($thankrevieve);
#Bedankomat by www.kit-coding.de ENDE
unset($post_icon);
unset($info_sig);
unset($post_autor_status);
unset($edit_time);
unset($post_count);
unset($post_autor);
unset($info_os);
unset($userinfo);
unset($post_edit);
/**************************************** FORUM Anhang Anfang ****************************************/
unset($attachment_forum);
/**************************************** FORUM Anhang Ende ****************************************/
unset($info_user);
unset($info_email);
unset($info_im);
unset($info_hpage);
unset($info_icq);
/******************************** Pflichtfeld Anfang ********************************/
unset($pflicht_forum);
/******************************** Pflichtfeld Ende ********************************/
# M-S-X Addon by Road Dogg @ Kit Coding #
unset($info_msn);
unset($info_skype);
unset($info_xfire);
# M-S-X Addon by Road Dogg @ Kit Coding #
unset($info_buddie);
unset($edit_message);
unset($post_ip);
unset($info_signin);
unset($showlevel);
unset($info_sex);
unset($info_userstatus);
unset($ucrazyrang);
unset($ocrazyrang);
unset($hp);
unset($maxhp);
unset($mp);
unset($maxmp);
unset($ep);
// ForumCrazyHack by InfoCMS.de
if($FORUM->getLayout()==1)
if($FORUM->getLayout()==1)
break;
}
}
$FORUM->setReaded($catid,$threadid,$lastreadedposting);
if($FORUM->getLayout()==1)
{
foreach($post_cache as $forumpost)
{
if(!$postid>0)
$postid=$firstpost['forumpost_id'];
if($forumpost['forumpost_autorid']>0)
$userinfo=$user_cache[$forumpost['forumpost_autorid']];
if($userinfo['user_id']>0)
{
$userinfo['user_nick']=pkEntities($userinfo['user_nick']);
eval("\$post_autor= \"".pkTpl("forum/member_showprofil_textlink")."\";");
}
if($post_autor=='')
{
$post_autor=pkEntities($forumpost['forumpost_autor']);
$post_count=$lang['guest'];
}
if(empty($forumpost['forumpost_title']))
$forumpost['forumpost_title']=pkEntities($firstpost['forumpost_title']);
else
$forumpost['forumpost_title']=pkEntities($forumpost['forumpost_title']);
if($forumpost['forumpost_id']!=$firstpost['forumpost_id'])
{
eval("\$tree_spacer= \"".pkTpl("forum/showthread_tree_row_spacer")."\";");
if($forumpost['forumpost_reply']>0)
{
$replyto=$forumpost['forumpost_reply'];
while($replyto>0)
{
eval("\$tree_spacer.= \"".pkTpl("forum/showthread_tree_row_iconline")."\";");
$id=$post_cache[$replyto];
$replyto=$id['forumpost_reply'];
}
}
}
if($forumpost['forumpost_icon']!='')
{
$post_icon='icons/'.$forumpost['forumpost_icon'];
eval("\$post_icon= \"".pkTpl("forum/showthread_tree_row_posticon")."\";");
}
else
eval("\$post_icon= \"".pkTpl("forum/showthread_tree_row_icondir")."\";");
$post_time=formattime($forumpost['forumpost_time']);
$link=pkLink('forumsthread','','threadid='.$threadid.'&postid='.$forumpost['forumpost_id'],'post'.$forumpost['forumpost_id']);
if($postid==$forumpost['forumpost_id'])
eval("\$showthread_tree_row.= \"".pkTpl("forum/showthread_tree_row_highlight")."\";");
else
eval("\$showthread_tree_row.= \"".pkTpl("forum/showthread_tree_row")."\";");
unset($post_time);
unset($post_autor);
unset($tree_spacer);
unset($id);
}
eval("\$showthread_tree= \"".pkTpl("forum/showthread_tree")."\";");
}
else
$sidelink=sidelinkfull($postcount[0],$forumcat['forumcat_posts'],$entries,'include.php?path=forumsthread&threadid='.$forumthread['forumthread_id'],'sitebodysmall');
if(pkGetUservalue('sigoption'))
{
$setsig=0;
$sigoption=$lang['hide'];
}
else
{
$setsig=1;
$sigoption=$lang['show'];
}
$threadinformation=pkGetSpecialLang('threadinformation',$postcount[0],$forumthread['forumthread_status']);
$current_path=pkEntities($ENV->getvar('QUERY_STRING'));
if($FORUM->getLayout()==1)
eval("\$board_style=\"".pkTpl("forum/showthread_boardstyle_board")."\";");
else
eval("\$board_style=\"".pkTpl("forum/showthread_boardstyle_tree")."\";");
$forumthread['forumthread_title']=pkEntities($forumthread['forumthread_title']);
if(pkGetUservalue('id'))
{
eval("\$add_favorit=\"".pkTpl("forum/showthread_addfavorit")."\";");
if(userrights($forumcat['forumcat_mods']))
{
if(is_array($forumcat_cache_byname))
{
foreach($forumcat_cache_byname as $catinfo)
{
if((getrights($catinfo['forumcat_rrights'])=="true" || userrights($catinfo['forumcat_mods'],$catinfo['forumcat_rrights'])=="true" || userrights($catinfo['forumcat_user'],$catinfo['forumcat_rrights'])=="true") && $catinfo['forumcat_id']!=$catid)
{
$catinfo['forumcat_name']=str_repeat('-',$catinfo['level']).' '.pkEntities($catinfo['forumcat_name']);
eval("\$quickmod_catlist.= \"".pkTpl("forum/showthread_quickmod_option")."\";");
}
}
}
$lang_go=pkGetLang('go');
eval("\$showthread_quickmod=\"".pkTpl("forum/showthread_quickmod")."\";");
eval("\$thread_moderate=\"".pkTpl("forum/showthread_moderate")."\";");
}
}
#Bedankomat by www.kit-coding.de ANFANG
if(getrights('user') && $BEDANKOMAT->active==1){
$BEDANKOMAT->InsertThank($entries);
$thanks=$BEDANKOMAT->GetAllThanks();
$thanks=="" ? $thanks="Es hat sich noch niemand für einen der Postings in diesem Thread bedankt!":$thanks;
eval("\$thankalllnk= \"".pkTpl("forum/forum_thankalllnk")."\";");
eval("\$listthankstable= \"".pkTpl("forum/forum_listallthanks")."\";");
}
#Bedankomat by www.kit-coding.de ENDE
$removeto=pkEntities(urlencode($ENV->getvar('QUERY_STRING')));
eval("\$site_body.= \"".pkTpl("forum/showthread")."\";");
include(pkDIRPUBLICINC.'forumsfooter'.pkEXT);
?>
|
|
|
|
|
PHP - Code Ende: (746 Zeilen) | Code markieren
|
Das verlinkte Bild http://www.burnerfm.de/user906.png existiert nicht mehr bzw. wurde falsch verlinkt!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 14.01.2010 - 11:25 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
RE: Birthdaybot problem
Hatte noch keine Zeit gehabt zum guggen. werde ich morgen machen dannhab ich frei. Aber die PN hab ich bekommen.
Also die forumsthread ist eher unwahrscheinlich, da ja normale Threads auch geöffnet werden können. Oder gibts da Probleme?
Das seltsame ist halt das die Bot php Datei ja auf jedenfall ausgeführt wird, das sieht man ja das ein Thread erstellt wird. Das komische ist nur warum kein Post??? Ich kann sagen das es an der php Datei nicht liegen kann, da ich sie ja selber nochmals lokal getestet habe.
Es kann auch sein das vlt. deine Datenbank Tabelle irgendwie spinnt.
Du kannst es ja vlt. zum Test mal lokal installieren ohne irgendein anderes Addon sonst verbaut drin.
Ja es ist geschafft bin seit 02.07.10 stolzer PAPA eines Mädchen => Eingeschränkter Support meinerseits !!!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 14.01.2010 - 12:14 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.

RE: Birthdaybot problem
die datei anhängen nicht posten bitte
Das verlinkte Bild http://www.pimpyourkit.de/images/banner/siguser_1.gif existiert nicht mehr bzw. wurde falsch verlinkt!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 14.01.2010 - 12:45 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
RE: Birthdaybot problem
Ich habe auch ein kleines Problem.
Ich habe ihn eingebaut nach Anleitung und kann ihn auch im Admin einstellen aber er hat am 13ten nicht zum Geburtstag gratuliert ? Woran kann das liegen ?
Ich habe den Acc angegeben von dem er ausgehen soll, das Zielforum aber irgendwie kam da nichts ?
Nach der Installation gab es auch keine Fehlermeldung.
Muss mich korrigieren, die Email ist raus gegangen nur im Forum hat er nicht gepostet.
Das verlinkte Bild http://bfbc2.statsverse.com/sig/detail5/pc/Punisher1978.png existiert nicht mehr bzw. wurde falsch verlinkt!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 14.01.2010 - 16:05 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
RE: Birthdaybot problem
wenn du den bot am tag einbaust kann er nicht für den selben tag posten erst für den kommenden tag wenn da einer geb hat.
Das verlinkte Bild http://www.pimpyourkit.de/images/banner/siguser_1.gif existiert nicht mehr bzw. wurde falsch verlinkt!
Die Betreiber und die Moderatoren dieser Community distanzieren sich hiermit ausdrücklich von dem oben genannten Autor am 14.01.2010 - 16:18 Uhr verfassten Beitrag. Sollte dieser Beitrag Ihre Rechte verletzen bitten wir um Benachrichtigung.
|
 |
 |
|
 |
|
|