Skip to content
Snippets Groups Projects
Commit b530a98f authored by Robin Wood's avatar Robin Wood
Browse files

get the directory we are installing into when adding the avatar images to database

parent 7ab2e557
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,8 @@ dvwaMessagePush( "'users' table was created." ); ...@@ -47,7 +47,8 @@ dvwaMessagePush( "'users' table was created." );
// Insert some data into users // Insert some data into users
$avatarUrl = '/hackable/users/'; $base_dir= str_replace ("setup.php", "", $_SERVER['SCRIPT_NAME']);
$avatarUrl = $base_dir . 'hackable/users/';
$insert = "INSERT INTO users VALUES $insert = "INSERT INTO users VALUES
('1','admin','admin','admin',MD5('password'),'{$avatarUrl}admin.jpg', NOW(), '0'), ('1','admin','admin','admin',MD5('password'),'{$avatarUrl}admin.jpg', NOW(), '0'),
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment