php_myadmin_connect()) { $error=$err->errstr(); } else { session_write_close(); // SSO of PhpMyAdmin session_set_cookie_params(0, '/', '', 0); session_name('AlternC_Panel'); session_start(); $_SESSION['PMA_single_signon_user'] = $r["login"]; $_SESSION['PMA_single_signon_password'] = $r["pass"]; $_SESSION['PMA_single_signon_host'] = $r["host"]; // pma >= 2.11 session_write_close(); // finally redirect to phpMyAdmin : header("Location: /alternc-sql/index.php?server=1"); exit(); } include_once("head.php"); echo '

'._("SQL Admin").'

'; if (!empty($error)) { echo "

$error

"; } include_once("foot.php"); ?>