/* ---------------------------------------------------------------- Programm Version Datum Autor Copyright Version : 1.1 21.09.2007 BG Änderung : Alle Domains, welche in active system activ sind, werden dahin umgeleitet ------------------------------------------------------------------- */ include("inc/defines.php"); include("inc/sessioninit.php"); $b_id = ""; $teiln_id = ""; $wheel_nr = ""; $relaydomain = check_wheel($b_id,$teiln_id,$wheel_nr); if (!empty($relaydomain)) { $_SESSION['wheel'] = 1; $_SESSION['wheel_nr'] = $wheel_nr; $_SESSION['teiln_id'] = $teiln_id; require("inc/count.php"); $location = "http://www.werbung" . $wheel_nr . ".activejob24.info/html/index.php?" . SID; //$location = "http://$relaydomain/html/index.php?" . SID; header("Location: $location"); exit(); } else { $b_id = get_id_from_server_name(); if (!empty($b_id)) { // prüfen ob Benutzer in active system vorhanden ist $sQry = "SELECT herba_id FROM berater WHERE id = " . $b_id; $rs = db_query( $sQry ); if( mysql_num_rows($rs)) { $rec = mysql_fetch_array($rs); // Jetzt ID in active system suchen $as = db_connect( "87.230.59.20", "activesystem", "kroencke1", "jk-db-pw01" ); $sQry = "SELECT dd_website FROM berater" . " WHERE herba_id = " . $rec['herba_id'] . " AND sysuser > 0"; $rs = db_query( $sQry ); if( mysql_num_rows( $rs )) { $rec = mysql_fetch_array($rs); $location = "http://" . $rec['dd_website'] . "/index.php"; header( "Location:" . $location ); exit(); } $connect = db_connect( "80.237.158.95", "jobkontor", "kroencke1", "jk-db-pw01" ); } require("inc/count.php"); $location = "/html/index.php"; header("Location: $location"); exit(); } else { if(trim(strtolower($_SERVER['SERVER_NAME'])) == "www.werbung1.jobkontor.info") { $location = "http://www.werbung1.activejob24.info/"; header("Location: $location"); } if(trim(strtolower($_SERVER['SERVER_NAME'])) == "www.werbung2.jobkontor.info") { $location = "http://www.werbung2.activejob24.info/"; header("Location: $location"); } } } ?>
![]() |