z.B.: [url]www.hyrule-kingdom.de[/url]
Wär cool

Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
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 | <?php # Copyright by Manuel # Support www.ilch.de defined ( 'main' ) or die ( 'no direct access' ); $shoutbox_VALUE_name = getenv ( "REMOTE_ADDR" ); $datum = date ( "j.n.y" ); $zeit = date ( "@H:i" ); if ( loggedin() ) { $shoutbox_VALUE_name2 = $_SESSION [ 'authname' ]; } if ( ! empty ( $_POST [ 'shoutbox_submit' ]) ) { $shoutbox_nickname = escape( $_POST [ 'shoutbox_nickname' ], 'string' ); $shoutbox_nickname = substr ( $shoutbox_nickname , 0, 15); $shoutbox_textarea = escape( $_POST [ 'shoutbox_textarea' ], 'textarea' ); $shoutbox_textarea = preg_replace( "/[.?(url|b|i|u|img|code|quote)[^]]*?]/i" , "" , $shoutbox_textarea ); $shoutbox_textarea = strip_tags ( $shoutbox_textarea ); if ( ! empty ( $shoutbox_nickname ) AND ! empty ( $shoutbox_textarea ) ) { db_query( 'INSERT INTO `prefix_shoutbox` VALUES ( "" , "' . $shoutbox_nickname . ' ' . $datum . ' ' . $zeit . '" , "' . $shoutbox_textarea . '" ) ' ); } } if ( loggedin() ) { //angemeldeter user echo '<form action="index.php" method="POST">' ; echo '<input readonly type="text" size="20" name="shoutbox_nickname" value="' . $shoutbox_VALUE_name2 . '" onFocus="if (value == ' '.$shoutbox_VALUE_name.' ') {value = ' '}" onBlur="if (value == ' ') {value = ' '.$shoutbox_VALUE_name.' '}" maxlength="15">' ; echo '<br /><textarea cols="27" rows="3" name="shoutbox_textarea"></textarea><br />' ; echo '<input type="submit" value="' . $lang [ 'formsub' ]. '" name="shoutbox_submit">' ; echo '</form><table width="100%" class="border" cellpadding="2" cellspacing="1" border="0">' ; } else { //Gaeste echo "<font color=#ffffff><b><p></p>Zum Posten<p></p>Bitte Einloggen!<p></p></b></font>" ; echo '</form><table width="100%" class="border" cellpadding="2" cellspacing="1" border="0">' ; } $erg = db_query( 'SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT 5' ); $class = 'Cnorm' ; while ( $row = db_fetch_object( $erg ) ) { $class = ( $class == 'Cnorm' ? 'Cnorm' : 'Cnorm' ); echo '<tr class="' . $class . '"><td><b>' . $row ->nickname. ':</b> ' .preg_replace( '/([^s]{20})(?=[^s])/' , "$1n" , $row ->textarea). '</td></tr>' ; } echo '</table><a class="box" href="index.php?shoutbox">' . $lang [ 'archiv' ]. '</a>' ; ?> |
1 | siehe über-übernächsten post von mir^^ |
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 | <?php # Copyright by Manuel # Support www.ilch.de defined ( 'main' ) or die ( 'no direct access' ); $shoutbox_VALUE_name = getenv ( "REMOTE_ADDR" ); $datum = date ( "j.n.y" ); $zeit = date ( "@H:i" ); if ( loggedin() ) { $shoutbox_VALUE_name2 = $_SESSION [ 'authname' ]; } if ( ! empty ( $_POST [ 'shoutbox_submit' ]) ) { $shoutbox_nickname = escape( $_POST [ 'shoutbox_nickname' ], 'string' ); $shoutbox_nickname = substr ( $shoutbox_nickname , 0, 15); $shoutbox_textarea = escape( $_POST [ 'shoutbox_textarea' ], 'textarea' ); $shoutbox_textarea = preg_replace( "/[.?(url|b|i|u|img|code|quote)[^]]*?]/i" , "" , $shoutbox_textarea ); $shoutbox_textarea = strip_tags ( $shoutbox_textarea ); if ( ! empty ( $shoutbox_nickname ) AND ! empty ( $shoutbox_textarea ) ) { db_query( 'INSERT INTO `prefix_shoutbox` VALUES ( "" , "' . $shoutbox_nickname . ' ' . $datum . ' ' . $zeit . '" , "' . $shoutbox_textarea . '" ) ' ); } } if ( loggedin() ) { //angemeldeter user echo '<form action="index.php" method="POST">' ; echo '<input readonly type="text" size="20" name="shoutbox_nickname" value="' . $shoutbox_VALUE_name2 . '" onFocus="' . if ( $value == $shoutbox_VALUE_name ){ echo '' ;} else { echo $value ;}. '" onBlur="' . if ( $value == '' ){ $valueoB = $shoutbox_VALUE_name ; echo $valueoB ;}. '" maxlength="15">' ; echo '<br /><textarea cols="27" rows="3" name="shoutbox_textarea"></textarea><br />' ; echo '<input type="submit" value="' . $lang [ 'formsub' ]. '" name="shoutbox_submit">' ; echo '</form><table width="100%" class="border" cellpadding="2" cellspacing="1" border="0">' ; } else { //Gaeste echo "<font color=#ffffff><b><p></p>Zum Posten<p></p>Bitte Einloggen!<p></p></b></font>" ; echo '</form><table width="100%" class="border" cellpadding="2" cellspacing="1" border="0">' ; } $erg = db_query( 'SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT 5' ); $class = 'Cnorm' ; while ( $row = db_fetch_object( $erg ) ) { $class = ( $class == 'Cnorm' ? 'Cnorm' : 'Cnorm' ); echo '<tr class="' . $class . '"><td><b>' . $row ->nickname. ':</b> ' .preg_replace( '/([^s]{20})(?=[^s])/' , "$1n" , $row ->textarea). '</td></tr>' ; } echo '</table><a class="box" href="index.php?shoutbox">' . $lang [ 'archiv' ]. '</a>' ; ?> |
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 | <?php # Copyright by Manuel # Support www.ilch.de defined ( 'main' ) or die ( 'no direct access' ); $shoutbox_VALUE_name = getenv ( "REMOTE_ADDR" ); $datum = date ( "j.n.y" ); $zeit = date ( "@H:i" ); if ( loggedin() ) { $shoutbox_VALUE_name2 = $_SESSION [ 'authname' ]; } if ( ! empty ( $_POST [ 'shoutbox_submit' ]) ) { $shoutbox_nickname = escape( $_POST [ 'shoutbox_nickname' ], 'string' ); $shoutbox_nickname = substr ( $shoutbox_nickname , 0, 15); $shoutbox_textarea = escape( $_POST [ 'shoutbox_textarea' ], 'textarea' ); $shoutbox_textarea = preg_replace( "/[.?(url|b|i|u|img|code|quote)[^]]*?]/i" , "" , $shoutbox_textarea ); $shoutbox_textarea = strip_tags ( $shoutbox_textarea ); if ( ! empty ( $shoutbox_nickname ) AND ! empty ( $shoutbox_textarea ) ) { db_query( 'INSERT INTO `prefix_shoutbox` VALUES ( "" , "' . $shoutbox_nickname . ' ' . $datum . ' ' . $zeit . '" , "' . $shoutbox_textarea . '" ) ' ); } } if ( loggedin() ) { //angemeldeter user echo '<form action="index.php" method="POST">' ; if ( $value == $shoutbox_VALUE_name ){ $valueoF = '' ; } else { $valueoF = $value ; } if ( $value == '' ){ $valueoB = $shoutbox_VALUE_name ; } else { $valueoB = '' ; } echo '<input readonly type="text" size="20" name="shoutbox_nickname" value="' . $shoutbox_VALUE_name2 . '" onFocus="' . $valueoF . '" onBlur="' . $valueoB . '" maxlength="15">' ; echo '<br /><textarea cols="27" rows="3" name="shoutbox_textarea"></textarea><br />' ; echo '<input type="submit" value="' . $lang [ 'formsub' ]. '" name="shoutbox_submit">' ; echo '</form><table width="100%" class="border" cellpadding="2" cellspacing="1" border="0">' ; } else { //Gaeste echo "<font color=#ffffff><b><p></p>Zum Posten<p></p>Bitte Einloggen!<p></p></b></font>" ; echo '</form><table width="100%" class="border" cellpadding="2" cellspacing="1" border="0">' ; } $erg = db_query( 'SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT 5' ); $class = 'Cnorm' ; while ( $row = db_fetch_object( $erg ) ) { $class = ( $class == 'Cnorm' ? 'Cnorm' : 'Cnorm' ); echo '<tr class="' . $class . '"><td><b>' . $row ->nickname. ':</b> ' .preg_replace( '/([^s]{20})(?=[^s])/' , "$1n" , $row ->textarea). '</td></tr>' ; } echo '</table><a class="box" href="index.php?shoutbox">' . $lang [ 'archiv' ]. '</a>' ; ?> |
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 | <?php # Copyright by Manuel # Support www.ilch.de defined ( 'main' ) or die ( 'no direct access' ); $shoutbox_VALUE_name = getenv ( "REMOTE_ADDR" ); $datum = date ( "j.n.y" ); $zeit = date ( "@H:i" ); if ( loggedin() ) { $shoutbox_VALUE_name2 = $_SESSION [ 'authname' ]; } if ( ! empty ( $_POST [ 'shoutbox_submit' ]) ) { $shoutbox_nickname = escape( $_POST [ 'shoutbox_nickname' ], 'string' ); $shoutbox_nickname = substr ( $shoutbox_nickname , 0, 15); $shoutbox_textarea = escape( $_POST [ 'shoutbox_textarea' ], 'textarea' ); $shoutbox_textarea = preg_replace( "/\[.?(url|b|i|u|img|code|quote)[^\]]*?\]/i" , "" , $shoutbox_textarea ); $shoutbox_textarea = strip_tags ( $shoutbox_textarea ); if ( ! empty ( $shoutbox_nickname ) AND ! empty ( $shoutbox_textarea ) ) { db_query( 'INSERT INTO `prefix_shoutbox` VALUES ( "" , "' . $shoutbox_nickname . ' ' . $datum . ' ' . $zeit . '" , "' . $shoutbox_textarea . '" ) ' ); } } if ( loggedin() ) { //angemeldeter user echo '<form action="index.php" method="POST">' ; echo '<input readonly type="text" size="20" name="shoutbox_nickname" value="' . $shoutbox_VALUE_name2 . '" onFocus="if (value == \'' . $shoutbox_VALUE_name . '\') {value = \'\'}" onBlur="if (value == \'\') {value = \'' . $shoutbox_VALUE_name . '\'}" maxlength="15">' ; echo '<br /><textarea cols="27" rows="3" name="shoutbox_textarea"></textarea><br />' ; echo '<input type="submit" value="' . $lang [ 'formsub' ]. '" name="shoutbox_submit">' ; echo '</form><table width="100%" class="border" cellpadding="2" cellspacing="1" border="0">' ; } else { //Gaeste echo "<font color=#ffffff><b><br />Zum Posten<p></p>Bitte Einloggen!<p></p></b></font>" ; echo '</form><table width="100%" class="border" cellpadding="2" cellspacing="1" border="0">' ; } $erg = db_query( 'SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT 5' ); $class = 'Cnorm' ; while ( $row = db_fetch_object( $erg ) ) { $class = ( $class == 'Cnorm' ? 'Cnorm' : 'Cnorm' ); echo '<tr class="' . $class . '"><td><b>' . $row ->nickname. ' :</b> ' .preg_replace( '/([^\s]{20})(?=[^\s])/' , "$1\n" , $row ->textarea). '</td></tr>' ; } echo '</table><a class="box" href="index.php?shoutbox">' . $lang [ 'archiv' ]. '</a>' ; ?> |
Geschlossen | ||
![]() |
Zurück zu Kritik und Verbesserungen |