Exemplo n.º 1
0
      </p>';
    if (!$archive) {
        $previous_tab = news_aff("libre", "WHERE sid<'{$sid}' ORDER BY sid DESC ", 0, 1);
        $next_tab = news_aff("libre", "WHERE sid>'{$sid}' ORDER BY sid ASC ", 0, 1);
    } else {
        $previous_tab = news_aff("archive", "WHERE sid<'{$sid}' ORDER BY sid DESC", 0, 1);
        $next_tab = news_aff("archive", "WHERE sid>'{$sid}' ORDER BY sid ASC ", 0, 1);
    }
    if (array_key_exists(0, $previous_tab)) {
        list($previous_sid) = $previous_tab[0];
    } else {
        $previous_sid = 0;
    }
    if (array_key_exists(0, $next_tab)) {
        list($next_sid) = $next_tab[0];
    } else {
        $next_sid = 0;
    }
    themearticle($aid, $informant, $time, $title, $bodytext, $topic, $topicname, $topicimage, $topictext, $sid, $previous_sid, $next_sid, $archive);
    // theme sans le système de commentaire en meta-mot !
    if (!function_exists("Caff_pub")) {
        if (file_exists("modules/comments/article.conf.php")) {
            include "modules/comments/article.conf.php";
            include "modules/comments/comments.php";
        }
    }
}
if ($SuperCache) {
    $cache_obj->endCachingPage();
}
include "footer.php";
Exemplo n.º 2
0
if ($bodytext == "") {
    $bodytext = "{$hometext}{$notes}";
} else {
    $bodytext = "{$hometext}<br><br>{$bodytext}{$notes}";
}
if ($informant == "") {
    $informant = $anonymous;
}
getTopics($sid);
if ($catid != 0) {
    $row2 = $db->sql_fetchrow($db->sql_query("select title from " . $prefix . "_stories_cat where catid='{$catid}'"));
    $title1 = stripslashes(check_html($row2['title'], "nohtml"));
    $title = "<a href=\"modules.php?name={$module_name}&amp;file=categories&amp;op=newindex&amp;catid={$catid}\"><font class=\"storycat\">{$title1}</font></a>: {$title}";
}
echo "<table width=\"100%\" border=\"0\"><tr><td valign=\"top\" width=\"100%\">\n";
themearticle($aid, $informant, $datetime, $title, $bodytext, $topic, $topicname, $topicimage, $topictext);
echo "</td><td>&nbsp;</td><td valign=\"top\">\n";
if ($multilingual == 1) {
    $querylang = "AND (blanguage='{$currentlang}' OR blanguage='')";
} else {
    $querylang = "";
}
/* Determine if the article has attached a poll */
if ($haspoll == 1) {
    $url = sprintf("modules.php?name=Surveys&amp;op=results&amp;pollID=%d", $pollID);
    $boxContent = "<form action=\"modules.php?name=Surveys\" method=\"post\">";
    $boxContent .= "<input type=\"hidden\" name=\"pollID\" value=\"" . $pollID . "\">";
    $boxContent .= "<input type=\"hidden\" name=\"forwarder\" value=\"" . $url . "\">";
    $row3 = $db->sql_fetchrow($db->sql_query("SELECT pollTitle, voters FROM " . $prefix . "_poll_desc WHERE pollID='{$pollID}'"));
    $pollTitle = stripslashes(check_html($row3['pollTitle'], "nohtml"));
    $voters = $row3['voters'];