ich habe das Problem das ich bei diesem Modul nur über den Adminbereich Artikel erstellen kann.
Mach ich das über die Homepage direkt kommt bei mir immer folgende Fehlermeldung:
"Bitte einen Text eingeben"
Warum ist das der Fall? Ich habe da viele Sachen drin stehen aber das wird nicht erkannt.
php
<?php # Copyright by: Manuel Staechele # Edit by: Nero # Support: www.ilch.de defined ('main') or die ( 'no direct access' ); //PHP datei mit den funktionen laden require_once('include/includes/func/articles.php'); switch(escape($menu->get(1),'string')){ default: #-> Kategorien-Pfad erstellen $cid = ( $menu->get(1) ? escape($menu->get(1), 'integer') : 0 ); $erg = db_query("SELECT cat,name,schreibr FROM `prefix_artsys_cats` WHERE id = ".$cid." AND recht >= ".$_SESSION['authright']." ORDER BY pos"); if (db_num_rows($erg) > 0) { $row = db_fetch_assoc($erg); $array = get_cats_array($row['cat'],''); if (!empty($array) ) { $titelzw = get_cats_title($array); $namezw = get_cats_urls($array); } else { $titelzw = ''; $namezw = ''; } $cattitle = ':: '.$titelzw.$row['name']; $catname = '<b> » </b>'.$namezw.$row['name']; } else { if ($cid <> 0) { $title = $allgAr['title'].' :: Artikeln '; $hmenu = '<a class="smalfont" href="?articles">Artikeln</a>'; $design = new design ( $title , $hmenu ); $design->header(); echo 'Die Kategorie wurde nicht gefunden'; $design->footer(1); } $cattitle = ''; $catname = ''; } $schreibrecht = $row['schreibr']; #-> Ausgabe $title = $allgAr['title'].' :: Artikeln '.$cattitle; $hmenu = '<a class="smalfont" href="?articles">Artikeln</a>'.$catname; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('articles' ); $tpl->out(0); $tpl->set('cid', $cid); $erg = db_query("SELECT id,name,`desc` FROM `prefix_artsys_cats` WHERE cat = ".$cid." AND recht >= ".$_SESSION['authright']." ORDER BY pos"); if ( db_num_rows($erg) > 0 ) { $tpl->out(1); $class = 'Cnorm'; while ($row = db_fetch_assoc($erg) ) { $row['anzArt'] = count_art($row['id']); $class = ($class == 'Cmite' ? 'Cnorm' : 'Cmite'); $row['class'] = $class; $tpl->set_ar_out($row,2); } $tpl->out(3); } #->sortieren $felder = array('art_pos','art_viewed','art_time'); $row = artsys_sort_func($menu->get(2),escape($menu->get(3),'string'),$felder,'list_articles'); $sort = $row['sort']; unset($row['sort']); #->sortieren ende //Seiten $limit = $ArtsysArray['anzArt_perSite']; // Limit $page = ($menu->getA(2) == 'p' ? $menu->getE(2) : 1 ); $MPL = db_make_sites($page, " WHERE art_cat = ".$cid." AND art_status = 1 ", $limit, '?articles-'.$cid, 'artsys_articles'); $anfang = ($page - 1) * $limit; //Aussgabe $erg = db_query("SELECT art_id,art_title,art_preview,art_rating,art_image,art_difficult,art_uid,art_viewed,DATE_FORMAT(art_time,'%d.%m.%Y') as datum from `prefix_artsys_articles` WHERE art_cat = ".$cid." AND art_status = 1 ORDER BY $sort LIMIT $anfang, $limit"); $anz_art = db_num_rows($erg); (($anz_art > 0 OR $cid<>0) ? $tpl->set_ar_out($row,4):''); if ( $anz_art > 0 ) { $class = 'Cnorm'; while($row = db_fetch_assoc($erg) ) { $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' ); $row['class'] = $class; $row['art_preview'] = bbcode($row['art_preview']); $row['vorschau'] = ''; $row['float'] = ''; if ($row['art_image'] <> "" AND file_exists($row['art_image'])){ $row['vorschau'] = '<a href="index.php?articles-show-A'.$row['art_id'].'"><img src="'.$row['art_image'].'" alt="'.$row['art_title'].'" title="'.$row['art_title'].'" style="border: medium none ; float: left; padding-right: 5px;"></a>'; } artsys_hexToRgb(array($ArtsysArray['diff_bgcolor'],$ArtsysArray['diff_color'],$ArtsysArray['diff_nonecolor']),'diff'); $row['art_difficult'] = ($row['art_difficult'] > 0?'Schwierigkeit : <img src="include/images/articles/art_diff_image.php?d='.$row['art_difficult'].'" alt="'.$ArtsysArray['diff'][$row['art_difficult']].'" title="'.$ArtsysArray['diff'][$row['art_difficult']].'" ><br />':''); $row['art_rating'] = show_vote_stats($row['art_rating']); $row['username'] = get_n($row['art_uid']); $tpl->set_ar_out($row,5); } }else{ echo ($cid<>0?'<tr><td colspan="3" class="Cnorm">Kein Artikel vorhanden</td></tr>':''); } (((($anz_art > 0 AND $ArtsysArray['allow_defKat'] <> 0)OR $cid<>0) AND $schreibrecht == 1 )?$tpl->set_out('new_art_cat',($cid<>0?"-C$cid":""),6):''); (($anz_art > 0 OR $cid<>0)?$tpl->out(7):""); echo $MPL; $design->footer(); break; case 'show': $fid =$menu->getE(2); $erg = db_query("SELECT art_cat,art_viewed,art_votes,art_rating,art_title,art_uid,art_content,art_id,DATE_FORMAT(art_time,'%d.%m.%Y') as datum FROM `prefix_artsys_articles` artsys LEFT JOIN `prefix_artsys_cats` ON id = art_cat WHERE art_id = ".$fid." AND art_status = 1 AND (".$_SESSION['authright']." <= recht OR (art_cat = 0 AND recht IS NULL))"); if (@db_num_rows($erg) !== 1) { $title = $allgAr['title'].' :: Artikeln '; $hmenu = '<a class="smalfont" href="?articles">Artikeln</a>'; $design = new design ( $title , $hmenu ); $design->header(); echo 'Der Artikel wurde nicht gefunden'; $design->footer(1); } $row = db_fetch_assoc($erg); #-> umfrage einen hoch zaehlen ... if ($menu->getA(3) === 'z' AND is_numeric($menu->getE(3)) AND !isset($_SESSION['artDoVote'][$row['art_id']]) AND loggedin() ) { $_SESSION['artDoVote'][$row['art_id']] = 'o'; $row['art_rating'] = round( ( ($row['art_rating'] * $row['art_votes'] ) + $menu->getE(3) ) / ( $row['art_votes'] + 1 ), 3); $row['art_votes']++; db_query("UPDATE prefix_artsys_articles SET art_rating = ".$row['art_rating'].", art_votes = ".$row['art_votes']." WHERE art_id = ".$fid); } #-> visits einen hoch zaehlen ... if (!isset ($_SESSION['artDoKlick'][$row['art_id']]) ) { $_SESSION['artDoKlick'][$row['art_id']] = 'o'; db_query("UPDATE prefix_artsys_articles SET art_viewed = art_viewed +1 WHERE art_id = ".$fid); } #-> Kategorien-Pfad erstellen $cid = $row['art_cat']; $erg1 = db_query("SELECT id,cat,name FROM `prefix_artsys_cats` WHERE id = ".$cid); if (db_num_rows($erg1)>0){ $row1 = db_fetch_assoc($erg1); $array = get_cats_array($row1['cat'],''); if (!empty($array)){ $titelzw = get_cats_title($array); $namezw = get_cats_urls($array); }else{ $titelzw = ''; $namezw = ''; } $cattitle = ':: '.$titelzw.$row1['name'].' :: '.$row['art_title']; $catname = '<b> » </b>'.$namezw.'<a class="smalfont" href="?articles-'.$row1['id'].'">'.$row1['name'].'</a>'; //<b> » </b>'.$row['name'].' '.$row['version']; } else { $cattitle = ''; $catname = ''; } if ($menu->getA(2) === 'A'){ #-> Artikel-Page setzen $art_page = ($menu->getA(3) === 'P'?$menu->getE(3):1); #-> Anz kommentare holen $comAnz= db_result(db_query("SELECT COUNT(ID) FROM `prefix_koms` WHERE uid = ".$row['art_id']." AND cat = 'ARTICLES'"),0); #-> Ausgabe $page = make_art_pages($row['art_content'],$art_page,$fid); $title = $allgAr['title'].' :: Artikeln '.$cattitle; $hmenu = '<a class="smalfont" href="?articles">Artikeln</a>'.$catname; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('articles' ); $row['creater'] = get_n($row['art_uid']); $row['comOderShow'] = ' <a href="index.php?articles-show-C'.$row['art_id'].'">'.$comAnz.' '.$lang['comments'].'</a>'; $row['art_title'] .= (($row['art_uid'] == $_SESSION['authid'] OR has_right(-9, 'articles'))? ' <a href="?articles-write-E'.$row['art_id'].'"><img border="0" src="include/images/icons/edit.gif" title="editieren" alt="editieren"></a>':''); $row['art_rating'] = show_vote_stats($row['art_rating']); show_vote($row['art_id']);//Vote ausgeben $tpl->set_ar_out($row,8); $tpl->set_ar_out($page,9); $tpl->out(13); }elseif($menu->getA(2) === 'C'){ # kommentar add if (!empty($_POST['name']) AND !empty($_POST['text']) AND ($ArtsysArray['user_comment_right'] === 2 OR loggedin())) { $_POST['text'] = escape($_POST['text'],'textarea'); $_POST['name'] = escape($_POST['name'],'string'); db_query("INSERT INTO `prefix_koms` VALUES ('',".$fid.",'ARTICLES','".$_POST['name']."','".$_POST['text']."')"); } # kommentar loeschen if ($menu->getA(3) == 'd' AND is_numeric($menu->getE(3)) AND is_admin()) { $kommentar_id = escape($menu->getE(3),'integer'); db_query("DELETE FROM `prefix_koms` WHERE uid = ".$fid." AND cat = 'ARTICLES' AND id = ".$kommentar_id); } #-> Ausgabe $title = $allgAr['title'].' :: Artikeln '.$cattitle; $hmenu = '<a class="smalfont" href="?articles">Artikeln</a>'.$catname; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('articles' ); $row['creater'] = get_n($row['art_uid']); $row['comOderShow'] = ' <a href="?articles-show-A'.$row['art_id'].'">Artikel lesen</a>'; $row['art_title'] .= (($row['art_uid'] == $_SESSION['authid'] OR has_right(-9, 'articles'))? ' <a href="?articles-write-E'.$row['art_id'].'"><img border="0" src="include/images/icons/edit.gif" title="editieren" alt="editieren"></a>':''); $row['art_rating'] = show_vote_stats($row['art_rating']); show_vote($row['art_id'],'C');//Vote ausgeben $tpl->set_ar_out($row,8); #-> Kommentar insertfields if ($ArtsysArray['user_comment_right'] == 2 OR loggedin()){ $row_ins = array('uname'=>get_n($_SESSION['authid']),'art_id'=>$row['art_id']); $tpl->set_ar_out($row_ins,10); }elseif($ArtsysArray['user_comment_right'] != 0){ $tpl->set_out('writeout','du musst eingelogt sein um einen Kommentare zu schreiben',11); } #-> kommentar show #->sortieren $felder = array('id'); $row2 = artsys_sort_func($menu->get(3),escape($menu->get(4),'string'),$felder,'com_articles'); $sort = $row2['sort']; unset($row2['sort']); #->sortieren ende //Seiten $erg2 = db_query("SELECT text, name, id FROM `prefix_koms` WHERE uid = ".$row['art_id']." AND cat = 'ARTICLES' ORDER BY $sort"); $ergAnz1 = db_num_rows($erg2); $limit = $ArtsysArray['anzCom_perSite']; // Limit $page = ($menu->getA(3) == 'p' ? $menu->getE(3) : 1 ); $MPL = db_make_sites($page, "", $limit, '?articles-show-C'.$row['art_id'],"",$ergAnz1); $anfang = ($page - 1) * $limit; //Aussgabe $erg2 = db_query("SELECT text, name, id FROM `prefix_koms` WHERE uid = ".$row['art_id']." AND cat = 'ARTICLES' ORDER BY $sort LIMIT $anfang,$limit"); if ( $ergAnz1 == 0 ) { $tpl->set_out('writeout',$lang['nocomments'],11); $tpl->out(13); }elseif($ArtsysArray['user_comment_right'] == 0 AND !loggedin()){ $tpl->set_out('writeout','du musst eingelogt sein um die Kommentare zu sehen, bzw. einen zu schreiben',11); $tpl->out(13); }else{ echo '<tr><td class="Cnorm"><a href="index.php?articles-show-C'.$row['art_id'].'-sort-'.$row2['s0'].'">'.ucfirst(substr($row2['s0'],1)).' sortieren</a> <img src="include/images/icons/pfeil'.$row2['p0'].'.gif" border="0"></td></tr>'; $rtung = $row2['s0']; $zahl = ($rtung == '0auf'?($ergAnz1-$anfang):($anfang + 1)); while ($row2 = db_fetch_assoc($erg2)) { $row2['text'] = bbcode(trim($row2['text'])); if (is_admin()) { $row2['text'] .= '<a href="index.php?articles-show-C'.$row['art_id'].'-d'.$row2['id'].'"><img src="include/images/icons/del.gif" alt="löschen" border="0" title="löschen" /></a>'; } $tpl->set_ar_out(array('name' => $row2['name'], 'text' => $row2['text'], 'zahl' => $zahl ),12); ($rtung == '0auf'?$zahl--:$zahl++); } $tpl->out(13); echo $MPL; } # kommentar show ende }else{ $title = $allgAr['title'].' :: Artikeln '; $hmenu = '<a class="smalfont" href="?articles">Artikeln</a>'; $design = new design ( $title , $hmenu ); $design->header(); echo 'Unbekannter Befehl'; } $design->footer(); break; case 'write': if (has_right(-9, 'articles') AND $ArtsysArray['hasright_thenAdmin'] == 1){ $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); if($menu->getA(2) === 'E') header("Location: http://$host$uri/admin.php?articles-editArt-E".$menu->getE(2)); else header("Location: http://$host$uri/admin.php?articles-newArt-C".$menu->getE(2)); exit; } $title = $allgAr['title'].' :: Artikeln :: erstellen/überarbeiten'; $hmenu = '<a class="smalfont" href="?articles">Artikeln</a><b> » </b>erstellen/überarbeiten'; $design = new design ( $title , $hmenu ); $design->header(); if($_SESSION['authright'] <= $ArtsysArray['write_right']){ if ($menu->getA(2) === 'E'){ if (!$row = @db_fetch_assoc(db_query('SELECT art_pos, art_id, art_cat, art_title, art_content, art_preview, art_uid, art_image, art_difficult FROM `prefix_artsys_articles` WHERE art_id = '.$menu->getE(2)))){ wd('?articles','Artikel ist nicht vorhanden',3); $design->footer(1); } $row['mod_title'] = 'Artikel editieren'; }else{ $row = array('art_title'=>'', 'art_cat'=>$menu->getE(2), 'art_content'=>'', 'art_preview'=>'','art_id'=>'','art_image'=>'a897s','mod_title'=>'Neuer Artikel schreiben','art_uid'=>'','art_difficult'=>''); } if (isset($_POST['submit'])){#-> Artikel speichern oder updaten if (isset($_POST['artID']) AND $_POST['artID'] == $menu->getE(2)){#-> Artikel ändern $insArr = array('txt'=>'txt','titel'=>'str','art_preview'=>'str','cat'=>'','artID'=>'','difficult'=>''); $insert = escape_arrays($_POST,$insArr); cat_exist_and_has_right($insert['cat'],$ArtsysArray['allow_defKat'],'front',$row['art_uid'],$row['art_cat']);#-> auf Recht prüfen if ($row['art_cat'] <> $insert['cat']){#-> Schauen ob neue Kategorie $pos = db_result(db_query("SELECT COUNT(*) FROM `prefix_artsys_articles` WHERE art_cat = ".$insert['cat']),0); db_query("UPDATE `prefix_artsys_articles` SET art_pos = art_pos - 1 WHERE art_pos > ".$row['art_pos']." AND art_cat = ".$row['art_cat']); }else{ $pos = $row['art_pos']; } db_query('UPDATE `prefix_artsys_articles` SET art_status = 0, art_cat = '.$insert['cat'].', art_pos = '.$pos.', art_title = "'.$insert['titel'].'", art_content = "'.$insert['txt'].'", art_preview = "'.$insert['art_preview'].'", art_difficult = '.$insert['difficult'].' WHERE art_id = '.$insert['artID'].' LIMIT 1'); $imageMsg = $ArtsysArray['vballow'] == 1?config_art_image($insert['artID']):''; #-> Angaben für PM und Weiterleitung $wd = array('pfad'=>'?articles'.($insert['cat'] == 0?'':'-'.$insert['cat']),'msg'=>'Artikel erfolgreich geändert'); $msg = "Artikel ".$row['art_title']." wurde geändert in: \n Titel: ".$insert['titel']." \n Kategorie: "; $msg_titel = 'Artikel wurde editiert'; }else{#-> Neuer Artikel einfügen $insArr = array('txt'=>'txt','titel'=>'str','art_preview'=>'str','cat'=>'','difficult'=>''); $insert = escape_arrays($_POST,$insArr); cat_exist_and_has_right($insert['cat'],$ArtsysArray['allow_defKat'],'front');#-> auf Recht prüfen $pos = db_result(db_query("SELECT COUNT(*) FROM `prefix_artsys_articles` WHERE art_cat = ".$insert['cat']),0); db_query('INSERT INTO `prefix_artsys_articles` (art_uid,art_cat,art_pos,art_time,art_title,art_content,art_preview,art_difficult) VALUES ('.$_SESSION['authid'].','.$insert['cat'].','.$pos.',NOW(),"'.$insert['titel'].'","'.$insert['txt'].'","'.$insert['art_preview'].'",'.$insert['difficult'].')'); $imageMsg = $ArtsysArray['vballow'] == 1?config_art_image(db_last_id()):''; #-> Angaben für PM und Weiterleitung $wd = array('pfad'=>'?articles'.($insert['cat'] == 0?'':'-'.$insert['cat']),'msg'=>'Artikel erfolgreich eingefügt'); $msg = "Es wurde ein neuer Artikel eingetragen: \n \n Titel: ".$insert['titel']." \n Kategorie: "; $msg_titel = 'Neuer Artikel'; } if (!has_right(-9, 'articles')){ $row_art = db_fetch_assoc(db_query("SELECT pm,name FROM `prefix_artsys_cats` WHERE id = ".$insert['cat'])); if ($row_art['pm']<>0 OR ($ArtsysArray['allow_defKat']<>0 AND $ArtsysArray['defKat_uid']<>0)){ sendpm($_SESSION['authid'],$row_art['pm'],$msg_titel,$msg .= $row_art['name']." \n \n und wartet darauf freigeschaltet zu werden! \n\n Das Artikelmodul ;)"); } } wd($wd['pfad'],$wd['msg'].' <br> <br> '.$imageMsg,3); }else{ if (isset($_POST['preview'])){#-> alles für die Vorschau aufbereiten $art = array('txt'=>trim(escape($_POST['txt'],'textarea')),'pref'=>trim(escape($_POST['art_preview'],'textarea')),'titel'=>trim($_POST['titel']),'display'=>''); $art['preview'] = MAT_for_priview(bbcode(unescape($art['txt'])),unescape($art['pref'])); $row['art_cat'] = escape($_POST['cat'],'integer'); $row['art_difficult'] = escape($_POST['difficult'],'integer'); }else{ $art = array('txt'=>$row['art_content'],'pref'=>$row['art_preview'],'titel'=>$row['art_title'],'display'=>'style="display:none;"','preview'=>''); } cat_exist_and_has_right($row['art_cat'],$ArtsysArray['allow_defKat'],'front',$row['art_uid']); $tpl = new tpl ('articles_write' ); $out = array('modul_titel' =>$row['mod_title'], 'show_preview'=>$art['preview'], 'art_txt' =>escape_for_fields(unescape($art['txt'])), 'preview' => escape_for_fields(unescape($art['pref'])), 'art_titel' =>$art['titel'], 'display' =>$art['display'], 'smilies' =>getsmilies(), 'kat' =>($menu->getA(2) <> 'E'?($row['art_cat'] <> 0?'-'.$row['art_cat']:''):'-show-A'.$menu->getE(2)), 'cat_list' =>($ArtsysArray['allow_defKat']<>0?'<option value="0">Keine</option>':'').dblistee($row['art_cat'],"SELECT id,name FROM `prefix_artsys_cats` WHERE (recht >= ".$_SESSION['authright']." AND schreibr = 1) OR id = ".$row['art_cat']." ORDER BY name ASC"), 'artID' =>($row['art_id']<>''?'<input type="hidden" name="artID" value="'.$row['art_id'].'" />':''), 'text_cols' =>$ArtsysArray['frontend_textarea_cols'], 'text_rows' =>$ArtsysArray['frontend_textarea_rows'], 'TXTL' =>$ArtsysArray['frontend_textarea_min_lenge'], 'art_image_upload' => ($ArtsysArray['vballow'] == 1?html_art_image($row['art_image']):""), 'art_difficult'=>html_art_diff($row['art_difficult'],"'front'"), ); $tpl->set_ar_out($out,0); } }else{wd('?articles','Keine Berechtigung',3);} $design->footer(); break; case 'search': $suche = ''; if (isset($_POST['search'])){ $suche = $_POST['search_after'].$_POST['search']; }elseif (!empty($_GET['articles-search'])){ $suche = $_GET['articles-search']; } $sucheNach = substr($suche,0,1); $suche = stripslashes(escape(substr($suche,1), 'string')); $title = $allgAr['title'].' :: Artikeln :: Suchen '.(!empty($suche)?':: nach: '.htmlentities($suche):""); $hmenu = '<a class="smalfont" href="?articles">Artikeln</a><b> » </b><a class="smalfont" href="index.php?articles-search">Suchen</a>'.(!empty($suche)?'<b> » </b> nach: '.htmlentities($suche):""); $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl ('articles_write'); $out = array( 'search'=>$suche, 'a_title'=> (isset($_REQUEST['after_title'])?'checked="checked"':""), 'a_preview'=> (isset($_REQUEST['after_preview'])?'checked="checked"':""), 'a_txt'=> (isset($_REQUEST['after_txt'])?'checked="checked"':""), ); $tpl->set_ar_out($out,1); if (!empty($suche)){ #-> Seiten einteilung $page = 1; $limit = 25; // Limit if (isset($_GET['page'])) { $page = trim(str_replace('-p','',$_GET['page'])); } $anfang = ($page - 1) * $limit; #-> Seiten einteilung Ende $x = time() - (3600 * 24 * 360); if ($sucheNach == '1' AND $uid = @db_result(db_query("SELECT id FROM prefix_user WHERE name = BINARY '".$suche."'"),0)){// Nach Autor suchen $sucheSql = "art_uid = $uid AND "; $sucheSucc = true; }else{ //Text suche echo $sucheNach == '1'?"<span style='color:#FF0000; background:#000000;'>User '$suche' wurde nicht gefunden </span>":""; $suche = str_replace('-','',$suche); $suche = str_replace('=','',$suche); $suche = str_replace('&','',$suche); $searar = explode(' ', $suche); $sucheSql = ''; foreach($searar as $elem) { $str = str_replace('\'','',$elem); $str = str_replace('"','',$str); $str = addslashes($str); if (!empty($str)) { $sucheSqlTeil = ''; $sucheSqlTeil .= (isset($_REQUEST['after_title'])?" art_title LIKE '%$str%' OR ":""); $sucheSqlTeil .= (isset($_REQUEST['after_preview'])?" art_preview LIKE '%$str%' OR ":""); $sucheSqlTeil .= (isset($_REQUEST['after_txt'])?" art_content LIKE '%$str%' OR ":""); $sucheSql .= ($sucheSqlTeil <> ''?" ( $sucheSqlTeil 1 = 2 ) AND ":" "); } } } $sql = "SELECT DISTINCT art_id, art_title as titel FROM `prefix_artsys_articles` artsys LEFT JOIN `prefix_artsys_cats` ON id = art_cat WHERE ($sucheSql 1 = 1) AND (art_time >= $x) AND art_status = 1 AND (".$_SESSION['authright']." <= recht OR (art_cat = 0 AND recht IS NULL)) ORDER BY art_time DESC"; $sAnz = db_num_rows(db_query($sql)); if ((($sucheNach == '1' AND isset($sucheSucc)) OR $sucheNach == '0') AND $sAnz > 0){ $tpl->set('sAnz',$sAnz); $url = ''; $url .= (isset($_REQUEST['after_title'])?"&after_title=1":""); $url .= (isset($_REQUEST['after_preview'])?"&after_preview=1":""); $url .= (isset($_REQUEST['after_txt'])?"&after_txt=1":""); $tpl->set_out('MPL',$MPL = db_make_sites ($page , "" , $limit , 'index.php?articles-search='.urlencode($suche).$url.'&page=' , "", $sAnz),2); echo $sucheNach == 1 ? ($sAnz > 1?'Folgende Artikel':'Folgender Artikel')." wurden von $suche geschrieben:":"'$suche' wurde in ".($sAnz > 1?'folgenden Artikeln':'folgendem Artikel')." gefunden:"; echo "\n <br><br> \n"; $sql .= " LIMIT ".$anfang.",".$limit; $erg = db_query($sql) or die(mysql_error()); $class = ''; WHILE($row = db_fetch_assoc($erg)){ $class = ($class == 'Cmite' ? 'Cnorm' : 'Cmite' ); $row['class'] = $class; if ($sucheNach == '1'){ $row['titel'] = $suche.' || '.$row['titel']; } $tpl->set_ar_out($row,3); } $tpl->out(4); }elseif($sucheNach == '0'){ echo "es wurde keinen Artikel gefunden"; } } $design->footer(); break; } ?>
html
<script type="text/javascript" src="include/includes/js/articles.js"></script> <script type="text/javascript" src="include/includes/js/bbcode.js"></script> <style type="text/css"> a, a:visited{ text-decoration:none; color:#0000FF; } a:hover{ color:#92ADC9; } </style> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td><img src="include/images/icons/admin/articles.png" /></td> <td width="30"></td><td valign="bottom"><h1>{modul_titel}</h1></td> </tr> </table> <table cellpadding="3" cellspacing="1" border="0" class="border"> <tr> <td class="Cmite"> Links:</td> <td class="Cdark"> <b><a href="admin.php?articles{kat}">zurück</a></b> </td> </tr> </table> <br /> <br /> <table width="100%" border="0" cellspacing="1" class="border" cellpadding="5" {display}> <tr> <th colspan="2" height="20" class="Chead"> <b>{_lang_preview}</b> </th> </tr><tr> <td class="Cmite"> {show_priview} </td></tr> </table> <br /><br /> <form method="POST" name="form" enctype="multipart/form-data" onsubmit="return sub_art();"> <input type="hidden" name="artID" value="{artID}" /> <input type="hidden" name="art_preview" value="{preview}" /> <table cellpadding="2" cellspacing="1" border="0" class="border" /> <tr> <td class="Cmite" align="left" width="120"><strong>Kategorie : </strong></td> <td class="Cnorm"><select name="cat">{cat_list}</select></td> </tr><tr> <td class="Cmite" align="left"><strong>Titel : </strong></td> <td class="Cnorm"><input size="80" maxlength="80" type="text" name="titel" value="{art_titel}"></td> </tr><tr> <td class="Cmite" align="left"><strong>Artikel : </strong></td> <td class="Cnorm"> <!-- BB Code START --> <a href="javascript:simple('b')"><img style="padding-left: 4%; float: left;" src="include/images/icons/button.bold.gif" alt="b" title="{_lang_bold}" border="0"></a> <a href="javascript:simple('i')"><img style="padding-left: 4%; float: left;" src="include/images/icons/button.italic.gif" alt="i" title="{_lang_italic}" border="0"></a> <a href="javascript:simple('u')"><img style="padding-left: 4%; float: left;" src="include/images/icons/button.underline.gif" alt="u" title="{_lang_underlined}" border="0"></a> <a href="javascript:simple('code')"><img style="padding-left: 4%; float: left;" src="include/images/icons/button.code.gif" alt="Code" title="{_lang_code}" border="0"></a> <a href="javascript:simple_liste()"><img style="padding-left: 4%; float: left;" src="include/images/icons/button.insertunorderedlist.gif" alt="{_lang_list}" title="{_lang_list}" border="0"></a> <a href="javascript:simple('url')"><img style="padding-left: 4%; float: left;" src="include/images/icons/button.link.gif" alt="Url" title="{_lang_link}" border="0"></a> <a href="javascript:simple('img')"><img style="padding-left: 4%; float: left;" src="include/images/icons/button.image.gif" alt="{_lang_picture}" title="{_lang_picture}" border="0"></a> <a href="javascript:new_site()"><img style="padding-left: 4%; float: left;" src="include/images/icons/button.artTitel.gif" alt="Neue Seite" title="Neue Seite" border="0"></a> <!-- BB Code ENDE --> </td> </tr><tr> <td valign="top" class="Cmite">{smilies}</td> <td class="Cnorm"> <div id="links_area" style="width:100%;">Loading ... </div> <hr /> <div id="name_area" style="text-align:left;float:left;">Vorschau</div> <div style="text-align:right;float:right;"> <a href="javascript:del_site()"><img src="include/images/icons/del.gif" alt="Seite löschen" title="Seite löschen" border="0"></a> <a href="javascript:edit_site_name()"><img src="include/images/icons/edit.gif" alt="Seiten-Namen ändern" title="Seiten-Namen ändern" border="0"></a> </div> <br style="clear:both;" /> <textarea name="txt" rows="20" cols="85" tabindex="2">{art_txt}</textarea> </td> {art_difficult} {art_image_upload} </tr><tr> <td class="Cmite" align="left"<strong>Artikel direkt freigeben : </strong></td> <td class="Cnorm"><input type="checkbox" name="art_stat" value="1"></td> </tr><tr class="Cdark"> <td></td> <td><input type="submit" name="priview" value="Vorschau" accesskey='v' /><input type="submit" value="Speichern" name="submit" accesskey='s' /></td> </tr> </table> </form> <br /><br /> <div class="info_box"> <b>Neue Seite</b> <br /> <span class="smalfont"> Um eine neue Seite im Artikel anzufangen, einfach den Button "Neue Seite" betätigen. </span> <br /> <br /> <b>Seiten-Titel Bearbiten</b> <br /> <span class="smalfont"> Man kann über den Edit-Stift den Titel der Seite ändern und über das Delet-Zeichen die Seite löschen.<br /> Wenn man "default" bei dem erstellen einer Seite im Eingabefenster lässt, wird die numerische Darstellung der Seitenlinks bei der Seitendarstellung im Frontend verwendet! </span> </div>
verwendete ilchClan Version: 1.1 O