From 650755e2bb3daed85f1f90955ea708e057272020 Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Apr 2012 20:16:56 +0200 Subject: [PATCH 1/2] ignore this --- htdocs/.htaccess | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] From 3cc09e85a29f3a0cf8bbf4dbc07e4301917dc0ec Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 13 Apr 2012 20:18:11 +0200 Subject: [PATCH 2/2] inputclass --- htdocs/application/controllers/main.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/application/controllers/main.php b/htdocs/application/controllers/main.php index 806c1ca..d196e71 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);