We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63a50f9 commit fa087b9Copy full SHA for fa087b9
.htaccess.example
@@ -1,5 +1,5 @@
1
RewriteEngine On
2
RewriteCond %{REQUEST_FILENAME} !-d
3
RewriteCond %{REQUEST_FILENAME} !-f
4
-#RewriteRule ^.*$ index.php
5
-RewriteRule ^.*$ /phprestsql/demo/index.php
+RewriteRule ^.*$ index.php
+#RewriteRule ^.*$ /phprestsql/demo/index.php
phprestsql.php
@@ -140,6 +140,8 @@ function connect() {
140
trigger_error('Could not connect to server', E_USER_ERROR);
141
}
142
} elseif (isset($_SERVER['PHP_AUTH_USER']) && isset($_SERVER['PHP_AUTH_PW'])) {
143
+ $this->config['database']['username'] = $_SERVER['PHP_AUTH_USER'];
144
+ $this->config['database']['password'] = $_SERVER['PHP_AUTH_PW'];
145
if (!$this->db->connect($this->config['database'])) {
146
$this->unauthorized();
147
exit;
0 commit comments