Hier kann eine Notiz zum Merk-Eintrag hinzugefügt werden (optional)
Geschlossen |
<form action="?m=news" method="POST"> <table class="Callg" width="100%" border="0" cellspacing="0" cellpadding="5"> <tr> <td><h2>News</h2></td> <td align="right"> <select name="sort" onchange="this.form.submit();"> <option value="standart">Sortieren</option> <optgroup label="Absteigend"> <option value="datumAB">Datum</option> <option value="newsAB">Überschrift</option> </optgroup> <optgroup label="Aufsteigend"> <option value="datumAU">Datum</option> <option value="newsAU">Überschrift</option> </optgroup> <optgroup label="nur Kategorie"> </optgroup> {KATS} </select> </td> </tr> </table> </form> <br /><br /> {EXPLODE} <strong>{DATE}</strong> <hr style="height: 0px; border: dashed #000000 0px; border-top-width: 1px; " /> <table width="100%" border="0" cellspacing="0" cellpadding="5" class="Callg"> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="20%" valign="middle" height="35"> <font SIZE="1">{KATE}</font> </td> <td width="80%" height="35"> <table width="100%" border="0" align="center" cellpadding="1" cellspacing="0" class="cbg1"> <tr> <td><strong>{NAME}</strong></td> </tr> <tr> <td>von {UNAME} {FUER}</td> </tr> </table> </td> </tr> </table> </td> </tr> <tr> <td>{TEXT}</td> </tr> <tr> <td> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="50%"></td> <td width="50%"> </td> </tr> </table> </td> </tr> </table> <br /> <br /> {EXPLODE} <br /> <br /><div align="center">{SITELINK}</div> {EXPLODE} <!-- News Kommentare und Mehr lesen --> <table class="border" width="100%" cellpadding="5" cellspacing="1" border="0"> <tr> <td height="25" class="Chead" colspan="2"><font size="3"><b>{NAME}</b></font></td> </tr> <tr> <td height="25" class="Cdark" colspan="2">Nachricht</td> </tr> <tr> <td class="Cnorm" width="85%"> {VORSH} . . . <br /> <br /> {TEXT} <br /> <br /> <br /> <a href="javascript:history.back(1)"><b>«</b> zur�ck</a> </td> <td class="Cnorm" valign="top" width="15%"> <div align="center">{KATE}</div> </td> </tr> {EXPLODE} <tr> <td height="25" class="Cmite" colspan="2">Kommentare für {NAME}</td> </tr> <tr> <td class="Cnorm" colspan="2"> <form action="?m=news&um=2" method="POST"> <input type="hidden" name="nid" value="{NID}"> <table width="100%" class="Cnorm"> <tr> <td width="20%">Dein Name</td> <td width="80%"> <input type="text" name="name"> </td> </tr> <tr> <td valign="top">Kommentar</td> <td> <textarea cols="50" rows="2" name="txt"></textarea> </td> </tr> <tr> <td></td> <td> <input type="submit" value="Eintragen"> </td> </tr> </table> </form> <table width="100%" cellpadding="0" cellspacing="0" border="0" class="cbg2"> {EXPLODE}<tr> <td class="Cmite"># <b>{ZAHL}</b> von {NAME}</td></tr> <tr><td>{TEXT}<br /><br /></td></tr> </tr>{EXPLODE} </table> <br /> <a href="javascript:history.back(1)"><b>«</b> zur�ck</a> </td> </tr> {EXPLODE} </table> {EXPLODE} <table width="100%" border="0" cellspacing="0" cellpadding="5" class="rand"> <tr class="mite"> <td width="65%"><b>{NAME}</b></td> <td width="15%">{FUER}</td> <td width="20%" align="right">{DATE}</td> </tr><tr class="norm"> <td valign="top" colspan="2">{TEXT}{MEHR}</td> <td valign="top" rowspan="2" align="center">{KATE}</td> </tr><tr class="norm"> <td valign="bottom" height="20" colspan="2" align="center"> <b>von {UNAME}</b> [ {KOM} <a href="?m=news&um=1&nid={ID}">Kommentare</a> ] </td> </tr> </table>
<?php /* ìlchClan -------------------------------------------------------------| Copyright : © by Manuel | E-Mail : Webmaster@ilch.de | Internet : www.ilch.de | Version : v.1 | Lastupdate : 14.04.2004 | ------------------------------------------------------------*/ if (!defined('ILCH_CLANSCRIPT')) { die("Hacking attempt"); } //-----------------------------------------------------------| $limit = $allgAr['Nlimit']; $neueBreite = $allgAr['Nbsize']; if ( empty ( $um ) ) { // Sortieren vorbereiten if ( empty ($sort) OR $sort == 'standart' ) { $asort = 'time DESC'; $where = ''; } elseif ( $sort == 'datumAB' ) { $asort = 'time DESC'; $where = ''; } elseif ( $sort == 'datumAU' ) { $asort = 'time ASC'; $where = ''; } elseif ( $sort == 'newsAB' ) { $asort = 'titel ASC'; $where = ''; } elseif ( $sort == 'newsAU' ) { $asort = 'titel DESC'; $where = ''; } elseif ( ereg ( 'kat' , $sort ) ) { $asort = 'time DESC'; $kattoshow = substr($sort,3,strlen($sort)-3); $where = 'AND kat = "'.$kattoshow.'"'; } else { $asort = 'time DESC'; $where = ''; } // kategorien findung $exKat = ''; $erg = mysql_query("SELECT kat FROM `".$dbprefix."_news` ORDER BY kat"); while ($row = mysql_fetch_object($erg)) { if ( $exKat != $row->kat ) { $kats .= '<option value="kat'.$row->kat.'">'.$row->kat.'</option>'; } $exKat = $row->kat; } if(empty($page)) { $page = 1; } $MPL = makeSites ($page , "WHERE recht >= '".gettoshow($_SESSION['A_Re'])."' ".$where , $limit , '?m=news&sort='.$sort , 'news' ); $anfang = ($page - 1) * $limit; parse ( array('KATS' => $kats ) , 'news' , 0 ); $newsImages = array(); $newsImagesOhne = array(); function last ($str) { $array = explode('.',$str); $count = count($array); $count--; return ($array[$count]); } $handle=opendir('./include/images/news'); while ($ver = readdir ($handle)) { if ($ver != "." AND $ver != "..") { $newsImages[] = $ver; $last = last($ver); $ohne = str_replace('.'.$last,'',$ver); $newsImagesOhne[] = $ohne; } } closedir($handle); $fur = array ('für Alle','nur für Admins','nur für Member','nur für User','für Alle'); $abf = 'SELECT * FROM '.$dbprefix.'_news WHERE recht >= "'.gettoshow($_SESSION['A_Re']).'" '.$where.' ORDER BY '.$asort.' LIMIT '.$anfang.','.$limit; $erg = mysql_query($abf); while ($row = mysql_fetch_object($erg)) { $k0m = @mysql_query("SELECT COUNT(ID) FROM `".$dbprefix."_koms` WHERE uid = 'NEWS_".$row->id."'"); $kom = @mysql_result($k0m,0); if ( in_array($row->kat,$newsImagesOhne) ) { $key = array_search($row->kat,$newsImagesOhne); $pfadzumBild = 'include/images/news/'.$newsImages[$key]; $size = getimagesize($pfadzumBild); $breite = $size[0]; $hoehe = $size[1]; $neueHoehe=intval($hoehe*$neueBreite/$breite); $kategorie = '<img src="'.$pfadzumBild.'" alt="'.$row->kat.'">'; } else { $kategorie = '<b>'.$row->kat.'</b><br /><br />'; } parse ( array ('NAME' => $row->titel, 'TEXT' => BBcode($row->text), 'DATE' => wtage(date('w',$row->time)).' '.date("d. M. Y",$row->time), 'FUER' => $fur[$row->recht * -1], 'KATE' => $kategorie, 'UNAME' => $row->erst, 'ID' => $row->id, 'KOM' => $kom ) , 'news' , 1 ); } parse ( array ('SITELINK' => $MPL) , 'news' , 2); } else { # kommentar add if ( !empty($_POST['name']) AND !empty($_POST['txt']) AND !empty($_POST['nid']) ) { $_POST['txt'] = strip_tags($_POST['txt']); mysql_query("INSERT INTO `".$dbprefix."_koms` VALUES ('','NEWS_".$_POST['nid']."','".$_POST['name']."','".$_POST['txt']."')"); $nid = $_POST['nid']; } # kommentar add # show artiel if ( !empty($_GET['nid']) ) { $nid = $_GET['nid']; } $row = mysql_fetch_object(mysql_query("SELECT * FROM `".$dbprefix."_news` WHERE id = '".$nid."'")); $newsImages = array(); $newsImagesOhne = array(); function last ($str) { $array = explode('.',$str); $count = count($array); $count--; return ($array[$count]); } $handle=opendir('./include/images/news'); while ($ver = readdir ($handle)) { if ($ver != "." AND $ver != "..") { $newsImages[] = $ver; $last = last($ver); $ohne = str_replace('.'.$last,'',$ver); $newsImagesOhne[] = $ohne; } } closedir($handle); if ( in_array($row->kat,$newsImagesOhne) ) { $key = array_search($row->kat,$newsImagesOhne); $kategorie = '<img src="include/images/news/'.$newsImages[$key].'" alt="'.$row->kat.'">'; } else { $kategorie = '<b>'.$row->kat.'</b><br /><br />'; } $textToShow = BBcode($row->text); if ( !empty($such) ) { $textToShow = markword($textToShow,$such); } parse ( array ('TEXT' => $textToShow, 'KATE' => $kategorie, 'VORSH' => nl2br($row->stext), 'NID' => $nid, 'NAME' => $row->titel ) , 'news' , 3 ); $komsOK = true; if ( $allgAr['Ngkoms'] == 0 ) { if ($recht3) { $komsOK = true; } else { $komsOK = false; } } if ( $allgAr['Nukoms'] == 0 ) { $komsOK = false; } if ($komsOK) { parse ( array ( 'NAME' => $row->titel , 'NID' => $nid ), 'news' , 4 ); $erg1 = mysql_query("SELECT * FROM `".$dbprefix."_koms` WHERE uid = 'NEWS_".$nid."' ORDER BY id DESC"); $ergAnz1 = mysql_num_rows($erg1); if ( $ergAnz1 == 0 ) { echo '<tr><td><b>Kein Kommentar vorhanden</b></td></tr>'; } else { $zahl = $ergAnz1; while ($row1 = mysql_fetch_object($erg1)) { parse ( array ( 'NAME' => $row1->name, 'TEXT' => BBcode($row1->text), 'ZAHL' => $zahl ) , 'news' , 5 ); $zahl--; } } parse ( '', 'news' , 6 ); } parse ( '' , 'news' , 7 ); } //-----------------------------------------------------------| ?>
<?php /* ìlchClan -------------------------------------------------------------| Copyright : © by Manuel | E-Mail : Webmaster@ilch.de | Internet : www.ilch.de | Version : v.1 | Lastupdate : 13.12.2003 | ------------------------------------------------------------*/ if (!defined('ADMIN_BEREICH')) { die("Hacking attempt"); } //-----------------------------------------------------------| ## ### #### ##### F u n k t i o n e n function getKats ( $akt , $dbprefix ) { $katAR = array(); $kats = ''; $erg = mysql_query("SELECT kat FROM `".$dbprefix."_news`"); while ($row = mysql_fetch_object($erg)) { $katAr[] = $row->kat; } $katAr[] = 'Allgemein'; $katAr = array_unique($katAr); foreach($katAr as $a) { if ($a == $akt) { $sel = ' selected'; } else { $sel = ''; } $kats .= '<option>'.$a.'</option>'; } return ($kats); } function getGRecht ( $akt , $dbprefix ) { $fur = getFuerAr(); $furListe = ''; foreach ( $fur as $k => $v ) { if ($akt == $k) { $sel = ' selected'; } else { $sel = ''; } $furListe .= '<option'.$sel.' value="'.$k.'">'.$v.'</option>'; } return ($furListe); } ##### F u n k t i o n #### ### ## # ## ### #### ##### A k t i o n e n if ( !empty($um) ) { if ( $um == 'insert' ) { # insert $text = addslashes($_POST['txt']); $stext = strip_tags($_POST['stext']); if ( $_POST['katLis'] == 'neu' ) { $_POST['katLis'] = $_POST['kat']; } mysql_query('INSERT INTO `'.$dbprefix.'_news` VALUES ( "", "'.$_POST['titel'].'", "'.$_SESSION['A_na'].'", "'.time().'", "'.$_POST['grecht'].'", "'.$_POST['katLis'].'", "'.$stext.'", "'.$text.'" ) ' ); # insert } elseif ( $um == 'change' ) { # edit $text = addslashes($_POST['txt']); $stext = strip_tags($_POST['stext']); if ( $_POST['katLis'] == 'neu' ) { $_POST['katLis'] = $_POST['kat']; } mysql_query('UPDATE `'.$dbprefix.'_news` SET titel = "'.$_POST['titel'].'", erst = "'.$_SESSION['A_na'].'", recht = "'.$_POST['grecht'].'", kat = "'.$_POST['katLis'].'", stext = "'.$stext.'", text = "'.$text.'" WHERE id = "'.$_POST['newsID'].'" LIMIT 1'); $edit = $_POST['newsID']; } } # edit # del if ( !empty($_GET['del']) ) { mysql_query('DELETE FROM `'.$dbprefix.'_news` WHERE id = "'.$_GET['del'].'" LIMIT 1'); } if ( !empty($_GET['Kdel']) ) { mysql_query('DELETE FROM `'.$dbprefix.'_koms` WHERE id = "'.$_GET['Kdel'].'" LIMIT 1'); } #del ##### A k t i o n e n #### ### ## # ## ### #### ##### h t m l E i n g a b e n if ( empty ($doNoIn) ) { $limit = 10; // Limit if(empty($page)) { $page = 1; } $MPL = makeSites ($page , '' , $limit , "?m=news" , 'news' ); $anfang = ($page - 1) * $limit; if ( empty($edit) ) { $FnewsID = ''; $Faktion = 'insert'; $Fueber = ''; $Fstext = ''; $Ftxt = ''; $Fgrecht = ''; $FkatLis = ''; $Fsub = 'Eintragen'; } else { $row = mysql_fetch_object(mysql_query('SELECT * FROM `'.$dbprefix.'_news` WHERE id = "'.$edit.'"')); $FnewsID = $row->id; $Faktion = 'change'; $Fueber = $row->titel; $Fstext = $row->stext; $Ftxt = stripslashes($row->text); $Fgrecht = $row->recht; $FkatLis = $row->kat; $Fsub = 'Ändern'; } parse ( array ( 'NEWSID' => $FnewsID, 'AKTION' => $Faktion, 'MPL' => $MPL, 'UEBER' => $Fueber, 'STEXT' => $Fstext, 'TXT' => $Ftxt, 'FUR' => getGRecht($Fgrecht,$dbprefix), 'KATS' => getKats($FkatLis,$dbprefix), 'FSUB' => $Fsub ) , 'admin/news' , 0 ); # e d i t , d e l e t e $abf = 'SELECT id,titel FROM `'.$dbprefix.'_news` ORDER BY time DESC LIMIT '.$anfang.','.$limit; $erg = mysql_query($abf); while ($row = mysql_fetch_object($erg) ) { $erg1 = mysql_query('SELECT * FROM `'.$dbprefix.'_koms` WHERE uid = "NEWS_'.$row->id.'"'); $komAnz = mysql_num_rows($erg1); if ( $komAnz > 0 ) { $showkoms = ' <a href="?m=news&sKoms='.$row->id.'#'.$row->id.'">show Koms</a>'; } else { $showkoms = ''; } parse ( array ( 'ID' => $row->id, 'KOMS' => $showkoms, 'TITEL' => $row->titel ) , 'admin/news' , 1 ); if ( $komAnz > 0 ) { if ( $_GET['sKoms'] == $row->id ) { while($row1 = mysql_fetch_object($erg1) ) { parse ( array ( 'NID' => $row->id, 'ID' => $row1->id, 'NAME' => $row1->name ) , 'admin/news' , 2 ); } } } } # e d i t , d e l e t e parse ( array ('MPL' => $MPL ) , 'admin/news' , 3 ); } ##### h t m l E i n g a b e n #### ### ## # ?>
<?php /* ìlchClan -------------------------------------------------------------| Copyright : © by Manuel | E-Mail : Webmaster@ilch.de | Internet : www.ilch.de | Version : v.1 | Lastupdate : 13.12.2003 | ------------------------------------------------------------*/ if (!defined(\'ADMIN_BEREICH\')) { die(\"Hacking attempt\"); } //-----------------------------------------------------------| ## ### #### ##### F u n k t i o n e n function getKats ( $akt , $dbprefix ) { $katAR = array(); $kats = \'\'; $erg = mysql_query(\"SELECT kat FROM `\".$dbprefix.\"_news`\"); while ($row = mysql_fetch_object($erg)) { $katAr[] = $row->kat; } $katAr[] = \'Allgemein\'; $katAr = array_unique($katAr); foreach($katAr as $a) { if ($a == $akt) { $sel = \' selected\'; } else { $sel = \'\'; } $kats .= \'<option>\'.$a.\'</option>\'; } return ($kats); } function getGRecht ( $akt , $dbprefix ) { $fur = getFuerAr(); $furListe = \'\'; foreach ( $fur as $k => $v ) { if ($akt == $k) { $sel = \' selected\'; } else { $sel = \'\'; } $furListe .= \'<option\'.$sel.\' value=\"\'.$k.\'\">\'.$v.\'</option>\'; } return ($furListe); } ##### F u n k t i o n #### ### ## # ## ### #### ##### A k t i o n e n if ( !empty($um) ) { if ( $um == \'insert\' ) { # insert $text = addslashes($_POST[\'txt\']); if ( $_POST[\'katLis\'] == \'neu\' ) { $_POST[\'katLis\'] = $_POST[\'kat\']; } mysql_query(\'INSERT INTO `\'.$dbprefix.\'_news` VALUES ( \"\", \"\'.$_POST[\'titel\'].\'\", \"\'.$_SESSION[\'A_na\'].\'\", \"\'.time().\'\", \"\'.$_POST[\'grecht\'].\'\", \"\'.$_POST[\'katLis\'].\'\", \"\", \"\'.$text.\'\" ) \' ); # insert } elseif ( $um == \'change\' ) { # edit $text = addslashes($_POST[\'txt\']); if ( $_POST[\'katLis\'] == \'neu\' ) { $_POST[\'katLis\'] = $_POST[\'kat\']; } mysql_query(\'UPDATE `\'.$dbprefix.\'_news` SET titel = \"\'.$_POST[\'titel\'].\'\", erst = \"\'.$_SESSION[\'A_na\'].\'\", recht = \"\'.$_POST[\'grecht\'].\'\", kat = \"\'.$_POST[\'katLis\'].\'\", \"\", text = \"\'.$text.\'\" WHERE id = \"\'.$_POST[\'newsID\'].\'\" LIMIT 1\'); $edit = $_POST[\'newsID\']; } } # edit # del if ( !empty($_GET[\'del\']) ) { mysql_query(\'DELETE FROM `\'.$dbprefix.\'_news` WHERE id = \"\'.$_GET[\'del\'].\'\" LIMIT 1\'); } if ( !empty($_GET[\'Kdel\']) ) { mysql_query(\'DELETE FROM `\'.$dbprefix.\'_koms` WHERE id = \"\'.$_GET[\'Kdel\'].\'\" LIMIT 1\'); } #del ##### A k t i o n e n #### ### ## # ## ### #### ##### h t m l E i n g a b e n if ( empty ($doNoIn) ) { $limit = 10; // Limit if(empty($page)) { $page = 1; } $MPL = makeSites ($page , \'\' , $limit , \"?m=news\" , \'news\' ); $anfang = ($page - 1) * $limit; if ( empty($edit) ) { $FnewsID = \'\'; $Faktion = \'insert\'; $Fueber = \'\'; $Ftxt = \'\'; $Fgrecht = \'\'; $FkatLis = \'\'; $Fsub = \'Eintragen\'; } else { $row = mysql_fetch_object(mysql_query(\'SELECT * FROM `\'.$dbprefix.\'_news` WHERE id = \"\'.$edit.\'\"\')); $FnewsID = $row->id; $Faktion = \'change\'; $Fueber = $row->titel; $Ftxt = stripslashes($row->text); $Fgrecht = $row->recht; $FkatLis = $row->kat; $Fsub = \'Ändern\'; } parse ( array ( \'NEWSID\' => $FnewsID, \'AKTION\' => $Faktion, \'MPL\' => $MPL, \'UEBER\' => $Fueber, \'TXT\' => $Ftxt, \'FUR\' => getGRecht($Fgrecht,$dbprefix), \'KATS\' => getKats($FkatLis,$dbprefix), \'FSUB\' => $Fsub ) , \'admin/news\' , 0 ); # e d i t , d e l e t e $abf = \'SELECT id,titel FROM `\'.$dbprefix.\'_news` ORDER BY time DESC LIMIT \'.$anfang.\',\'.$limit; $erg = mysql_query($abf); while ($row = mysql_fetch_object($erg) ) { $erg1 = mysql_query(\'SELECT * FROM `\'.$dbprefix.\'_koms` WHERE uid = \"NEWS_\'.$row->id.\'\"\'); $komAnz = mysql_num_rows($erg1); if ( $komAnz > 0 ) { $showkoms = \' <a href=\"?m=news&sKoms=\'.$row->id.\'#\'.$row->id.\'\">show Koms</a>\'; } else { $showkoms = \'\'; } parse ( array ( \'ID\' => $row->id, \'KOMS\' => $showkoms, \'TITEL\' => $row->titel ) , \'admin/news\' , 1 ); if ( $komAnz > 0 ) { if ( $_GET[\'sKoms\'] == $row->id ) { while($row1 = mysql_fetch_object($erg1) ) { parse ( array ( \'NID\' => $row->id, \'ID\' => $row1->id, \'NAME\' => $row1->name ) , \'admin/news\' , 2 ); } } } } # e d i t , d e l e t e parse ( array (\'MPL\' => $MPL ) , \'admin/news\' , 3 ); } ##### h t m l E i n g a b e n #### ### ## # ?>
<script language=\"JavaScript\" type=\"text/javascript\"> <!-- function delcheck ( DELID ) { var frage = confirm ( \"Willst du diesen Eintrag wirklich löschen?\" ); if ( frage == true ) { document.location.href=\"?m=news&del=\"+DELID; } } function delKcheck ( DELID , NID) { var frage = confirm ( \"Willst du diesen Eintrag wirklich löschen?\" ); if ( frage == true ) { document.location.href=\"?m=news&Kdel=\"+DELID+\"&sKoms=\"+NID+\"#\"+NID; } } //--> </script> <table width=\"99%\" border=\"0\" cellspacing=\"1\" cellpadding=\"5\" class=\"border\"> <tr> <td class=\"Chead\" colspan=\"2\"><h2>News<h2></td> </tr> <tr> <td class=\"Cdark\" width=\"65%\"><h3>{FSUB}</h3></td> <td class=\"Cdark\" width=\"35%\"><h3>Löschen / Ändern</h3></td> </tr> <tr> <td class=\"Cnorm\"> <form action=\"admin.php\" method=\"POST\" name=\"form\"> <input type=\"hidden\" name=\"m\" value=\"news\"> <input type=\"hidden\" name=\"um\" value=\"{AKTION}\"> <input type=\"hidden\" name=\"newsID\" value=\"{NEWSID}\"> <script type=\'text/javascript\' src=\'include/incs/js/bbcode.js\'></script> <table width=\"99%\" cellpadding=\"2\" cellspacing=\"1\" border=\"0\" class=\"border\"> <tr> <td width=\"67\" class=\"Cmite\"><strong>Titel</strong></td> <td width=\"99%\" class=\"Cnorm\"> <input size=\"50\" type=\"text\" name=\"titel\" value=\"{UEBER}\"> </td> </tr> <tr> <td valign=\"top\" class=\"Cmite\" width=\"67\"><strong>News</strong></td> <td class=\"Cnorm\" width=\"95%\"> <!-- BB Code START --> <table width=\"400\" cellpadding=\"0\" border=\"0\" cellspacing=\"0\"> <tr> <td><a href=\"#\" onClick=\"simple(\'b\')\"><img src=\"include/images/icon/button.bold.gif\" alt=\"bold\" border=\"0\"></a> <input style=\"display: none;\" name=\"b\" value=\"a\"></td> <td><a href=\"#\" onClick=\"simple(\'i\')\"><img src=\"include/images/icon/button.italic.gif\" alt=\"italic\" border=\"0\"></a> <input style=\"display: none;\" name=\"i\" value=\"a\"></td> <td><a href=\"#\" onClick=\"simple(\'u\')\"><img src=\"include/images/icon/button.underline.gif\" alt=\"underline\" border=\"0\"></a> <input style=\"display: none;\" name=\"u\" value=\"a\"></td> <td><a href=\"#\" onClick=\"simple(\'code\')\"><img src=\"include/images/icon/button.code.gif\" alt=\"Code\" border=\"0\"></a><input style=\"display: none;\" name=\"code\" value=\"a\"></td> <td><a href=\"#\" onClick=\"simple(\'img\')\"><img src=\"include/images/icon/button.image.gif\" alt=\"Bild\" border=\"0\"></a><input style=\"display: none;\" name=\"img\" value=\"a\"></td> <td><a href=\"#\" onClick=\"url()\"><img src=\"include/images/icon/button.link.gif\" alt=\"Hyperlink\" border=\"0\"></a></td> </tr> </table> <br /> <textarea cols=\"60\" rows=\"15\" name=\"txt\" wrap=\"virtual\">{TXT}</textarea> </td> </tr> <tr> <td class=\"Cmite\" width=\"67\"><strong>Nur für</strong></td> <td class=\"Cnorm\" width=\"99%\"> <select name=\"grecht\"> {FUR} </select> </td> </tr> <tr> <td class=\"Cmite\" width=\"67\"><strong>Kategorie</strong></td> <td class=\"Cnorm\" width=\"99%\"> <select onChange=\"sichtbar()\" name=\"katLis\"> {KATS} <option value=\"neu\">Neu:</option> </select> <input type=\"text\" name=\"kat\" size=\"40\"> <script language=\"JavaScript\" type=\"text/javascript\"> <!-- function sichtbar(){ if(form.katLis.value==\"neu\"){ form.kat.style.visibility=\"visible\"; } else { form.kat.style.visibility=\"hidden\"; } } sichtbar(); //--> </script> </td> </tr> <tr> <td class=\"Cmite\" width=\"67\"></td> <td class=\"Cnorm\" width=\"99%\"> <input type=\"submit\" value=\"{FSUB}\" name=\"submit\"> </td> </tr> </table> </form> <br /><br /> <b>Merke:</b> <br /> <font class=\"smalfont\"> Soll anstatt dem Kategorie Namen ein Bild angezeigt werden, muss das Kategorie Bild in den Ordner include/images/news/ <br /> Das Bild muss dann genau wie die Kategorie heissen z.B. wenn die Kategorie Allgemein heisst dann muss das Bild Allgemein heissen;)... <br /> Die Endung muss entweder .jpg oder .gif sein bei uns also z.B. Allgemein.jpg </font> </td> <td class=\"Cmite\" width=\"30%\" valign=\"top\"> {MPL} <table width=\"100%\" cellpadding=\"5\" cellspacing=\"0\" border=\"0\"> {EXPLODE}<tr> <td width=\"10%\"><a href=\"#\" name=\"{ID}\"></a><a href=\"#\" onclick=\"delcheck({ID})\"><img src=\"include/images/icon/del.gif\" alt=\"Löschen\" title=\"Löschen\" border=\"0\"></a> <a href=\"?m=news&edit={ID}\"><img src=\"include/images/icon/edit.gif\" alt=\"Verändern\" title=\"Verändern\" border=\"0\"></a></td> <td width=\"90%\">{TITEL}{KOMS}</td> </tr>{EXPLODE}<tr> <td><a href=\"#\" onclick=\"delKcheck({ID},{NID})\"><img src=\"include/images/icon/del.gif\" alt=\"Löschen\" title=\"Löschen\" border=\"0\"></a></td> <td>{NAME}</td> </tr>{EXPLODE} </table> {MPL} </td> </tr> </table>
{STEXT}
<?php /* ìlchClan -------------------------------------------------------------| Copyright : © by Manuel | E-Mail : Webmaster@ilch.de | Internet : www.ilch.de | Version : v.1 | Lastupdate : 13.12.2003 | ------------------------------------------------------------*/ if (!defined(\'ADMIN_BEREICH\')) { die(\"Hacking attempt\"); } //-----------------------------------------------------------| ## ### #### ##### F u n k t i o n e n function getKats ( $akt , $dbprefix ) { $katAR = array(); $kats = \'\'; $erg = mysql_query(\"SELECT kat FROM `\".$dbprefix.\"_news`\"); while ($row = mysql_fetch_object($erg)) { $katAr[] = $row->kat; } $katAr[] = \'Allgemein\'; $katAr = array_unique($katAr); foreach($katAr as $a) { if ($a == $akt) { $sel = \' selected\'; } else { $sel = \'\'; } $kats .= \'<option>\'.$a.\'</option>\'; } return ($kats); } function getGRecht ( $akt , $dbprefix ) { $fur = getFuerAr(); $furListe = \'\'; foreach ( $fur as $k => $v ) { if ($akt == $k) { $sel = \' selected\'; } else { $sel = \'\'; } $furListe .= \'<option\'.$sel.\' value=\"\'.$k.\'\">\'.$v.\'</option>\'; } return ($furListe); } ##### F u n k t i o n #### ### ## # ## ### #### ##### A k t i o n e n if ( !empty($um) ) { if ( $um == \'insert\' ) { # insert $text = addslashes($_POST[\'txt\']); if ( $_POST[\'katLis\'] == \'neu\' ) { $_POST[\'katLis\'] = $_POST[\'kat\']; } mysql_query(\'INSERT INTO `\'.$dbprefix.\'_news` VALUES ( \"\", \"\'.$_POST[\'titel\'].\'\", \"\'.$_SESSION[\'A_na\'].\'\", \"\'.time().\'\", \"\'.$_POST[\'grecht\'].\'\", \"\'.$_POST[\'katLis\'].\'\", \"\", \"\'.$text.\'\" ) \' ); # insert } elseif ( $um == \'change\' ) { # edit $text = addslashes($_POST[\'txt\']); if ( $_POST[\'katLis\'] == \'neu\' ) { $_POST[\'katLis\'] = $_POST[\'kat\']; } mysql_query(\'UPDATE `\'.$dbprefix.\'_news` SET titel = \"\'.$_POST[\'titel\'].\'\", erst = \"\'.$_SESSION[\'A_na\'].\'\", recht = \"\'.$_POST[\'grecht\'].\'\", kat = \"\'.$_POST[\'katLis\'].\'\", text = \"\'.$text.\'\" WHERE id = \"\'.$_POST[\'newsID\'].\'\" LIMIT 1\'); $edit = $_POST[\'newsID\']; } } # edit # del if ( !empty($_GET[\'del\']) ) { mysql_query(\'DELETE FROM `\'.$dbprefix.\'_news` WHERE id = \"\'.$_GET[\'del\'].\'\" LIMIT 1\'); } if ( !empty($_GET[\'Kdel\']) ) { mysql_query(\'DELETE FROM `\'.$dbprefix.\'_koms` WHERE id = \"\'.$_GET[\'Kdel\'].\'\" LIMIT 1\'); } #del ##### A k t i o n e n #### ### ## # ## ### #### ##### h t m l E i n g a b e n if ( empty ($doNoIn) ) { $limit = 10; // Limit if(empty($page)) { $page = 1; } $MPL = makeSites ($page , \'\' , $limit , \"?m=news\" , \'news\' ); $anfang = ($page - 1) * $limit; if ( empty($edit) ) { $FnewsID = \'\'; $Faktion = \'insert\'; $Fueber = \'\'; $Ftxt = \'\'; $Fgrecht = \'\'; $FkatLis = \'\'; $Fsub = \'Eintragen\'; } else { $row = mysql_fetch_object(mysql_query(\'SELECT * FROM `\'.$dbprefix.\'_news` WHERE id = \"\'.$edit.\'\"\')); $FnewsID = $row->id; $Faktion = \'change\'; $Fueber = $row->titel; $Ftxt = stripslashes($row->text); $Fgrecht = $row->recht; $FkatLis = $row->kat; $Fsub = \'Ändern\'; } parse ( array ( \'NEWSID\' => $FnewsID, \'AKTION\' => $Faktion, \'MPL\' => $MPL, \'UEBER\' => $Fueber, \'TXT\' => $Ftxt, \'FUR\' => getGRecht($Fgrecht,$dbprefix), \'KATS\' => getKats($FkatLis,$dbprefix), \'FSUB\' => $Fsub ) , \'admin/news\' , 0 ); # e d i t , d e l e t e $abf = \'SELECT id,titel FROM `\'.$dbprefix.\'_news` ORDER BY time DESC LIMIT \'.$anfang.\',\'.$limit; $erg = mysql_query($abf); while ($row = mysql_fetch_object($erg) ) { $erg1 = mysql_query(\'SELECT * FROM `\'.$dbprefix.\'_koms` WHERE uid = \"NEWS_\'.$row->id.\'\"\'); $komAnz = mysql_num_rows($erg1); if ( $komAnz > 0 ) { $showkoms = \' <a href=\"?m=news&sKoms=\'.$row->id.\'#\'.$row->id.\'\">show Koms</a>\'; } else { $showkoms = \'\'; } parse ( array ( \'ID\' => $row->id, \'KOMS\' => $showkoms, \'TITEL\' => $row->titel ) , \'admin/news\' , 1 ); if ( $komAnz > 0 ) { if ( $_GET[\'sKoms\'] == $row->id ) { while($row1 = mysql_fetch_object($erg1) ) { parse ( array ( \'NID\' => $row->id, \'ID\' => $row1->id, \'NAME\' => $row1->name ) , \'admin/news\' , 2 ); } } } } # e d i t , d e l e t e parse ( array (\'MPL\' => $MPL ) , \'admin/news\' , 3 ); } ##### h t m l E i n g a b e n #### ### ## # ?>
test \"hallo\"
test Warning: Unexpected character in input: \'\\\' (ASCII=92) state=1 in /usr/export/www/vhosts/funnetwork/hosting/whitesnake/include/incs/function.php on line 366 \"hallo\\\"
Geschlossen | ||
Zurück zu Kritik und Verbesserungen |