hab mal eine frage...
hab das wünsche modul von SLJ das kann man doch auch zu einer witzbox umschreiben oder nicht ??
könnte vllt. jemand das modul bearbeiten...
<?php //Copyright by Stefan Jungbauer //www.zocker-eppingen.de //V 1.0 defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Witzbox'; $hmenu = 'Witzbox'; $design = new design ( $title , $hmenu ); $design->header(); if ( loggedin() ) { $wu_VALUE_name = $_SESSION['authname']; } else { $wu_VALUE_name = 'Nickname'; } if ( !empty($_POST['wu_submit']) AND chk_antispam ('wu')) { $wu_nickname = escape($_POST['wu_nickname'],'string'); $wu_nickname = substr($wu_nickname, 0, 15); $wunsch = escape($_POST['wunsch'],'textarea'); $wu_textarea = escape($_POST['wu_textarea'],'textarea'); $wu_textarea = preg_replace("/\[.?(url|b|i|u|img|code|quote)[^\]]*?\]/i","",$wu_textarea); $wu_textarea = strip_tags($wu_textarea); if ( !empty($wu_nickname) AND !empty($wu_textarea) ) { db_query('INSERT INTO `prefix_wunschbox` VALUES ( "" , "'.$wu_nickname.'" , "'.$wu_textarea.'" , "'.$wunsch.'" ) ' ); } } echo '<form action="index.php?wunschbox" method="POST">'; echo '<input type="text" size="15" name="wu_nickname" value="'.$wu_VALUE_name.'" onFocus="if (value == \''.$wu_VALUE_name.'\') {value = \'\'}" onBlur="if (value == \'\') {value = \''.$wu_VALUE_name.'\'}" maxlength="15">'; echo '<br /><br>Wunsch<br><textarea style="width: 80%" cols="15" rows="2" name="wunsch"></textarea><br />'; echo '<br />Allgemeiner Text<br><textarea style="width: 80%" cols="15" rows="2" name="wu_textarea"></textarea><br />'; echo get_antispam ('wu', 0); echo '<input type="submit" value="'.$lang['formsub'].'" name="wu_submit">'; echo '</form>'; $design->footer(); ?>
<?php //Copyright by Stefan Jungbauer //www.zocker-eppingen.de //V 1.0 defined ('main') or die ( 'no direct access' ); $title = $allgAr['title'].' :: Wunschbox'; $hmenu = 'Wunschbox'; $design = new design ( $title , $hmenu ); $design->header(); if ( loggedin() ) { $wu_VALUE_name = $_SESSION['authname']; } else { $wu_VALUE_name = 'Nickname'; } if ( !empty($_POST['wu_submit']) AND chk_antispam ('wu')) { $wu_nickname = escape($_POST['wu_nickname'],'string'); $wu_nickname = substr($wu_nickname, 0, 15); $wunsch = escape($_POST['wunsch'],'textarea'); $wu_textarea = escape($_POST['wu_textarea'],'textarea'); $wu_textarea = preg_replace("/\[.?(url|b|i|u|img|code|quote)[^\]]*?\]/i","",$wu_textarea); $wu_textarea = strip_tags($wu_textarea); if ( !empty($wu_nickname) AND !empty($wu_textarea) ) { db_query('INSERT INTO `prefix_wunschbox` VALUES ( "" , "'.$wu_nickname.'" , "'.$wu_textarea.'" , "'.$wunsch.'" ) ' ); } } echo '<form action="index.php?wunschbox" method="POST">'; echo '<input type="text" size="15" name="wu_nickname" value="'.$wu_VALUE_name.'" onFocus="if (value == \''.$wu_VALUE_name.'\') {value = \'\'}" onBlur="if (value == \'\') {value = \''.$wu_VALUE_name.'\'}" maxlength="15">'; echo '<br /><br>Wunsch<br><textarea style="width: 80%" cols="15" rows="2" name="wunsch"></textarea><br />'; echo '<br />Allgemeiner Text<br><textarea style="width: 80%" cols="15" rows="2" name="wu_textarea"></textarea><br />'; echo get_antispam ('wu', 0); echo '<input type="submit" value="'.$lang['formsub'].'" name="wu_submit">'; echo '</form>'; $design->footer(); ?>
danke an alle die helfen...
betroffene Homepage: externer Link