Skip to content

Commit

Permalink
Basline Code
Browse files Browse the repository at this point in the history
  • Loading branch information
burhanrasool committed Oct 21, 2020
1 parent a550ef5 commit 0cce5e2
Show file tree
Hide file tree
Showing 1,523 changed files with 1,181,122 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Protect the htaccess file
<files .htaccess>
order allow,deny
deny from all
</files>
RewriteEngine on

#Rules to block unneeded HTTP methods
#RewriteCond %{REQUEST_METHOD} ^(HEAD|TRACE|DELETE|TRACK) [NC]
#RewriteRule ^(.*)$ - [F]

RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
FileETag None
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>
# 1 WEEK

<FilesMatch "\.(txt|xml|js|css)$">
Header set Cache-Control "max-age=31536000, public"
</FilesMatch>

<FilesMatch "\.(php|cgi|pl|png)$">
Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate"
</FilesMatch>
11 changes: 11 additions & 0 deletions Readme
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

Please follow the steps for configuration of web site


Step 1: Execute this query
INSERT INTO `users_group` (`id`, `department_id`, `type`) VALUES (NULL, '0', 'Super Admin');

Step 2: Execute this query
INSERT INTO `users` (`id`, `parent_id`, `department_id`, `first_name`, `last_name`, `email`, `username`, `password`, `group_id`, `is_deleted`, `status`, `verification_code`, `forgot_password`, `default_url`, `created_datetime`, `district`) VALUES
(1, 0, 0, 'Super', 'Admin', 'super', 'super', '21232f297a57a5a743894a0e4a801fc3', 1, 0, '1', NULL, NULL, NULL, '2016-12-14 13:50:37', NULL);

Loading

0 comments on commit 0cce5e2

Please sign in to comment.