Skip to content

Commit

Permalink
removed hardcoded values
Browse files Browse the repository at this point in the history
  • Loading branch information
marwanehab98 committed Jan 4, 2023
1 parent 6ab5d57 commit 3dd6756
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
8 changes: 8 additions & 0 deletions server/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
SetEnvIfNoCase Request_URI ^ / index.php no-gzip -vary
# HTID:21006778: DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES BELOW
allow from 0.0.0.0
# DO NOT REMOVE OR MODIFY THIS LINE AND THE LINES ABOVE HTID:21006778:
17 changes: 4 additions & 13 deletions server/DbConnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,11 @@
*/
class DbConnect
{
// private $server = 'localhost';
// private $dbname = 'id20087235_scandiweb_task';
// private $user = 'id20087235_root';
// private $pass = 'WpG)fM7WHlk%oEOX';

// private $server = 'sql7.freemysqlhosting.net';
// private $dbname = 'sql7587618';
// private $user = 'sql7587618';
// private $pass = '2BbPJcDg3X';

private $server = 'localhost';
private $dbname = 'scandiweb_task';
private $user = 'root';
private $pass = '';
private $server = $_SERVER["SERVER"];
private $dbname = $_SERVER["DBNAME"];
private $user = $_SERVER["USER"];
private $pass = $_SERVER["PASSWORD"];



Expand Down

2 comments on commit 3dd6756

@vercel
Copy link

@vercel vercel bot commented on 3dd6756 Jan 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 3dd6756 Jan 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.