<?php
/*---------------------------------------------------+
| PHP-Fusion 7 Content Management System
+----------------------------------------------------+
| Copyright © 2002 - 2009 Nick Jones
| http://www.php-fusion.co.uk/
+----------------------------------------------------+
| Released under the terms & conditions of v2 of the
| GNU General Public License. For details refer to
| the included gpl.txt file or visit http://gnu.org
+----------------------------------------------------*/

require_once "../../maincore.php";
require_once THEMES."templates/header.php";
include INFUSIONS."song_charts/infusion_db.php";
error_reporting(E_ALL ^ E_NOTICE);
if (file_exists(INFUSIONS."song_charts/locale/".$settings['locale'].".php")) {
	include INFUSIONS."song_charts/locale/".$settings['locale'].".php";
} else {
	include INFUSIONS."song_charts/locale/English.php";
}
if (isset($_POST['send']))
{
  $vote = $_POST['votes'];
  $art_id = $_POST['art_id'];
  $vote++;
  $cookie_exp = time() + 72000*3;
  setcookie("fusion_songss", "1", $cookie_exp, "/", "", "0");
  $result1 = dbquery("UPDATE `".$db_prefix."charts` SET `vote` = '$vote' WHERE `id` =$art_id LIMIT 1 ;");
  redirect ("topnew-20-baigta");
}
if ($vote == "ok")
{
  opentable($locale['ctbs001']);
  echo $locale['ctbs002'];
  closetable();
  tablebreak();
}
    include INFUSIONS."song_charts/songs.inc.php";
include INFUSIONS."song_chartas/songs.inc.php";

require_once THEMES."templates/footer.php";
?>
