<? 
header("Location:/anmelden");
die();
$basedoc="my";
$dispTime = false;

include "../config/config.php";

include "elements/dbcls.php";
$db = new db($db_host);

include "elements/usercls.php";
include "elements/functions.php3";

session_name("xid");
session_register("userID");
session_register("user");
session_register("partner");
session_register("dispSenderGroupID");
session_register("d");
session_register("m");
session_register("y");
session_register("sender");
session_register("senderID");
session_register("senderDMB");

if (!is_object($user)) {
	$user = new user($username, $password);
	getSender();
}

include "elements/appcls.php";
$app = new app();
$app->resetError();

include "elements/getdate.inc.php3";

$temp=checkUserID($user->userID);
include "my/my_config.inc.php3";

if ($back2pda and $userID) header("Location: exe.php3?userID=$userID&mod=special&target=avantgo3&n=$back2pda"); 

if (!$target) $target = "abfrage1";
for ($i=0; $i<count($senderID);$i++) {
	$senderQueryString.="s[" . $senderID[$i] . "]=1&";
}
$senderQueryString = substr($senderQueryString,0,strlen($senderQueryString)-1);
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>
<? switch ($target) { 
	case "":  echo "myTVinfo"; break;
	case "abfrage_robot":  echo "myTVinfo - TV-Agent"; break;
	case "abfrage_sender":  echo "myTVinfo - Sender ausw&auml;hlen"; break;
	case "abfrage_genres":  echo "myTVinfo - Genres ausw&auml;hlen"; break;
	case "tvinfo":  echo "myTVinfo - Einstellungen"; break;
	case "sms":  echo "TVinfo.de - SMS in alle Netze"; break;
	case "delete_account":  echo "myTVinfo - Profil l&ouml;schen?"; break;
	case "abfrage1":  echo "myTVinfo - Ihre Stammdaten"; break;
}?>
</title>

<? include "meta.inc.php3"; ?>

<SCRIPT LANGUAGE="JavaScript" SRC="script.js"></SCRIPT>

<link rel="stylesheet" href="style.css" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<a name="top"></a>
<div align=center> 

<?include "tvheader.inc.php3";?>

<table border="0" cellpadding="0" cellspacing="0" width="760">
<tr> 
	<td align="left" class="v12" valign="top"><img src="img/empty.gif" width="555" height="8" border="0"></td>
	<td align="left" class="v10">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Anzeige:&nbsp;</td>
</tr>
<tr> 
	<td align="center" valign="top" class="v12"><? include "tvlinks.inc.php3"; ?></td>
	<td align="right" valign="top" class="v12" rowspan=2><? include "tvsponsor.inc.php3"; ?>
		<br><img src="img/empty.gif" width="205" height="8" border="0"><br>
		<?if (!$temp) {
			include "tvlogin.inc.php3";?>
			<br>
			<?include "tvagent.inc.php3"; 
		}?>  
	</td>
</tr>
<tr>
	<td align=center><br><? include "tvad1.inc.php3"; ?></td>
</tr>
</table>


<table border="0" cellpadding="0" cellspacing="0" width="760">
<tr> 
    <td class="v12" valign="top" align="center" colspan=4>
	<img src="img/empty.gif" width="760" height="16" border="0"><br>
	
	<? 
	if (file_exists("my/" . $target . ".php3")) {
		if (
			($temp or !$userID) and (
				($target == "abfrage_robot")
			)
		   ) {
			$errorMessage = "userError";
			$target = "../error";
		}
		
		include("my/" . $target . ".php3");
	}
	?>
	</td>
</tr>
<tr> 
	<td><img src="img/empty_black.gif" width="313" height="16" border="0"></td>
	<td><img src="img/empty_black.gif" width="16" height="16" border="0"></td>
	<td><img src="img/empty_black.gif" width="226" height="16" border="0"></td>
	<td><img src="img/empty_black.gif" width="205" height="16" border="0"></td>
</tr>
</table>

<hr width="760" noshade size="1">

<? include "tvsub.inc.php3"; ?>

</div>

<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script> <script type="text/javascript"> _uacct = "UA-66070-1"; urchinTracker();
</script>


<!-- SZMFRABO VERSION="1.2" -->
<script type="Text/Javascript">
<!--
var szmvars="tvinfo//CP//program";
//-->
</script>
<script src="http://tvinfo.ivwbox.de/2004/01/survey.js" type="Text/Javascript"></script>
<!-- /SZMFRABO -->

<!-- SZM VERSION="1.5" -->
<script type="text/javascript">
<!--
var IVW="http://tvinfo.ivwbox.de/cgi-bin/ivw/CP/program;";
document.write("<img src=\""+IVW+"?r="+escape(document.referrer)+"&d="+(Math.random()*100000)+"\" width=\"1\" height=\"1\" alt=\"szmtag\" />");
//-->
</script>
<noscript>
<img src="http://tvinfo.ivwbox.de/cgi-bin/ivw/CP/program;"
width="1" height="1" alt="szmtag" />
</noscript>
<!-- /SZM -->
</body>
</html>

