vogelor
2008-12-12 9c1b52fbeccf9063afa1444b19489588d1edbb2a
if ISPC uses https, phpmyadmin uses https too
1 files modified
5 ■■■■■ changed files
interface/web/sites/database_phpmyadmin.php 5 ●●●●● patch | view | raw | blame | history
interface/web/sites/database_phpmyadmin.php
@@ -65,7 +65,7 @@
 */
if($_SESSION["s"]["user"]["typ"] == 'user') {
    /* Get the group of the client */
    $client_group_id = $_SESSION["s"]["user"]["default_group"];
    $client_group_id = intval($_SESSION["s"]["user"]["default_group"]);
    /* compare both */
    if ($dbData['sys_groupid'] != $client_group_id){
        die ("You don't have the right to access this db!");
@@ -75,9 +75,10 @@
/*
 * Now generate the login-Form
 */
isset($_SERVER['HTTPS'])? $http = 'https' : $http = 'http';
echo '
starting phpMyAdmin...<br>
<form method="post" action="http://' . $serverData['server_name'] . '/phpmyadmin/index.php" name="login_form" target="_top" style="visibility:hidden">
<form method="post" action="' . $http . '://' . $serverData['server_name'] . '/phpmyadmin/index.php" name="login_form" target="_top" style="visibility:hidden">
    <input type="text" name="pma_username" id="input_username" value="' .  $dbData['database_user'] . '" />
    <input type="password" name="pma_password" id="input_password" value="' . $dbData['database_password'] . '" size="24" class="textfield" />
</form>