Merge branch 'master' of github.com:claudehohl/Stikked

This commit is contained in:
Claude 2012-04-13 20:23:20 +02:00
commit d716d40cf8
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
RewriteEngine on RewriteEngine on
RewriteBase / RewriteBase /stikked/htdocs/
RewriteCond $1 !^(index\.php|static) RewriteCond $1 !^(index\.php|static)
RewriteRule ^(.*)$ index.php/$1 [QSA,L] RewriteRule ^(.*)$ index.php/$1 [QSA,L]

View File

@ -82,7 +82,7 @@ class Main extends CI_Controller
function index() function index()
{ {
if (!isset($_POST['submit'])) if (!$this->input->post('submit'))
{ {
$data = $this->_form_prep(); $data = $this->_form_prep();
$this->load->view('home', $data); $this->load->view('home', $data);
@ -119,7 +119,7 @@ class Main extends CI_Controller
else else
{ {
if (isset($_POST['acopy']) and $_POST['acopy'] > 0) if ($this->input->post('acopy'))
{ {
$this->db_session->set_flashdata('acopy', 'true'); $this->db_session->set_flashdata('acopy', 'true');
} }
@ -247,7 +247,7 @@ class Main extends CI_Controller
function view_options() function view_options()
{ {
if (!isset($_POST['submit'])) if ($this->input->post('submit'))
{ {
$data = $this->_view_options_prep(); $data = $this->_view_options_prep();
$this->load->view('view/view_options', $data); $this->load->view('view/view_options', $data);