PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]); }catch(PDOException $e){ die('No Connection to MySQL database!'); } session_start(); $user=check_login(); header('Content-Type: text/html; charset=UTF-8'); echo ''; echo 'Daniel\'s Hosting - Dashboard'; echo ''; echo ''; echo ''; echo ''; echo "

Logged in as $user[username] Logout | Change passwords | FileManager | Delete account

"; echo "

Enter system account password to check your $user[system_account]@" . ADDRESS . " mail:

"; echo '

Domains

'; echo ''; echo ''; $stmt=$db->prepare('SELECT onion, private_key, enabled, enable_smtp, num_intros, max_streams FROM onions WHERE user_id=?;'); $stmt->execute([$user['id']]); while($onion=$stmt->fetch(PDO::FETCH_ASSOC)){ echo "'; echo ""; echo ""; echo ''; } echo '
OnionPrivate keyEnabledSMTP enabledNr. of introsMax streams per rendezvous circuit
$onion[onion].onion"; if(isset($_REQUEST['show_priv'])){ echo "
$onion[private_key]
"; }else{ echo 'Show private key'; } echo '
'; echo $onion['enabled'] ? 'Yes' : 'No'; echo ''; echo $onion['enable_smtp'] ? 'Yes' : 'No'; echo '$onion[num_intros]$onion[max_streams]
'; echo '

MySQL Database

'; echo ''; echo ''; $stmt=$db->prepare('SELECT mysql_database FROM mysql_databases WHERE user_id=?;'); $stmt->execute([$user['id']]); while($mysql=$stmt->fetch(PDO::FETCH_ASSOC)){ echo ""; } echo '
DatabaseHostUser
$mysql[mysql_database]localhost$user[mysql_user]
'; echo '

Change MySQL password

'; echo '

You can use PHPMyAdmin and Adminer for web based database administration.

'; echo '

System Account

'; echo ''; echo ''; foreach(SERVERS as $server=>$tmp){ echo ""; } echo '
UsernameHostFTP PortSFTP PortPOP3 PortIMAP PortSMTP port
$user[system_account]$server$tmp[ftp]$tmp[sftp]$tmp[pop3]$tmp[imap]$tmp[smtp]
'; echo '

Change system account password

'; echo '

You can use the FileManager for web based file management.

'; echo '

Logs

'; echo ''; echo ''; echo ''; echo ''; echo '
Dateaccess.logerror.log
Todayaccess.logerror.log
Yesterdayaccess.logerror.log
'; echo '';