Moved Permanentlyplease visit http://$host$newuri";
exit;
}
unset($uri);
unset($redirect);
#============================================================================
#================================= Define Function ===============================
function xmlentities($string, $quote_style=ENT_QUOTES) {
static $trans;
if (!isset($trans)) {
$trans = get_html_translation_table(HTML_ENTITIES, $quote_style);
foreach ($trans as $key => $value)
$trans[$key] = ''.ord($key).';';
// dont translate the '&' in case it is part of &xxx;
$trans[chr(38)] = '&';
}
// after the initial translation, _do_ map standalone '&' into '&'
return preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/","&" , strtr($string, $trans));
}
function pathencode($s) {
// $s = str_replace('/', "\\", $s);
$s = str_replace(' ', '_', $s);
$s = strtolower(rawurlencode(strtolower($s)));
$s = str_replace('%', ',', $s);
return $s;
}
GLOBAL $webroot;
GLOBAL $cache_state; // 1=Cache, 2=Not Cache
GLOBAL $cache_key;
GLOBAL $cache_folder;
GLOBAL $cache_root;
$webroot = $_SERVER['DOCUMENT_ROOT'];
$cache_root = $webroot . "/cache";
function cache_start($key, $interval=3600, $folder="") {
echo "\n\n\n\n";
GLOBAL $cache_state;
GLOBAL $cache_key;
GLOBAL $cache_folder;
GLOBAL $cache_root;
if (!$interval)
$interval = 3600;
if ($cache_state==1) {
echo "\n\n\n\n";
ob_end_flush();
$cache_state=0;
$cache_key='';
}
$cache_folder = $cache_root . $folder;
if (!file_exists($cache_folder)) {
echo "\n\n\n\n";
foreach(split('/',$cache_folder) as $dirPart) @mkdir($newDir="$newDir$dirPart/");
}
if (file_exists("$cache_folder/cache.$key.txt")) {
if ((time() - filectime("$cache_folder/cache.$key.txt")) > $interval) {
echo "\n\n\n\n";
unlink("$cache_folder/cache.$key.txt");
}
else {
echo "\n\n\n\n";
readfile("$cache_folder/cache.$key.txt");
$show=1;
}
}
if (!$show) {
echo "\n\n\n\n";
ob_start();
$cache_state=1;
$cache_key=$key;
return TRUE;
}
return FALSE;
}
function cache_stop($nocache=0) {
GLOBAL $cache_state;
GLOBAL $cache_key;
GLOBAL $cache_folder;
if ($cache_state && $cache_key && !$nocache) {
echo "\n\n\n\n";
$temp = ob_get_flush();
if (!file_exists("$cache_folder/cache.$cache_key.txt")) {
$f = fopen("$cache_folder/cache.$cache_key.txt", 'w');
if ($f) {
fputs($f, $temp);
fclose($f);
}
}
}
}
function display_banner($position) {
switch ($position) {
case '728x90' :
//======================== 728x90 [247] ============================
if (!$_COOKIE['visited']) {
echo <<
HTML;
}
else {
echo '
';
}
break;
case '300x250-rm' :
//======================== 300x250 ============================
/* echo <<
HTML;
break; */
case '300x250' :
//========================= 300x250 =============================
echo '
';
break;
case '300x250-below' :
//========================= 300x250 =============================
echo '
';
break;
case '160x600' :
//======================== 160x600 ============================
/* echo "
";*/
echo '
';
break;
}
}
#==================================================================================
#=========================== CONNECT TO DATABASE ===============================
$host = 'localhost';
$username='www';
$password='L0g1ndb';
$db='www';
$mysqlh = @mysql_connect($host, $username, $password);
if ($mysqlh) {
mysql_select_db($db, $mysqlh);
}
else {
header("Status: 403 Forbidden");
?>
absolutelyrics.com - page cannot be loaded.
if ($_SERVER['REQUEST_METHOD'] == "GET")
echo "';
?>
Unable to connect to database due to maximum visitors had been reached.
Wait for 3 - 5 seconds and hit refresh button or access menu view > refresh or
hit keyboard button F5 to visits our web site again.
exit;
}
#================= Set Charset ========================================
#mysql_query("SET character_set_client=latin1, character_set_connection=latin1, character_set_results=latin1");
#================= Reading Parameter ===================================
$pathinfo = getenv("PATH_INFO");
$pathdata = split('/', $pathinfo);
$cache = rand(10000, 99999);
$contentexpire = 7200;
$poplyrics = 20000;
if ($preview)
$preview=1;
else
$preview=0;
for($i=0; $i < count($pathdata); $i++) {
$pathdata[$i] = str_replace(',', '%', $pathdata[$i]);
$pathdata[$i] = str_replace('_', '%20', $pathdata[$i]);
$pathdata[$i] = str_replace('\\\'', '\'', $pathdata[$i]);
$pathdata[$i] = str_replace('\\', '/', $pathdata[$i]);
$pathdata[$i] = urldecode($pathdata[$i]);
$pathdata[$i] = str_replace('\\', '/', $pathdata[$i]);
}
if ($pathdata[1]) {
$mode = $pathdata[1];
switch ($mode) {
case 'artistlist' :
if (strlen($pathdata[2]) == 1) {
$q = $pathdata[2];
if ($q == '#') {
$q = '9';
}
$page = $pathdata[3]+0;
if ($page == 0)
$page = 1;
}
else
$artist =$pathdata[2];
break;
case 'artist' :
$artist = $pathdata[2];
$mode = 'artistlist';
break;
case 'songlist' :
$q = $pathdata[2];
if ($q == '#') {
$q = '9';
}
$page = $pathdata[3]+0;
if ($page == 0)
$page = 1;
break;
case 'view' :
case 'print' :
case 'correct' :
$artist = $pathdata[2];
$song = $pathdata[3];
break;
case 'news' :
$id = $pathdata[2];
}
}
#==================================================================
// ======================== CHECK for ARTIST and SONG ========================
if ($artist && $mode == "artistlist") {
$result = mysql_query("/* Absolutelyrics.com */ SELECT artist FROM lyric_artist WHERE artist like '".addslashes($artist)."' LIMIT 0,1");
$found = mysql_num_rows($result);
if ($found) {
$object = mysql_fetch_object($result);
$artist = $object->artist;
unset($object);
}
mysql_free_result($result);
if (!$found) {
header("HTTP/1.0 301 Moved Permanently");
//header("LogAccess: true");
header("Location: /lyrics/search?q=". urlencode($artist));
echo "ARTIST $artist is not found at ABSOLUTELYRICS.COM Try to redirect to search page";
file_put_contents('log_artist.txt', "$artist || ".$_SERVER['REQUEST_URI']."\n".$_SERVER['HTTP_REFERER']."\n=====\n", FILE_APPEND);
exit;
}
}
if ($artist && $song && ($mode == "view" || $mode == "print" || $mode == "email")) {
$result = mysql_query("/* Absolutelyrics.com */ SELECT artist,song FROM lyric WHERE artist like '".addslashes($artist)."' AND song like '".addslashes($song)."' LIMIT 0,1");
if ($result) {
$found = mysql_num_rows($result);
}
else {
$found = 0;
}
if ($found) {
$object = mysql_fetch_object($result);
$artist = $object->artist;
$song = $object->song;
unset($object);
}
@mysql_free_result($result);
if (!$found) {
header("HTTP/1.0 301 Moved Permanently");
header("LogAccess: true");
header("Location: /lyrics/search?q=". urlencode($song));
echo "SONG $song by ARTIST $artist is not found at ABSOLUTELYRICS.COM Try to redirect to search page";
file_put_contents('log_song.txt', "$artist - $song || ".$_SERVER['REQUEST_URI']."\n".$_SERVER['HTTP_REFERER']."\n=====\n", FILE_APPEND);
exit;
}
}
#===========================================================================
#============================== Setting Header =================================
header("P3P: CP=\"NOI CUR ADM OUR NOR STA NID\"");
GLOBAL $mode;
$last30day = date("Y-m-d", time() - 2592000);
$lang = strtolower($_SERVER["HTTP_ACCEPT_LANGUAGE"]);
$referer = $_SERVER['HTTP_REFERER'];
$country_code = $_SERVER["GEOIP_COUNTRY_CODE"];
$country_name = $_SERVER["GEOIP_COUNTRY_NAME"];
#========= SETUP Cookie ===========================
if ($senderemail)
setcookie("senderemailcookie", $senderemail, 0, '/');
else
$senderemail = $senderemailcookie;
if (!$_COOKIE['visited']) {
setcookie("visited", 1, 0, '/');
}
#========= Check Related Artists ======================
$lastartist1 = $_COOKIE['lastartist1'];
$lastartist2 = $_COOKIE['lastartist2'];
if ($mode=="artistlist" && $artist && $artist != $lastartist1 && $artist != $lastartist2 && $artist != $lastartist3) {
if ($lastartist1) {
mysql_query("INSERT INTO lyric_artist_also (artist2, artist, count) VALUES ('". addslashes($artist) ."','" . addslashes($lastartist1) ."',1) ON DUPLICATE KEY UPDATE count=count+1");
}
if ($lastartist2) {
mysql_query("INSERT INTO lyric_artist_also (artist2, artist, count) VALUES ('". addslashes($artist) ."','" . addslashes($lastartist2) ."',1) ON DUPLICATE KEY UPDATE count=count+1");
}
# if ($lastartist3) {
# mysql_query("INSERT INTO lyric_artist_also (artist2, artist, count) VALUES ('". addslashes($artist) ."','" . addslashes($lastartist3) ."',1) ON DUPLICATE KEY UPDATE count=count+1");
# }
# $lastartist3 = $lastartist2;
$lastartist2 = $lastartist1;
$lastartist1 = $artist;
if ($lastartist1)
setcookie("lastartist1", $lastartist1, 0, '/');
if ($lastartist2)
setcookie("lastartist2", $lastartist2, 0, '/');
# if ($lastartist3)
# setcookie("lastartist3", $lastartist3, 0, '/');
}
#===========================================================
#======== Check for Server in High Load ===============
if ($mode == "search") {
$result = mysql_query("SHOW GLOBAL STATUS LIKE 'Threads_running'");
$ob = mysql_fetch_object($result);
mysql_free_result($result);
if ($ob->Value > 10)
$googlesearch = 1;
unset($ob);
}
if ($mode=="") {
$title = "Absolute Lyrics - The Music Lyrics Database";
$folder = "";
}
elseif ($mode=="artistlist") {
if ($q) {
$title = " Artist name start with '$q' - Absolute Lyrics";
if ($q == '9') {
$title = " Artist name start with '0-9' - Absolute Lyrics";
}
$folder = "> Artists";
}
else {
$title = "$artist Lyrics";
$folder = "> $artist Lyrics";
}
}
elseif ($mode=="songlist") {
$title = "Song name start with '$q' - Absolute Lyrics";
if ($q == '9') {
$title = "Song name start with '0-9' - Absolute Lyrics";
}
$folder = "> Songs";
}
elseif ($mode=="view") {
$title = "$artist :: $song Lyrics";
$folder = "> $artist Lyrics > $song Lyrics";
}
elseif ($mode=="correct" || $mode=="sendcorrect") {
$title = "Send Corrections - Absolute Lyrics";
$folder = "> $artist > Correct - $song";
}
elseif ($mode=="submit" || $mode=="sendsubmit") {
$title = "Submit Lyrics - Absolute Lyrics";
$folder = "> Submit Lyrics";
}
elseif ($mode=="search") {
$title = "Search Result for '". htmlspecialchars($q) . "'";
$folder = "> Search Result";
}
elseif ($mode=="email") {
$title = "Sending Lyrics - Absolute Lyrics";
$folder = "> Sending Lyric";
}
elseif ($mode=="news") {
$title = "Music News";
$folder = "> News";
}
elseif ($mode=="top50") {
$title = "Top 50 Lyrics - Absolute Lyrics";
$folder = "> Top 50 Lyrics";
}
elseif ($mode=="top50a") {
$title = "Top 50 Artists - Absolute Lyrics";
$folder = "> Top 50 Artists";
}
elseif ($mode=="billboard") {
$title = "Billboard top 20 Hot Single Lyrics - Absolute Lyrics";
$folder = "> Billboard Top 20 Hot Single";
}
elseif ($mode=="privacy") {
$title = "Privacy - Absolute Lyrics";
$folder = "> Privacy";
}
elseif ($mode=="searchpage") {
$title = "Advance search lyrics - Absolute Lyrics";
$folder = "> Advance Search";
}
elseif ($mode == "print") {
echo "$artist - $song";
$result = mysql_query("/* Absolutelyrics.com */ SELECT * FROM lyric WHERE artist = '".addslashes($artist)."' AND song = '".addslashes($song)."' LIMIT 0, 1");
if ($result)
{
if ($object = mysql_fetch_object($result))
{
echo "Title : $object->song ";
echo "Artist : $object->artist ";
if ($object->album) echo "Album : $object->album ";
echo "";
echo ereg_replace("\n"," ",$object->lyric);
echo "";
echo "By www.absolutelyrics.com";
}
else
{
echo "Song not found";
}
mysql_free_result($result);
}
else
{
echo "Database error";
}
echo "";
exit;
}
?>
echo "$title"; ?>
if ($mode=="") {
$keyword = "lyric, music lyrics, lyrics, pop music lyrics, rock music lyrics";
$desc = "A large lyrics collection, offer all genre of music lyrics, all lyrics organized by artist name and song title, also offer flexiable and powerful music lyrics search engine.";
}
elseif ($mode=="artistlist") {
if ($q) {
$keyword = "music lyrics, lyrics, artists";
$desc = 'List all artists who have name start with \'' . htmlspecialchars($q) . '\', page ' . $page;
if ($q == '9') {
$desc = 'List all artists who have name start with \'0 - 9\', page ' . $page;
}
}
else {
$keyword = "$artist, lyrics";
$desc = "List all music lyrics for $artist, sort by album's release date with album cover and track list.";
}
}
elseif ($mode=="songlist") {
$keyword = "music lyrics, lyrics, artists";
$desc = 'List all music lyrics titles which have name start with \'' . htmlspecialchars($q) . '\', page ' . $page;
if ($q == '9') {
$desc = 'List all music lyrics titles which have name start with \'0 - 9\', page ' . $page;
}
}
elseif ($mode=="view") {
$desc = "Display lyrics for song title '$song' by artist '$artist', can send lyrics to email and watch music video.";
$keyword = "$artist, $song, lyrics, music lyrics";
}
elseif ($mode=="correct" || $mode=="sendcorrect") {
$desc = "";
$keyword = "";
}
elseif ($mode=="submit" || $mode=="sendsubmit") {
$desc = "";
$keyword = "";
}
elseif ($mode=="search") {
$desc = "Music lyrics search result for keyword " . htmlspecialchars($q);
$keyword = "music, lyrics, search, " . htmlspecialchars($q);
}
elseif ($mode=="email") {
$desc = "";
$keyword = "";
}
elseif ($mode=="top50") {
$desc = "Daily top 50 popular music lyrics which have a lot of people search for";
$keyword = "top, music lyrics, lyrics";
}
elseif ($mode=="top50a") {
$title = "Daily top 50 popular artist who have a lot of people search for his/her/their music lyrics";
$folder = "top, artist, music lyrics, lyrics";
}
elseif ($mode=="privacy") {
$desc = "";
$keyword = "";
}
elseif ($mode=="searchpage") {
$desc = "Music lyrics search engine which have a lot of options to find the right songs.";
$keyword = "music, lyrics, music lyrics, search, advance search";
}
else {
$keyword = "";
$desc = "";
}
?>
if (!$mode) {
echo '' . "\n";
echo '' . "\n";
echo '' . "\n";
}
if ($mode == 'search') {
echo '' . "\n";
}
?>
if ($disptime)
echo "
$error=0;
if (cache_start('hitartist', $contentexpire)) {
$query = "/* Absolutelyrics.com */ SELECT artist, SUM(yesterdayview) a FROM lyric GROUP BY artist ORDER BY a DESC, artist ASC LIMIT 0, 15";
$result = mysql_query($query);
if ($result) {
while ($object = mysql_fetch_object($result))
{
echo "
New Lyrics
if (cache_start('newlyrics', $contentexpire)) {
$query = "/* Absolutelyrics.com */ SELECT COUNT(song) a, artist, adddate FROM lyric GROUP BY adddate, artist ORDER BY adddate DESC LIMIT 0,200";
$result = mysql_query($query);
$a = '';
if ($result) {
$artist = "";
$lastdate = "";
$dispdate = 0;
$a .= "
";
while ($object = mysql_fetch_object($result))
{
if ($lastdate != $object->adddate)
{
if ($lastdate)
$a .= "
";
$dispdate++;
if ($dispdate > 9) break;
if ($lastdate)
$a .= "";
$a .= "
Added ".date("j M Y", strtotime($object->adddate))."
// ============================== End Main Page ===================================
}
elseif ($mode == "artistlist") {
// ============================ Browser by Artist ===============================
if (!$page)
$page=1;
// =============== DISPLAY ALBUM ===========
if ($artist) {
if (cache_start(pathencode($artist), $contentexpire, '/artist')) {
?>
";
$result = mysql_query("/* Absolutelyrics.com */ SELECT COUNT(*) a FROM lyric WHERE artist = '".addslashes($artist)."' ");
$count = mysql_fetch_object($result);
$count = $count->a;
mysql_free_result($result);
echo "\n\n\n
" . xmlentities($artist) . " Lyrics
\n\n\n";
?>
» Found ="$count songs for " . xmlentities($artist) . " lyrics" ?>
# Display Ads
/* echo "
\n";
echo "
advertisement >>
";
echo "
";
echo '
';
echo "
"; */
$result=mysql_query("/* Absolutelyrics.com */ SELECT artist, album, releasedate, adddate, year FROM lyric_album WHERE artist = '".addslashes($artist)."' ORDER BY year DESC, releasedate DESC");
?>
";
}
}
mysql_free_result($result);
$result = mysql_query("/* Absolutelyrics.com */ SELECT lyric.song, lyric.adddate, lyric.view FROM lyric LEFT JOIN lyric_albumsong ON lyric.artist=lyric_albumsong.artist AND lyric.song=lyric_albumsong.song WHERE lyric.artist='".addslashes($artist)."' and lyric_albumsong.artist IS NULL and lyric_albumsong.song IS NULL ORDER BY lyric.song ASC");
if (mysql_num_rows($result)) {
echo "
$artist Lyrics Unknown Album
\n";
while ($object = mysql_fetch_object($result)) {
echo "
";
if (cache_start(pathencode($artist), 172800, '/relatedartist')) {
#==== Select related artists ============
$resrelated = mysql_query("/* Absolutelyrics.com */ SELECT artist2 FROM lyric_artist_also WHERE artist='".addslashes($artist)."' AND (count > 2 OR count2=1) ORDER BY count2 DESC, count DESC LIMIT 0,10");
if (mysql_num_rows($resrelated)) {
echo "
Visitors interested in $artist lyrics may also interested in:
";
while ($object2 = mysql_fetch_object($resrelated)) {
echo "
";
if ($q == '9') {
$searchdata = "lyric_artist.fartist = '0' OR lyric_artist.fartist = '1' OR lyric_artist.fartist = '2' OR lyric_artist.fartist = '3' OR lyric_artist.fartist = '4' OR lyric_artist.fartist = '5' OR lyric_artist.fartist = '6' OR lyric_artist.fartist = '7' OR lyric_artist.fartist = '8' OR lyric_artist.fartist = '9' OR lyric_artist.fartist = '.' OR lyric_artist.fartist='!' OR lyric_artist.fartist='(' ";
}
else
$searchdata = " lyric_artist.fartist = '".strtolower($q)."' ";
$result = mysql_query("/* Absolutelyrics.com */ SELECT artist FROM lyric_artist WHERE $searchdata");
$count = mysql_num_rows($result);
mysql_free_result($result);
if ($count > 0) {
$startrecord = (($page-1) * 100) + 1;
$endrecord = ($page) * 100;
if ($endrecord > $count)
$endrecord = $count;
echo "
Page $page / Display $startrecord - $endrecord of $count artists
";
}
echo "Artist name start with '$q' \n";
$startrec = ($page-1) * 100;
$query = "/* Absolutelyrics.com */ SELECT lyric_artist.artist, COUNT(lyric.song) a FROM lyric_artist LEFT JOIN lyric USING (artist) WHERE $searchdata GROUP BY lyric_artist.artist ORDER BY listname ASC LIMIT $startrec, 100";
$result = mysql_query($query);
if ($result) {
while ($object = mysql_fetch_object($result))
{
echo "
cache_stop();
}
// ==================================== End Browse by Song ===============================
}
elseif ($mode == "view")
{
// =================================== View Lyric =====================================
$result = mysql_query("/* Absolutelyrics.com */ SELECT * FROM lyric WHERE artist = '".addslashes($artist)."' AND song = '".addslashes($song)."' LIMIT 0, 1");
if ($result)
{
if ($object = mysql_fetch_object($result))
{
echo "
";
echo "
";
# IE Only display clipboard function
?>
$link_artist = strtolower(str_replace('%20', '+', rawurlencode($artist)));
$link_song = strtolower(str_replace('%20', '+', rawurlencode($song)));
?>
";
echo "$artist - $song lyrics are the property and copyright of their owners. ";
echo "$artist - $song lyrics provided for educational purposes only. ";
echo "
All View: ".($object->view+1)." time(s), Today: ".($object->dayview+1)." time(s) ";
if ($object->submit)
echo "Source by: $object->submit ";
if ($object->correction)
echo "Correct by: $object->correction ";
echo "
\n";
echo "\n\n
";
echo "
";
if (cache_start(pathencode($artist), $contentexpire*24, '/related')) {
$respopsong = mysql_query("/* Absolutelyrics.com */ SELECT song FROM lyric WHERE artist='". addslashes($artist) ."' ORDER BY view DESC LIMIT 0, 14");
$count = @mysql_num_rows($respopsong);
if ($count > 5) {
echo "
";
}
@mysql_free_result($result);
if (!$test)
{
$result = mysql_query("UPDATE IGNORE LOW_PRIORITY lyric SET view=view+1, dayview=dayview+1 WHERE song='".addslashes($object->song)."' AND artist='".addslashes($object->artist)."'");
}
}
}
// ==================================== End View Lyric ===============================
elseif ($mode == "correct")
{
// =========================== Display Correct Form ==========================
$result = mysql_query("/* Absolutelyrics.com */ SELECT * FROM lyric WHERE artist like '".addslashes($artist)."' AND song like '".addslashes($song)."'");
if ($result)
{
if ($object = mysql_fetch_object($result))
{
echo "
";
$result2 = mysql_query("/* Absolutelyrics.com */ SELECT * FROM `lyric-edit` WHERE artist like '".addslashes($artist)."' AND song like '".addslashes($song)."' ORDER BY id");
if ($result2 && mysql_num_rows($result2)) {
echo "
";
}
mysql_free_result($result);
}
}
// ==================================== End Correct Lyric Form ===============================
elseif ($mode == "sendcorrect")
{
// ============================== Display Correct Form ==================================
$result = mysql_query("/* Absolutelyrics.com */ SELECT * FROM lyric WHERE artist like '".addslashes($artist)."' AND song like '".addslashes($song)."'");
if ($result)
{
if ($object = mysql_fetch_object($result))
{
echo "
";
echo "
";
if ($artist && $song && $reason && $information && $submit) {
$result2 = mysql_query("INSERT INTO
`lyric-edit` (id, artist, song, reason, information, adddate, submit)
VALUES ('',
'".addslashes($artist)."',
'".addslashes($song)."',
'".addslashes($reason)."',
'".addslashes($information)."',
NOW(),
'".addslashes($submit)."')");
if ($result2) {
echo "Thank You ";
echo "The corrections had been send to webmaster. Thank you very much to help us improve this lyric. Below is information that you submit.
Correction for \"$artist\", song name \"$song\". Reason for edit is \"$reason\"
\"".str_replace("\n"," ",$information)."\"";
}
else {
echo "Error ";
echo "Database problem. Your correction does not post.
";
}
}
else {
echo "Error ";
echo "You have to fill all blanks.
";
}
echo "
";
}
else {
echo "
";
echo "
";
echo "Error $song - $artist not found
";
}
mysql_free_result($result);
}
}
// ==================================== End Correct Lyric Form ===============================
elseif ($mode == "submit")
{
// ============================= Display Submit Form ======================================
echo "
";
if (!$artist)
$artist = $artist2;
$artist = trim($artist);
$album = trim($album);
$song = trim($song);
$lyric = trim($lyric);
$submit = trim($submit);
$feat = trim($feat);
if ($artist && $album && $lyric && $submit) {
$result = mysql_query("/* Absolutelyrics.com */ SELECT * FROM lyric WHERE artist like '".addslashes($artist)."' AND song like '".addslashes($song)."'");
if ($result) {
if (mysql_num_rows($result)) {
echo "Error ";
echo "Duplicate song - This song is already in database. If you want to send corrections please click here.
";
}
else {
$result2 = mysql_query("INSERT INTO `lyric-add` (artist , album , song , lyric , adddate, submit, feat)
VALUES (
'".addslashes($artist)."',
'".addslashes($album)."',
'".addslashes($song)."',
'".addslashes($lyric)."',
NOW(),
'".addslashes($submit)."',
'".addslashes($feat)."')");
if ($result2) {
echo "Thank You ";
echo "The submition had been send to webmaster. Thank you very much to help us improve our database. Below is information that you submit.
if ($count > 0 && $page == 1 && strlen($q) >= 4 && !$preview) {
// Åͧ¤é¹ËÒẺ ·ÑèÇ仡è͹
$result2 = mysql_query("/* Absolutelyrics.com */ SELECT SQL_NO_CACHE artist, song FROM lyric WHERE song like '".addslashes($q)."' ORDER BY view DESC");
if ($result2) {
if (mysql_num_rows($result2)) {
echo "Exact Songs Match '$q' ";
while ($object2=mysql_fetch_object($result2)) {
echo "
This confirms that "Absolute Lyrics" is a licensee of the TRUSTe Privacy Program. This privacy statement discloses the privacy practices for http://www.absolutelyrics.com/.
TRUSTe is an independent, non-profit organization whose mission is to build users’ trust and confidence in the Internet by promoting the use of fair information practices. Because this web site wants to demonstrate its commitment to your privacy, it has agreed to disclose its information practices and have its privacy practices reviewed for compliance by TRUSTe. By displaying the TRUSTe trustmark, this web site has agreed to notify you of:
What personally identifiable information of yours or third party personally identification is collected from you through the web site
The organization collecting the information
How the information is used
With whom the information may be shared
What choices are available to you regarding collection, use and distribution of the information
The kind of security procedures that are in place to protect the loss, misuse or alteration of information under "Absolute Lyrics" control
How you can correct any inaccuracies in the information.
If you feel that this company is not abiding by its posted privacy policy, you should first contact "Absolute Lyrics" by webmaster@absolutelyrics.com If you do not receive acknowledgment of your inquiry or your inquiry has not been satisfactorily addressed, you should then contact TRUSTe at http://www.truste.org. TRUSTe will then serve as a liaison with the Web site to resolve your concerns. */ ?>
Information Collection and Use
"Absolute Lyrics" is the sole owner of the information collected on this site. We will not sell, share, or rent this information to others in ways different from what is disclosed in this statement. "Absolute Lyrics" information from our users at several different points on our website.
Cookies
A cookie is a piece of data stored on the user’s hard drive containing information about the user. Usage of a cookie is in no way linked to any personally identifiable information while on our site. Once the user closes their browser, the cookie simply terminates. For instance, by setting a cookie on our site, the user would not have to log in a password more than once, thereby saving time while on our site. If a user rejects the cookie (You can disable cookies by turn off in option pages of your web browser.), they may still use our site. The only drawback to this is that the user will be limited in some areas of our site. For example, the user will not be able to participate in any of our Sweepstakes, Contests or monthly Drawings that take place. Cookies can also enable us to track and target the interests of our users to enhance the experience on our site.
Some of our business partners use cookies on our site (for example, advertisers). However, we have no access to or control over these cookies.
Log Files
We use IP addresses to analyze trends, administer the site, track user’s movement, and gather broad demographic information for aggregate use. IP addresses are not linked to personally identifiable information.
Sharing
We will share aggregated demographic information with our partners and advertisers. This is not linked to any personal information that can identify any individual person.
We use an outside shipping company to ship orders, and a credit card processing company to bill users for goods and services. These companies do not retain, share, store or use personally identifiable information for any secondary purposes.
We partner with another party to provide specific services. When the user signs up for these services, we will share names, or other contact information that is necessary for the third party to provide these services.
These parties are not allowed to use personally identifiable information except for the purpose of providing these services.
Links
This web site contains links to other sites. Please be aware that we "Absolute Lyrics" are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects personally identifiable information. This privacy statement applies solely to information collected by this Web site.
Surveys & Contests
From time-to-time our site requests information from users via surveys or contests. Participation in these surveys or contests is completely voluntary and the user therefore has a choice whether or not to disclose this information. Information requested may include contact information (such as name and shipping address), and demographic information (such as zip code, age level). Contact information will be used to notify the winners and award prizes. Survey information will be used for purposes of monitoring or improving the use and satisfaction of this site.
Security
This website takes every precaution to protect our users' information. When users submit sensitive information via the website, your information is protected both online and off-line.
When our registration/order form asks users to enter sensitive information (such as credit card number and/or social security number), that information is encrypted and is protected with the best encryption software in the industry - SSL. While on a secure page, such as our order form, the lock icon on the bottom of Web browsers such as Netscape Navigator and Microsoft Internet Explorer becomes locked, as opposed to un-locked, or open, when you are just ‘surfing’.
While we use SSL encryption to protect sensitive information online, we also do everything in our power to protect user-information off-line. All of our users’ information, not just the sensitive information mentioned above, is restricted in our offices. Only employees who need the information to perform a specific job (for example, our billing clerk or a customer service representative) are granted access to personally identifiable information. Our employees must use password-protected screen-savers when they leave their desk. When they return, they must re-enter their password to re-gain access to your information. Furthermore, ALL employees are kept up-to-date on our security and privacy practices. Every quarter, as well as any time new policies are added, our employees are notified and/or reminded about the importance we place on privacy, and what they can do to ensure our customers’ information is protected. Finally, the servers that we store personally identifiable information on are kept in a secure environment, behind a locked cage.
If you have any questions about the security at our website, you can send an email to lyric3_at_siamzone_dot_com.
Supplementation of Information
In order for this website to properly fulfill its obligation to our customers, it is necessary for us to supplement the information we receive with information from 3rd party sources.
For example, to determine if our customers qualify for one of our credit cards, we use their name and social security number to request a credit report. Once we determine a user’s credit-worthiness, this document is destroyed.
Notification of Changes
If we decide to change our privacy policy, we will post those changes on our Homepage so our users are always aware of what information we collect, how we use it, and under circumstances, if any, we disclose it. If at any point we decide to use personally identifiable information in a manner different from that stated at the time it was collected, we will notify users by way of an email. Users will have a choice as to whether or not we use their information in this different manner. We will use information in accordance with the privacy policy under which the information was collected.
Third Party Advertising
We use MaxOnline and other third-party advertising companies to serve ads when you visit our Web site. These companies may use information (not including your name, address, email address or telephone number) about your visits to this and other Web sites in order to provide advertisements on this site and other sites about goods and services that may be of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, please visit links below.
Third Party Cookies
In the course of serving advertisements to this site, our third-party advertiser may place or recognize a unique "cookie" on your browser.
Third Party Advertising Privacy
// ================== End Privacy =============================
}
//============== Top 50 ===================
elseif ($mode == "top50") {
echo "
echo "Top 50 Popular Artists ";
$query = "/* Absolutelyrics.com */ SELECT artist, SUM(yesterdayview) a, COUNT(song) b FROM lyric GROUP BY artist ORDER BY a DESC, artist ASC LIMIT 0, 50";
$result = mysql_query($query);
if ($result) {
while ($object = mysql_fetch_object($result))
{
echo "