Restore the tables.sql to its virgin state.

This commit is contained in:
Steve Ireland
2023-04-03 23:30:10 -04:00
committed by jekkos
parent a2610c3bc9
commit f5094d62a2
82 changed files with 1087 additions and 728 deletions

View File

@@ -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; }