$r_options .= "&mode={$cookie['4']}"; } if (isset($cookie[5])) { $r_options .= "&order={$cookie['5']}"; } if (isset($cookie[6])) { $r_options .= "&thold={$cookie['6']}"; } } include "header.php"; title("{$sitename}: " . _ARTICLERATING . ""); OpenTable(); if ($rated == 0) { echo "<center>" . _THANKSVOTEARTICLE . "<br><br>" . "[ <a href=\"modules.php?name=News&file=article&sid={$sid}{$r_options}\">" . _BACKTOARTICLEPAGE . "</a> ]</center>"; } elseif ($rated == 1) { echo "<center>" . _ALREADYVOTEDARTICLE . "<br><br>" . "[ <a href=\"modules.php?name=News&file=article&sid={$sid}{$r_options}\">" . _BACKTOARTICLEPAGE . "</a> ]</center>"; } CloseTable(); include "footer.php"; } switch ($op) { default: theindex($new_topic); break; case "rate_article": rate_article($sid, $score); break; case "rate_complete": rate_complete($sid, $rated); break; }
include "header.php"; title("{$sitename}: " . _ARTICLERATING . ""); OpenTable(); if ($rated == 0) { $row = $db->sql_fetchrow($db->sql_query("SELECT title FROM " . $prefix . "_stories WHERE sid='{$sid}'")); $row['title'] = filter($row['title'], "nohtml"); echo "<center><a href=\"modules.php?name={$module_name}&file=article&sid={$sid}{$r_options}\"><b>" . $row['title'] . "</b></a><br>" . _YOURATEDARTICLE . ": <img src=\"images/articles/stars-{$score}.gif\" border=\"0\" alt=\"{$score}/5\" title=\"{$score}/5\"> ({$score}/5)<br><br>"; echo "<center>" . _THANKSVOTEARTICLE . "<br><br>" . "[ <a href=\"modules.php?name={$module_name}&file=article&sid={$sid}{$r_options}\">" . _BACKTOARTICLEPAGE . "</a> ]</center>"; } elseif ($rated == 1) { echo "<center>" . _ALREADYVOTEDARTICLE . "<br><br>" . "[ <a href=\"modules.php?name={$module_name}&file=article&sid={$sid}{$r_options}\">" . _BACKTOARTICLEPAGE . "</a> ]</center>"; } CloseTable(); include "footer.php"; } if (!isset($new_topic)) { $new_topic = 0; } if (!isset($op)) { $op = ""; } switch ($op) { default: theindex($new_topic); break; case "rate_article": rate_article($sid, $score, $random_num, $gfx_check); break; case "rate_complete": rate_complete($sid, $rated, $score); break; }