Timestamp' .'' .'' .'' .'' .'' .'' .'' .'' .''; break; case 'md5': $static = true; $md5 = ($_POST['md_string']) ? md5($_POST['md_string']) : ''; $html = '' .'' .'' .'' .'' .''; break; case 'release': break; case 'd': $static = true; $sql = mysql_query("SELECT * FROM `web_download` WHERE `wd_id` = '".$_GET['qs']."'") or die (mysql_error()); //$html = 'Download File '.$_GET['qs']; if (mysql_num_rows($sql) != 0) { $arr = mysql_fetch_assoc($sql); $file = $root.'files/'.$arr['wd_file']; if (file_exists($file)) { header("Content-Description: File Transfer"); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=\"".$arr['wd_file']."\""); readfile ($file); } else { echo $file.' not found'; } } else { header("location: http://www.frontliner.nl"); } break; case 'r': $static = true; if (!$_GET['qs']) { header("location: http://www.frontliner.nl"); exit; } else { $sql = mysql_query("SELECT * FROM `web_release_links` WHERE `wrl_id` = '".$_GET['qs']."' LIMIT 1") or die (mysql_error()); if (mysql_num_rows($sql) == 0) { echo 'Not found...'; exit; } else { $arr = mysql_fetch_assoc($sql); $sql_cover = mysql_query("SELECT * FROM `web_download` WHERE `wd_id` = '".$arr['wrl_cover']."' LIMIT 1") or die (mysql_error()); $imgr = 'http://flnr.nl/files/'; if (!file_exists('files/'.$arr['wrl_cover'])) { $coverurl = 'http://frontliner.nl/img17/pr_gray.jpg'; } else { $coverurl = $imgr.$arr['wrl_cover']; } $lnkStyle = 'display: block; width: 300px; height: auto; border: 1px #aaa solid; font-size: 13px; font-weight: bold;'; $html = ''; $html .= ''; $html .= ''; $html .= ''.$arr['wrl_title'].''; $html .= ''; $html .= ''; $html .= ''; $client_ip = $_SERVER['REMOTE_ADDR']; if ($client_ip == $homeIp) { $html .= '
'; $html .= '
'; $html .= 'ONLY IP '.$homeIp.' CAN SEE THIS LIST

'; $html .= ''; $html .= ''; $sql_adminlist = mysql_query("SELECT * FROM `web_release_links` ORDER BY `wrl_date` DESC") or die (mysql_error()); while ($arr_al = mysql_fetch_assoc($sql_adminlist)) { $html .= ''; } $html .= '
TrackLink
http://flnr.nl/r/'.$arr_al['wrl_id'].''.$arr_al['wrl_title'].'
'; $html .= '
Go to FFUTS to add new release links or to edit a release link.'; $html .= '
'; } $html .= '
'; //$html .= 'IP: '.$_SERVER['REMOTE_ADDR'].'
'; //print_r($_SERVER); $html .= '


'; $html .= '
'.$arr['wrl_description'].'

'; $html .= ($arr['wrl_spotify']) ? 'SPOTIFY' : ''; $html .= ($arr['wrl_youtube']) ? 'YOUTUBE' : ''; $html .= ($arr['wrl_deezer']) ? 'DEEZER' : ''; $html .= ($arr['wrl_mixcloud']) ? 'MIXCLOUD' : ''; $html .= ($arr['wrl_soundcloud']) ? 'SOUNDCLOUD' : ''; $html .= ($arr['wrl_itunes']) ? 'ITUNES' : ''; $html .= ($arr['wrl_hardstylecom']) ? 'HARDSTYLE.COM' : ''; $html .= ($arr['wrl_beatport']) ? 'BEATPORT' : ''; $html .= ($arr['wrl_juno_downloads']) ? 'JUNO' : ''; $html .= ($arr['wrl_google_play']) ? 'GOOGLE PLAY' : ''; $html .= '

'; $html .= ''; $html .= ''; echo $html; exit; } } break; default: $static = false; break; } /* DATABASE */ if (!$static) { $sql = getSql("SELECT * FROM `flnr_links` WHERE `fl_url` = '".$_GET['code']."';"); $urlCode = $_GET['code']; $query = $_GET['qs']; if ($sql['num_rows'] > 0) { $ru = str_replace(" ", "", $sql['array'][0]['fl_redirect']); switch ($_GET['code']) { case 'start': $location = 'http://admin.frontliner.nl'; break; case 'viewmc': $location = $ru."?cid=".$_GET['qs']; break; default: $location = $ru; break; } } else { $location = 'http://frontliner.nl'; } if ($_SERVER['REMOTE_ADDR'] == '80.61.94.192x') { //echo $location; print_r($_SERVER); } else { $ipdat = @json_decode(file_get_contents("http://www.geoplugin.net/json.gp?ip=" . $_SERVER['REMOTE_ADDR'])); $country = $ipdat->geoplugin_countryCode; $c = ($country) ? $country : $_SERVER['HTTP_USER_AGENT']; mysql_query("INSERT INTO `flnr_log` VALUES (NULL, '".$_SERVER['REMOTE_ADDR']."', '".mktime()."', '".$sql['array'][0]['fl_id']."', '".$_SERVER['HTTP_USER_AGENT']."', '".$c."', '');"); header("location: ".$location); } } else { $width = 370; echo '
'.strtoupper($_GET['code']).':'.$html.'
'; } ?>