; title("$sitename: $month_l $year"); $r_options = ""; if (isset($cookie[4])) { $r_options .= "&mode=$cookie[4]"; } if (isset($cookie[5])) { $r_options .= "&order=$cookie[5]"; } if (isset($cookie[6])) { $r_options .= "&thold=$cookie[6]"; } OpenTable(); echo "" ."" ."" ."" ."" ."" .""; $result = $db->sql_query("SELECT sid, catid, title, time, comments, counter, topic, alanguage, score, ratings from ".$prefix."_stories WHERE time >= '$year-$month-01 00:00:00' AND time <= '$year-$month-31 23:59:59' order by sid DESC"); while ($row = $db->sql_fetchrow($result)) { $sid = intval($row['sid']-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $getdate); if ($getdate[2] == "01") { $month = _JANUARY; } elseif ($getdate[2] == "02") { $month = _FEBRUARY; } elseif ($getdate[2] == "03") { $month = _MARCH; } elseif ($getdate[2] == "04") { $month = _APRIL; } elseif ($getdate[2] == "05") { $month = _MAY; } elseif ($getdate[2] == "06") { $month = _JUNE; } elseif ($getdate[2] == "07") { $month = _JULY; } elseif ($getdate[2] == "08") { $month = _AUGUST; } elseif ($getdate[2] == "09") { $month = _SEPTEMBER; } elseif ($getdate[2] == "10") { $month = _OCTOBER; } elseif ($getdate[2] == "11") { $month = _NOVEMBER; } elseif ($getdate[2] == "12") { $month = _DECEMBER; } if ($month != $thismonth) { $year = $getdate[1]; echo "
  • $month, $year"; $thismonth = $month; } } echo "

    " ."
    " ." " ."" ."" ."[ "._ARCHIVESINDEX." | "._SHOWALLSTORIES." ]
    "; CloseTable(); include("footer.php"); } function show_all($min) { global $prefix, $user_prefix, $db, $bgcolor1, $bgcolor2, $user, $cookie, $sitename, $multilingual, $language, $module_name; if (!isset($min)) { $min = 0; } $max = 250; include("header.php"); title(""._STORIESARCHIVE.""); title("$sitename: "._ALLSTORIESARCH.""); if (isset($cookie[4])) { $r_options .= "&mode=$cookie[4]"; } if (isset($cookie[5])) { $r_options .= "&order=$cookie[5]"; } if (isset($cookie[6])) { $r_options .= "&thold=$cookie[6]"; } OpenTable(); echo "
  • "._ARTICLES.""._COMMENTS.""._READS.""._USCORE.""._DATE.""._ACTIONS."
    " ."" ."" ."" ."" ."" .""; $result = $db->sql_query("SELECT sid, catid, title, time, comments, counter, topic, alanguage, score, ratings from ".$prefix."_stories order by sid DESC limit $min,$max"); $numrows = $db->sql_numrows($db->sql_query("select * from ".$prefix."_stories")); while($row = $db->sql_fetchrow($result)) { $sid = intval($row['sid']); $catid = intval($row['catid']); $title = stripslashes(check_html($row['title'], "nohtml")); $time = $row['time']; $comments = stripslashes($row['comments']); $counter = intval($row['counter']); $topic = intval($row['topic']); $alanguage = $row['alanguage']; $score = intval($row['score']); $ratings = intval($row['ratings']); $time = explode(" ", $time); $actions = "\""._PRINTER."\" \""._FRIEND."\""; if ($score != 0) { $rated = substr($score / $ratings, 0, 4); } else { $rated = 0; } if ($catid == 0) { $title = "$title"; } elseif ($catid != 0) { $row_res = $db->sql_fetchrow($db->sql_query("SELECT title from ".$prefix."_stories_cat where catid='$catid'")); $cat_title = stripslashes($row_res['title']); $title = "$cat_title: $title"; } if ($multilingual == 1) { if ($alanguage == "") { $alanguage = $language; } $alt_language = ucfirst($alanguage); $lang_img = "\"$alt_language\""; } else { $lang_img = "·"; } echo "" ."" ."" ."" ."" ."" .""; } echo "
    "._ARTICLES.""._COMMENTS.""._READS.""._USCORE.""._DATE.""._ACTIONS."
    $lang_img $title$comments$counter$rated$time[0]$actions
    " ."


    "; if (($numrows > 250) AND ($min == 0)) { $min = $min+250; $a++; echo "
    [ "._NEXTPAGE." ]

    "; } if (($numrows > 250) AND ($min >= 250) AND ($a != 1)) { $pmin = $min-250; $min = $min+250; $a++; echo "
    [ "._PREVIOUSPAGE." | "._NEXTPAGE." ]

    "; } if (($numrows <= 250) AND ($a != 1) AND ($min != 0)) { $pmin = $min-250; echo "
    [ "._PREVIOUSPAGE." ]

    "; } echo "
    " .""._SELECTMONTH2VIEW."
    "; $result2 = $db->sql_query("SELECT time from ".$prefix."_stories order by time DESC"); echo "

    " ."
    " ."