Skip to content

Commit

Permalink
Fixing images name to support unix environment
Browse files Browse the repository at this point in the history
  • Loading branch information
aswzen committed Nov 8, 2018
1 parent 9f309c3 commit 2e653d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _CREATE.sql
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ CREATE TABLE `user` (
`other` varchar(500) DEFAULT NULL,
`status` enum('Active','Nonactive') DEFAULT NULL,
`password` varchar(50) DEFAULT NULL,
`profile_pic_url` varchar(200) NOT NULL DEFAULT 'images/profile_pic_url/none.JPG',
`profile_pic_url` varchar(200) NOT NULL DEFAULT 'images/profile_pic_url/none.jpg',
`usergroup_id` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `FK_G` (`usergroup_id`),
Expand Down
2 changes: 1 addition & 1 deletion install.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@

$query = file_get_contents('_CREATE.sql');
$query.= "INSERT INTO `config` (`id`, `site_name`, `maintenance_mode`, `additional_footer`, `datetime_format`) VALUES (1, '".$_POST['site_name']."', 'No', '".$_POST['site_footer']."', '".$_POST['date_format']."');";
$query.= "INSERT INTO `user` (`id`, `fullname`, `nickname`, `email`, `phone`, `address`, `other`, `status`, `password`, `profile_pic_url`, `usergroup_id`) VALUES ('SR000', 'Administrator', 'Admin', '".$_POST['admin_email']."', '0', '-', '-', 'Active', '".$_POST['admin_password']."', 'images/profile_pic_url/SR000.JPG', 1);";
$query.= "INSERT INTO `user` (`id`, `fullname`, `nickname`, `email`, `phone`, `address`, `other`, `status`, `password`, `profile_pic_url`, `usergroup_id`) VALUES ('SR000', 'Administrator', 'Admin', '".$_POST['admin_email']."', '0', '-', '-', 'Active', '".$_POST['admin_password']."', 'images/profile_pic_url/SR000.jpg', 1);";
if($result = $conn->multi_query($query)){
echo "-- Database - Table created.</br>";
echo "-- Database - Config created.</br>";
Expand Down

0 comments on commit 2e653d8

Please sign in to comment.