rendered paste body<?// Defineinclude("htmlset.inc"); include("lang.inc");if (!defined("DBFUNCT")) require ("db.inc");if (!defined("FILEFUNCT")) require ("filefunct.inc");if (!defined("STRINGFUNCT")) require ("stringfunct.inc");require("header.inc");require("inc/forms_mp3.inc");// Vars$artist = $HTTP_GET_VARS['artist'];$user = $sessCat['UID'];$saw = $HTTP_GET_VARS['album'];$action = $HTTP_GET_VARS['action'];// Action check and codeif (!$sessCat['UID']) { header("Location: $login_url?return=".rawurlencode("http://".$SERVER_NAME.$REQUEST_URL)); die();}$sql = "SELECT count(*) AS CNT FROM alerts WHERE artist_id='$artist' AND user_id='$user'";$countquery = mysql_query($sql);$cntrez = mysql_fetch_array($countquery); $sql = "INSERT INTO alerts (artist_id, user_id, saw_id) VALUES ('$artist', '$user', '$saw')";$query = mysql_query($sql);if (isset($action) && $action == "add") { if ($cntrez['CNT'] > 0) { echo title_table_head($position = "center", $title = "Уведомявай ме", $width = "435", $height = "200"); echo "Съжаляваме но Вие вече сте се абонирали за този автор"; echo title_table_end(); } else { if (!$query) { die(mysql_error()); } else { echo title_table_head($position = "center", $title = "Уведомявай ме", $width = "435", $height = "200"); echo "Абонирахте се успешно за този автор! За да се върнете натиснтете тук"; echo title_table_end(); } }}// Load footerrequire("footer.inc");?>