diff --git a/htdocs/.htaccess b/htdocs/.htaccess index 1ac2219..5c1b1e5 100644 --- a/htdocs/.htaccess +++ b/htdocs/.htaccess @@ -1,5 +1,5 @@ RewriteEngine on -RewriteBase / +RewriteBase /stikked/htdocs/ RewriteCond $1 !^(index\.php|static) RewriteRule ^(.*)$ index.php/$1 [QSA,L] diff --git a/htdocs/application/controllers/main.php b/htdocs/application/controllers/main.php index 12484a1..87a250a 100755 --- a/htdocs/application/controllers/main.php +++ b/htdocs/application/controllers/main.php @@ -82,7 +82,7 @@ class Main extends CI_Controller function index() { - if (!isset($_POST['submit'])) + if (!$this->input->post('submit')) { $data = $this->_form_prep(); $this->load->view('home', $data); @@ -119,7 +119,7 @@ class Main extends CI_Controller else { - if (isset($_POST['acopy']) and $_POST['acopy'] > 0) + if ($this->input->post('acopy')) { $this->db_session->set_flashdata('acopy', 'true'); } @@ -247,7 +247,7 @@ class Main extends CI_Controller function view_options() { - if (!isset($_POST['submit'])) + if ($this->input->post('submit')) { $data = $this->_view_options_prep(); $this->load->view('view/view_options', $data);