diff --git a/.gitattributes b/.gitattributes
index dfe0770..f2c841e 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,2 +1,34 @@
# Auto detect text files and perform LF normalization
* text=auto
+
+*.zip
+### vscode ###
+.vscode/*
+!.vscode/settings.json
+!.vscode/tasks.json
+!.vscode/launch.json
+!.vscode/extensions.json
+*.code-workspace
+
+.github
+
+### CodeIgniter ###
+*/config/development
+*/logs/log-*.php
+!*/logs/index.html
+*/cache/*
+!*/cache/index.html
+!*/cache/.htaccess
+
+user_guide_src/build/*
+user_guide_src/cilexer/build/*
+user_guide_src/cilexer/dist/*
+user_guide_src/cilexer/pycilexer.egg-info/*
+
+#codeigniter 3
+application/logs/*
+!application/logs/index.html
+!application/logs/.htaccess
+/vendor/
+
+### CodeIgniter Patch ###
\ No newline at end of file
diff --git a/application/config/database.php b/application/config/database.php
index 579aa6d..a7ff003 100644
--- a/application/config/database.php
+++ b/application/config/database.php
@@ -1,75 +1,7 @@
db->last_query() and profiling of DB queries.
-| When you run a query, with this setting set to TRUE (default),
-| CodeIgniter will store the SQL statement for debugging purposes.
-| However, this may cause high memory usage, especially if you run
-| a lot of SQL queries ... disable this to avoid that problem.
-|
-| The $active_group variable lets you choose which connection group to
-| make active. By default there is only one group (the 'default' group).
-|
-| The $query_builder variables lets you determine whether or not to load
-| the query builder class.
-*/
+
$active_group = 'default';
$query_builder = TRUE;
@@ -78,7 +10,7 @@
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
- 'database' => 'eVoting',
+ 'database' => 'evoting',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
diff --git a/application/controllers/Home.php b/application/controllers/Home.php
index e804ebc..8fea497 100644
--- a/application/controllers/Home.php
+++ b/application/controllers/Home.php
@@ -27,7 +27,7 @@ public function __construct()
parent::__construct();
$this->load->database();
$this->load->library('ion_auth', 'form_validation', 'session');
- $this->load->helper('url', 'language');
+ $this->load->helper('url', 'language', 'my_helper');
$this->load->model('Home_model');
}
@@ -39,7 +39,7 @@ public function index()
}
$data['title'] = 'E-Voting';
- $data['action'] = site_url('user/Userauth/login');
+ $data['action'] = site_url('user/userauth/login');
$this->load->view('front/main', $data);
}
@@ -48,7 +48,7 @@ public function vote()
{
// Security check if the user is authorize
if (!cek_login_bol()) {
- redirect('user/Userauth', 'refresh');
+ redirect('user/userauth', 'refresh');
}
// Get All Kandidat
@@ -79,7 +79,7 @@ public function doVote($idkandidat)
{
// Security check if the user is authorize
if (!cek_login_bol()) {
- redirect('user/Userauth', 'refresh');
+ redirect('user/userauth', 'refresh');
}
// menetapkan idpemilih
diff --git a/application/controllers/user/userAuth.php b/application/controllers/user/userAuth.php
index 5a5f09f..28cbb1d 100644
--- a/application/controllers/user/userAuth.php
+++ b/application/controllers/user/userAuth.php
@@ -37,7 +37,7 @@ public function index()
'class' => 'form-control',
'placeholder' => 'Password',
];
- $data['action'] = site_url('user/Userauth/login');
+ $data['action'] = site_url('user/userauth/login');
$this->load->view('front/login', $data);
}
}
@@ -55,7 +55,7 @@ public function login()
'message',
'