)/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net");
exit;
}else if ( preg_match("/modules.php\?name=/i", $_SERVER['REQUEST_URI']) && preg_match("/\-|\(|\)|\+/", $_SERVER['REQUEST_URI']) OR preg_match("/(img=alt)|(img\/haber)|(<\/a>
)/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net");
exit;
}else if ( preg_match("/modules.php\&name=&op=content&tid/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net");
exit;
}
/**/
//FILTERS OF CORRECTION FOR GCalendar without $name (GCalendar) including GCalendar datas
if ( preg_match("/modules.php\?name=&/i", $_SERVER['REQUEST_URI']) && preg_match("/sa/i", $_SERVER['REQUEST_URI']) && isset($_REQUEST['year']) && isset($_REQUEST['month']) && isset($_REQUEST['month_l']) ) {
//$year = intval( $_REQUEST['year'] ); $month = intval( $_REQUEST['month'] );
//TEST
//echo "SA - GCalendar :".$_REQUEST['sa'];
header("Location:http://www.turkpopmuzik.net/etkinlik-takvimi");
exit;
}
//FILTERS OF REDIRECTION FOR old module NuCalendar
if ( preg_match("/modules.php\?name=NuCalendar/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net/etkinlik-takvimi");
exit;
}
//FILTERS OF REDIRECTION FOR the modules Private_Messages & Downloads
if ( preg_match("/modules.php\?name=Private_Messages/i", $_SERVER['REQUEST_URI']) OR preg_match("/modules.php\?name=Downloads/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net");
exit;
}
//FILTERS OF REDIRECTION FOR mislink of yarismalar/img/albums/asfs/sanatci-emre-kaya-1363
if ( preg_match("/yarismalar\/img\/albums\/asfs\/sanatci/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net/yarismalar");
exit;
}
//FILTER für old modules Sanatcilar redirection to new module Artists
if (preg_match("/modules.php\?name=Sanatcilar/i", $_SERVER['REQUEST_URI']) && isset($_REQUEST['tid'])) {
$tid=$_REQUEST['tid'];
header("Location: http://www.turkpopmuzik.net/sanatci-$tid");
exit();
}
//GCALENDAR PRINTABLE STORNO
/**/
if ( preg_match("/modules.php/i", $_SERVER['REQUEST_URI']) && preg_match("/GCalendar/i", $_SERVER['REQUEST_URI']) && isset($_REQUEST['printable']) ) {
header("Location:http://www.turkpopmuzik.net/etkinlik-takvimi");
exit;
}
//FILTER für modules.php?name=nukeNAV&op=login
if ( preg_match("/nukeNAV/i", $_SERVER['REQUEST_URI']) && isset ($_REQUEST['op']) ) {
header("Location:http://www.turkpopmuzik.net");
exit;
}
//FILTER für modules.php with Downloads
if ( preg_match("/modules.php/i", $_SERVER['REQUEST_URI']) && preg_match("/Downloads/i", $_SERVER['REQUEST_URI']) OR preg_match("/name=Downloads/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net");
exit;
}
//FILTER für modules.php with Forum due to shotting down
if ( preg_match("/modules.php/i", $_SERVER['REQUEST_URI']) && preg_match("/Forum/i", $_SERVER['REQUEST_URI'])) {
header("Location:http://www.turkpopmuzik.net");
exit;
}
//FILTER für modules.php with Chronology query
if ( preg_match("/Chronology/i", $_SERVER['REQUEST_URI']) && isset( $_REQUEST['query']) ) {
$query = $_REQUEST['query'];
//echo "QUERY : ".$query;
header("Location:http://www.turkpopmuzik.net/tarihte-muzik-olaylari-ara-$query");
exit;
}
//FILTER für http://www.turkpopmuzik.net/downloads/img/img/albums/oses-turkiye-yil-2013-sayfa-8
if ( preg_match("/downloads\/img\/img\/albums\/oses-turkiye-yil-2013-sayfa-8/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net/oses-turkiye-yil-2013-sayfa-8");
exit;
}
/**/
//FILTER
if ( preg_match("/artists\/modules\/Encyclopedia\/dunya-muzik-listeleri-yil-1980/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net/dunya-muzik-listeleri-yil-1980");
exit;
}
//FILTER für actions/control/similaritems/asfs/modules/..../dunya-muzik-listeleri-yil-... ODER
//S8/HLS_VOD/63998_9805/modules/Krono/dunya-muzik-listeleri-yil-1997
if ( preg_match("/\/modules\/Krono/i", $_SERVER['REQUEST_URI']) ) {
if ( preg_match("/dunya-muzik-listeleri-yil/i", $_SERVER['REQUEST_URI']) ) {
$yil= intval( $_REQUEST['yil'] );
header("Location:http://www.turkpopmuzik.net/dunya-muzik-listeleri-yil-$yil");
exit;
}else if ( preg_match("/ensoncikan-diger-albumler/i", $_SERVER['REQUEST_URI']) ) {
$yil= intval( $_REQUEST['yil'] );
header("Location:http://www.turkpopmuzik.net/ensoncikan-diger-albumler");
exit;
}else if ( preg_match("/eurovision/i", $_SERVER['REQUEST_URI']) ) {
$yil= intval( $_REQUEST['yil'] );
header("Location:http://www.turkpopmuzik.net/eurovision");
exit;
}
}
//FILTER für actions/control/similaritems/asfs/modules/..../... veya actions/control/player/modules/
if ( preg_match("/actions\/control\/similaritems/i", $_SERVER['REQUEST_URI'])
OR preg_match("/www.kralmuzik.com.tr\/asfs/i", $_SERVER['REQUEST_URI'])
OR preg_match("/actions\/control\/player/i", $_SERVER['REQUEST_URI'])
) {
if ( preg_match("/kronoloji-/i", $_SERVER['REQUEST_URI']) && isset($_REQUEST['tid']) && isset($_REQUEST['yil']) ) {
$tid= intval( $_REQUEST['tid'] ); $yil= intval( $_REQUEST['yil'] );
header("Location:http://www.turkpopmuzik.net/kronoloji-$tid-yil-$yil");
exit;
}elseif ( preg_match("/altin-mikrofon-yil-/i", $_SERVER['REQUEST_URI']) ){
$yil= intval( $_REQUEST['yil'] );
header("Location:http://www.turkpopmuzik.net/altin-mikrofon-yil-$yil");
exit;
//Simdilik zyukardakiler disinda bufferdan gelenler ana sayfaya yonlendirildi!
}elseif ( preg_match("/oses-turkiye-yil-/i", $_SERVER['REQUEST_URI']) ){
$yil= intval( $_REQUEST['yil'] );
header("Location:http://www.turkpopmuzik.net/oses-turkiye-yil-$yil");
exit;
}elseif ( preg_match("/dunya-muzik-listeleri/i", $_SERVER['REQUEST_URI']) ) {
$yil = intval( $_REQUEST['yil'] );
header("Location:http://www.turkpopmuzik.net/dunya-muzik-listeleri-yil-$yil");
exit;
}elseif ( preg_match("/ensoncikan-diger-albumler/i", $_SERVER['REQUEST_URI']) ) {
//$tid = intval( $_REQUEST['tid'] ); //degeri yüklenmedi
header("Location:http://www.turkpopmuzik.net/ensoncikan-diger-albumler");
exit;
//Simdilik yukardakiler disinda bufferdan gelenler ana sayfaya yonlendirildi!
}else{
header("Location:http://www.turkpopmuzik.net");
exit;
}
}
//FILTER für www.ossimuzik.com/modules/Artists/editorun-notu
if ( preg_match("/www.ossimuzik.com/i", $_SERVER['REQUEST_URI'])
OR preg_match("/a.vimeocdn.com\/p\/flash\/moogaloop/i", $_SERVER['REQUEST_URI'])
OR preg_match("/www.birzamanlar.net\/yazarlar/i", $_SERVER['REQUEST_URI'])
OR preg_match("/www.turk.ch\/blocks/i", $_SERVER['REQUEST_URI']) ) {
if ( preg_match("/editorun-notu/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net/editorun-notu");
exit;
}elseif ( preg_match("/ensoncikan-diger-albumler-album-/i", $_SERVER['REQUEST_URI']) ) {
//$tid = intval( $_REQUEST['tid'] ); //degeri burada gelmiyor!
header("Location:http://www.turkpopmuzik.net/ensoncikan-diger-albumler");
exit;
}elseif ( preg_match("/eurovision/i", $_SERVER['REQUEST_URI']) ) {
//$tid = intval( $_REQUEST['tid'] ); $title = intval( $_REQUEST['title'] ); //degeri burada gelmiyor!
header("Location:http://www.turkpopmuzik.net/eurovision");
exit;
}elseif ( preg_match("/dunya-muzik-listeleri/i", $_SERVER['REQUEST_URI']) ) {
$yil = intval( $_REQUEST['yil'] );
header("Location:http://www.turkpopmuzik.net/dunya-muzik-listeleri-yil-$yil");
exit;
}else{
header("Location:http://www.turkpopmuzik.net");
exit;
}
}
//FILTER für http://www.turkpopmuzik.net/vimeo.com/modules/Krono/giris
//ODER /vimeo.com/blocks/eurovision-26
if ( preg_match("/vimeo.com/i", $_SERVER['REQUEST_URI']) ) {
if ( preg_match("/modules\/Krono\/giris/i", $_SERVER['REQUEST_URI']) ) {
header("Location:http://www.turkpopmuzik.net/giris");
exit;
}elseif ( preg_match("/eurovision/i", $_SERVER['REQUEST_URI']) ) {
//$tid = intval( $_REQUEST['tid'] ); //degeri burada gelmiyor!
header("Location:http://www.turkpopmuzik.net/eurovision");
exit;
}
}
$name = addslashes(check_html(trim($name), 'nohtml')); //Fixes SQL Injection
/////////////////
if(!defined('XHR')) include_once 'includes/RWS_WhoIsWhere/wiw.inc.php';
/////////////////
if(!isset($file)) { $file = 'index'; }
if(isset($name)) {
if(stristr($name, 'http://')) { die('Hi and Bye'); }
if(stristr($file, 'http://')) { die('Hi and Bye'); }
$modstring = strtolower($_SERVER['QUERY_STRING']);
if(stripos_clone($modstring, '&user=') AND ($name == 'Private_Messages' || $name == 'Forums' || $name == 'Members_List')) header('Location: index.php');
global $nukeuser, $db, $prefix;
$nukeuser = base64_decode($user);
$nukeuser = addslashes($nukeuser);
$result = $db->sql_query('SELECT * FROM `'.$prefix.'_modules` WHERE `title` = \'' . $name . '\'');
$row = $db->sql_fetchrow($result);
$mod_active = intval($row['active']);
$view = intval($row['view']);
$groups = $row['groups'];
$mod_group = intval($row['mod_group']);
if(($mod_active == 1) OR (isset($admin) AND is_admin($admin))) {
if(!isset($file)) { $file = 'index'; }
if(preg_match('/\.\./', $name) || preg_match('/\.\./', $file)) {
$pagetitle = '- '._SOCOOL;
include_once 'header.php';
OpenTable();
echo '' , _SOCOOL , '
'
, _GOBACK , '
';
CloseTable();
include_once 'footer.php';
die();
} else {
$ThemeSel = get_theme();
if(file_exists('themes/' . $ThemeSel . '/modules/' . $name . '/' . $file . '.php')) {
$modpath = 'themes/' . $ThemeSel . '/';
} else {
$modpath = '';
}
$modpath .= 'modules/' . $name . '/' . $file . '.php';
if(file_exists($modpath)) {
// The module's $view describes the accessibility of the module:
// 0 - All Visitors
// 1 - Registered Users Only
// 2 - Administrators Only
// 3 - Paid Subscribers Only
// 4 - NSN Groups Only
// *Note: Admins can see all access levels.
// *Note for the Users Group/Points system: If a module is set to Registered Users Only, but has a non-zero
// mod_group value, then the module is only available to those users who have enough points to be in that
// Users Group.
$canView = ($view == 0) || // all visitors
($view == 1 && isset($user) && // registered user and
($mod_group <= 0 || is_group($user, $name))) || // (no points needed OR user has points)
(isset($admin) && is_admin($admin)) || // is admin
($view == 3 && paid()) || // paid subscriber
($view >= 4 && in_groups($groups)); // NSN Groups user
if ($canView) {
include_once($modpath);
} else {
$pagetitle = '- ' . _RESTRICTEDAREA;
include_once 'header.php';
OpenTable();
echo '' , _RESTRICTEDAREA , '
'
, _GOBACK , '
';
CloseTable();
include_once 'footer.php';
die();
}
} else {
$pagetitle = '- ' . _FILENOTFOUND;
include_once 'header.php';
OpenTable();
echo '' , _FILENOTFOUND , '
'
, _GOBACK , '
';
CloseTable();
include_once 'footer.php';
die ();
}
}
} else {
$pagetitle = '- ' . _MODULENOTACTIVE;
include_once 'header.php';
OpenTable();
echo '' , _MODULENOTACTIVE , '
'
, _GOBACK , '
';
CloseTable();
include_once 'footer.php';
die ();
}
} else {
$pagetitle = '- ' . _MODULENOTFOUND;
include_once 'header.php';
OpenTable();
echo '' , _MODULENOTFOUND , '
'
, _GOBACK , '
';
CloseTable();
include_once 'footer.php';
die ();
}
if(!function_exists('stripos_clone')) {
function stripos_clone($haystack, $needle, $offset=0) {
return strpos(strtoupper($haystack), strtoupper($needle), $offset);
}
}
?>