<?php
include("_mysql.php");
$con = mysql_connect($host, $user, $pwd) or system_error('ERROR: Can not connect to ispCP MySQL-Server');
$sel = mysql_select_db($db, $con) or system_error('ERROR: Can not connect to database "webspell"');
$ds=mysql_fetch_array(mysql_query("SELECT domain FROM `".PREFIX."user` WHERE userID='".$_GET['uid']."' AND domain='".$_GET['domain']."'",$con));
$a = mysql_connect('localhost', 'root', 'PASSWORT') or system_error('ERROR: Can not connect to ispCP MySQL-Server');
$b = mysql_select_db('ispcp', $a) or system_error('ERROR: Can not connect to database "ispcp"');
$ds2=mysql_fetch_array(mysql_query("SELECT * FROM `domain` WHERE `domain_name`='".$ds['domain']."'",$a));
$dom_id = $ds2['domain_id'];
$status = $ds2['domain_status'];
echo "Informationen über Ihre Domain: ".$ds2['domain_name']."<br />";
echo "Domain ID: ".$dom_id."<br /><br />";
echo "Status : ".$status."<br /><br />";
$sql="SELECT COUNT(*) FROM `sql_database` WHERE `domain_id`='".$dom_id."'";
$query = mysql_query($sql,$a);
$count=mysql_fetch_array($query);
echo "Datenbanken: ".$count[0]."<br />";
$sql="SELECT sqld_name FROM `sql_database` WHERE `domain_id`='".$dom_id."'";
$query = mysql_query($sql,$a);
while($ds3 = mysql_fetch_array($query))
{
echo $ds3['sqld_name']."<br />";
}
?>