fix
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
|
||||
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]
|
||||
|
||||
</IfModule>
|
||||
|
||||
<IfModule !mod_rewrite.c>
|
||||
# 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
|
||||
|
||||
</IfModule>
|
||||
|
||||
@@ -1,26 +1,22 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') OR exit('No direct script access allowed');
|
||||
|
||||
class Auth extends CI_Controller {
|
||||
|
||||
/**
|
||||
* Index Page for this controller.
|
||||
*
|
||||
* Maps to the following URL
|
||||
* http://example.com/index.php/welcome
|
||||
* - or -
|
||||
* http://example.com/index.php/welcome/index
|
||||
* - or -
|
||||
* Since this controller is set as the default controller in
|
||||
* config/routes.php, it's displayed at http://example.com/
|
||||
*
|
||||
* So any other public methods not prefixed with an underscore will
|
||||
* map to /index.php/welcome/<method_name>
|
||||
* @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";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@
|
||||
<li><a href="#pricing" class="smoothscroll">PLANS</a></li>
|
||||
<li><a href="#download" class="smoothscroll">DOWNLOAD</a></li>
|
||||
<li><a href="#contact" class="smoothscroll">CONTACT</a></li>
|
||||
<li style="background-color: #ccffcc;"><a href="/login" class="smoothscroll">LOGIN</a></li>
|
||||
<li style="background-color: #ccffcc;"><a href="/auth" class="smoothscroll">LOGIN</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user