Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
session->userdata('user_type')) {
$this->session->set_flashdata('flash_data', 'You don\'t have access!');
redirect('Welcome');
}elseif($this->session->userdata('user_type')!='employee'){
$this->session->set_flashdata('flash_data', 'You don\'t have access!');
redirect('Learning');
}
//convert numeric number to roman
function numberToRomanRepresentation($number) {
$map = array('M' => 1000, 'CM' => 900, 'D' => 500, 'CD' => 400, 'C' => 100, 'XC' => 90, 'L' => 50, 'XL' => 40, 'x' => 10, 'ix' => 9, 'v' => 5, 'iv' => 4, 'i' => 1);
$returnValue = '';
while ($number > 0) {
foreach ($map as $roman => $int) {
if($number >= $int) {
$number -= $int;
$returnValue .= $roman;
break;
}
}
}
return $returnValue;
}
}
public function registerLesson()
{
$this->load->view('includes/header');
$this->load->view('pages/registerLesson');
$this->load->view('includes/footer');
}
public function courseCategories()
{
$this->load->view('includes/header');
$this->load->view('pages/courseCategories');
$this->load->view('includes/footer');
}
public function editCourseDetails()
{
$this->load->view('includes/header');
$this->load->view('pages/editCourseDetails');
$this->load->view('includes/footer');
}
public function viewLesson()
{
$this->load->view('includes/header');
$this->load->view('pages/viewLesson');
$this->load->view('includes/footer');
}
public function registerTopic()
{
$this->load->view('includes/header');
$this->load->view('pages/registerTopic');
$this->load->view('includes/footer');
}
public function lessonStats()
{
$this->load->view('includes/header');
$this->load->view('pages/lessonStats');
$this->load->view('includes/footer');
}
public function viewStats()
{
$this->load->view('includes/header');
$this->load->view('pages/viewStats');
$this->load->view('includes/footer');
}
public function pdfRead()
{
$this->load->view('includes/header');
$this->load->view('pages/pdfRead');
$this->load->view('includes/footer');
}
public function read_video()
{
$this->load->view('includes/header');
$this->load->view('pages/read_video');
$this->load->view('includes/footer');
}
public function createExam()
{
$this->load->view('includes/header');
$this->load->view('pages/createExam');
$this->load->view('includes/footer');
}
public function courseEnrolment()
{
$this->load->view('includes/header');
$this->load->view('pages/courseEnrolment');
$this->load->view('includes/footer');
}
public function studentsEnrolled()
{
$this->load->view('includes/header');
$this->load->view('pages/studentsEnrolled');
$this->load->view('includes/footer');
}
public function addExam()
{
$this->load->view('includes/header');
$this->load->view('pages/addExam');
$this->load->view('includes/footer');
}
public function uploadExam()
{
$this->load->view('includes/header');
$this->load->view('pages/uploadExam');
$this->load->view('includes/footer');
}
public function uploadLesson()
{
$this->load->view('includes/header');
$this->load->view('pages/uploadLesson');
$this->load->view('includes/footer');
}
public function viewCourseDetails()
{
$this->load->view('includes/header');
$this->load->view('pages/viewCourseDetails');
$this->load->view('includes/footer');
}
public function viewStaffs()
{
$this->load->view('includes/header');
$this->load->view('pages/viewStaffs');
$this->load->view('includes/footer');
}
public function accountSettings()
{
$this->load->view('includes/header');
$this->load->view('pages/accountSettings');
$this->load->view('includes/footer');
}
public function viewNotes()
{
$this->load->view('includes/header');
$this->load->view('pages/viewNotes');
$this->load->view('includes/footer');
}
public function uploadExamQuestions()
{
$this->load->view('includes/header');
$this->load->view('pages/uploadExamQuestions');
$this->load->view('includes/footer');
}
public function viewExams()
{
$this->load->view('includes/header');
$this->load->view('pages/viewExam');
$this->load->view('includes/footer');
}
public function viewUsers()
{
$this->load->view('includes/header');
$this->load->view('pages/viewUsers');
$this->load->view('includes/footer');
}
public function viewMembers()
{
$this->load->view('includes/header');
$this->load->view('pages/viewUsers');
$this->load->view('includes/footer');
}
public function get_district()
{
$region=$this->input->post('region');
foreach($this->db->where('region',$region)->get('district')->result() as $row){
?>
load->view('includes/header');
$this->load->view('pages/print_certificate');
$this->load->view('includes/footer');
}
public function userProfile()
{
$this->load->view('includes/header');
$this->load->view('pages/userProfile');
$this->load->view('includes/footer');
}
public function changePassword(){
$user_id =$this->session->userdata('id');
$this->db->where('id',$user_id);
$get_member=$this->db->get('users');
foreach($get_member->result() as $row_member){
$oldpass=$row_member->password;
}
if($this->input->post('password')=='' | $this->input->post('oldpassword')!=$oldpass){
redirect('lessons/accountSettings?no');
}else{
$data_ary = array(
'password'=>$this->input->post('password'),
);
$data_ary = $this->security->xss_clean($data_ary);
$this->db->where('id',$user_id);
$this->db->update('users',$data_ary);
redirect('lessons/accountSettings?sent');
}
}
public function addTopic()
{
if($_POST){
$data = array(
'name'=>$this->input->post('name'),
'short'=>$this->input->post('short'),
'time'=>$this->input->post('time'),
'lesson_id'=>$this->input->post('lesson_id'),
'date'=>date('Y-m-d H:i:s'),
'regBy'=>$this->session->userdata('id'),
);
$this->db->insert('topics',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function addCourseCategory()
{
$c=$this->db->where('name',$this->input->post('name'))->get('courseCategories')->num_rows();
if($c==0){
$data = array(
'name'=>$this->input->post('name'),
'date'=>date('Y-m-d H:i:s'),
);
$this->db->insert('courseCategories',$data);
redirect('lessons/courseCategories?saved');
}else{
redirect('lessons/courseCategories?ex');
}
}
public function arrange_notes()
{
foreach($this->db->where('id',$this->input->post('id'))->get('notes')->result() as $rowC){
$topic = $rowC->topic_id;
}
$c=$this->db->where('topic_id',$topic)->where('arrange',$this->input->post('arrange'))->get('notes')->num_rows();
if($c>0){
echo 'taken';
}else{
$data = array(
'arrange'=>$this->input->post('arrange'),
);
$this->db->where('id',$this->input->post('id'))->update('notes',$data);
}
}
public function editCourseCategory()
{
if($_POST){
$data = array(
'name'=>$this->input->post('name'),
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('courseCategories',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function delete_CourseCategory()
{
$this->db->where('id',base64_decode($_REQUEST['id']))->delete('courseCategories');
redirect('lessons/courseCategories?del');
}
public function editNotes()
{
if($_POST){
$data = array(
'name'=>$this->input->post('name'),
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('notes',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function editTopic()
{
if($_POST){
$data = array(
'name'=>$this->input->post('name'),
'short'=>$this->input->post('short'),
'time'=>$this->input->post('time'),
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('topics',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function editLesson()
{
if($_POST){
$data = array(
'name'=>$this->input->post('name'),
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('lessons',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function delete_topic()
{
$this->db->where('id',base64_decode($_REQUEST['id']))->delete('topics');
redirect($_SERVER['HTTP_REFERER']);
}
public function delete_notes()
{
$this->db->where('id',base64_decode($_REQUEST['id']))->delete('notes');
redirect($_SERVER['HTTP_REFERER']);
}
public function delete_exam()
{
$this->db->where('id',base64_decode($_REQUEST['id']))->delete('exams');
redirect($_SERVER['HTTP_REFERER']);
}
public function delete_lesson()
{
$this->db->where('id',base64_decode($_REQUEST['id']))->delete('lessons');
redirect($_SERVER['HTTP_REFERER']);
}
public function delete_staff()
{
$this->db->where('id',base64_decode($_REQUEST['id']))->delete('users');
redirect($_SERVER['HTTP_REFERER']);
}
public function delete_user()
{
$this->db->where('id',base64_decode($_REQUEST['id']))->delete('students');
redirect($_SERVER['HTTP_REFERER']);
}
public function deleteSection()
{
$this->db->where('id',base64_decode($_REQUEST['id']))->delete('exam_sections');
redirect($_SERVER['HTTP_REFERER']);
}
public function deleteExamQuestionSettings()
{
$this->db->where('id',base64_decode($_REQUEST['id']))->delete('exam_questions');
redirect($_SERVER['HTTP_REFERER']);
}
public function editCourse()
{
if($_POST){
$data = array(
'name'=>$this->input->post('name'),
'code'=>$this->input->post('code'),
'category'=>$this->input->post('category'),
'language'=>$this->input->post('language'),
'duration'=>$this->input->post('duration'),
'prerequisite'=>$this->input->post('prerequisite'),
'description'=>$this->input->post('description'),
'modules'=>$this->input->post('modules'),
'instructor'=>$this->input->post('instructor'),
'address'=>$this->input->post('address'),
'email'=>$this->input->post('email'),
'education'=>$this->input->post('education'),
'experience'=>$this->input->post('experience'),
'institution'=>$this->input->post('institution'),
);
$this->db->where('id',$this->input->post('id'))->update('lessons',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function addLesson() {
if (isset($_FILES["file"])) {
//if there was an error uploading the file
if ($_FILES["file"]["error"] > 0) {
echo "Return Code: " . $_FILES["file"]["error"] . " ";
} else {
$filename = basename($_FILES['file']['name']);
$new = time() . rand();
$ext = pathinfo($filename, PATHINFO_EXTENSION);
$target = $new . '_' . $filename;
$target = str_replace(" ", "_", $target);
$storagename = "./template/img/courses/". $target;
move_uploaded_file($_FILES["file"]["tmp_name"], $storagename);
function formatBytes($bytes, $precision) {
$units = array('B', 'KB', 'MB', 'GB', 'TB');
$bytes = max($bytes, 0);
$pow = floor(($bytes ? log($bytes) : 0) / log(1024));
$pow = min($pow, count($units) - 1);
// Uncomment one of the following alternatives
$bytes /= pow(1024, $pow);
// $bytes /= (1 << (10 * $pow));
return round($bytes, $precision) . ' ' . $units[$pow];
}
$type = explode('/',$_FILES['file']['type']);
$type = $type[0];
$data = array(
'name'=>$this->input->post('name'),
'code'=>$this->input->post('code'),
'category'=>$this->input->post('category'),
'language'=>$this->input->post('language'),
'duration'=>$this->input->post('duration'),
'prerequisite'=>$this->input->post('prerequisite'),
'description'=>$this->input->post('description'),
'modules'=>$this->input->post('modules'),
'instructor'=>$this->input->post('instructor'),
'address'=>$this->input->post('address'),
'email'=>$this->input->post('email'),
'education'=>$this->input->post('education'),
'experience'=>$this->input->post('experience'),
'institution'=>$this->input->post('institution'),
'file'=>$target,
'date'=>date('Y-m-d H:i:s'),
'regBy'=>$this->session->userdata('id'),
);
$this->db->insert('lessons',$data);
$lesson_id = $this->db->insert_id();
redirect('lessons/registerTopic?id='.base64_encode($lesson_id));
}
} else {
echo 'not sent';
}
}
public function editCoursePhoto() {
if (isset($_FILES["file"])) {
//if there was an error uploading the file
if ($_FILES["file"]["error"] > 0) {
echo "Return Code: " . $_FILES["file"]["error"] . " ";
} else {
$filename = basename($_FILES['file']['name']);
$new = time() . rand();
$ext = pathinfo($filename, PATHINFO_EXTENSION);
$target = $new . '_' . $filename;
$target = str_replace(" ", "_", $target);
$storagename = "./template/img/courses/". $target;
move_uploaded_file($_FILES["file"]["tmp_name"], $storagename);
function formatBytes($bytes, $precision) {
$units = array('B', 'KB', 'MB', 'GB', 'TB');
$bytes = max($bytes, 0);
$pow = floor(($bytes ? log($bytes) : 0) / log(1024));
$pow = min($pow, count($units) - 1);
// Uncomment one of the following alternatives
$bytes /= pow(1024, $pow);
// $bytes /= (1 << (10 * $pow));
return round($bytes, $precision) . ' ' . $units[$pow];
}
$type = explode('/',$_FILES['file']['type']);
$type = $type[0];
$data = array(
'file'=>$target,
);
$this->db->where('id',$this->input->post('id'))->update('lessons',$data);
redirect($_SERVER['HTTP_REFERER']);
}
} else {
echo 'not sent';
}
}
public function addStaff()
{
if($_POST){
$data = array(
'full_name'=>$this->input->post('name'),
'username'=>$this->input->post('username'),
'phone'=>$this->input->post('phone'),
'level'=>$this->input->post('level'),
'date'=>date('Y-m-d H:i:s'),
'password'=>'default',
'regBy'=>$this->session->userdata('id'),
);
$this->db->insert('users',$data);
redirect($_SERVER['HTTP_REFERER'].'?yes');
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function editStaff()
{
$id=base64_decode($_REQUEST['id']);
if($_POST){
$data = array(
'full_name'=>$this->input->post('name'),
'username'=>$this->input->post('username'),
'phone'=>$this->input->post('phone'),
'level'=>$this->input->post('level'),
);
$this->db->where('id',$id)->update('users',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function insertExam()
{
if($_POST){
$dur=$this->input->post('duration')/60;
$data = array(
'title'=>$this->input->post('title'),
'other_title'=>$this->input->post('other_title'),
'instructions'=>$this->input->post('instructions'),
'duration'=>$dur,
'time'=>$dur,
'pass'=>$this->input->post('pass'),
'lesson_id'=>$this->input->post('lesson_id'),
'year'=>date('Y'),
'date'=>date('Y-m-d H:i:s'),
'regBy'=>$this->session->userdata('id'),
);
$this->db->insert('exams',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function addExamSection()
{
if($_POST){
$data = array(
'title'=>$this->input->post('title'),
'exam_id'=>$this->input->post('exam_id'),
'instructions'=>$this->input->post('instructions'),
'no_of_questions'=>$this->input->post('no_of_questions'),
'totalMarks'=>$this->input->post('totalMarks'),
'date'=>date('Y-m-d H:i:s'),
'regBy'=>$this->session->userdata('id'),
);
$this->db->insert('exam_sections',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function examQuestionSettings()
{
if($_POST){
$data = array(
'question_number'=>$this->input->post('question_number'),
'section_id'=>$this->input->post('section_id'),
'isList'=>$this->input->post('isList'),
'no_of_list_questions'=>$this->input->post('no_of_list_questions'),
'type_of_list'=>$this->input->post('type_of_list'),
'question_type'=>$this->input->post('question_type'),
'date'=>date('Y-m-d H:i:s'),
'regBy'=>$this->session->userdata('id'),
);
$this->db->insert('exam_questions',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function editExamQuestionSettings()
{
if($_POST){
$data = array(
'question_number'=>$this->input->post('question_number'),
'isList'=>$this->input->post('isList'),
'no_of_list_questions'=>$this->input->post('no_of_list_questions'),
'type_of_list'=>$this->input->post('type_of_list'),
'question_type'=>$this->input->post('question_type'),
);
$this->db->where('id',$this->input->post('id'))->update('exam_questions',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function editSection()
{
if($_POST){
$data = array(
'title'=>$this->input->post('title'),
'instructions'=>$this->input->post('instructions'),
'no_of_questions'=>$this->input->post('no_of_questions'),
'totalMarks'=>$this->input->post('totalMarks'),
);
$this->db->where('id',$this->input->post('id'))->update('exam_sections',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function editExam()
{
if($_POST){
$dur=round(($this->input->post('duration')/60),8);
$data = array(
'title'=>$this->input->post('title'),
'other_title'=>$this->input->post('other_title'),
'instructions'=>$this->input->post('instructions'),
'duration'=>$dur,
'time'=>$dur,
'pass'=>$this->input->post('pass'),
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('exams',$data);
redirect($_SERVER['HTTP_REFERER']);
}else{
redirect($_SERVER['HTTP_REFERER']);
}
}
public function activateExam()
{
$s = $_REQUEST['s'];
if($s=="Off"){
$status="On";
}else{
$status="Off";
}
$data = array(
'status'=>$status,
);
$dataoff = array(
'status'=>'Off',
);
//turn on and off
$this->db->where('id',base64_decode($_REQUEST['id']))->update('exams',$data);
//turn off all other exams
$this->db->where('lesson_id',base64_decode($_REQUEST['l']))->where('id!=',base64_decode($_REQUEST['id']))->update('exams',$dataoff);
redirect($_SERVER['HTTP_REFERER']);
}
public function enableUser()
{
$status="enabled";
$data = array(
'active'=>$status,
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('students',$data);
redirect($_SERVER['HTTP_REFERER']);
}
public function disableUser()
{
$status="disabled";
$data = array(
'active'=>$status,
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('students',$data);
redirect($_SERVER['HTTP_REFERER']);
}
public function activateUserProfile()
{
$status="active";
$data = array(
'showProfile'=>$status,
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('students',$data);
redirect($_SERVER['HTTP_REFERER']);
}
public function diactivateUserProfile()
{
$status="inactive";
$data = array(
'showProfile'=>$status,
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('students',$data);
redirect($_SERVER['HTTP_REFERER']);
}
public function enableStaff()
{
$status="enabled";
$data = array(
'active'=>$status,
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('users',$data);
redirect($_SERVER['HTTP_REFERER']);
}
public function disableStaff()
{
$status="disabled";
$data = array(
'active'=>$status,
);
$this->db->where('id',base64_decode($_REQUEST['id']))->update('users',$data);
redirect($_SERVER['HTTP_REFERER']);
}
public function addQuestion()
{
//print_r($_POST); exit;
$data=$this->input->post('data');//parameters
$name=$this->input->post('name');//name of data sent
$text=$this->input->post('text');//data sent
if($name=='swali'){
$p=explode('|',$data);
$qn_id=$p['0'];
$data = array(
'swali'=>$text,
);
$this->db->where('id',$qn_id);
$this->db->update('exam_questions',$data);
}else{
//expload parameters
$p=explode('|',$data);
$exam_id=$p['0'];
$section_id=$p['1'];
$question_id=$p['2'];
$isList=$p['3'];
$question_number=$p['4'];
//check if it exist...
$this->db->where('exam_id',$exam_id);
$this->db->where('section_id',$section_id);
$this->db->where('question_id',$question_id);
$this->db->where('question_number',$question_number);
$c=$this->db->get('questions')->num_rows();
$data = array(
'exam_id'=>$exam_id,
'section_id'=>$section_id,
'question_id'=>$question_id,
'isList'=>$isList,
'question_number'=>$question_number,
$name=>$text,
'date'=>date('Y-m-d H:i:s'),
'regBy'=>$this->session->userdata('id'),
);
$dataUpdate = array(
$name=>$text,
);
if($c>0){
$this->db->where('exam_id',$exam_id);
$this->db->where('section_id',$section_id);
$this->db->where('question_id',$question_id);
$this->db->where('question_number',$question_number);
$d=$this->db->update('questions',$dataUpdate);
}else{
$this->db->insert('questions',$data);
}
}
}
public function sendFile() {
if (isset($_FILES["file"])) {
//if there was an error uploading the file
if ($_FILES["file"]["error"] > 0) {
echo "Return Code: " . $_FILES["file"]["error"] . " ";
} else {
$filename = basename($_FILES['file']['name']);
$new = time() . rand();
$ext = pathinfo($filename, PATHINFO_EXTENSION);
$target = $new . '_' . $filename;
$target = str_replace(" ", "_", $target);
$storagename = "./template/materials/". $target;
move_uploaded_file($_FILES["file"]["tmp_name"], $storagename);
function formatBytes($bytes, $precision) {
$units = array('B', 'KB', 'MB', 'GB', 'TB');
$bytes = max($bytes, 0);
$pow = floor(($bytes ? log($bytes) : 0) / log(1024));
$pow = min($pow, count($units) - 1);
// Uncomment one of the following alternatives
$bytes /= pow(1024, $pow);
// $bytes /= (1 << (10 * $pow));
return round($bytes, $precision) . ' ' . $units[$pow];
}
$type = explode('/',$_FILES['file']['type']);
$type = $type[0];
$data_ary = array(
'topic_id' => $this->input->post('topic_id'),
'lesson_id' => $this->input->post('lesson_id'),
'name' => $this->input->post('name'),
'somo' => $this->input->post('somo'),
'file' => $target,
'type' => $type,
'date'=>date('Y-m-d'),
'regBy'=>$this->session->userdata('id'),
);
$data_ary = $this->security->xss_clean($data_ary);
$this->load->database();
$this->db->insert('notes', $data_ary);
redirect($_SERVER['HTTP_REFERER'].$ext);
}
} else {
echo 'not sent';
}
}
}