File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
RewriteEngine On
2
2
RewriteCond %{REQUEST_FILENAME} !-d
3
3
RewriteCond %{REQUEST_FILENAME} !-f
4
- # RewriteRule ^.*$ index.php
5
- RewriteRule ^.*$ /phprestsql/demo/index.php
4
+ RewriteRule ^.*$ index.php
5
+ # RewriteRule ^.*$ /phprestsql/demo/index.php
Original file line number Diff line number Diff line change @@ -140,6 +140,8 @@ function connect() {
140
140
trigger_error ('Could not connect to server ' , E_USER_ERROR );
141
141
}
142
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 ' ];
143
145
if (!$ this ->db ->connect ($ this ->config ['database ' ])) {
144
146
$ this ->unauthorized ();
145
147
exit ;
You can’t perform that action at this time.
0 commit comments