vom Prinzip ja, nur ist das CGI und das ist nicht bei jedem außerhalb des CGI-ordners aktiviert
muss ich mich mal reinlesen
Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
1 2 3 4 5 6 7 8 9 10 11 12 | DROP TABLE IF EXISTS `prefix_radio_wunsch`; CREATE TABLE IF NOT EXISTS `prefix_radio_wunsch` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` varchar(50) NOT NULL, `wunsch` varchar(100) NOT NULL, `gruss` varchar(250) NOT NULL, PRIMARY KEY (`id`), KEY `id` (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COMMENT='RadioModul OnAir by DjGeCk0' AUTO_INCREMENT=4 ; INSERT INTO `prefix_radio_wunsch` (`uid`, `wunsch`, `gruss`) VALUES ('DjGeCk0 ', 'Nelly - ride with me', 'greeetz to all listeners'); |
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 ##################################################### # RadioModul v1.0 by DjGeCk0 # http: //djgecko.kilu.de # Wunsch - Box # Support: http: //www.ilch.de/forum-showposts-37650.html # Doku: http: //djgecko.kilu.de/index.php?articles-show-A1 ##################################################### $tpl = new tpl ( 'radio/wunsch.htm' , 0 ); defined ( 'main' ) or die ( 'no direct access' ); if (isset( $_POST [ 'sendgruss' ])) { $addersteller = escape( $_POST [ 'nickname' ], 'textarea' ); $addwunsch = escape( $_POST [ 'wunsch' ], 'textarea' ); $addgruss = escape( $_POST [ 'gruss' ], 'textarea' ); $addwunschgruss = "INSERT INTO prefix_radio_wunsch (uid, wunsch, gruss) VALUES ( '$addersteller' , '$addwunsch' , '$addgruss' )"; $save = db_query( $addwunschgruss ); echo ' erfolgreich gespeichert ' ; } ### ### $ipeinstellung = db_result(db_query( "SELECT einstellung FROM prefix_radio_settings WHERE auswahl = 'wunschip'" )); if ( $ipeinstellung == 'Ja' ) { $postip = getip(); $ippost = '<hr>Ihre IP ' . $postip . ' wird gespeichert' ;} else { $ippost = '' ;} ### ### $grusscount = db_result(db_query( "SELECT einstellung FROM prefix_radio_settings WHERE auswahl = 'showgrusscount'" )); if ( $grusscount == 'Ja' ) { $countgr = db_result(db_query( "SELECT COUNT(id) FROM prefix_radio_wunsch" )); $grcount = '<hr>aktuell sind ' . $countgr . ' Grüße gespeichert' ;} else { $grcount = '' ;} ### ### $grusscontent = db_result(db_query( "SELECT einstellung FROM prefix_radio_settings WHERE auswahl = 'grusscontentlink'" )); if ( $grusscontent == 'Ja' ) { $grcont = else { $grcont = '' ;} ### ### $tpl ->set( 'AUTHNAME' , $_SESSION [ 'authname' ]); $tpl ->set( 'IPPOST' , $ippost ); $tpl ->set( 'GRCOUNT' , $grcount ); $tpl ->set( 'GRCONT' , $grcont ); $tpl ->out(0); ?> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | <center><form method="post"> <div align="right">Ihr Name <input name="nickname" type="text" id="nickname" size="15" value="{AUTHNAME} "maxlength="50"> <br> Ihr Wunsch <input name="wunsch" type="text" id="wunsch" size="15" value="Interpret - Titel" maxlength="50"> <br> Ihr Gruss <textarea name="gruss" cols="15" rows="3" id="gruss"></textarea> <br> <input type="submit" name="sendgruss" id="sendgruss" value="absenden" /> </div> </form> {IPPOST} {GRCOUNT} {GRCONT}</center> |
Geschlossen | ||
![]() |
Zurück zu Module und Modifikationen |