Standart Smilies gehen nicht mehr !
Hallo meine lieben!
Ich habe da mal wieder so ein kleines Problemchen. Seit kurzem, kann selber nicht sagen woran das liegen könnte, gehen bei mir auf der Webseite die standart Smilies nicht mehr. Sie werden zwar angezeigt aber halt nur noch so : ) als Punkte und Ziffern. Alle anderen Smilies die unrer der Funktion Mehr sind die werden alle einwandfrei angezeigt.
Hat vllt einer von euch eine Idee warum dies nicht mehr gehen könnte.
Ich habe bei mir die mycode.js an einem andern Ort plaziert habe aber auf grund dessen ja den Pfad in jeder datei wo sie benötigt wird angepasst. Ich habe diesen Pfad schon mehrmals überprüft nur möchte es einfach nicht gehen.
LG Zonk
Ich habe da mal wieder so ein kleines Problemchen. Seit kurzem, kann selber nicht sagen woran das liegen könnte, gehen bei mir auf der Webseite die standart Smilies nicht mehr. Sie werden zwar angezeigt aber halt nur noch so : ) als Punkte und Ziffern. Alle anderen Smilies die unrer der Funktion Mehr sind die werden alle einwandfrei angezeigt.
Hat vllt einer von euch eine Idee warum dies nicht mehr gehen könnte.
Ich habe bei mir die mycode.js an einem andern Ort plaziert habe aber auf grund dessen ja den Pfad in jeder datei wo sie benötigt wird angepasst. Ich habe diesen Pfad schon mehrmals überprüft nur möchte es einfach nicht gehen.
LG Zonk
Bis auf den Code_Parse2 habe ich da nichts gemacht ich habe auch alles noch mal mit dem Original verglichen aber meine ungeschulten Augen haben nichts entdeckt.
Vielleicht kannst du mehr sehene als ich.
LG Zonk
|
|
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 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 |
<?php
class parse {
var $urldetect=1;
var $urlcut=1;
var $urlmaxwidth=60;
var $urlwidth1=45;
var $urlwidth2=-15;
var $censoruse=1;
// text_censor © by http://www.oberlausitz-community.de 2006
// Zeile ersetzen -> var $censorreplace='*';
var $censorreplace='[SUP][U]<Zensur>[/U][/SUP]';
// Orginal Code
var $bbhash='';
var $smiliehash='';
var $urltag=array('tag'=>'url','html'=>'<a target="_blank" href="/go.php?url={option}">{text}</a>'); //<-- go.php AddOn
var $iurltag=array('tag'=>'iurl','html'=>'<a target="_self" href="{option}">{text}</a>'); //<-- go.php AddOn ( IURL zusatz )
//Status Anfang
var $usertag=array('tag'=>'user','html'=>'{text}');
var $membertag=array('tag'=>'member','html'=>'{text}');
var $modtag=array('tag'=>'mod','html'=>'{text}');
var $admintag=array('tag'=>'admin','html'=>'{text}');
// Status Ende
// BBCode Deluxe by http://polcz.bs-server.com 2006
var $idzahler='';
// in folgender Zeile nur das Wort js_alias durch selbst erdachtes (Buchstaben+Zahlen) ersetzen, siehe Beispiel
// var $klapptag=array('tag'=>'klapp','html'=>'<table cellspacing="2" cellpadding="2"><tr><td><img src="images/anzeigen.gif" id="Picture{id}" border="0" alt="Klappbereich" title="Klappbereich" height="9" width="9"> <a href="mkw0815:KlappBereich({id})" title="Bereich anzeigen oder verstecken">Bereich ein⇔ausblenden</a><div id="Layer{id}" style="display:none;">{text}</div></td></tr></table>');
var $klapptag=array('tag'=>'klapp','html'=>'<table cellspacing="2" cellpadding="2"><tr><td><img src="images/anzeigen.gif" id="Picture{id}" border="0" alt="Klappbereich" title="Klappbereich" height="9" width="9"> <a href="js_alias:KlappBereich({id})" title="Bereich anzeigen oder verstecken"><b> Inhalt anzeigen/ausblenden </b><br></a><div id="Layer{id}" style="display:none;">{text}</div></td></tr></table>');
var $hidepost=array('yes'=>'<table cellspacing="2" cellpadding="2"><tr><td><img src="images/verstecken.gif" border="0" alt="Postbereich" title="Postbereich" height="9" width="9" /> <span>Bereich nach Antwort sichtbar</span><div>{text}</div></td></tr></table>','no'=>'<table cellspacing="2" cellpadding="2"><tr><td><img src="images/anzeigen.gif" id="Picture{id}" border="0" alt="Postbereich" title="Postbereich" height="9" width="9" /> <span >Bereich nur nach Antwort sichtbar</span></td></tr></table>');
// weiter mit Originalcode
var $imagetags=array(
array('tag'=>'img','html'=>'<img border="0" alt="" src="{image}" />'),
array('tag'=>'imgr','html'=>'<img border="0" alt="" src="{image}" align="right" />'),
array('tag'=>'imgl','html'=>'<img border="0" alt="" src="{image}" align="left" />'));
function bbdefine () {
global $lang;
$this->bbhash=array(
array('tag'=>'myvideo','html'=>'<object style="width:450px;height:325px;" type="application/x-shockwave-flash" data="http://www.myvideo.de/movie/{text}"><param name="movie" value="http://www.myvideo.de/movie/{text}"/><param name="FlashVars" value="DESTSERVER=http://www.myvideo.de&LINKTEXT=MyVideo"/> <param name="AllowFullscreen" value="true" /></object><br/><a href="http://www.myvideo.de/watch/{text}"></a>'),
array('tag'=>'youtube','html'=>'<object width="450" height="325"><param name="movie" value="http://www.youtube.com/v/{text}&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/{text}&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="450" height="325"></embed></object>'),
array('tag'=>'gametrailer','html'=>'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="gtembed" width="450" height="325"> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="true" /> <param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid={text}"/> <param name="quality" value="high" /> <embed src="http://www.gametrailers.com/remote_wrap.php?mid={text}" swLiveConnect="true" name="gtembed" align="middle" allowScriptAccess="sameDomain" allowFullScreen="true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="450" height="325"></embed> </object>'),
array('tag'=>'clipfish','html'=>'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="450" height="325" id="player" align="middle"><param name="allowScriptAccess" value="always" /><param name="movie" value="http://www.clipfish.de/videoplayer.swf?as=0&videoid={text}=&r=1&c=0067B3" /> <param name="quality" value="high" /><param name="bgcolor" value="#0067B3" /><param name="allowFullScreen" value="true" /><embed src="http://www.clipfish.de/videoplayer.swf?as=0&videoid={text}=&r=1&c=transparent" quality="high" bgcolor="#transparent" width="450" height="325" name="player" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object>'),
array('tag'=>'stage6','html'=>'<object codebase="http://go.divx.com/plugin/DivXBrowserPlugin.cab" height="325" width="450" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616"><param name="autoplay" value="false"><param name="src" value="http://video.stage6.com/{text}/.divx" /><param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" /><embed type="video/divx" src="http://video.stage6.com/{text}/.divx" pluginspage="http://go.divx.com/plugin/download/" showpostplaybackad="false" custommode="Stage6" autoplay="false" height="325" width="450" /></object>'),
array('tag'=>'hr','html'=>'<hr />'),
array('tag'=>'\*','html'=>'<li>'),
array('tag'=>'list','html'=>'<ul>{text}</ul>'),
array('tag'=>'list=1','html'=>'<ol type="1">{text}</ol>'),
array('tag'=>'list=a','html'=>'<ol type="a">{text}</ol>'),
array('tag'=>'b','html'=>'<b>{text}</b>'),
array('tag'=>'i','html'=>'<i>{text}</i>'),
array('tag'=>'u','html'=>'<u>{text}</u>'),
array('tag'=>'d','html'=>'<strike>{text}</strike>'),
array('tag'=>'h2','html'=>'<h2>{text}</h2>'),
array('tag'=>'h3','html'=>'<h3>{text}</h3>'),
array('tag'=>'h4','html'=>'<h4>{text}</h4>'),
array('tag'=>'p','html'=>'<p>{text}</p>'),
array('tag'=>'sub','html'=>'<sub>{text}</sub>'),
array('tag'=>'sup','html'=>'<sup>{text}</sup>'),
//---> Talksmilie <---\\
array('tag'=>'talk','html'=>'<table style="font-family: arial; color: #000000;"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="24" height="14"><img src="images/talk/obenlinks.gif" align="center" border="0"></td><td width="100" background="images/talk/obenmitte.gif"></td><td width="24"><img src="images/talk/obenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="1" bgcolor="#8E8E8B"><td><table cellpadding="4" cellspacing="0" width="100%" bgcolor="#8E8E8B"><tr><td align="center" bgcolor="#FFFFFF" style="font-family: arial; color: #000000;"><b>{text}</b></td></tr></table></td><td width="1" bgcolor="#8E8E8B"></td></tr></table></td></tr><tr><td width="24" height="14"><img src="images/talk/untenlinks.gif" align="center" border="0"></td><td width="100%" background="images/talk/untenmitte.gif"></td><td width="24"><img src="images/talk/untenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="2" width="50%"></td><td height="30" width="50%" align="center"><img src="images/talk/talk.gif" align="center"border="0"></td></tr></table></td></tr></table></td></tr></table>'),
array('tag'=>'genius','html'=>'<table style="font-family: arial; color: #000000;"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="24" height="14"><img src="images/talk/obenlinks.gif" align="center" border="0"></td><td width="100" background="images/talk/obenmitte.gif"></td><td width="24"><img src="images/talk/obenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="1" bgcolor="#8E8E8B"><td><table cellpadding="4" cellspacing="0" width="100%" bgcolor="#8E8E8B"><tr><td align="center" bgcolor="#FFFFFF" style="font-family: arial; color: #000000;"><b>{text}</b></td></tr></table></td><td width="1" bgcolor="#8E8E8B"></td></tr></table></td></tr><tr><td width="24" height="14"><img src="images/talk/untenlinks.gif" align="center" border="0"></td><td width="100%" background="images/talk/untenmitte.gif"></td><td width="24"><img src="images/talk/untenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="2" width="80%"></td><td height="20" width="20%" align="center"><img src="images/talk/genius.gif" align="center" border="0"></td></tr></table></td></tr></table></td></tr></table>'),
array('tag'=>'hae','html'=>'<table style="font-family: arial; color: #000000;"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="24" height="14"><img src="images/talk/obenlinks.gif" align="center" border="0"></td><td width="100" background="images/talk/obenmitte.gif"></td><td width="24"><img src="images/talk/obenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="1" bgcolor="#8E8E8B"><td><table cellpadding="4" cellspacing="0" width="100%" bgcolor="#8E8E8B"><tr><td align="center" bgcolor="#FFFFFF" style="font-family: arial; color: #000000;"><b>{text}</b></td></tr></table></td><td width="1" bgcolor="#8E8E8B"></td></tr></table></td></tr><tr><td width="24" height="14"><img src="images/talk/untenlinks.gif" align="center" border="0"></td><td width="100%" background="images/talk/untenmitte.gif"></td><td width="24"><img src="images/talk/untenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="2" width="80%"></td><td height="27" width="20%" align="center"><img src="images/talk/hae.gif" align="center" border="0"></td></tr></table></td></tr></table></td></tr></table>'),
array('tag'=>'crazy','html'=>'<table style="font-family: arial; color: #000000;"><tr><td><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="24" height="14"><img src="images/talk/obenlinks.gif" align="center" border="0"></td><td width="100" background="images/talk/obenmitte.gif"></td><td width="24"><img src="images/talk/obenrechts.gif" align="center" border="0"></td></tr><tr><td colspan="3" width="100%"><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td width="1" bgcolor="#8E8E8B"><td><table cellpadding="4" cellspacing="0" width="100%" bgcolor="#8E8E8B"><tr><td align="center" bgcolor="#FFFFFF" style="font-family: arial; color: #000000;"><b>{text}</b></td></tr></table></td><td width="1" bgcolor="#8E8E8B"></td></tr></table></td></tr><tr><td width="24" height="14"><img src="images/talk/untenlinks.gif" align="center" border="0"></td><td width="100%" background="images/talk/untenmitte.gif"></td><td width="24"><img src="images/talk/untenrechts.gif" align="center" border="0"></td></tr><tr><td colspan=3><table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td colspan="2" width="70%"></td><td height="23" width="30%" align="center"><img src="images/talk/crazy.gif" align="center" border="0"></td></tr></table></td></tr></table></td></tr></table>'),
//---> Code (c) by Architekt, Xena24.de.vu <---\\
array('tag'=>'left','html'=>'<div align="left">{text}</div>'),
array('tag'=>'center','html'=>'<div align="center">{text}</div>'),
array('tag'=>'right','html'=>'<div align="right">{text}</div>'),
array('tag'=>'block','html'=>'<div align="justify">{text}</div>'),
//array('tag'=>'code','html'=>'<code>{text}</code>'), //---> Farbiger Code <---\\
array('tag'=>'quote','html'=>'<table class="quote" width="98%" cellpadding="4" cellspacing="1" align="center"><tr><td class="quote"><b>'.$lang['quote'].'</b><br /><font class="quote">{text}</font></td></tr></table><br />'),
array('tag'=>'white','html'=>'[color=#FFFFFF]{text}[/color]'),
array('tag'=>'gray','html'=>'[color=#CCCCCC]{text}[/color]'),
array('tag'=>'dimgray','html'=>'[color=#333333]{text}[/color]'),
array('tag'=>'navy','html'=>'[color=#003399]{text}[/color]'),
array('tag'=>'royalblue','html'=>'[color=#0099FF]{text}[/color]'),
array('tag'=>'red','html'=>'[color=#FF3333]{text}[/color]'),
array('tag'=>'orange','html'=>'[color=#FF7F00]{text}[/color]'),
array('tag'=>'yellow','html'=>'[color=#FFFF00]{text}[/color]'),
array('tag'=>'green','html'=>'[color=#00FF00]{text}[/color]'),
array('tag'=>'white','html'=>'[color=#333333]{text}[/color]'),
array('tag'=>'color','html'=>'<font style="color: {option}">{text}</font>'),
array('tag'=>'email','html'=>'<a href="mailto:{text}">{text}</a>'),
array('tag'=>'email','html'=>'<a href="mailto:{option}">{text}</a>'));
}
function definesmilies() {
global $DB, $db_tab;
$getsmilies=$DB->query("SELECT * FROM ".$db_tab['smilies']);
while ($smilies=$DB->fetch_array($getsmilies)) {$this->smiliehash[$smilies['smilie_id']]=$smilies;}
}
function parse($text='', $html='', $bb='', $smilies='',$images='',$censor='') {
$text=trim($text);
if ($text!='') {
$text=preg_replace('/[&|?]'.session_name().'=([a-z0-9A-Z]{0,32})[^&|\w|\n|\#|\]|\[]*/','',$text);
if ($censor==1) $text=$this->textcensor($text);
if ($this->urldetect==1) $text=$this->urldetect($text);
if ($html!=1) $text=htmlentities($text);
else $text=$this->preparehtml($text);
if ($images!=1) $text=$this->removeimages($text);
if ($bb==1) $text=$this->bbcode($text);
if ($smilies==1) $text=$this->smilies($text);
$text=$this->parseimages($text);
$text=$this->urlparse($text);
//Status Anfang
$text=$this->userparse($text);
$text=$this->memberparse($text);
$text=$this->modparse($text);
$text=$this->adminparse($text);
// Status Ende
$text=$this->returntext($text);
if ($html==1) $text=str_replace('"','"',$text);
$text=$this->tooltip($text);
return code_check($text); //---> Farbiger Code <---\\
// return $text;
}
else return FALSE;
}
function urldetect($text) {
$text=eregi_replace("([ \r\n])http://([^ ,\r\n]*)","\\1[url]http://\\2[/url]",$text);
$text=eregi_replace("([ \r\n])https://([^ ,\r\n]*)","\\1[url]https://\\2[/url]",$text);
$text=eregi_replace("([ \r\n])ftp://([^ ,\r\n]*)","\\1[url]ftp://\\2[/url]",$text);
$text=eregi_replace("([ \r\n])www\\.([^ ,\r\n]*)","\\1[url]http://www.\\2[/url]",$text);
$text=eregi_replace("^http://([^ ,\r\n]*)","[url]http://\\1[/url]",$text);
$text=eregi_replace("^https://([^ ,\r\n]*)","[url]https://\\1[/url]",$text);
$text=eregi_replace("^ftp://([^ ,\r\n]*)","[url]ftp://\\1[/url]",$text);
$text=eregi_replace("^www\\.([^ ,\r\n]*)","[url]http://www.\\1[/url]",$text);
return $text;
}
//<-- go.php AddOn start -->
function urlparse($text='') {
$code=$this->urltag;
$text=preg_replace("#\[".$code['tag']."=(.*)\]([^\]|\[]*)\[/".$code['tag']."\]#eiU","\$this->urlrewrite('$code[html]','\\1','\\2')",$text);
$text=preg_replace("#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#esiU","\$this->urlrewrite('$code[html]','\\1')",$text);
//---> Interne URL
$code=$this->iurltag;
$text=preg_replace("#\[".$code['tag']."=(.*)\]([^\]|\[]*)\[/".$code['tag']."\]#eiU","\$this->iurlrewrite('$code[html]','\\1','\\2')",$text);
$text=preg_replace("#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#esiU","\$this->iurlrewrite('$code[html]','\\1')",$text);
//---> Interne URL
return $text;
}
function urlrewrite($html='', $url='', $text='') {
if ($text=='') $text=$url;
if ($this->urlcut==1 && strlen(trim($text) && preg_match("([^<>\[\]])",$text))>$this->urlmaxwidth) $text=substr(trim($text),0,$this->urlwidth1)."...".substr(trim($text),$this->urlwidth2);
$rewritedurl=str_replace("\\\"","\"",str_replace("{option}",trim(rawurlencode($url)),str_replace("{text}",trim($text),$html)));
return $rewritedurl;
}
//---> Interne URL
function iurlrewrite($html='', $url='', $text='') {
if ($text=='') $text=$url;
if ($this->urlcut==1 && strlen(trim($text) && preg_match("([^<>\[\]])",$text))>$this->urlmaxwidth) $text=substr(trim($text),0,$this->urlwidth1)."...".substr(trim($text),$this->urlwidth2);
$rewritedurl=str_replace("\\\"","\"",str_replace("{option}",trim($url),str_replace("{text}",trim($text),$html)));
return $rewritedurl;
}
//---> Interne URL
//<-- go.php AddOn ende -->
function parseimages ($text='') {
$tags=$this->imagetags;
foreach ($tags as $code) {
$text=preg_replace("#\[".$code['tag']."]([^\"\?\&]*\.(gif|jpg|jpeg|bmp|png))\[\/".$code['tag']."\]#eiU","\$this->image('$code[html]','\\1')",$text);
}
return $text;
}
//Status Anfang
function userparse($text='') {
$code=$this->usertag;
$text=preg_replace("#\[".$code['tag']."=(.*)\]([^\]|\[]*)\[/".$code['tag']."\]#eiU","\$this->userrewrite('$code[html]','\\1','\\2')",$text);
$text=preg_replace("#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#esiU","\$this->userrewrite('$code[html]','\\1')",$text);
return $text;
}
function memberparse($text='') {
$code=$this->membertag;
$text=preg_replace("#\[".$code['tag']."=(.*)\]([^\]|\[]*)\[/".$code['tag']."\]#eiU","\$this->memberrewrite('$code[html]','\\1','\\2')",$text);
$text=preg_replace("#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#esiU","\$this->memberrewrite('$code[html]','\\1')",$text);
return $text;
}
function vipparse($text='') {
$code=$this->viptag;
$text=preg_replace("#\[".$code['tag']."=(.*)\]([^\]|\[]*)\[/".$code['tag']."\]#eiU","\$this->viprewrite('$code[html]','\\1','\\2')",$text);
$text=preg_replace("#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#esiU","\$this->viprewrite('$code[html]','\\1')",$text);
return $text;
}
function modparse($text='') {
$code=$this->modtag;
$text=preg_replace("#\[".$code['tag']."=(.*)\]([^\]|\[]*)\[/".$code['tag']."\]#eiU","\$this->modrewrite('$code[html]','\\1','\\2')",$text);
$text=preg_replace("#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#esiU","\$this->modrewrite('$code[html]','\\1')",$text);
return $text;
}
function adminparse($text='') {
$code=$this->admintag;
$text=preg_replace("#\[".$code['tag']."=(.*)\]([^\]|\[]*)\[/".$code['tag']."\]#eiU","\$this->adminrewrite('$code[html]','\\1','\\2')",$text);
$text=preg_replace("#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#esiU","\$this->adminrewrite('$code[html]','\\1')",$text);
return $text;
}
//Status Ende
# Tooltip © by http://www.oberlausitz-community.de 2007 ###########################################################
function tooltip($string='') {
global $DB, $db_tab;
if ($this->tt_start()) {
$tt_arr=$DB->query("SELECT * FROM ".$db_tab['tool_tip']);
while($tt_rec = $DB->fetch_array($tt_arr)) {
if ($tt_rec['tt_aktiv'] ==1 && stristr($string, $tt_rec['tt_search_word'])!== false) {
if ($tt_rec['tt_command']!='') $command = ', '.$tt_rec[tt_command];
else $command = '';
if ($tt_rec['tt_title']!='') $title = ', TITLE, \' • '.$tt_rec[tt_title].'\'';
else $title = '';
$tt_pq = preg_quote($tt_rec['tt_search_word']);
$search_word1 = "#((<[^>]*)|([^a-zäöüß.&])(".$tt_pq.")([^a-zäöüß&]))#i";
$search_word2 = "#(^".$tt_pq."[^a-zäöüß.&]|^".$tt_pq."$|[^a-zäöüß&.]".$tt_pq."$)#ie";
$tt_rep = '<tt onmouseover="Tip(\''.$tt_rec['tt_content'].'\''.$title.$command.')" class="tooltip">';
$pattern = '#(<tt\b.+?>.+?</tt>|<code>.+?</code>|<a\b.+?>.+?</a>|<u>.+?</u>|<.+?>)#s';
$splits = preg_split($pattern, $string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE);
$string = '';
$change = false;
foreach($splits as $split) {
if ($split[0] != '<' && !$change) {
$tt_tmp = preg_replace($search_word1, '\\3'.$tt_rep.'\\4'.'</tt>'.'\\5', $split, 1);
if (stristr($tt_tmp, $tt_rec['tt_search_word'].'</tt>')) $change = true;
else {
$tt_tmp = preg_replace($search_word2, "\$this->sw_ea(\$tt_pq, \$tt_rep, '\\0')", $split, 1);
if (stristr($tt_tmp, $tt_rec['tt_search_word'].'</tt>')) $change = true;
}
$string.= $tt_tmp;
}
else {$string.= $split;}
}
}
}
$string = str_replace("<tt o","<span o",str_replace("</tt>","</span>",$string));
}
unset($tt_arr, $splits);
return $string;
}
function tt_start() {
global $config, $path;
$tt_status = intval($config['tt_status']);
$start = false;
if ($tt_status == 101) $start = true;
elseif ($tt_status > 0) {
$tt_path = substr($path,0,strpos($path,"/"));
if ($tt_path == 'forum') $start = true;
if ($tt_path == 'content' && ($tt_status == 2 || $tt_status == 12)) $start = true;
if ($tt_path == 'guestbook' && ($tt_status == 11 || $tt_status == 12)) $start = true;
}
return $start;
}
function sw_ea($sw='', $repl='', $string='') {
return preg_replace("#(".$sw.")#i", $repl.'\\0'.'</tt>', $string);
}
# Tooltip © by http://www.oberlausitz-community.de 2007 ###########################################################
//Status Anfang
function userrewrite($html='', $url='', $text='') {
global $USER;
if($USER['status']=='user' or $USER['status']=='member' or $USER['status']=='vip' or $USER['status']=='mod' or $USER['status']=='admin')
$url=$url;
else {
$url=str_replace("\\\"","\"",$url);
$url = "<table align='center' width='70%' class='heads' cellspacing='1' cellpadding='2'><tr><td class='heads' align='center'><b>Diesen Text können Sie erst ab dem Status <span style='color:#d70007;'>User</span> lesen!</b></td></tr></table>";
}
return $url;
}
function memberrewrite($html='', $url='', $text='') {
global $USER;
if($USER['status']=='member' or $USER['status']=='vip' or $USER['status']=='mod' or $USER['status']=='admin')
$url=$url;
else {
$url=str_replace("\\\"","\"",$url);
$url = "<table align='center' width='70%' class='heads' cellspacing='1' cellpadding='2'><tr><td class='heads' align='center'><b>Diesen Text können Sie erst ab dem Status <span style='color:#d70007;'>Member</span> lesen!</b></td></tr></table>";
}
return $url;
}
function viprewrite($html='', $url='', $text='') {
global $USER;
if($USER['status']=='vip' or $USER['status']=='mod' or $USER['status']=='admin')
$url=$url;
else {
$url=str_replace("\\\"","\"",$url);
$url = "<table align='center' width='70%' class='heads' cellspacing='1' cellpadding='2'><tr><td class='heads' align='center'><b>Diesen Text können Sie erst ab dem Status <span style='color:#d70007;'>VIP</span> lesen!</b></td></tr></table>";
}
return $url;
}
function modrewrite($html='', $url='', $text='') {
global $USER;
if($USER['status']=='mod' or $USER['status']=='admin')
$url=$url;
else {
$url=str_replace("\\\"","\"",$url);
$url = "<table align='center' width='70%' class='heads' cellspacing='1' cellpadding='2'><tr><td class='heads' align='center'><b>Diesen Text können Sie erst ab dem Status <span style='color:#d70007;'>Moderator</span> lesen!</b></td></tr></table>";
}
return $url;
}
function adminrewrite($html='', $url='', $text='') {
global $USER;
if($USER['status']=='admin')
$url=$url;
else {
$url=str_replace("\\\"","\"",$url);
$url = "<table align='center' width='70%' class='heads' cellspacing='1' cellpadding='2'><tr><td class='heads' align='center'><b>Diesen Text können Sie erst ab dem Status <span style='color:#d70007;'>Administrator</span> lesen!</b></td></tr></table>";
}
return $url;
}
//Status Ende
// komplette Funktion bbcode() durch folgende 2 Funktionen ersetzen
// BBCode Deluxe by http://polcz.bs-server.com 2006
function bbcode($text='') {
global $DB, $db_tab, $threadid;
$user_id = $_SESSION['USER']['id'];
$poster = $DB->fetch_array($DB->query("SELECT COUNT(*) FROM ".$db_tab['forumpost']." WHERE forumpost_threadid='".$threadid."' AND forumpost_autorid='".$user_id."'"));
if ($this->bbhash=='') $this->bbdefine();
if (is_array($this->bbhash)) {
foreach($this->bbhash as $code) {
if (strstr($code['html'],'{option}'))
$text=preg_replace("#\[".$code['tag']."=(.*)\](.*)\[/".$code['tag']."\]#eisUS","\$this->bbreplace('$code[html]','\\2','\\1')",$text);
elseif (strstr($code['html'],'{text}')) {
$pattern="#\[".$code['tag']."\](.*)\[/".$code['tag']."\]#eisUS";
while(preg_match($pattern,$text)) {
$text=preg_replace($pattern,"\$this->bbreplace('$code[html]','\\1')",$text);
}
}
else $text=preg_replace("/\[".$code['tag']."\]/",$code['html'],$text);
}
if ((!$threadid && $poster[0] == 0) || $poster[0] > 0)
$text=preg_replace("#\[post\](.*)\[/post\]#eisUS","\$this->spreplace(\$this->hidepost['yes'],'\\1',\$text)",$text);
else
$text=preg_replace("#\[post\](.*)\[/post\]#eisUS","\$this->spreplace(\$this->hidepost['no'],'\\1',\$text)",$text);
if (stristr($text,'[klapp]')) {
if ($this->idzahler=='') $this->idzahler = 1;
$text=preg_replace("#\[klapp\](.*)\[/klapp\]#eisUS","\$this->spreplace(\$this->klapptag['html'],'\\1',\$text,\$this->idzahler++)",$text);
}
unset($poster);
}
return $text;
}
function spreplace($html='',$text='',$vtext='',$klapp='') {
if ($klapp!='') {
$html=str_replace("{id}",$klapp,$html);
}
if (strpos($vtext,$text) === false) $text=str_replace("{text}",stripslashes($text),$html);
else
$text=str_replace("{text}",$text,$html);
return $text;
}
// weiter mit Originalcode
function bbreplace($html='',$text='',$option='') {
if ($option!='') $text=str_replace("{option}",$option,str_replace("{text}",$text,$html));
else $text=str_replace("{text}",$text,$html);
return $text;
}
function image($html='', $url='') {
return str_replace("{image}",$url,$html);
}
function removeimages($text='') {
return preg_replace("#\[[img|imgr|imgl]\]#i","[url]",preg_replace("#\[/[img|imgr|imgl]\]#i","[/url]",$text));
}
function smilies ($text='') {
if ($this->smiliehash=='') $this->definesmilies();
if (is_array($this->smiliehash)) {
foreach ($this->smiliehash as $smilie) {
if ($smilie_size=@getimagesize($smilie['smilie_path'])) $smilie_size=$smilie_size[3];
else unset($smilie_size);
$text=str_replace($smilie['smilie_code'],'<img src="'.$smilie['smilie_path'].'" border="0" alt="'.$smilie['smilie_title'].'" '.$smilie_size.' />',$text);
}
}
return $text;
}
// text_censor by http://www.oberlausitz-community.de 2007
// Komplette function textcensor($text='') ersetzen
function textcensor($text='') {
global $config;
if ($config['censor_badword']!='' && $this->censoruse==1) {
$r=$this->censorreplace;
$censorlist=explode("\n",$config['censor_badword']);
$cct=count($censorlist);
for ($i=0;$i<$cct;$i++) {
$c=trim($censorlist[$i]);
if (strpos(strtolower($text),ltrim($c," _")) !== FALSE) {
if (strpos($c,"_") == 0) {
$text=preg_replace('#'.$c.'#imUs'," ".$r,$text);
$c=ltrim($c,"_");
$text=preg_replace('# '.$c.'#imUs'," ".$r,$text);
$text=preg_replace('#^'.$c.'#imUs',$r,$text);
}
else $text=preg_replace("#'.$c.'#imUs",$r,$text);
}
}
}
return $text;
}
// Orginal Code
function preparehtml($text='') {
$tags_open = array('table','tr','tbody'); // Öffnende Tags eintragen
$tags_closed = array('table','tr','td','th','tbody'); // Schliessende Tags eintragen
// Anfänge
for($i=0;$i<count($tags_open);$i++) {
if(isset($open) AND $open != "") $open .= "|";
$open .= $tags_open[$i];
}
eval("\$text=preg_replace(\"#<(".$open."){1,}(.*)>([\\r|\\n])[\\s]{1,}#iUs\",\"<\\\\1\\\\2>\",\$text);");
// Abschlüsse
for($i=0;$i<count($tags_closed);$i++) {
if(isset($closed) AND $closed != "") $closed .= "|";
$closed .= $tags_closed[$i];
}
eval("\$text=preg_replace(\"#</(".$closed."){1,}>([\\r|\\n])[\\s]{1,}#iUs\",\"</\\\\1>\",\$text);");
return str_replace('"',""",$text);
}
// komplette Funktion returntext() durch folgende ersetzen
// BBCode Deluxe by http://www.oberlausitz-community.de 2006
function returntext($text='') {
$text = preg_replace("/javascript:/i","java script:",preg_replace("/vbscript:/i","vb script:",nl2br($text)));
if ($this->idzahler!='')
// in folgender Zeile nur das Wort js_alias durch selbst erdachtes (gleiches wie oben) ersetzen, siehe Beispiel
// $text=preg_replace("/<a href=\"mkw0815\:KlappBereich\(/i","<a href=\"javascript:KlappBereich(",$text);
$text=preg_replace("/<a href=\"js_alias\:KlappBereich\(/i","<a href=\"javascript:KlappBereich(",$text);
return $text;
}
// weiter mit Originalcode
}
//---> Farbiger Code (c) by Musel-online.de <---\\
function code_check($text) {
$pattern="/\[PHP](.*)\[\/PHP\]/esiU";
while(preg_match($pattern,$text)) {
$text=preg_replace($pattern,"highlight_phpcode('\\1')",$text);
}
$pattern="/\[CODE](.*)\[\/CODE\]/esiU";
while(preg_match($pattern,$text)) {
$text=preg_replace($pattern,"highlight_code('\\1')",$text);
}
return $text;
}
//---> Farbiger Code <---\\
function highlight_code($code){
$trans = get_html_translation_table(HTML_ENTITIES);
$code = stripslashes(strtr(strip_tags(str_replace('</P>',"\n",str_replace('<BR>',"\n",str_replace('\\',"\\\\",$code)))), array_flip($trans)));
ob_start();
highlight_string("<?\n".$code." ");
$code = ob_get_contents();
ob_end_clean();
$code = explode('<br />', $code);
$textwidth = "540";
$textsmallheight = "22";
$text = '<table class="standard" border="0" width="'.$textwidth.'" cellpadding="4" cellspacing="1" >';
$text .= '<tr><br><td class="quote">';
$text .= '<table class="quote" style="table-layout: fixed;" border="0" width="'.$textwidth.'" cellpadding="0" cellspacing="0" >';
$text .= '<tr><td class="quote"><b>Code:</b></td></tr>';
$text .= '<tr><td class="quote">';
$text .= '<table border="0" width="100%" cellpadding="0" cellspacing="0" >';
$text .= '<tr>';
for ($x=1; $x < sizeof($code); $x++)
if ($code[$x] != '') $x+0;
$textheight = $x*$textsmallheight;
$text .= '<td style="background-color: #FFFFFF;" width="100%" valign="top">';
$text .= '<div style="overflow: auto; width: '.$textwidth.'px; height: '.$textheight.'px">';
$text .= '<table class="quote" border="0" cellpadding="2" cellspacing="0" width="100%">';
for ($x=1; $x < sizeof($code); $x++)
if ($code[$x]!='')
$text .= '<tr><td style="background-color: #FFFFFF;" width="100%" height="'.$textsmallheight.'" nowrap>'.$code[$x].'</td></tr>';
$text .= '</table></div></td></tr></table></td></tr></table></td></tr></table>';
$pattern = "/COLOR\=\"\#(.*)\"/esiU";
while (preg_match($pattern,$text)) {
$text=preg_replace($pattern,"color2style('\\1')",$text);
}
return $text;
}
//---> Farbiger Code <---\\
//---> Farbiger PHP-Code <---\\
function highlight_phpcode($code){
$trans = get_html_translation_table(HTML_ENTITIES);
$code = stripslashes(strtr(strip_tags(str_replace('</P>',"\n",str_replace('<BR>',"\n",str_replace('\\',"\\\\",$code)))), array_flip($trans)));
ob_start();
highlight_string("<?\n".$code." ");
$code = ob_get_contents();
ob_end_clean();
$code = explode('<br />', $code);
$textwidth = "540";
$textsmallwidth = "40";
$textsmallheight = "22";
$text = '<table class="standard" border="0" width="'.$textwidth.'" cellpadding="4" cellspacing="1" >';
$text .= '<tr><br><td class="quote">';
$text .= '<table class="quote" style="table-layout: fixed;" border="0" width="'.$textwidth.'" cellpadding="0" cellspacing="0" >';
$text .= '<tr><td class="quote" width="'.$textsmallwidth.'" ></td><td class="quote"><b>Quell-Code:</b></td></tr>';
$text .= '<tr><td class="quote" colspan="2">';
$text .= '<table border="0" width="100%" cellpadding="0" cellspacing="0" align="left">';
$text .= '<tr><td valign="top" width="'.$textsmallwidth.'">';
$text .= '<table class="quote" border="0" cellpadding="2" cellspacing="0" width="'.$textsmallwidth.'" >';
for ($x=1; $x < sizeof($code); $x++)
if ($code[$x] != '')
$text .= '<tr><td class="quote" height="'.$textsmallheight.'" align="right" nowrap>'.($x+0).' </td></tr>';
$text .= '</table></td>';
$textheight = $x*$textsmallheight;
$textwidth = $textwidth-($textsmallwidth);
$text .= '<td style="background-color: #FFFFFF;" width="100%" valign="top">';
$text .= '<div style="overflow: auto; width: '.$textwidth.'px; height: '.$textheight.'px">';
$text .= '<table class="quote" border="0" cellpadding="2" cellspacing="0" width="100%">';
for ($x=1; $x < sizeof($code); $x++)
if ($code[$x]!='')
$text .= '<tr><td style="background-color: #FFFFFF;" width="100%" height="'.$textsmallheight.'" nowrap>'.$code[$x].'</td></tr>';
$text .= '</table></div></td></tr></table></td></tr></table></td></tr></table>';
$pattern = "/COLOR\=\"\#(.*)\"/esiU";
while (preg_match($pattern,$text)) {
$text=preg_replace($pattern,"color2style('\\1')",$text);
}
return $text;
}
//---> Farbiger PHP-Code <---\\
function color2style($font_code) {
return "style=\"color: $font_code\"";
}
//---> Code (c) by Musel-online.de <---\\
?>
|
Vielleicht kannst du mehr sehene als ich.
LG Zonk
Der Pfad im Adminbereich stimmt zu den Smilies und das mit dem nacheinander wieder zurücksetzen habe ich auch schon durch und auch mit der oiginalen ersetzen da ich mir denken konnte das solch eine antwort kommen wird. Also ich vermute ehr das dies nicht an dieser Dateil liegen kann.
@Foxhound: Ich werde mein Kit ganz bestimmt nicht neu machen da ist zu viel abreit drin.
LG Zonk
@Foxhound: Ich werde mein Kit ganz bestimmt nicht neu machen da ist zu viel abreit drin.
LG Zonk
Ähnliche Themen
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
php Kit 1.6.03
(30. Dezember 2007, 20:50)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Vermurkstes update, benötige dringend Expertenhilfe
(30. Dezember 2007, 01:35)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Sub-Kategorien auch als Navbox ?
(28. Dezember 2007, 20:04)
-
Bug- Securityfix Archiv »-
1.6.03|1.6.1 Content verfassen - Vorschau übernimmt keine Optionen
(20. November 2007, 21:56)


