
ich versteh nich warum es nich geht, ich hab es schonmal bei visualballs.de/ilch installiert und da geht es doch auch
verwendete ilchClan Version: 1.1
betroffene Homepage: dld-uni50.de/?forum
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
1 2 3 | //Forumex - begin $row['txt'] = FE_Vote2HTML($row['id'],$row['txt']); //Forumex - end |
1 | $tpl->set_out('txt', FE_Vote2HTML(1,bbcode($txt),TRUE), 0); |
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 | <?php # Copyright by Manuel Staechele # Support www.ilch.de defined ( 'main' ) or die ( 'no direct access' ); class tpl { var $parts ; var $keys ; var $lists ; var $lang ; var $ort ; function tpl ( $file , $ort = 0) { $this ->parts = array (); $this ->keys = array (); $this ->lists = array (); $this ->lang = array (); $this ->ort = $ort ; /*BBCode Buttons für das BBCode v2.0 Modul. * # Copyright by Thomas Bowe [Funjoy] * # Support bbcode@phpline.de * # link www.phpline.de * * BBCode v2.00 - [ANFANG] */ //> Buttons Informationen. $ButtonSql = db_query("SELECT fnFormatB,fnFormatI,fnFormatU,fnFormatS,fnFormatEmph, fnFormatColor,fnFormatSize,fnFormatUrl,fnFormatUrlAuto,fnFormatEmail, fnFormatLeft,fnFormatCenter,fnFormatRight,fnFormatSmilies, fnFormatList,fnFormatKtext,fnFormatImg,fnFormatScreen,fnFormatVideo, fnFormatPhp,fnFormatCss,fnFormatHtml,fnFormatCode,fnFormatQuote,fnFormatCountdown FROM prefix_bbcode_buttons WHERE fnButtonNr= '1' "); $boolButton = db_fetch_assoc( $ButtonSql ); $cfgBBCsql = db_query("SELECT fnYoutubeBreite,fnYoutubeHoehe,fcYoutubeHintergrundfarbe, fnGoogleBreite,fnGoogleHoehe,fcGoogleHintergrundfarbe, fnMyvideoBreite,fnMyvideoHoehe,fcMyvideoHintergrundfarbe, fnSizeMax,fnUrlMaxLaenge,fnWortMaxLaenge, fnImgMaxBreite,fnImgMaxHoehe,fnScreenMaxBreite,fnScreenMaxHoehe FROM prefix_bbcode_config WHERE fnConfigNr= '1' "); $cfgInfo = db_fetch_assoc( $cfgBBCsql ); $BBCodeButtons = "<script type='text/javascript' src='include/includes/js/interface.js'></script>" ; //> Fett Button! if ( $boolButton [ 'fnFormatB' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert('b','Gib hier den Text an der formatiert werden soll.')\"><img src=\"include/images/icons/bbcode/bbcode_bold.png\" alt=\"Fett formatieren\" title=\"Fett formatieren\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Kursiv Button! if ( $boolButton [ 'fnFormatI' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert('i','Gib hier den Text an der formatiert werden soll.')\"><img src=\"include/images/icons/bbcode/bbcode_italic.png\" alt=\"Kursiv formatieren\" title=\"Kursiv formatieren\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Unterschrieben Button! if ( $boolButton [ 'fnFormatU' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert('u','Gib hier den Text an der formatiert werden soll.')\"><img src=\"include/images/icons/bbcode/bbcode_underline.png\" alt=\"Unterstrichen formatieren\" title=\"Unterstrichen formatieren\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Durchgestrichener Button! if ( $boolButton [ 'fnFormatS' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert('s','Gib hier den Text an der formatiert werden soll..')\"><img src=\"include/images/icons/bbcode/bbcode_strike.png\" alt=\"Durchgestrichen formatieren\" title=\"Durchgestrichen formatieren\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Leerzeichen? if ( $boolButton [ 'fnFormatI' ] == 1 || $boolButton [ 'fnFormatU' ] == 1 || $boolButton [ 'fnFormatS' ] == 1) { $BBCodeButtons .= " " ; } //> Links Button! if ( $boolButton [ 'fnFormatLeft' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_code_insert('left')\"><img src=\"include/images/icons/bbcode/bbcode_left.png\" alt=\"Links ausrichten\" title=\"Links ausrichten\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Zentriert Button! if ( $boolButton [ 'fnFormatCenter' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_code_insert('center')\"><img src=\"include/images/icons/bbcode/bbcode_center.png\" alt=\"Mittig ausrichten\" title=\"Mittig ausrichten\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Rechts Button! if ( $boolButton [ 'fnFormatRight' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_code_insert('right')\"><img src=\"include/images/icons/bbcode/bbcode_right.png\" alt=\"Rechts ausrichten\" title=\"Rechts ausrichten\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Leerzeichen? if ( $boolButton [ 'fnFormatLeft' ] == 1 || $boolButton [ 'fnFormatCenter' ] == 1 || $boolButton [ 'fnFormatRight' ] == 1) { $BBCodeButtons .= " " ; } //> Listen Button! if ( $boolButton [ 'fnFormatList' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert('list','Gib hier den Text ein der aufgelistet werden soll \\n Um die liste zu beenden einfach auf Abbrechen klicken.')\"><img src=\"include/images/icons/bbcode/bbcode_list.png\" alt=\"Liste erzeugen\" title=\"Liste erzeugen\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Hervorheben Button! if ( $boolButton [ 'fnFormatEmph' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_code_insert('emph')\"><img src=\"include/images/icons/bbcode/bbcode_emph.png\" alt=\"Text hervorheben\" title=\"Text hervorheben\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Schriftfarbe Button! if ( $boolButton [ 'fnFormatColor' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('color','Gib hier den Text an der formatiert werden soll.','Gib hier die Farbe an in HTML form z.B. #000000.')\"><img src=\"include/images/icons/bbcode/bbcode_color.png\" alt=\"Text färben\" title=\"Text färben\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Schriftgröße Button! if ( $boolButton [ 'fnFormatSize' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('size','Gib hier den Text an der formatiert werden soll.','Gib hier die Größe des textes in Pixel an. \\n Pixellimit liegt bei " . $cfgInfo ['fnSizeMax ']."px !!!' )\"><img src=\" include /images/icons/bbcode/bbcode_size.png\" alt=\"Textgröße verändern\" title=\"Textgröße verändern\" width=\"23\" height=\"22\" border=\"0\"></a> "; } //> Leerzeichen? if ( $boolButton [ 'fnFormatList' ] == 1 || $boolButton [ 'fnFormatEmph' ] == 1 || $boolButton [ 'fnFormatColor' ] == 1 || $boolButton [ 'fnFormatSize' ] == 1) { $BBCodeButtons .= " " ; } //> Url Button! if ( $boolButton [ 'fnFormatUrl' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('url','Gib hier den namen des links an.','Gib hier die Adresse zu welcher verlinkt werden soll.')\"><img src=\"include/images/icons/bbcode/bbcode_url.png\" alt=\"Hyperlink einfügen\" title=\"Hyperlink einfügen\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> E-Mail Button! if ( $boolButton [ 'fnFormatEmail' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('mail','Gib hier den namen des links an.','Gib hier die eMail - Adresse an.')\"><img src=\"include/images/icons/bbcode/bbcode_email.png\" alt=\"eMail hinzufügen\" title=\"eMail hinzufügen\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Leerzeichen? if ( $boolButton [ 'fnFormatUrl' ] == 1 || $boolButton [ 'fnFormatEmail' ] == 1) { $BBCodeButtons .= " " ; } //> Bild Button! if ( $boolButton [ 'fnFormatImg' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert('img','Gib hier die Adresse des Bildes an. \\n Die Breite und Höhe des Bildes ist auf " . $cfgInfo ['fnImgMaxBreite ']."x".$cfgInfo[' fnImgMaxHoehe ']." eingeschränkt und würde verkleinert dargstellt werden.' )\"><img src=\" include /images/icons/bbcode/bbcode_image.png\" alt=\"Bild einfügen\" title=\"Bild einfügen\" width=\"23\" height=\"22\" border=\"0\"></a> "; } //> Screenshot Button! if ( $boolButton [ 'fnFormatScreen' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert('shot','Gib hier die Adresse des Screens an. \\n Die Breite und Höhe des Bildes ist auf " . $cfgInfo ['fnScreenMaxBreite ']."x".$cfgInfo[' fnScreenMaxHoehe ']." eingeschränkt und wird verkleinert dargstellt.' )\"><img src=\" include /images/icons/bbcode/bbcode_screenshot.png\" alt=\"Bild einfügen\" title=\"Screen einfügen\" width=\"23\" height=\"22\" border=\"0\"></a> "; } //> Leerzeichen? if ( $boolButton [ 'fnFormatImg' ] == 1 || $boolButton [ 'fnFormatScreen' ] == 1) { $BBCodeButtons .= " " ; } //> Quote Button! if ( $boolButton [ 'fnFormatQuote' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_code_insert('quote')\"><img src=\"include/images/icons/bbcode/bbcode_quote.png\" alt=\"Zitat einfügen\" title=\"Zitat einfügen\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Klapptext Button! if ( $boolButton [ 'fnFormatKtext' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('ktext','Gib hier den zu verbergenden Text ein.','Gib hier einen Titel für den Klapptext an.')\"><img src=\"include/images/icons/bbcode/bbcode_ktext.png\" alt=\"Klappfunktion hinzufügen\" title=\"Klappfunktion hinzufügen\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Video Button! if ( $boolButton [ 'fnFormatVideo' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value_2('video','Gib hier die Video ID vom Anbieter an.','Bitte Anbieter auswählen.\\nAkzeptiert werden: Google, YouTube und MyVideo')\"><img src=\"include/images/icons/bbcode/bbcode_video.png\" alt=\"Video einfügen\" title=\"Video einfügen\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Countdown Button! if ( $boolButton [ 'fnFormatVideo' ] == 1) { $BBCodeButtons .= "<a href=\"javascript:bbcode_insert_with_value('countdown','Gib hier das Datum an wann das Ereignis beginnt.\\n Format: TT.MM.JJJJ Bsp: 24.12." . date ( "Y" ). "','Gib hier eine Zeit an, wann das Ergeinis am Ereignis- Tag beginnt.\\nFormat: Std:Min:Sek Bsp: 20:15:00')\"><img src=\"include/images/icons/bbcode/bbcode_countdown.png\" alt=\"Countdown festlegen\" title=\"Countdown festlegen\" width=\"23\" height=\"22\" border=\"0\"></a> " ; } //> Leerzeichen? if ( $boolButton [ 'fnFormatQuote' ] == 1|| $boolButton [ 'fnFormatKtext' ] == 1 || $boolButton [ 'fnFormatVideo' ] == 1) { $BBCodeButtons .= " " ; } //> Code Dropdown! if ( $boolButton [ 'fnFormatCode' ] == 1 || $boolButton [ 'fnFormatPhp' ] == 1 || $boolButton [ 'fnFormatHtml' ] == 1 || $boolButton [ 'fnFormatCss' ] == 1) { $BBCodeButtons .= "<select style=\"font-family:Verdana;font-size:10px; margin-bottom:6px;\"><option>Code einfügen</option>" ; } if ( $boolButton [ 'fnFormatPhp' ] == 1) { $BBCodeButtons .= "<option onClick=\"javascript:bbcode_code_insert('php')\">PHP</option>" ; } if ( $boolButton [ 'fnFormatHtml' ] == 1) { $BBCodeButtons .= "<option onClick=\"javascript:bbcode_code_insert('html')\">HTML</option>" ; } if ( $boolButton [ 'fnFormatCss' ] == 1) { $BBCodeButtons .= "<option onClick=\"javascript:bbcode_code_insert('css')\">CSS</option>" ; } if ( $boolButton [ 'fnFormatCode' ] == 1) { $BBCodeButtons .= "<option onClick=\"javascript:bbcode_code_insert('code')\">Sonstiger Code</option>" ; } if ( $boolButton [ 'fnFormatCode' ] == 1 || $boolButton [ 'fnFormatPhp' ] == 1 || $boolButton [ 'fnFormatHtml' ] == 1 || $boolButton [ 'fnFormatCss' ] == 1) { $BBCodeButtons .= "</select>" ; } $BBCodeButtons .= " <a href=\"javascript:insertvote()\"><img src=\"include/images/icons/bbcode/bbcode_vote.png\" alt=\"Umfrage einfügen\" title=\"Umfrage einfügen\" width=\"23\" height=\"22\" border=\"0\"></a>" ; $this ->keys[ '__BBCodeButtons__' ] = $BBCodeButtons ; //> BBCode v2.00 - [ENDE] # ort 0 = include /templates, ort 1 = include /admin/templates # bei ort 0 wird ausserdem gecheckt ob das template # evtl. im ordner include /design/DESIGN/templates liegt. # ort = 2 das template kommt von der design classe der pfad ist ab include $design = $this ->get_design (); if ( $this ->ort == 0 ) { if ( file_exists ( 'include/designs/' . $design . '/templates/' . $file ) ) { $file = 'include/designs/' . $design . '/templates/' . $file ; } else { $file = 'include/templates/' . $file ; } } elseif ( $this ->ort == 1 ) { $file = 'include/admin/templates/' . $file ; } elseif ( $this ->ort == 2 ) { $file = 'include/' . $file ; } if ( substr ( $file , -4 ) != '.htm' ) { $file .= '.htm' ; } $inhalt = implode( "" , file( $file ) ); global $lang ; $this ->lang = $lang ; $inhalt = $this ->replace_lang( $inhalt ); $inhalt = $this ->replace_list( $inhalt ); $this ->parts = explode ( '{EXPLODE}' , $inhalt ); } function get_design () { if ( file_exists ( 'include/designs/' . $_SESSION [ 'authgfx' ]. '/index.htm' )) { return ( $_SESSION [ 'authgfx' ] ); } elseif ( file_exists ( 'include/designs/ilchClan/index.htm' )) { return ( 'ilchClan' ); } else { $od = opendir( 'include/designs' ); while ( $f = readdir( $od ) ) { if ( file_exists ( 'include/designs/' . $f . '/index.htm' )) { return ( $f ); break ; } } closedir ( $od ); } } function replace_lang ( $var ) { $lang_zwischenspeicher = array (); preg_match_all ( "/\{_lang_([^\{\}]+)\}/" , $var , $lang_zwischenspeicher ); foreach ( $lang_zwischenspeicher [1] as $v ) { $var = str_replace ( '{_lang_' . $v . '}' , $this ->lang[ $v ], $var ); } return ( $var ); } function replace_list ( $var ) { $zwischenspeicher = array (); preg_match_all ( "/\{_list_([^\{\}]+)\}/" , $var , $zwischenspeicher ); foreach ( $zwischenspeicher [1] as $v ) { list ( $key , $val ) = explode ( '@' , $v ); $this ->lists[ $key ] = $val ; $var = str_replace ( '{_list_' . $v . '}' , '{' . $key . '}' , $var ); } return ( $var ); } function list_get ( $key , $ar ) { $zwischenspeicher = $this ->lists[ $key ]; foreach ( $ar as $k => $v ) { $i = $k + 1; $zwischenspeicher = str_replace ( '%' . $i , $v , $zwischenspeicher ); } return ( $zwischenspeicher ); } function list_exists ( $key ) { if ( isset ( $this ->lists[ $key ] ) ) { return ( true ); } else { return ( false ); } } function list_out ( $key , $ar ) { echo $this ->list_get ( $key , $ar ); } function set ( $k , $v ) { # $this ->keys[ $k ] = unescape( $v ); $this ->keys[ $k ] = $v ; } function set_ar ( $ar ) { foreach ( $ar as $k => $v ) { # $this ->keys[ $k ] = unescape( $v ); $this ->keys[ $k ] = $v ; } } function set_ar_out ( $ar , $pos ) { $this ->set_ar( $ar ); $this ->out( $pos ); } function set_out ( $k , $v , $pos ) { $this ->set( $k , $v ); $this ->out( $pos ); } function set_ar_get ( $ar , $pos ) { $this ->set_ar( $ar ); return ( $this ->get( $pos )); } function set_get ( $k , $v , $pos ) { $this ->set( $k , $v ); return ( $this ->get( $pos )); } function del ( $k ) { unset ( $this ->keys[ $k ]); } function del_ar ( $ar ) { foreach ( $ar as $k => $v ) { unset ( $this ->keys[ $k ]); } } function get ( $pos ) { $toout = $this ->parts[ $pos ]; mt_srand((double)microtime()*1000000); $z = '##@@' .mt_rand(). '@@##' ; foreach ( $this ->keys as $k => $v ) { $toout = str_replace ( '{' . $k . '}' , '{' . $z . $k . '}' , $toout ); } foreach ( $this ->keys as $k => $v ) { $toout = str_replace ( '{' . $z . $k . '}' , $v , $toout ); } return ( $toout ); } function out ( $pos ) { echo $this ->get ( $pos ); } /* @ Diese Funktion war mal eingebaut ich denke aber wenn jemand die seite suchmaschienen optimieren will, dann sollte er schon soviel ahnung haben es selber hinzubekommen. diese funktion kann aber dabei helfen! ... ansonsten wird es von mir sicher mal einen mod geben der die aufgabe uebernimmt! diese funktion kann nicht einfach freigeschaltet (auskommentiert) werden sie hat dann ueberhaupt keine auswirkung ;)... function giveback ($c) { global $allgAr; # diese funktion gibt den inhalt aus. # damit kann der inhalt nochmal nachbereitet werden. # pruefen ob alle ?... durch ....htm ersetzt werden sollen # wenn ja tun und return c ;-) if ( $allgAr['replace_template_to_html'] == 1 AND ($this->ort == 0 OR $this->ort == 2) ) { $c = preg_replace ('%href=\"\?([^\"]+)\"%Uis',"href=\"index.php?\\1\"",$c); $c = preg_replace ('%href=\"index.php\?([-0-9A-Z]+)#([a-zA-Z0-9]+)\">%Uis',"href=\"\\1.html#\\2\">",$c); $c = preg_replace ('%href=\"index.php\?([-0-9A-Z]+)\">%Uis',"href=\"\\1.html\">",$c); $c = preg_replace ('%action=\"\?([^\"]+)\"%Uis',"action=\"index.php?\\1\"",$c); $c = preg_replace ('%URL=\?([^\"]+)\"%Uis',"URL=index.php?\\1\"",$c); } return ( $c ); } */ } ?> |
Geschlossen | ||
![]() |
Zurück zu Module und Modifikationen |