encryptMe(date('m'), $username); } } if (!function_exists('currentYear')) { function currentYear() { $Ald = new AldLibrary; $username = session('nip'); return $Ald->encryptMe(date('Y'), $username); } } if (!function_exists('encryptData')) { function encryptData($text) { $Ald = new AldLibrary; $username = session('nip'); return $Ald->encryptMe($text, $username); } } if (!function_exists('getSession')) { function getSession() { $session = session(); return json_encode($session->get()); } } if (!function_exists('currentPegawai')) { function currentPegawai(): object { $db = \Config\Database::connect(); $ret = $db->table('PEGAWAI')->where('NIP9', session('nip'))->get()->getFirstRow(); return $ret; } }