session_save_path("/home/users/web/b2852/ipw.genivcom/phpsessions"); session_start(); $username = $g_username; //echo "$g_username"; $ID = $HTTP_GET_VARS['id']; include "./includes/incDB.php"; $strsql = "SELECT * FROM amw where id = $ID"; $rs = mysql_query($strsql, $db); $i = 0; while ($myrow = mysql_fetch_array($rs)) { $cd_image[$i] = $myrow["album_image"]; $cd_album_name[$i] = $myrow["album_name"]; $title[$i] = htmlspecialchars($cd_album_name[$i]); //$title[$i]=str_replace("\"","", $link[$j]); $cd_chinese_name[$i] = $myrow["chinese_name"]; $cname[$i] = htmlentities($cd_chinese_name[$i]); $cd_english_name[$i] = $myrow["artist_english_name"]; $cd_yesasia[$i] = $myrow["sponsor_link1"]; $cd_language[$i] = $myrow["language"]; $cd_id[$i] = $myrow["id"]; $i++; } // lyrics //$lname = str_replace(" ","+",$cd_album_name[0]); $lyrics_query = "SELECT lyric_id from Lyrics where lyric_album_name = '$cd_album_name[0]'"; $lyrics_rs = mysql_query($lyrics_query, $db); $lyriccounter = 0; while ($myrow = mysql_fetch_array($lyrics_rs)) { $l_id[$lyriccounter] = $myrow["lyric_id"]; $lyriccounter++; } //str_replace(" ","+",$cd_album_name[0]); //echo "$cd_album_name[0]"; $i2 = 0; $i_chk_dk2 = 0; $i_chk_dk3 = 0; $strsql2 = "SELECT * FROM amw where album_name = '$cd_album_name[0]' and artist_english_name = '$cd_english_name[0]' and disk_number=1 order by song_number"; $strsql_chk_dk2 = "SELECT * FROM amw where album_name = '$cd_album_name[0]' and artist_english_name = '$cd_english_name[0]' and disk_number=2 order by song_number"; $strsql_chk_dk3 = "SELECT * FROM amw where album_name = '$cd_album_name[0]' and artist_english_name = '$cd_english_name[0]' and disk_number=3 order by song_number"; $rs2 = mysql_query($strsql2, $db); $rs_chk_dk2 = mysql_query($strsql_chk_dk2, $db); $rs_chk_dk3 = mysql_query($strsql_chk_dk3, $db); //--check/return disc1 info--// while ($myrow2 = mysql_fetch_array($rs2)) { $cd_songs[$i2] = $myrow2["song_name"]; $cd_id[$i2] = $myrow2["id"]; $cd_midi[$i2] = $myrow2["string2"]; $cd_dl1[$i2] = $myrow2["song_dl1"]; $cd_dl2[$i2] = $myrow2["song_dl2"]; $cd_lyrics[$i2] = $myrow2["lyric_url"]; $cd_lyrics[$i2] = $cd_lyrics[$i2]; $cd_date[$i2] = $myrow2["string1"]; //### code to filter out dead links ### if (stristr ($cd_dl1[$i2],"9sky")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"9sky")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"61.166.155.158")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"61.166.155.158")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"202.103.69.54")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"202.103.69.54")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"202.97.181.38")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"202.97.181.38")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"99music")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"99music")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"202.107.217.213")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"202.107.217.213")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"sz139")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"sz139")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"szkantou")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"szkantou")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"sz138")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"sz138")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"202.102.2.131")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"202.102.2.131")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"202.102.2.136")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"202.102.2.136")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"inhe.net")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"inhe.net")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"www.365mp3.com")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"www.365mp3.com")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"202.102.2.148")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"202.102.2.148")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"202.103.176.82")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"202.103.176.82")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"61.139.8.36")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"61.139.8.36")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"tyfo.com")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"tyfo.com")) { $cd_dl2[$i2] = "offline.shtml"; } if (stristr ($cd_dl1[$i2],"tv.jninfo.net.cn")) { $cd_dl1[$i2] = "offline.shtml"; } if (stristr ($cd_dl2[$i2],"tv.jninfo.net.cn")) { $cd_dl2[$i2] = "offline.shtml"; } $i2++; } //--check/return disc2 info--// while ($myrow_chk_dk2 = mysql_fetch_array($rs_chk_dk2)) { $cd2_midi[$i_chk_dk2] = $myrow_chk_dk2["string2"]; $cd2_songs[$i_chk_dk2] = $myrow_chk_dk2["song_name"]; $cd2_id[$i_chk_dk2] = $myrow_chk_dk2["id"]; $cd2_dl1[$i_chk_dk2] = $myrow_chk_dk2["song_dl1"]; $cd2_dl2[$i_chk_dk2] = $myrow_chk_dk2["song_dl2"]; $cd2_lyrics[$i_chk_dk2] = $myrow_chk_dk2["lyric_url"]; $cd2_date[$i_chk_dk2] = $myrow_chk_dk2["string1"]; //### code to filter out dead links ### if (stristr ($cd2_dl1[$i2],"9sky")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"9sky")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"61.166.155.158")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"61.166.155.158")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"202.103.69.54")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"202.103.69.54")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"202.97.181.38")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"202.97.181.38")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"99music")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"99music")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"202.107.217.213")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"202.107.217.213")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"sz139")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"sz139")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"szkantou")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"szkantou")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"sz138")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"sz138")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"202.102.2.131")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"202.102.2.131")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"202.102.2.136")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"202.102.2.136")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"inhe.net")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"inhe.net")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"www.365mp3.com")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"www.365mp3.com")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"202.102.2.148")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"202.102.2.148")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"202.103.176.82")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"202.103.176.82")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"61.139.8.36")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"61.139.8.36")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"tyfo.com")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"tyfo.com")) { $cd2_dl2[$i2] = "offline.shtml"; } if (stristr ($cd2_dl1[$i2],"tv.jninfo.net.cn")) { $cd2_dl1[$i2] = "offline.shtml"; } if (stristr ($cd2_dl2[$i2],"tv.jninfo.net.cn")) { $cd2_dl2[$i2] = "offline.shtml"; } $i_chk_dk2++; } //--check/return disc3 info--// while ($myrow_chk_dk3 = mysql_fetch_array($rs_chk_dk3)) { $cd3_midi[$i_chk_dk3] = $myrow_chk_dk3["string2"]; $cd3_songs[$i_chk_dk3] = $myrow_chk_dk3["song_name"]; $cd3_id[$i_chk_dk3] = $myrow_chk_dk3["id"]; $cd3_dl1[$i_chk_dk3] = $myrow_chk_dk3["song_dl1"]; $cd3_dl2[$i_chk_dk3] = $myrow_chk_dk3["song_dl2"]; $cd3_lyrics[$i_chk_dk3] = $myrow_chk_dk3["lyric_url"]; $cd3_date[$i_chk_dk3] = $myrow_chk_dk3["string1"]; //### code to filter out dead links ### if (stristr ($cd3_dl1[$i2],"9sky")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"9sky")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"61.166.155.158")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"61.166.155.158")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"202.103.69.54")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"202.103.69.54")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"202.97.181.38")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"202.97.181.38")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"99music")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"99music")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"202.107.217.213")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"202.107.217.213")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"sz139")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"sz139")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"szkantou")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"szkantou")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"sz138")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"sz138")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"202.102.2.131")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"202.102.2.131")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"202.102.2.136")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"202.102.2.136")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"inhe.net")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"inhe.net")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"www.365mp3.com")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"www.365mp3.com")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"202.102.2.148")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"202.102.2.148")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"202.103.176.82")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"202.103.176.82")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"61.139.8.36")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"61.139.8.36")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"tyfo.com")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"tyfo.com")) { $cd3_dl2[$i2] = "offline.shtml"; } if (stristr ($cd3_dl1[$i2],"tv.jninfo.net.cn")) { $cd3_dl1[$i2] = "offline.shtml"; } if (stristr ($cd3_dl2[$i2],"tv.jninfo.net.cn")) { $cd3_dl2[$i2] = "offline.shtml"; } $i_chk_dk3++; } ?>
| : [] disc [1] | |||||||||||||||||||||||||
|
|
if ($g_username != "") {
$curdate2 = date("m/d/Y");
for ($x = 0; $x <= ($i2-1); $x++) {
$x2=$x+1;
list($smonth,$sday,$syear) = explode("/",$cd_date[$x]);
list($emonth,$eday,$eyear) = explode("/",$curdate2);
$stimestamp = mktime(0,0,0,$smonth,$sday,$syear);
$etimestamp = mktime(0,0,0,$emonth,$eday,$eyear);
$daydiff = $etimestamp - $stimestamp;
if ($daydiff >= 31536000) {
if ($lyriccounter > 0) {
echo " "; } else { echo " "; } } else { if (($cd_dl1[$x] == "offline.shtml")&&($cd_dl2[$x] == "offline.shtml")){ echo ".:: NA ::. $old_album"; } else { if (($cd_dl1[$x] == "offline.shtml")&&($cd_dl2[$x] != "offline.shtml")){ if ($lyriccounter > 0) { echo " "; } else { echo " "; } } else { if (($cd_dl1[$x] != "offline.shtml")&&($cd_dl2[$x] == "offline.shtml")){ if ($lyriccounter > 0) { echo " "; } else { echo " "; } } else { if ($lyriccounter > 0) { echo " "; } else { echo " "; } } } } } //echo ".:: download #1 ::. "; } //for } //outer if else { //if ($lyriccounter > 0) { //echo " "; //} //else { //echo " "; //} } ?> |
|||||||||||||||||||||||