00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00018 function PMA_auth()
00019 {
00020 return TRUE;
00021 }
00022
00023
00031 function PMA_auth_check()
00032 {
00033 return TRUE;
00034 }
00035
00036
00044 function PMA_auth_set_user()
00045 {
00046 return TRUE;
00047 }
00048
00049
00068 function PMA_auth_fails()
00069 {
00070 global $php_errormsg;
00071 global $connect_func, $server_port, $server_socket, $cfg;
00072 global $right_font_family, $font_size, $font_bigger;
00073 global $is_header_sent;
00074 if (PMA_mysql_error()) {
00075 $conn_error = PMA_mysql_error();
00076 } else if (isset($php_errormsg)) {
00077 $conn_error = $php_errormsg;
00078 } else {
00079 $conn_error = 'Cannot connect: invalid settings.';
00080 }
00081
00082
00083
00084
00085
00086
00087
00088
00089 $local_query = '';
00090
00091
00092 header('Content-Type: text/html; charset=' . $GLOBALS['charset']);
00093 ?>
00094 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
00095 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
00096 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" lang="<?php echo $GLOBALS['available_languages'][$GLOBALS['lang']][2]; ?>" dir="<?php echo $GLOBALS['text_dir']; ?>">
00097
00098 <head>
00099 <title><?php echo $GLOBALS['strAccessDenied']; ?></title>
00100 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $GLOBALS['charset']; ?>" />
00101 <style type="text/css">
00102 <!--
00103 body {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_size; ?>; color: #000000}
00104 h1 {font-family: <?php echo $right_font_family; ?>; font-size: <?php echo $font_bigger; ?>; font-weight: bold}
00105
00106 </style>
00107 </head>
00108
00109 <body bgcolor="<?php echo $cfg['RightBgColor']; ?>">
00110 <br /><br />
00111 <center>
00112 <h1><?php echo sprintf($GLOBALS['strWelcome'], ' phpMyAdmin ' . PMA_VERSION); ?></h1>
00113 </center>
00114 <br />
00115 <?php
00116 echo "\n";
00117 $is_header_sent = TRUE;
00118 echo '<p>' . $GLOBALS['strAccessDeniedExplanation'] . '</p>' . "\n";
00119 PMA_mysqlDie($conn_error, $local_query, FALSE);
00120
00121 return TRUE;
00122 }
00123
00124 ?>