diff --git a/www/.htaccess b/www/.htaccess new file mode 100644 index 0000000..d1929af --- /dev/null +++ b/www/.htaccess @@ -0,0 +1,35 @@ + + +RewriteEngine On +RewriteBase / + +#Removes access to the system folder by users. +#Additionally this will allow you to create a System.php controller, +#previously this would not have been possible. +#'system' can be replaced if you have renamed your system folder. +RewriteCond %{REQUEST_URI} ^system.* +RewriteRule ^(.*)$ /index.php?/$1 [L] + +#When your application folder isn't in the system folder +#This snippet prevents user access to the application folder +#Submitted by: Fabdrol +#Rename 'application' to your applications folder name. +RewriteCond %{REQUEST_URI} ^application.* +RewriteRule ^(.*)$ /index.php?/$1 [L] + +#Checks to +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)$ index.php?/$1 [L] + + + + + # If we don't have mod_rewrite installed, all 404's + # can be sent to index.php, and everything works as normal. + # Submitted by: ElliotHaughin + +ErrorDocument 404 /index.php + + + diff --git a/www/application/controllers/Auth.php b/www/application/controllers/Auth.php index c8ad9fb..9239ed2 100644 --- a/www/application/controllers/Auth.php +++ b/www/application/controllers/Auth.php @@ -1,26 +1,22 @@ - * @see https://codeigniter.com/user_guide/general/urls.html - */ - public function index() - { - //$this->load->view('home/home'); - echo "tokslaw"; - } + public function index() { + //$this->load->view('home/home'); + echo "START LOGIN"; + } + + public function newuser() { + //$this->load->view('home/home'); + echo "START NEW USER"; + } + + public function resetpass() { + //$this->load->view('home/home'); + echo "START RESET"; + } + } diff --git a/www/application/views/home/home.php b/www/application/views/home/home.php index 68eeb61..d212921 100644 --- a/www/application/views/home/home.php +++ b/www/application/views/home/home.php @@ -79,7 +79,7 @@
  • PLANS
  • DOWNLOAD
  • CONTACT
  • -
  • LOGIN
  • +
  • LOGIN