This commit is contained in:
Alan Garcia 2012-11-08 19:57:31 +00:00
parent f209fdfa76
commit ed47744078
4 changed files with 21 additions and 12 deletions

View File

@ -38,7 +38,7 @@ if ($mem->checkRight()) { ?>
<li><a href="quotas_users.php?mode=4"><span style="color: red;"><?php __("User Quotas"); ?></span></a></li>
<?php if ($cuid == 2000) { ?>
<li><a href="adm_panel.php"><span style="color: red;"><?php __("Admin Control Panel"); ?></span></a></li>
<li><a href="/alternc-sql/?server=2"><span style="color: red;"><?php __("General PhpMyAdmin"); ?></span></a></li>
<li><a href="/alternc-sql/"><span style="color: red;"><?php __("General PhpMyAdmin"); ?></span></a></li>
<li><a href="alternc_debugme.php?enable=<?php echo $debug_alternc->status?"0":"1"; ?>"><span style="color: red;"><?php if ($debug_alternc->status) __("Switch debug Off"); else __("Switch debug On"); ?></span></a></li>
<?php } ?>
</ul>

View File

@ -37,7 +37,7 @@ if (!$r=$mysql->php_myadmin_connect()) {
setcookie("REMOTE_PASSWORD",$r[0]["pass"],0,"/");
if ($lang) $l="&lang=".substr($lang,0,2);
// TODO : make it an absolute url ! (even in httpS :))
header("Location: /alternc-sql/index.php?server=1");
header("Location: /alternc-sql/index.php?server=3");
exit();
}

View File

@ -73,9 +73,9 @@ if(isset($r['user'])){
</tr>
<tr>
<td colspan=2 align=center>
<a href="/alternc-sql/?server=2" target=_blank><?php __("Web interface PhpMyAdmin"); ?></a>
<a href="/alternc-sql/" target=_blank><?php __("Web interface PhpMyAdmin"); ?></a>
<br/>
<xmp>http://<?php echo $L_FQDN; ?>/alternc-sql/?server=2</xmp>
<xmp>http://<?php echo $L_FQDN; ?>/alternc-sql/</xmp>
</td>
</tr>
<?php

View File

@ -22,20 +22,29 @@ $cfg['LoginCookieRecall'] = false;
$i = 1;
// Usual auth with web form
$cfg['Servers'][$i]['host'] = $GLOBALS['L_MYSQL_HOST']; // MySQL hostname or IP address
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['hide_db'] = 'information_schema';
$i++;
// Usual auth with web form
// two time same thing for backward compatibility
$cfg['Servers'][$i]['host'] = $GLOBALS['L_MYSQL_HOST']; // MySQL hostname or IP address
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['hide_db'] = 'information_schema';
$i++;
// Magic auth with AlternC
$cfg['Servers'][$i]['host'] = $GLOBALS['L_MYSQL_HOST']; // MySQL hostname or IP address
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = $_COOKIE["REMOTE_USER"]; ; // MySQL user
$cfg['Servers'][$i]['password'] = $_COOKIE["REMOTE_PASSWORD"]; ; // MySQL password (only needed
$cfg['Servers'][$i]['hide_db'] = 'information_schema';
// // with 'config' auth_type)
$i++;
// Uncomment to override the default configuration
$cfg['Servers'][$i]['host'] = $GLOBALS['L_MYSQL_HOST']; // MySQL hostname or IP address
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['auth_type'] = 'cookie'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['hide_db'] = 'information_schema';
?>