please 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. '; ?>








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.

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"; ?> ' . "\n"; echo '' . "\n"; echo '' . "\n"; } if ($mode == 'search') { echo '' . "\n"; } ?> Time = ". (microtime_float() - $start) . "
"; ?>

absolute lyrics menu : home - top 50 lyrics - top 50 artists - search - privacy
you are at: lyrics home

Browse lyrics by artists - 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Browse lyrics by songs - 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Music lover? let's! talk in our forums, simply register and talk. */ ?>


Daily Popular Lyrics
...more 
Daily Popular Artists


"; $dispdate++; if ($dispdate > 9) break; if ($lastdate) $a .= ""; $a .= "
New Lyrics
"; while ($object = mysql_fetch_object($result)) { if ($lastdate != $object->adddate) { if ($lastdate) $a .= "

Added ".date("j M Y", strtotime($object->adddate))."\n"; } else { $a .= ", "; } $lastdate = $object->adddate; $a .= "artist)."/\" title=\"$object->artist lyrics\">".xmlentities($object->artist)." (".$object->a." lyrics)\n"; } mysql_free_result($result); $a .= "
"; } echo $a; cache_stop(); } ?>



\n"; echo "
"; $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
\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"); ?>

Send "" Ringtones to your Cell


album)."\" alt=\"'$artist lyrics' - album '$object->album'\" />
\n"; echo "Release : "; if ($object->releasedate == '0000-00-00') { if ($object->year) echo $object->year; else echo "unknown"; } else echo date('j M Y', strtotime($object->releasedate)); echo "
"; echo "$artist Lyrics
Album: $object->album

    \n"; # Display Lyrics $result2 = mysql_query("/* Absolutelyrics.com */ SELECT lyric_albumsong.song, lyric.lyric, lyric.adddate, lyric.view FROM lyric_albumsong LEFT JOIN lyric USING (song, artist) WHERE lyric_albumsong.artist = '".addslashes($artist)."' AND lyric_albumsong.album = '".addslashes($object->album)."' ORDER BY songorder ASC, lyric_albumsong.song ASC"); while ($object2 = mysql_fetch_object($result2)) { echo "
  • "; if ($object2->lyric == NULL) { if (substr($object2->song,0,1) == '+') echo "". substr($object2->song,1)." (Instrumental)"; else echo "$object2->song"; // echo "$object2->song (song).";guestname=your%20name;email=;message=;icon=xx;\" target=_blank>submit lyrics)"; } else { echo "song)."/\" title=\"$artist - $object2->song lyrics\">$object2->song"; if ($object2->adddate > $last30day) echo " new!"; if ($object2->view > $poplyrics) echo " pop!"; echo "\n"; } } @mysql_free_result($result2); echo "

"; } } 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

"; } mysql_free_result($result); cache_stop(); } echo "

"; ?>

Send "" Ringtones to your Cell


"; 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:

"; } cache_stop(); } echo '

'; $linkartist = mysql_query("/* Absolutelyrics.com */ SELECT link FROM lyric_artist WHERE artist='".addslashes($artist)."' "); $linkartistobj = mysql_fetch_object($linkartist); echo "
Related site for $artist

"; # Old place google ads echo ""; echo "
All $artist lyrics are the property and copyright of their owners.
All $artist lyrics provided for educational purposes only.
"; echo ""; echo "
"; $showringtone=0; $keyword = $artist; $showtable=1; $showrows=2; ?>



"; 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 "
  • artist)."/\" title=\"$object->artist lyrics\">$object->artist lyrics ($object->a songs)
    \n"; } mysql_free_result($result); } if (ceil($count / 100.0) > 1) { echo "
    \nPage "; $nextpage = 0; while ($nextpage < $count) { $looppage = ($nextpage / 100)+1; if ($looppage != $page) echo " $looppage "; else echo " ($page) "; $nextpage += 100; } echo "["; if ($page > 1) { echo "<Prev"; } else { echo "<Prev"; } echo "] ["; if ($page < $looppage) { echo "Next>"; } else { echo "Next>"; } echo "]
    "; } echo "
  • "; ?> a; unset($object2); mysql_free_result($result2); if ($q != '#') { echo ""; echo "
    "; $aq = $q[0]; echo "Fine search for '$aq'
    \n"; for ($i = 0; $i < 26; $i++) { echo " ".strtoupper($aq).chr(65+$i)." "; } echo "

    \n"; } ?>



    "; echo "
    "; if ($count > 0) { $startrecord = (($page-1) * 50) + 1; $endrecord = ($page)*50; if ($endrecord > $count) $endrecord = $count; echo "
          Page $page / Display $startrecord - $endrecord of $count lyrics    
    "; } echo "Song name start with '$q'
    \n"; if ($result) { while ($object = mysql_fetch_object($result)) { echo "
  • artist)."/".pathencode($object->song)."/\" title=\"$object->artist - $object->song lyrics\">$object->song - artist)."/\" title=\"$object->artist lyrics\">$object->artist"; if ($object->adddate > $last30day) echo " new!"; if ($object->view > $poplyrics) echo " pop!"; echo "
    \n"; } mysql_free_result($result); } if (ceil($count / 50.0) > 1) { echo "
    \nPage "; $nextpage = 0; while ($nextpage < $count) { $looppage = ($nextpage / 50)+1; if ($looppage != $page) echo " $looppage "; else echo " ($page) "; $nextpage += 50; } echo "["; if ($page > 1) { echo "<Prev"; } else { echo "<Prev"; } echo "] ["; if ($page < $looppage) { echo "Next>"; } else { echo "Next>"; } echo "]
    "; } echo "
  • \n"; ?> "; echo ""; # IE Only display clipboard function ?>
    "; $linkSearchVariable = "$song"; $linkSearchVariable = preg_replace('/\s{2,}/', ' ', strtolower( preg_replace('/[^a-zA-Z\s0-9]/i', '', $linkSearchVariable) )) ; $linkSearchVariableDisplay = ucwords(preg_replace('/\s{2,}/', ' ', strtolower( preg_replace('/[^a-zA-Z\s0-9]/i', '', $linkSearchVariable) ))) ; $finalLink = str_replace(' ', '-', 'http://www.kovideo.net/'.$linkSearchVariable.'-search.html'); ?> « on KOvideo » « copy lyrics to clipboard (IE only) » "; echo "artist)."/".pathencode($object->song)."/\" target=_blank rel=\"nofollow\">« printer friendly version »"; echo "
    "; ?>




    $object->song - $object->artist "; if ($object->feat) echo " (featuring: $object->feat)"; echo "

    "; ?>
    [ a d v e r t i s e m e n t ]


    */ ?>

    Send "" Ringtone to your Cell

    lyric); /* sensor words */ $words = '#(fuck|shit|nigga|dick|bitch|pussy|suck|butt|moonshine|cocaine|cumming|slut|pussy|shit|erotic|tapeshit|hardcore)#i'; $lyric = preg_replace_callback($words, function($match) { return preg_replace('#[aeiou]#i', '_', $match[0], 1); }, $lyric); # $lyric = eregi_replace("\n\n(chorus|bridge|verse)($|\n)","\n\n\\1\n",$lyric); $lyric = ereg_replace('([[{].{2,15}[]}])',"\\1",$lyric); $lyric = ereg_replace("\r","",$lyric); $lyric = ereg_replace("\n\n", "

    ", $lyric); $lyric = ereg_replace("\n","
    ",$lyric); $lyric = "

    " . $lyric . "

    "; echo "
    $lyric
    "; // echo "
    ---------------
    "; // echo "http://www.absolutelyrics.com" . $_SERVER['REQUEST_URI']. "
    "; ?>

    Send "" Ringtone to your Cell

    Download "" Music

    */ ?>
    "; display_banner('300x250-below'); echo "

    "; echo ""; 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 "
    "; echo "Email to friend
    Receipt email Sender email
    Message artist)."\">song)."\">
    "; 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 "
    \n"; echo "
    \n"; echo "Popular $artist lyrics
    \n"; echo "
    \n"; $i = 0; $split = 0; while ($object = mysql_fetch_object($respopsong)) { if (!$split && ($i >= ($count/2))) { echo "\n"; $split = 1; } $i++; echo "$i. song)."/\" title=\"$artist - $object->song lyrics\">$object->song lyrics
    "; } echo "
    "; echo "
    "; } @mysql_free_result($respopsong); cache_stop(); } echo "
    "; $showringtone=0; $keyword=$artist; $showtable=1; $showartist=1; $showrows=2; } else { echo ""; echo "
    "; echo "Error
    $song - $artist not found
    "; } @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 ""; echo "
    "; echo "$object->artist
    Title: $object->song"; if ($object->feat) echo "
    Featuring: $object->feat"; 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 "
    "; echo "
    Pending Correction (".mysql_num_rows($result2)." msg.) Please don't post duplicate corrections.
    "; $object2 = mysql_fetch_object($result2); echo "1. $object2->reason
    " . str_replace("\n", "
    ", $object2->information); $i = 1; while ($object2 = mysql_fetch_object($result2)) { $i++; echo "
    $i. $object2->reason
    " . str_replace("\n", "
    ", $object2->information); } echo "
    "; } echo "
    "; echo "
    "; echo "Correct this song (See full lyric below)
    "; echo "Problem:

    "; echo "How to correct or reason:

    "; echo "Correct by (Who are you?):

    "; echo ""; echo "
    *You have to fill all blanks."; echo "
    "; echo "
    "; echo "
    Lyric
    "; $lyric = ereg_replace("\n","
    ",$object->lyric); echo "$lyric"; echo "
    "; } else { echo ""; echo "
    "; echo "Error
    $song - $artist not found
    "; } 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 ""; echo "
    "; echo "Submit Lyric
    International lyrics only (english songs or very popular non-english songs)
    "; echo "Title *

    "; echo "Artist * (Fill in the blank will override the list - please check your spelling)
    "; $result = mysql_query("/* Absolutelyrics.com */ SELECT artist FROM lyric GROUP BY artist ORDER BY artist"); if ($result && mysql_num_rows($result)) { echo " or "; mysql_free_result($result); } echo "
    "; echo "Album

    "; echo "Featuring

    "; echo "Lyric *

    "; echo "Submit by * (Who are you?)

    "; echo "
    "; } // ==================================== End Submit Lyric Form =============================== elseif ($mode == "sendsubmit") { // =================================== Send Submit ======================================== echo ""; 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.

    Submit by: $submit
    Title: $song
    Artist: $artist
    Featuring: $feat
    Lyric:
    ".str_replace("\n","
    ",$lyric); } else { echo "Error
    "; echo "Database problem. Your submition maybe duplicate in submit database but doesn't publish.


    "; } } mysql_free_result($result); } else { echo "Error
    "; echo "Database problem. Your submition does not post.


    "; } } else { echo "Error
    "; echo "You have to fill in 4 blanks. (Artist, Title, Lyric and Submit by)


    "; } echo "

    "; } // ==================================== End Send Submit =============================== elseif ($mode == "email") { // ====================================== Email ==================================== $result = mysql_query("/* Absolutelyrics.com */ SELECT * FROM lyric WHERE artist = '".addslashes($artist)."' AND song = '".addslashes($song)."'"); if ($result) { if ($object = mysql_fetch_object($result)) { echo ""; echo "
    "; echo "$object->artist
    Title: $object->song"; echo "
    "; echo "
    "; echo "
    "; echo "Result
    "; if ($email && ereg("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$" , $email) && $senderemail && ereg("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$", $senderemail)) { $mailmsg = ""; function strpos_arr($haystack, $needle) { if(!is_array($needle)) $needle = array($needle); foreach($needle as $what) { if(($pos = strpos($haystack, $what))!==false) return $pos; } return false; } if (strlen($message) > 100 || strpos_arr($message, array('lyric); $lyric = str_replace("\n","\n\t",$lyric); $mailmsg .= "\t$lyric\n\n==================================================\nVisit http://www.absolutelyrics.com/ for more music lyric."; if ($senderemail) { $header = "From: $senderemail\nReply-To: $senderemail\nReturn-Path: <$senderemail>\n"; } if (mail($email, "Lyric - $object->song - $object->artist", $mailmsg,"$header")) { echo "Sending to $email"; } else { echo "Can't send to $email"; } } else { echo "Message too long or spam detected."; } } else { echo "Not valid email address"; } echo "
    "; } mysql_free_result($result); } else { echo "
    "; echo "
    "; echo "Error
    "; echo "$song - $artist not found"; echo "
    '; } else { $lpp = 50; if ($preview) { $lpp = 20; } if (!$page) $page=1; if (!$sort) $sort='s'; if (!$op) $op='and'; if (!$type) $type='info'; if ($q) { $searchdata = ""; if ($type=="lyric") { $searchdata .= " lyric like '%".addslashes($q)."%' "; echo ""; exit; } else { $q2 = trim($q); $q2 = ereg_replace("[^a-zA-Z0-9\.\!]"," ", $q2); $q2 = ereg_replace(" +"," ",$q2); $q2 = trim($q2); $term = explode(" ", $q2); $term = array_values(array_unique($term)); $termcount = count($term); $term2 = array(); for ($i=0 ; $i < $termcount; $i++) { if (strlen($term[$i]) > 1) { $term2[] = $term[$i]; } } $term = $term2; unset($term2); $termcount = count($term); $searchdata = ""; for ($i=0;$i < $termcount; $i++) { $searchdata .= " ("; if ($type=='info') { $searchdata .= " INSTR(dkeyword, '".addslashes($term[$i])."') "; } else { if ($type=='ab' or $type=='as' or $type=='a') $searchdata .= " INSTR(artist, '".addslashes($term[$i])."') OR "; // if ($type=='ab' or $type=='bs' or $type=='b') $searchdata .= " INSTR(album, '".addslashes($term[$i])."') OR "; if ($type=='bs' or $type=='as' or $type=='s') $searchdata .= " INSTR(song, '".addslashes($term[$i])."') OR "; $searchdata .= " 0 "; } $searchdata .= " )"; if ($i < ($termcount-1)) { if ($op == 'and') $searchdata .= " AND "; else $searchdata .= " OR "; } } } } $count = 0; if ($searchdata) { echo "\n\n\n"; echo "\n"; $searchinfo = "/* Absolutelyrics.com UserAgent: $_SERVER[HTTP_USER_AGENT] IP: $_SERVER[REMOTE_ADDR] URI: $_SERVER[REQUEST_URI] Query: $_SERVER[QUERY_STRING] Referer: $_SERVER[HTTP_REFERER] */ "; $startrec = ($page-1) * $lpp; if ($sort == 'a') $orderby = ' artist ASC, song ASC '; else $orderby = ' song ASC, artist ASC '; if (!$preview) $query = $searchinfo . "SELECT SQL_CALC_FOUND_ROWS SQL_NO_CACHE album, song, artist, adddate FROM lyric WHERE $searchdata ORDER BY $orderby LIMIT $startrec, $lpp"; else $query = $searchinfo . "SELECT SQL_CALC_FOUND_ROWS SQL_NO_CACHE album, song, artist, lyric, adddate FROM lyric WHERE $searchdata ORDER BY $orderby LIMIT $startrec, $lpp"; # increase sort_buffer_size and read_rnd_buffer_size to 4MB mysql_query("set read_rnd_buffer_size=4194304, sort_buffer_size=4194304;"); $result = mysql_query($query); $result2 = mysql_query("/* Absolutelyrics.com */ SELECT FOUND_ROWS() as a"); $object2 = mysql_fetch_object($result2); $count = $object2->a; mysql_free_result($result2); unset($object2); if ($count > 0) { $startrecord = (($page-1) * $lpp) + 1; $endrecord = ($page)*$lpp; if ($endrecord > $count) $endrecord = $count; echo "



    "; echo "
    "; if ($googlesearch) { echo 'Due to heavy load, redirect to Google
    Searching...
    "; echo "
    Page $page  
    $startrecord - $endrecord of $count lyrics  

    Search options  
    "; if ($sort == 'a') { echo "Sorted by song name  
    "; } else { echo "Sorted by artist name  
    "; } if ($preview == 1) { echo "Turn off preview (?)  
    "; } else { echo "Turn on preview (?)  
    "; } echo "
    "; if ($page == 1) { echo "
    "; $showringtone=0; $keyword=$q; $showtable=1; $showartist=1; $showrows=1; } echo "
    "; } } ?>

    Send "" Ringtones to your Cell

    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 "
  • artist)."/".pathencode($object2->song)."/\" title=\"$object2->artist - $object2->song lyrics\">$object2->song - artist)."/\" title=\"$object2->artist lyrics\">$object2->artist
    "; } echo "
    "; } mysql_free_result($result2); unset($object2); } } if ($count > 0 && $page == 1 && strlen($q) >= 3 && !$preview) { $result2 = mysql_query("/* Absolutelyrics.com */ SELECT SQL_NO_CACHE artist, count(artist) a FROM lyric WHERE artist like '".addslashes($q)."%' GROUP BY artist ORDER BY artist ASC"); if ($result2) { if (mysql_num_rows($result2)) { echo "Artists Match '$q'
    "; while ($object2=mysql_fetch_object($result2)) { echo "
  • artist)."/\" title=\"$object2->artist lyrics\">$object2->artist ($object2->a)
    "; } echo "
    "; } mysql_free_result($result2); unset($object2); } } /* // ¤é¹ËÒ Popular if ($count > 20 && $page == 1 && !$preview) { echo "Most Popular for '$q'
    "; if (!$preview) $query = "SELECT SQL_NO_CACHE album, song, artist, adddate FROM lyric WHERE $searchdata ORDER BY view DESC LIMIT 0,5"; else $query = "SELECT SQL_NO_CACHE album, song, artist, lyric, adddate FROM lyric WHERE $searchdata ORDER BY view DESC LIMIT 0,5"; $result2 = mysql_query($query); if ($result2) { while ($object2 = mysql_fetch_object($result2)) { $song = $object2->song; $artist = $object2->artist; for ($i=0; $i < $termcount; $i++) { $song = eregi_replace("(".$term[$i].")", "\\1", $song); $artist = eregi_replace("(".$term[$i].")", "\\1", $artist); } echo "
  • "; if ($sort == 'a') echo "artist)."/\" title=\"$object2->artist lyrics\">$artist - artist)."/".pathencode($object2->song)."/\" title=\"$object2->artist - $object2->song lyrics\">$song"; else echo "artist)."/".pathencode($object2->song)."/\" title=\"$object2->artist - $object2->song lyrics\">$song - artist)."/\" title=\"$artist lyrics\">$artist"; if ($object2->adddate > $last30day) echo " new!"; echo "
    "; if ($preview) { echo "
     "; echo substr($object2->lyric, 0, 200); echo " ...
    "; echo "

    "; } $song = ''; $artist = ''; } mysql_free_result($result2); unset($object2); } echo "
    "; } */ echo "Search Result for '". htmlspecialchars($q) ."'
    "; if ($searchdata) { if ($count > 0) { if ($result) { while ($object = mysql_fetch_object($result)) { $song = $object->song; $artist = $object->artist; for ($i=0; $i < $termcount; $i++) { $song = eregi_replace("(".$term[$i].")", "\\1", $song); $artist = eregi_replace("(".$term[$i].")", "\\1", $artist); } echo "
  • "; if ($sort == 'a') echo "artist)."/\" title=\"$object->artist lyrics\">$artist - artist)."/".pathencode($object->song)."/\" title=\"$object->artist - $object->song lyrics\">$song"; else echo "artist)."/".pathencode($object->song)."/\" title=\"$object->artist - $object->song lyrics\">$song - artist)."/\" title=\"$object->artist lyrics\">$artist"; if ($object->adddate > $last30day) echo " new!"; echo "
    "; if ($preview) { echo "
     "; echo substr($object->lyric, 0, 200); echo " ...
    "; echo "

    "; } $song = ''; $artist = ''; } mysql_free_result($result); } ?>

    Send "" Ringtones to your Cell

    1) { echo "
    Page "; $nextpage = 0; while ($nextpage < $count) { $looppage = ($nextpage / $lpp)+1; if ($looppage != $page) echo " $looppage "; else echo " ($page) "; $nextpage += $lpp; } echo "["; if ($page > 1) { // echo "<Prev"; echo "<Prev"; } else { echo "<Prev"; } echo "] ["; if ($page < $looppage) { // echo "Next>"; echo "Next>"; } else { echo "Next>"; } echo "]
    "; } } else { echo "No result found.

    What can you do next?
    1. Reduce your keywords or check your spelling
    2. Go to advance search page
    3. Visit top site (more than 100 web sites)
    "; } } else { echo "Nothing to search. Please enter more keywords"; } } echo ""; ?> "; echo ""; ?> Privacy Statement for Absolute Lyrics
    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:

    1. What personally identifiable information of yours or third party personally identification is collected from you through the web site
    2. The organization collecting the information
    3. How the information is used
    4. With whom the information may be shared
    5. What choices are available to you regarding collection, use and distribution of the information
    6. The kind of security procedures that are in place to protect the loss, misuse or alteration of information under "Absolute Lyrics" control
    7. 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
    "; echo ""; ?>
    [ a d v e r t i s e m e n t ]
    Top 50 Popular Lyrics

      "; $query = "/* Absolutelyrics.com */ SELECT artist, song, yesterdayview FROM lyric WHERE adddate > NOW() - INTERVAL 12 MONTH ORDER BY yesterdayview DESC LIMIT 0, 50"; $result = mysql_query($query); if ($result) { while ($object = mysql_fetch_object($result)) { echo "
    1. artist)."/".pathencode($object->song)."/\" title=\"$object->artist - $object->song lyrics\">$object->artist - $object->song"; echo " (...artist)."/\" title=\"$object->artist lyrics\">$object->artist)"; echo "
      "; } mysql_free_result($result); } echo "
    \n"; } //============== Top 50 Artists=================== elseif ($mode == "top50a") { echo ""; echo "
    "; ?>
    [ a d v e r t i s e m e n t ]
    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 "
    1. artist)."/\" title=\"$object->artist lyrics\">$object->artist ($object->b songs)"; echo "
      "; } mysql_free_result($result); } echo "
    \n"; } //============== Bill Board =================== elseif ($mode == "billboard") { echo ""; echo "
    "; ?>
    [ a d v e r t i s e m e n t ]
    Billboard Top 20 Hot Single Lyrics
      "; $billboard = file("lyricdata.txt"); for($songnum = 0; $songnum < 20; $songnum++) { $songdata = split('\|', trim($billboard[$songnum])); if ($songdata[2] && $songdata[3]) { echo "
    1. $songdata[2] Lyrics - $songdata[3]"; echo " (...$songdata[3] Lyrics)"; echo "
      "; } else { echo "
    2. $songdata[0] - $songdata[1]"; } } echo "
    \n"; } //============= Adv Search ============= elseif ($mode == "searchpage") { echo "
    "; echo ""; echo "
    "; echo "
    "; echo "Quick Search
    "; echo "This will search in artist, album and song. All search term (separate by space) must be found

    "; echo " "; echo "
    "; echo "Sort result by:
    "; echo "Preview lyrics: [Disabled - Your search will be redirected to Google.com.]
    "; echo "
    "; echo "
    "; echo "
    "; echo "
    "; echo "Lyric Content Search [Disabled - Your search will be redirected to Google.com.]
    "; echo "This will search in lyric content. It will use parse match not word match

    "; echo " "; echo "
    "; echo "Sort result by:
    "; echo "Preview lyrics:
    "; echo "
    "; echo "
    "; echo "
    "; echo "
    "; echo "Power Search
    "; echo "This will search in song information, but more options.

    "; echo "Query:
    "; echo "Search in:
    "; echo "Word match:
    "; echo "Sort result by:
    "; echo "Preview lyrics: [Disabled - Your search will be redirected to Google.com.]
    "; echo "
    "; echo "
    "; ?>



    Quick Lyrics Search
    " />
    Advance Search
    For your Website?

    Statistics
    a; mysql_free_result($result); $result = mysql_query("/* Absolutelyrics.com */ SELECT COUNT(*) a FROM lyric_album"); $object = mysql_fetch_object($result); $album = $object->a; mysql_free_result($result); $result = mysql_query("/* Absolutelyrics.com */ SELECT COUNT(*) a FROM lyric"); $object = mysql_fetch_object($result); $lyric = $object->a; mysql_free_result($result); echo "- Artists: ". number_format($artist) . "
    - Albums: ". number_format($album) . "
    - Lyrics: ". number_format($lyric) . "
    "; unset($result); unset($object); unset($artist); unset($album); unset($lyric); ?>

    What are lyrics?
    Lyrics are the written words in a song. ...more

    Google

    Recommended
    - Lyrics Planet
    - Song Lyrics
    - Lyrics Depot
    - Soundtrack Lyrics
    - Mp3 Downloads
    - Lyred.com Lyrics
    - More Lyrics
    - Starpulse.com
    - Lyrics Time
    - Lyrics Database
    - Country Lyrics & Tabs
    - TabPower.com
    - New Lyrics
    - PopLyrics.net
    - MP3Songs.org.uk
    - Lyrics Mansion




    copyright (c) absolute lyrics. contact us at lyric3_at_siamzone_dot_com
    "; if (!$mode) { ?>
    Time = ". (microtime_float() - $start) . "
    "; if ($mode == "view") { echo << CODE; } echo << PREDICTAD; ?> timer = setTimeout('attachbanner()', 50); */?> " ; } */ @mysql_close(); @mysql_close(); @mysql_close(); echo ""; ?>