Verwarnhack eingebaut

Pixel - Oase
Habemir heute den verwarnhack in mein testboard eingebaut, es war das erstemal das ich sowas gemacht habe, habe auch alles nach geschaut aber nichts gefunden und hoffe ihr könnt mir helfen


Problembeschreibung: Beiträge lasse sich nicht mehr lesen


Fehlermeldung: gar keine


Link zum Forum oder Screenshot: http://oasentestboard.pytalhost.com/wbb2/index.php


Was wurde zuletzt geändert oder eingebaut?Verwarnhack 1.2.8

Habe mal ein teil des textes kopiert und eingefügt:


* WoltLab Burning Board 2 // ***************************************************************************
*********// // * Copyright (c) 2001-2004 WoltLab GmbH // * Web http://www.woltlab.de/ // * License http://www.woltlab.de/products/burning_board/license_en.php // * http://www.woltlab.de/products/burning_board/license.php // ***************************************************************************
*********// // * WoltLab Burning Board 2 is NOT free software. // * You may not redistribute this package or any of it's files. // ***************************************************************************
*********// // * $Date: 2006-09-25 12:41:52 +0200 (Mo, 25 Sep 2006) $ // * $Author: Burntime $ // * $Rev: 1716 $ // ***************************************************************************
*********// $filename = 'thread.php'; require('./global.php'); require('./acp/lib/class_parse.php'); require("./acp/lib/ver_conf.inc.php"); $lang->load('THREAD,MEMBERS'); if ((!isset($postid) && !isset($threadid)) || $thread['closed'] == 3) error($lang->get("LANG_GLOBAL_ERROR_FALSELINK", array('$adminmail' => $adminmail))); if (!checkpermissions("can_read_thread")) access_error(); /** Thread Class **/ class Thread { /** * @var integer threadid */ var $threadid = 0; /** * @var string pagelink */ var $pagelink = ""; /** * @var integer page */ var $page = 0; /** * @var integer pages */ var $pages = 0; /** * @var string postids */ var $postids = ""; /** * @var string orderby */ var $orderBy = ""; /** * @var array userfieldcache */ var $userfieldcache = array(); /** * @var object parse */ var $parse; /** * @var array attachmentArray */ var $attachmentArray = array(); /** * @var boolean readAttachments */ var $readAttachments = false; /** * parse a message and generate postbit * * @param array posts * @param integer count * @param integer indentwidth * * @return string postbit */ function makePostBit($posts, $count, $indentwidth = 0) { global $thread, $board, $tpl, $wbbuserdata, $style, $lang, $session, $userratings, $showuserratinginthread, $showuserlevels, $showonlineinthread, $useronlinetimeout, $showregdateinthread, $showuserfieldsinthread, $showgenderinthread, $showavatar, $_GET, $showthreadstarter, $showuserpostsinthread, $allowsigsmilies, $allowsightml, $allowsigbbcode, $max_sig_image, $authormarking, $picmaxwidth, $picmaxheight, $allowflashavatar, $thumbnailsperrow, $SID_ARG_1ST, $SID_ARG_2ND, $SID_ARG_2ND_UN, $n, $db, $banaus; if ($this->userfieldcache) reset($this->userfieldcache); $userrating = ''; $signature = ''; $lastedit = ''; $user_online = ''; $userfields = ''; $useravatar = ''; $rankimages = ''; $setvisible = ''; $userlevel = ''; $posts['username'] = htmlconverter($posts['username']); $username = $posts['username']; /** mod / admin option -> set visible post **/ if ($posts['visible'] == 0 && $posts['posttime'] != $thread['starttime']) $invisible = 1; else $invisible = 0; $tdclass = getone($count, 'tableb', 'tablea'); // use postcache if possible if ($posts['cache']) $posts['message'] = $this->parse->parseCache($posts['cache']); else $posts['message'] = $this->parse->doparse($posts['message'], $posts['allowsmilies'], $posts['allowhtml'], $posts['allowbbcode'], $posts['allowimages']); $posts['posttopic'] = htmlconverter(textwrap($posts['posttopic'])); if ($posts['iconid']) $posticon = makeimgtag($posts['iconpath'], getlangvar($posts['icontitle'], $lang), 0); else $posticon = ''; if ($posts['posttime'] > $thread['lastvisit']) $newpost = 1; else $newpost = 0; $postdate = formatdate($wbbuserdata['dateformat'], $posts['posttime'], 1); $posttime = formatdate($wbbuserdata['timeformat'], $posts['posttime']); // show attachments $attachments = ''; $attachment_thumbnailCount = 0; $attachmentbit = ''; $attachmentbit_img = ''; $attachmentbit_img_small = ''; $attachmentbit_img_thumbnails = ''; if (isset($this->attachmentArray[$posts['postid']]) && count($this->attachmentArray[$posts['postid']])) { unset($LANG_THREAD_ATTACHMENT_IMAGE_THUMBNAIL); unset($LANG_THREAD_ATTACHMENT_IMAGE_SMALL); unset($LANG_THREAD_ATTACHMENT_IMAGE); unset($LANG_THREAD_ATTACHMENT); foreach ($this->attachmentArray[$posts['postid']] as $attachment) { $attachment['attachmentextension'] = htmlconverter($attachment['attachmentextension']); $attachment['attachmentname'] = htmlconverter(textwrap($attachment['attachmentname'])); // attachment is an image, display it directly if (checkpermissions('can_download_attachments') == 1 && $wbbuserdata['showimages'] == 1 && $wbbuserdata['can_download_attachments'] == 1 && ($attachment['attachmentextension'] == 'gif' || $attachment['attachmentextension'] == 'jpg' || $attachment['attachmentextension'] == 'jpeg' || $attachment['attachmentextension'] == 'png')) { if ($attachment['thumbnailextension'] != '') { $attachment_thumbnailCount++; if ($attachment_thumbnailCount && ($attachment_thumbnailCount % $thumbnailsperrow) == 0) $thumbnailNewline = true; else $thumbnailNewline = false; if (!isset($LANG_THREAD_ATTACHMENT_IMAGE_THUMBNAIL)) $LANG_THREAD_ATTACHMENT_IMAGE_THUMBNAIL = $lang->get("LANG_THREAD_ATTACHMENT_IMAGE_SMALL", array('$username' => $username)); else $LANG_THREAD_ATTACHMENT_IMAGE_THUMBNAIL = $lang->get("LANG_THREAD_ATTACHMENTS_IMAGE_SMALL", array('$username' => $username)); eval("\$attachmentbit_img_thumbnails .= \"".$tpl->get("thread_attachmentbit_show_thumbnail")."\";"); } else { $imgsize = @getimagesize("./attachments/attachment-$attachment[attachmentid].$attachme
nt[attachmentextension]"); if (($picmaxwidth != 0 && $imgsize[0] > $picmaxwidth) || ($picmaxheight != 0 && $imgsize[1] > $picmaxheight)) { if ($picmaxwidth != 0) $div1 = $picmaxwidth / $imgsize[0]; else $div1 = 1; if ($picmaxheight != 0) $div2 = $picmaxheight / $imgsize[1]; else $div2 = 1; if ($div1 < $div2) { $attachment['imgwidth'] = $picmaxwidth; $attachment['imgheight'] = round($imgsize[1] * $div1); } else { $attachment['imgheight'] = $picmaxheight; $attachment['imgwidth'] = round($imgsize[0] * $div2); } if (!isset($LANG_THREAD_ATTACHMENT_IMAGE_SMALL)) $LANG_THREAD_ATTACHMENT_IMAGE_SMALL = $lang->get("LANG_THREAD_ATTACHMENT_IMAGE_SMALL", array('$username' => $username)); else $LANG_THREAD_ATTACHMENT_IMAGE_SMALL = $lang->get("LANG_THREAD_ATTACHMENTS_IMAGE_SMALL", array('$username' => $username)); eval("\$attachmentbit_img_small .= \"".$tpl->get("thread_attachmentbit_show_small")."\";"); } else { if (!isset($LANG_THREAD_ATTACHMENT_IMAGE)) $LANG_THREAD_ATTACHMENT_IMAGE = $lang->get("LANG_THREAD_ATTACHMENT_IMAGE", array('$username' => $username)); else $LANG_THREAD_ATTACHMENT_IMAGE = $lang->get("LANG_THREAD_ATTACHMENTS_IMAGE", array('$username' => $username)); eval("\$attachmentbit_img .= \"".$tpl->get("thread_attachmentbit_show")."\";"); } } } else { if (!file_exists($style['imagefolder']."/filetypes/".$attachment['attachmentex
tension'].".gif")) $extensionimage = "unknown"; else $extensionimage = $attachment['attachmentextension']; if ($attachment['counter'] >= 1000) $attachment['counter'] = number_format($attachment['counter'], 0, "", $lang->get("LANG_GLOBAL_THOUSANDS_SEP")); $attachment['attachmentsize'] = formatFilesize($attachment['attachmentsize']); $LANG_THREAD_ATTACHMENT_INFO = $lang->get("LANG_THREAD_ATTACHMENT_INFO", array('$attachmentsize' => $attachment['attachmentsize'], '$counter' => $attachment['counter'])); if (!isset($LANG_THREAD_ATTACHMENT)) $LANG_THREAD_ATTACHMENT = $lang->get('LANG_THREAD_ATTACHMENT'); else $LANG_THREAD_ATTACHMENT = $lang->get('LANG_THREAD_ATTACHMENTS'); eval("\$attachmentbit .= \"".$tpl->get("thread_attachmentbit")."\";"); } } eval("\$attachments = \"".$tpl->get("thread_attachments")."\";"); } if ($posts['editorid']) { $editdate = formatdate($wbbuserdata['dateformat'], $posts['edittime'], 1); $edittime = formatdate($wbbuserdata['timeformat'], $posts['edittime']); $posts['editor'] = htmlconverter($posts['editor']); $LANG_THREAD_EDITOR = $lang->get("LANG_THREAD_EDITOR", array('$editcount' => $posts['editcount'], '$editor' => $posts['editor'], '$editdate' => $editdate, '$edittime' => $edittime)); } if ($posts['userid']) { $posts['homepage'] = htmlconverter($posts['homepage']); $posts['email'] = getASCIICodeString($posts['email']); $rankimages = formatRI($posts['rankimages']); if ($posts['title']) $posts['ranktitle'] = htmlconverter($posts['title']); else $posts['ranktitle'] = getlangvar($posts['ranktitle'], $lang); if ($userratings == 1 && $showuserratinginthread == 1) $userrating = userrating($posts['ratingcount'], $posts['ratingpoints'], $posts['userid']); if ($showuserlevels == 1) $userlevel = userlevel($posts['userposts'], $posts['regdate']); if ($showonlineinthread == 1) { if (($posts['invisible'] == 0 || $wbbuserdata['a_can_view_ghosts'] == 1) && $posts['lastactivity'] >= time() - $useronlinetimeout * 60) { $user_online = 1; $LANG_MEMBERS_USERONLINE = $lang->get("LANG_MEMBERS_USERONLINE", array('$username' => $username)); } else { $user_online = 0; $LANG_MEMBERS_USERONLINE = $lang->get("LANG_MEMBERS_USEROFFLINE", array('$username' => $username)); } } if ($showregdateinthread == 1) $posts['regdate'] = formatdate($wbbuserdata['dateformat'], $posts['regdate']); if ($showuserfieldsinthread == 1 && is_array($this->userfieldcache) && count($this->userfieldcache)) { while (list($key, $val) = each($this->userfieldcache)) { $fieldcontent = textwrap($posts["field".$val['profilefieldid']], 20); if ($fieldcontent && $fieldcontent != "0000-00-00") { if ($val['fieldtype'] == "multiselect") $fieldcontent = str_replace("\n", "; ", $fieldcontent); elseif ($val['fieldtype'] == "date") { $row_datearray =

Dsa ist nur ein Teil des textes, an der Stele hätte normalerweise mein testtread erscheinen sollen unglücklich
Sagem
Mal bitte folgene php dateien anhängen ..

thread.php


und folgende tpl´s


thread

thread_postbit

Hast du auch die sprachvariablen Importiert ?
--Nachtfalke--
sieht so aus als ob php nicht laufen würde oder als ob du die datei mit word bearbeitet hättest
Pixel - Oase
Anhänge sind dabei

Habe sie mit Notepad bearbeitet
Sagem
Einbau ist ok in den besagten dateien .

Aber meine frage ob du die sprachvariablen importiert hast haste mir nicht beantwortet Augenzwinkern
Pixel - Oase
Ja habe alles über FTP hochgeladen oder meihnst du im acp impotieren?
Hab die verwarnung_22x_230.lng instaliert dann auf Deutsch geklickt, in ein bestehendes deutsches und auch in allen anderen sprachkategorien
Sagem
und die Install.php auch ausgeführt ?
Pixel - Oase
Ja auch die hab ich ausgeführt und auch danach wieder gelöscht.
Im ACP ist der Hack auch drin nur halt wenn ich auf das Test posting gehe dann steht nur das da

Edit 5.10:
Habe jetzt mal ein Backup drauf gespielt aber der Fehler ist trotzdem noch da!
Kann es vielleicht am Portal liegen was ich davor drauf gespielt habe?

Edit 8.10:

Der Hack läuft da mein Server auf Mysql 5 läuft hab ich die falsche Verwarn.php genommen