mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-04 07:12:48 -04:00
Restore the tables.sql to its virgin state.
This commit is contained in:
@@ -30,7 +30,8 @@ class Secure_Controller extends BaseController
|
||||
|
||||
if(!$this->employee->is_logged_in())
|
||||
{
|
||||
return redirect()->to('login');
|
||||
header("Location:".base_url('login'));
|
||||
exit();
|
||||
}
|
||||
|
||||
$logged_in_employee_info = $this->employee->get_logged_in_employee_info();
|
||||
@@ -72,7 +73,7 @@ class Secure_Controller extends BaseController
|
||||
{
|
||||
$result = TRUE;
|
||||
|
||||
foreach($this->request->getVar(NULL, FILTER_SANITIZE_STRING) as $str)
|
||||
foreach($this->request->getVar(NULL, FILTER_SANITIZE_FULL_SPECIAL_CHARS) as $str)
|
||||
{
|
||||
$result &= parse_decimals($str);
|
||||
}
|
||||
@@ -80,6 +81,14 @@ class Secure_Controller extends BaseController
|
||||
echo $result !== FALSE ? 'true' : 'false';
|
||||
}
|
||||
|
||||
public function getConfig($key)
|
||||
{
|
||||
if (isset($config[$key]))
|
||||
{
|
||||
return $config[$key];
|
||||
}
|
||||
}
|
||||
|
||||
// this is the basic set of methods most OSPOS Controllers will implement
|
||||
public function getIndex() { return FALSE; }
|
||||
public function getSearch() { return FALSE; }
|
||||
|
||||
Reference in New Issue
Block a user