/**
 * Vytvoreni nahledu clanku pro vypis
 * @param array $art pole s daty clanku vcetne cat_title_seo
 * @param bool $info vypisovat radek s informacemi 1/0
 * @param bool $perex vypisovat perex 1/0
 * @param int|null pocet komentaru (null = nezobrazi se)
 * @return string
 */
function _articlePreview($art, $info = true, $perex = true, $comment_count = null)
{
    // podpora nahrazeni
    static $overload;
    if (null === $overload) {
        _extend('call', 'article.preview', array('callback' => &$overload));
        if (null === $overload) {
            $overload = false;
        }
    }
    if (false !== $overload) {
        return call_user_func($overload, $art, $info, $perex, $comment_count);
    }
    global $_lang;
    // titulek
    $link = _linkArticle($art['id'], $art['title_seo'], $art['cat_title_seo']);
    $output = "<h2 class='list-title'><a href='" . $link . "'>" . $art['title'] . "</a></h2>";
    // perex a obrazek
    if ($perex == true) {
        $output .= "<p class='list-perex'>" . (isset($art['picture_uid']) ? "<a href='" . $link . "'><img class='list-perex-image' src='" . _pictureStorageGet(_indexroot . 'pictures/articles/', null, $art['picture_uid'], 'jpg') . "' alt='" . $art['title'] . "' /></a>" : '') . $art['perex'] . "</p>";
    }
    // info
    if ($info == true) {
        // pocet komentaru
        if ($art['comments'] == 1 and _comments and $comment_count !== null) {
            $info_comments = _template_listinfoseparator . "<span>" . $_lang['article.comments'] . ":</span> " . $comment_count;
        } else {
            $info_comments = "";
        }
        $output .= "\n  <div class='list-info'>\n  <span>" . $_lang['article.author'] . ":</span> " . _linkUser($art['author'], null, true) . _template_listinfoseparator . "<span>" . $_lang['article.posted'] . ":</span> " . _formatTime($art['time']) . _template_listinfoseparator . "<span>" . $_lang['article.readed'] . ":</span> " . $art['readed'] . "x" . $info_comments . "</div>";
    } elseif ($perex && isset($art['picture_uid'])) {
        $output .= "<div class='cleaner'></div>\n";
    }
    return $output . "\n";
}
function _HCM_recentposts($limit = null, $stranky = "", $typ = null)
{
    // priprava
    $result = "";
    if (isset($limit) and intval($limit) >= 1) {
        $limit = abs(intval($limit));
    } else {
        $limit = 10;
    }
    // filtr cisel sekci, knih nebo clanku
    if (isset($stranky) and isset($typ)) {
        $rtype = intval($typ);
        if ($rtype < 1 or $rtype > 3) {
            $rtype = 1;
        }
        $rroots = "(" . _sqlWhereColumn("home", $stranky) . ") AND type=" . $rtype;
    } else {
        $rroots = "type!=4 AND type!=6 AND type!=7";
    }
    $query = DB::query("SELECT id,type,home,xhome,subject,author,guest,time,text FROM `" . _mysql_prefix . "-posts` WHERE " . $rroots . " ORDER BY id DESC LIMIT " . $limit);
    while ($item = DB::row($query)) {
        // nacteni titulku a odkazu na stranku
        switch ($item['type']) {
            case 1:
            case 3:
                $hometitle = DB::query_row("SELECT title,title_seo FROM `" . _mysql_prefix . "-root` WHERE id=" . $item['home']);
                $homelink = _linkRoot($item['home'], $hometitle['title_seo']);
                break;
            case 2:
                $hometitle = DB::query_row("SELECT art.title,art.title_seo,cat.title_seo AS cat_title_seo FROM `" . _mysql_prefix . "-articles` AS art JOIN `" . _mysql_prefix . "-root` AS cat ON(cat.id=art.home1) WHERE art.id=" . $item['home']);
                $homelink = _linkArticle($item['home'], $hometitle['title_seo'], $hometitle['cat_title_seo']);
                break;
            case 5:
                if ($item['xhome'] == -1) {
                    $tid = $item['id'];
                    $hometitle = array("title" => $item['subject']);
                } else {
                    $tid = $item['xhome'];
                    $hometitle = DB::query_row("SELECT subject FROM `" . _mysql_prefix . "-posts` WHERE id=" . $item['xhome']);
                    $hometitle = array("title" => $hometitle['subject']);
                }
                $homelink = "index.php?m=topic&amp;id=" . $tid;
                break;
        }
        // nacteni jmena autora
        if ($item['author'] != -1) {
            $authorname = _linkUser($item['author'], null, true, true);
        } else {
            $authorname = $item['guest'];
        }
        $hometitle = $hometitle['title'];
        $result .= "\n<h2 class='list-title'><a href='" . $homelink . "'>" . $hometitle . "</a></h2>\n<p class='list-perex'>" . _cutStr(strip_tags(_parsePost($item['text'])), 256) . "</p>\n<div class='list-info'>\n<span>" . $GLOBALS['_lang']['global.postauthor'] . ":</span> " . $authorname . _template_listinfoseparator . "\n<span>" . $GLOBALS['_lang']['global.time'] . ":</span> " . _formatTime($item['time']) . "\n</div>\n\n";
    }
    return $result;
}
Example #3
0
function _HCM_linkart($id = null, $text = null, $nove_okno = false)
{
    if (null === $text) {
        $query = DB::query_row('SELECT art.title,art.title_seo,cat.title_seo AS cat_title_seo FROM `' . _mysql_prefix . '-articles` AS art JOIN `' . _mysql_prefix . '-root` AS cat ON(cat.id=art.home1) WHERE art.' . (is_numeric($id) ? 'id' : 'title_seo') . '=' . DB::val($id));
        if (false === $query) {
            return '{' . _htmlStr($id) . '}';
        }
        $text = $query['title'];
    } else {
        $query = array('title_seo' => null, 'cat_title_seo' => null);
    }
    return "<a href='" . _linkArticle($id, $query['title_seo'], $query['cat_title_seo']) . "'" . ($nove_okno ? ' target="_blank"' : '') . ">" . $text . "</a>";
}
}
$id = intval($_GET['redir_id']);
$type = intval($_GET['redir_type']);
if ($type !== 1) {
    $type = 0;
}
/* ---  test existence  --- */
if (0 === $type) {
    $query = DB::query('SELECT `id`,`title_seo` FROM `' . _mysql_prefix . '-root` WHERE `id`=' . $id);
} else {
    $query = DB::query('SELECT art.`id`,art.`title_seo`,cat.`title_seo` AS cat_title_seo FROM `' . _mysql_prefix . '-articles` AS art JOIN `' . _mysql_prefix . '-root` AS cat ON(cat.id=art.home1) WHERE art.`id`=' . $id);
}
$query = DB::row($query);
if ($query === false) {
    // neexistuje
    $_GET = array('m' => '404');
    define('_index_noinit', true);
    require _indexroot . 'index.php';
    die;
}
/* ---  presmerovani  --- */
// sestavit adresu
$redir = $type === 0 ? _linkRoot($query['id'], $query['title_seo']) : _linkArticle($query['id'], $query['title_seo'], $query['cat_title_seo']);
unset($_GET['redir_id'], $_GET['redir_type']);
if (!empty($_GET)) {
    $redir = _addGetToLink($redir, _buildQuery($_GET), false);
}
// poslat hlavicky
header("HTTP/1.1 301 Moved Permanently");
header("Location: " . _url . "/" . $redir);
die;
Example #5
0
}
/* ---  hodnoceni  --- */
// nacteni promennych
_checkKeys('_POST', array('id'));
$id = intval($_POST['id']);
$article_exists = false;
// kontrola promennych a pristupu
$continue = false;
$query = DB::query("SELECT art.id,art.title_seo,art.time,art.confirmed,art.public,art.home1,art.home2,art.home3,art.rateon,cat.title_seo AS cat_title_seo FROM `" . _mysql_prefix . "-articles` AS art  JOIN `" . _mysql_prefix . "-root` AS cat ON(cat.id=art.home1) WHERE art.id=" . $id);
if (DB::size($query) != 0) {
    $article_exists = true;
    $query = DB::row($query);
    if (isset($_POST['r'])) {
        $r = round($_POST['r'] / 10) * 10;
        if (_iplogCheck(3, $id) and _xsrfCheck() and $query['rateon'] == 1 and _articleAccess($query) == 1 and $r <= 100 and $r >= 0) {
            $continue = true;
        }
    }
}
// zapocteni hodnoceni
if ($continue) {
    DB::query("UPDATE `" . _mysql_prefix . "-articles` SET ratenum=ratenum+1,ratesum=ratesum+" . $r . " WHERE id=" . $id);
    _iplogUpdate(3, $id);
}
// presmerovani
if ($article_exists) {
    $aurl = _linkArticle($id, $query['title_seo']) . "#ainfo";
} else {
    $aurl = "";
}
header("location: " . _url . '/' . $aurl);
Example #6
0
 switch ($types[$i]) {
     // komentar sekce / prispevek knihy
     case 1:
     case 3:
         $link = _linkRoot($r['home'], $r['title_seo']);
         if ($r['subject'] === '' || $r['subject'] === '-') {
             $title = $r['title'];
         } else {
             $title = $r['subject'];
         }
         $page = _resultPagingGetItemPage(_commentsperpage, "posts", "id>" . $r['id'] . " AND type=" . $types[$i] . " AND xhome=-1 AND home=" . $r['home']);
         break;
         // komentar clanku
     // komentar clanku
     case 2:
         $link = _linkArticle($r['home'], $r['title_seo'], $r['cat_title_seo']);
         if ($r['subject'] === '' || $r['subject'] === '-') {
             $title = $r['title'];
         } else {
             $title = $r['subject'];
         }
         $page = _resultPagingGetItemPage(_commentsperpage, "posts", "id>" . $r['id'] . " AND type=2 AND xhome=-1 AND home=" . $r['home']);
         break;
         // prispevek na foru
     // prispevek na foru
     case 5:
         if ($r['xhome'] != -1) {
             $link = 'index.php?m=topic&amp;id=' . $r['xhome'];
             $page = _resultPagingGetItemPage(_commentsperpage, "posts", "id<" . $r['id'] . " AND type=5 AND xhome=" . $r['xhome'] . " AND home=" . $r['home']);
             $title = $r['topic_subject'];
         } else {
    $returnid = $_GET['returnid'];
    if ($returnid != "load") {
        $returnid = intval($returnid);
    }
    $returnpage = intval($_GET['returnpage']);
    $query = DB::query("SELECT art.*,cat.title_seo AS cat_title_seo FROM `" . _mysql_prefix . "-articles` AS art JOIN `" . _mysql_prefix . "-root` AS cat ON(cat.id=art.home1) WHERE art.id=" . $id . _admin_artAccess('art'));
    if (DB::size($query) != 0) {
        $query = DB::row($query);
        $readed_counter = $query['readed'];
        if ($returnid == "load") {
            $returnid = $query['home1'];
        }
        $backlink = "index.php?p=content-articles-list&amp;cat=" . $returnid . "&amp;page=" . $returnpage;
        $actionplus = "&amp;id=" . $id . "&amp;returnid=" . $returnid . "&amp;returnpage=" . $returnpage;
        $submittext = "global.savechanges";
        $artlink = " <a href='" . _indexroot . _linkArticle($query['id'], $query['title_seo'], $query['cat_title_seo']) . "' target='_blank'><img src='images/icons/loupe.png' alt='prev' /></a>";
        $new = false;
        $continue = true;
    }
} else {
    $backlink = "index.php?p=content-articles";
    $actionplus = "";
    $submittext = "global.create";
    $artlink = "";
    $new = true;
    $id = -1;
    $readed_counter = 0;
    $query = array("id" => -1, "title" => "", "title_seo" => "", "keywords" => "", "description" => "", "perex" => "", "picture_uid" => null, "content" => "", "infobox" => "", "author" => _loginid, "home1" => -2, "home2" => -1, "home3" => -1, "time" => time(), "visible" => 1, "public" => 1, "comments" => 1, "commentslocked" => 0, "showinfo" => 1, "confirmed" => 0, "rateon" => 1, "readed" => 0);
    _extend('call', 'admin.article.default', array('data' => &$query));
    if (isset($_GET['new_cat'])) {
        $query['home1'] = (int) $_GET['new_cat'];
Example #8
0
                            $homelink = "index.php?m=topic&amp;id=" . $item['id'];
                        } else {
                            $homelink = "index.php?m=topic&amp;id=" . $item['xhome'];
                        }
                        break;
                }
                // ulozeni zaznamu
                $feeditems[] = array($author . ": " . $item['subject'], $homelink . "#posts", _cutStr(strip_tags(_parsePost($item['text'])), 255, false), $item['time']);
            }
            break;
            // nejnovejsi clanky
        // nejnovejsi clanky
        case 4:
            $items = DB::query("SELECT art.id,art.time,art.confirmed,art.public,art.home1,art.home2,art.home3,art.title,art.title_seo,art.perex,cat.title_seo AS cat_title_seo FROM `" . _mysql_prefix . "-articles` AS art JOIN `" . _mysql_prefix . "-root` AS cat ON(cat.id=art.home1) WHERE " . _sqlArticleFilter(true) . $catlimit . " ORDER BY art.time DESC LIMIT " . _rsslimit);
            while ($item = DB::row($items)) {
                $feeditems[] = array($item['title'], _linkArticle($item['id'], $item['title_seo'], $item['cat_title_seo']), strip_tags($item['perex']), $item['time']);
            }
            break;
    }
    $continue = true;
}
/* ---  vystup  --- */
if ($continue) {
    header("Content-Type: application/xml; charset=UTF-8");
    $maintitle = _title . ' ' . _titleseparator . ($pagetitle != null ? ' ' . $pagetitle . ' ' . _titleseparator : '') . ' ' . $feedtitle;
    echo '<?xml version="1.0" encoding="UTF-8"?' . '>
<rss version="0.91">
  <channel>
    <title>' . $maintitle . '</title>
    <link>' . _url . '/</link>
    <description>' . _description . '</description>
Example #9
0
if (!defined('_core')) {
    exit;
}
// vystup
$title = $query['title'];
// odkazani podle ID
if ($query['content'] !== '') {
    if (mb_substr($query['content'], 0, 1) == "*") {
        // stranka
        $lid = intval(mb_substr($query['content'], 1));
        $query['content'] = "";
        $rootdata = DB::query_row("SELECT id,title_seo FROM `" . _mysql_prefix . "-root` WHERE id=" . $lid);
        if ($rootdata !== false) {
            $query['content'] = _linkRoot($rootdata['id'], $rootdata['title_seo']);
        }
    } else {
        // clanek
        if (mb_substr($query['content'], 0, 1) == "%") {
            $lid = intval(mb_substr($query['content'], 1));
            $query['content'] = "";
            $artdata = DB::query_row("SELECT art.id,art.title_seo,cat.title_seo AS cat_title_seo FROM `" . _mysql_prefix . "-articles` AS art JOIN `" . _mysql_prefix . "-root` AS cat ON(cat.id=art.home1) WHERE art.id=" . $lid);
            if ($artdata !== false) {
                $query['content'] = _linkArticle($artdata['id'], $artdata['title_seo']);
            }
        }
    }
}
// aktivace presmerovani
if ($query['content'] != "") {
    define('_redirect_to', $query['content']);
}
Example #10
0
/**
 * [ADMIN] Sestavit odkaz na clanek ve vypisu
 * @param array $art data clanku vcetne cat_title_seo
 * @param bool $ucnote zobrazovat poznamku o neschvaleni 1/0
 * @return string
 */
function _admin_articleEditLink($art, $ucnote = true)
{
    global $_lang;
    $output = "";
    // trida
    $class = "";
    if ($art['visible'] == 0 and $art['public'] == 1) {
        $class = " class='invisible'";
    }
    if ($art['visible'] == 1 and $art['public'] == 0) {
        $class = " class='notpublic'";
    }
    if ($art['visible'] == 0 and $art['public'] == 0) {
        $class = " class='invisible-notpublic'";
    }
    // odkaz
    $output .= "<a href='" . _indexroot . _linkArticle($art['id'], $art['title_seo'], $art['cat_title_seo']) . "' target='_blank'" . $class . ">";
    if ($art['time'] <= time()) {
        $output .= "<strong>";
    }
    $output .= $art['title'];
    if ($art['time'] <= time()) {
        $output .= "</strong>";
    }
    $output .= "</a>";
    // poznamka o neschvaleni
    if ($art['confirmed'] != 1 and $ucnote) {
        $output .= "&nbsp;&nbsp;<small>(" . $_lang['global.unconfirmed'] . ")</small>";
    }
    return $output;
}
 if (_pagingmode == 1 or _pagingmode == 2) {
     $module .= $paging[0];
 }
 $posts = DB::query("SELECT id,type,home,xhome,subject,text,author,time FROM `" . _mysql_prefix . "-posts` WHERE " . $cond . " ORDER BY time DESC " . $paging[1]);
 if (DB::size($posts) != 0) {
     while ($post = DB::row($posts)) {
         switch ($post['type']) {
             case 1:
             case 3:
                 $hometitle = DB::query_row("SELECT title,title_seo FROM `" . _mysql_prefix . "-root` WHERE id=" . $post['home']);
                 $homelink = _linkRoot($post['home'], $hometitle['title_seo']);
                 $hometitle = $hometitle['title'];
                 break;
             case 2:
                 $hometitle = DB::query_row("SELECT art.title,art.title_seo,cat.title_seo AS cat_title_seo FROM `" . _mysql_prefix . "-articles` AS art JOIN `" . _mysql_prefix . "-root` AS cat ON(cat.id=art.home1) WHERE art.id=" . $post['home']);
                 $homelink = _linkArticle($post['home'], $hometitle['title_seo']);
                 $hometitle = $hometitle['title'];
                 break;
             case 5:
                 $homelink = 'index.php?m=topic&amp;id=' . $post[$post['xhome'] == '-1' ? 'id' : 'xhome'];
                 if ($post['xhome'] == '-1') {
                     $hometitle = $post['subject'];
                 } else {
                     $hometitle = DB::query_row("SELECT subject FROM `" . _mysql_prefix . "-posts` WHERE id=" . $post['xhome']);
                     $hometitle = $hometitle['subject'];
                 }
                 break;
         }
         $module .= "<div class='post-head'><a href='" . $homelink . "#post-" . $post['id'] . "' class='post-author'>" . $hometitle . "</a> <span class='post-info'>(" . _formatTime($post['time']) . ")</span></div><p class='post-body'>" . _parsePost($post['text']) . "</p>\n";
     }
     if (_pagingmode == 2 or _pagingmode == 3) {
Example #12
0
/* ----  inicializace jadra  ---- */
require './require/load.php';
SL::init('./');
if (!_printart) {
    exit;
}
/* ----  vystup  ---- */
if (_publicAccess(!_notpublicsite) and isset($_GET['id'])) {
    $id = intval($_GET['id']);
    // nacteni dat clanku
    $query = DB::query("SELECT art.*,cat.title_seo AS cat_title_seo FROM `" . _mysql_prefix . "-articles` AS art JOIN `" . _mysql_prefix . "-root` AS cat ON(cat.id=art.home1) WHERE art.id=" . $id);
    if (DB::size($query) != 0) {
        // rozebrani dat, test pristupu
        $query = DB::row($query);
        $access = _articleAccess($query);
        $artlink = _linkArticle($id, $query['title_seo'], $query['cat_title_seo']);
        $url = _url . "/" . $artlink;
        define('_indexOutput_url', $artlink);
        // vypsani obsahu
        if ($access == 1) {
            // vlozeni zacatku hlavicky
            require _indexroot . "require/headstart.php";
            ?>
<link href="<?php 
            echo _indexroot;
            ?>
plugins/templates/<?php 
            echo _template;
            ?>
/style/print.css" type="text/css" rel="stylesheet" />
<link href="<?php 
Example #13
0
 $id = intval($_GET['id']);
 $query = DB::query("SELECT * FROM `" . _mysql_prefix . "-posts` WHERE id=" . $id);
 if (DB::size($query) != 0) {
     $query = DB::row($query);
     if (_postAccess($query)) {
         $continue = true;
         $nobbcode = false;
         $backlink = null;
         _extend('call', 'mod.editpost.backlink', array('backlink' => &$backlink, 'query' => $query));
         if (null === $backlink) {
             switch ($query['type']) {
                 case 1:
                     $backlink = _addGetToLink(_linkRoot($query['home']), "page=" . _resultPagingGetItemPage(_commentsperpage, "posts", "id>" . $query['id'] . " AND type=1 AND xhome=-1 AND home=" . $query['home'])) . "#post-" . $query['id'];
                     break;
                 case 2:
                     $backlink = _addGetToLink(_linkArticle($query['home']), "page=" . _resultPagingGetItemPage(_commentsperpage, "posts", "id>" . $query['id'] . " AND type=2 AND xhome=-1 AND home=" . $query['home'])) . "#post-" . $query['id'];
                     break;
                 case 3:
                     $postsperpage = DB::query_row("SELECT var2 FROM `" . _mysql_prefix . "-root` WHERE id=" . $query['home']);
                     $backlink = _addGetToLink(_linkRoot($query['home']), "page=" . _resultPagingGetItemPage($postsperpage['var2'], "posts", "id>" . $query['id'] . " AND type=3 AND xhome=-1 AND home=" . $query['home'])) . "#post-" . $query['id'];
                     break;
                 case 4:
                     $nobbcode = true;
                     break;
                 case 5:
                     if ($query['xhome'] == -1) {
                         if (!_checkboxLoad("delete")) {
                             $backlink = "index.php?m=topic&amp;id=" . $query['id'];
                         } else {
                             $backlink = _linkRoot($query['home']);
                         }
Example #14
0
     if (false !== $q) {
         define('_redirect_to', _url . '/' . (_modrewrite ? '' : 'index.php?p=') . $q['new']);
         break;
     }
     // presmerovani starych ciselnych adres bez mod_rewrite
     if (!$rewritten && is_numeric($ids[0])) {
         $ids = intval($ids[0]);
         if (0 === $type) {
             $query = DB::query('SELECT `id`,`title_seo` FROM `' . _mysql_prefix . '-root` WHERE `id`=' . $ids);
         } else {
             $query = DB::query('SELECT art.`id`,art.`title_seo`,cat.`title_seo` AS cat_title_seo FROM `' . _mysql_prefix . '-articles` AS art JOIN `' . _mysql_prefix . '-root` AS cat ON(cat.id=art.home1) WHERE art.`id`=' . $ids);
         }
         $query = DB::row($query);
         if ($query !== false) {
             // stranka nalezena podle ID, presmerovani
             define('_redirect_to', _url . '/' . ($type === 0 ? _linkRoot($query['id'], $query['title_seo']) : _linkArticle($query['id'], $query['title_seo'], $query['cat_title_seo'])));
             break;
         }
     }
     // odchyceni rozsirenim
     if ($rewritten || $type === 0) {
         $title = $content = null;
         _extend('call', 'index.notfound.hook', array('output' => &$content, 'title' => &$title, 'ids' => $ids));
         if (isset($title, $content)) {
             define('_indexOutput_ptype', 'plugin_hook');
             define('_indexOutput_title', $title);
             define('_indexOutput_content', $content);
             break;
         }
     }
 } while (false);
                    $paramvar = "new_" . $param;
                    $paramval = ${$paramvar};
                    if ($paramval == 0 or $paramval == 1) {
                        DB::query("UPDATE `" . _mysql_prefix . "-articles` SET " . $param . "=" . $paramval . " WHERE id=" . $item['id']);
                    }
                }
            }
            $message = _formMessage(1, $_lang['global.done']);
        }
    } else {
        $message = _formMessage(2, $_lang['admin.content.artfilter.f1.noresult']);
    }
}
/* ---  vystup  --- */
$output .= "\n<p class='bborder'>" . $_lang['admin.content.artfilter.p'] . "</p>\n" . $message . "\n<form action='index.php?p=content-artfilter' method='post'>\n";
if (!$infopage) {
    $output .= "\n<h2>" . $_lang['admin.content.artfilter.f1.title'] . "</h2>\n<p>" . $_lang['admin.content.artfilter.f1.p'] . "</p>\n<table>\n\n<tr>\n<td class='rpad'><strong>" . $_lang['article.category'] . "</strong></td>\n<td>" . _admin_rootSelect("category", 2, -1, true, $_lang['global.any2']) . "</td>\n</tr>\n\n<tr>\n<td class='rpad'><strong>" . $_lang['article.author'] . "</strong></td>\n<td>" . _admin_authorSelect("author", -1, "adminart=1", "selectmedium", $_lang['global.any']) . "</td>\n</tr>\n\n<tr>\n<td class='rpad'><strong>" . $_lang['article.posted'] . "</strong></td>\n<td>\n\n<select name='ba'>\n<option value='0'>" . $_lang['admin.content.artfilter.f1.time0'] . "</option>\n<option value='1'>" . $_lang['admin.content.artfilter.f1.time1'] . "</option>\n<option value='2'>" . $_lang['admin.content.artfilter.f1.time2'] . "</option>\n<option value='3'>" . $_lang['admin.content.artfilter.f1.time3'] . "</option>\n</select>\n\n" . _editTime('time', -1) . "\n\n</td>\n</tr>\n\n<tr class='valign-top'>\n<td class='rpad'><strong>" . $_lang['admin.content.form.settings'] . "</strong></td>\n<td>\n" . _admin_boolSelect("public") . $_lang['admin.content.form.public'] . "<br />\n" . _admin_boolSelect("visible") . $_lang['admin.content.form.visible'] . "<br />\n" . _admin_boolSelect("confirmed") . $_lang['admin.content.form.confirmed'] . "<br />\n" . _admin_boolSelect("comments") . $_lang['admin.content.form.comments'] . "<br />\n" . _admin_boolSelect("rateon") . $_lang['admin.content.form.artrate'] . "<br />\n" . _admin_boolSelect("showinfo") . $_lang['admin.content.form.showinfo'] . "\n</td>\n</tr>\n\n</table>\n\n<br /><div class='hr'><hr /></div><br />\n\n<h2>" . $_lang['admin.content.artfilter.f2.title'] . "</h2>\n<p>" . $_lang['admin.content.artfilter.f2.p'] . "</p>\n<table>\n\n<tr>\n<td class='rpad'><strong>" . $_lang['article.category'] . "</strong></td>\n<td>" . _admin_rootSelect("new_category", 2, -1, true, $_lang['global.nochange']) . "</td>\n</tr>\n\n<tr>\n<td class='rpad'><strong>" . $_lang['article.author'] . "</strong></td>\n<td>" . _admin_authorSelect("new_author", -1, "adminart=1", "selectmedium", $_lang['global.nochange']) . "</td>\n</tr>\n\n<tr class='valign-top'>\n<td class='rpad'><strong>" . $_lang['admin.content.form.settings'] . "</strong></td>\n<td>\n" . _admin_boolSelect("new_public", true) . $_lang['admin.content.form.public'] . "<br />\n" . _admin_boolSelect("new_visible", true) . $_lang['admin.content.form.visible'] . "<br />\n" . (_loginright_adminconfirm ? _admin_boolSelect("new_confirmed", true) . $_lang['admin.content.form.confirmed'] . "<br />" : '') . "\n" . _admin_boolSelect("new_comments", true) . $_lang['admin.content.form.comments'] . "<br />\n" . _admin_boolSelect("new_rateon", true) . $_lang['admin.content.form.artrate'] . "<br />\n" . _admin_boolSelect("new_showinfo", true) . $_lang['admin.content.form.showinfo'] . "\n</td>\n</tr>\n\n<tr class='valign-top'>\n<td class='rpad'><strong>" . $_lang['global.action'] . "</strong></td>\n<td>\n<label><input type='checkbox' name='new_delete' value='1' /> " . $_lang['global.delete'] . "</label><br />\n<label><input type='checkbox' name='new_resetrate' value='1' /> " . $_lang['admin.content.form.resetartrate'] . "</label><br />\n<label><input type='checkbox' name='new_delcomments' value='1' /> " . $_lang['admin.content.form.delcomments'] . "</label><br />\n<label><input type='checkbox' name='new_resetread' value='1' /> " . $_lang['admin.content.form.resetartread'] . "</label>\n</td>\n</tr>\n\n</table>\n\n<br /><div class='hr'><hr /></div><br />\n\n<input type='submit' value='" . $_lang['mod.search.submit'] . "' />\n";
} else {
    $output .= _getPostdata() . "\n<input type='hidden' name='_process' value='1' />\n" . _formMessage(1, str_replace("*found*", $found, $_lang['admin.content.artfilter.f1.infotext'])) . "\n<ul>";
    $counter = 0;
    while ($r = DB::row($query)) {
        if ($counter >= 30) {
            $output .= "<li><em>... (+" . ($found - $counter) . ")</em></li>\n";
            break;
        }
        $output .= "<li><a href='" . _indexroot . _linkArticle($r['id'], $r['title_seo'], $r['cat_title_seo']) . "' target='_blank'>" . $r['title'] . "</a></li>\n";
        ++$counter;
    }
    $output .= "</ul>\n<input type='submit' value='" . $_lang['global.do2'] . "' />&nbsp;&nbsp;<a href='index.php?p=content-artfilter'>" . $_lang['global.cancel'] . "</a>\n";
}
$output .= _xsrfProtect() . "</form>";