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')!='student'){
$this->session->set_flashdata('flash_data', 'You don\'t have access!');
redirect('Admin');
}
//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 index()
{
$this->load->view('includes/students_header');
$this->load->view('students/students_home');
$this->load->view('includes/students_footer');
}
public function certificates()
{
$this->load->view('includes/students_header');
$this->load->view('students/certificates');
$this->load->view('includes/students_footer');
}
public function products()
{
$this->load->view('includes/students_header');
$this->load->view('students/products');
$this->load->view('includes/students_footer');
}
public function my_courses()
{
$this->load->view('includes/students_header');
$this->load->view('students/my_courses');
$this->load->view('includes/students_footer');
}
public function completed_courses()
{
$this->load->view('includes/students_header');
$this->load->view('students/completed_courses');
$this->load->view('includes/students_footer');
}
public function ongoing_courses()
{
$this->load->view('includes/students_header');
$this->load->view('students/ongoing_courses');
$this->load->view('includes/students_footer');
}
public function privacy()
{
$this->load->view('includes/students_header');
$this->load->view('students/privacy');
$this->load->view('includes/students_footer');
}
public function notifications()
{
$student_id = $this->session->userdata('id');
$not = $this->db->where('notify_id !=',$student_id)->or_where('audience','all')->limit(50)->order_by('id','desc')->get('notifications');
foreach($not->result() as $notify){
$clicked = 'no';
//insert to notification seen;
$array = array(
'notification_id'=>$notify->id,
'student_id'=>$student_id,
'datetime'=>date('Y-m-d H:i:s'),
'seen'=>'yes',
'clicked'=>'no',
);
if($this->db->where('notification_id',$notify->id)->count_all_results('notification_view') == 0){
$this->db->insert('notification_view',$array);
}
$readstatus = 'unseen';
$location = $name = $photo=NULL;
if($notify->notify_id > 0){
foreach($this->db->where('id',$notify->notify_id)->get('students')->result() as $student){
$name = $student->full_name;
$location = $student->location;
$photo = $student->profile_photo;
}
}
if($student_id == $notify->student_id){
foreach($this->db->where('student_id',$student_id)->where('notification_id',$notify->id)->get('notification_view')->result() as $clickedd){
$clicked = $clickedd->clicked;
}
}else{
foreach($this->db->where('notification_id',$notify->id)->get('notification_view')->result() as $clickedd){
$clicked = $clickedd->clicked;
}
}
}
$this->load->view('includes/students_header');
$this->load->view('students/notifications');
$this->load->view('includes/students_footer');
}
public function read_business_information()
{
if(isset($_REQUEST['clicked'])){
$not_id = base64_decode($_REQUEST['clicked']);
$student_id = $this->session->userdata('id');
$not = $this->db->where('id',$not_id)->where('notify_id !=',$student_id)->or_where('audience','all')->where('id',$not_id)->get('notifications');
foreach($not->result() as $notify){
$clicked = 'no';
//insert to notification seen;
$array = array(
'notification_id'=>$notify->id,
'student_id'=>$student_id,
'datetime'=>date('Y-m-d H:i:s'),
'seen'=>'yes',
'clicked'=>'yes',
);
if($this->db->where('notification_id',$notify->id)->count_all_results('notification_view') == 0){
$this->db->insert('notification_view',$array);
}else{
$this->db->where('notification_id',$not_id)->update('notification_view',array('clicked'=>'yes'));
}
}
}
$this->load->view('includes/students_header');
$this->load->view('students/read_business_information');
$this->load->view('includes/students_footer');
}
public function lessons()
{
$this->load->view('includes/students_header');
$this->load->view('students/lessons');
$this->load->view('includes/students_footer');
}
public function language(){
//change language session...
$this->session->set_userdata('language', $_REQUEST['id']);
redirect($_SERVER['HTTP_REFERER']);
}
public function attempt_exam()
{
$this->load->view('includes/students_header');
$this->load->view('students/attempt_exam');
$this->load->view('includes/students_footer');
}
public function get_results()
{
$this->load->view('includes/students_header');
$this->load->view('students/get_results');
$this->load->view('includes/students_footer');
}
public function members()
{
$this->load->view('includes/students_header');
$this->load->view('students/members');
$this->load->view('includes/students_footer');
}
public function markets()
{
$this->load->view('includes/students_header');
$this->load->view('students/markets');
$this->load->view('includes/students_footer');
}
public function market_view()
{
$this->load->view('includes/students_header');
$this->load->view('students/market_view');
$this->load->view('includes/students_footer');
}
public function market_products()
{
$this->load->view('includes/students_header');
$this->load->view('students/market_products');
$this->load->view('includes/students_footer');
}
public function forum()
{
$this->load->view('includes/students_header');
$this->load->view('students/forum');
$this->load->view('includes/students_footer');
}
public function view_comments()
{
if(isset($_REQUEST['clicked'])){
$not_id = base64_decode($_REQUEST['clicked']);
$student_id = $this->session->userdata('id');
$not = $this->db->where('id',$not_id)->where('notify_id !=',$student_id)->or_where('audience','all')->where('id',$not_id)->get('notifications');
foreach($not->result() as $notify){
$clicked = 'no';
//insert to notification seen;
$array = array(
'notification_id'=>$notify->id,
'student_id'=>$student_id,
'datetime'=>date('Y-m-d H:i:s'),
'seen'=>'yes',
'clicked'=>'yes',
);
if($this->db->where('notification_id',$notify->id)->count_all_results('notification_view') == 0){
$this->db->insert('notification_view',$array);
}else{
$this->db->where('notification_id',$not_id)->update('notification_view',array('clicked'=>'yes'));
}
}
}
$this->load->view('includes/students_header');
$this->load->view('students/view_comments');
$this->load->view('includes/students_footer');
}
public function view_likes()
{
if(isset($_REQUEST['clicked'])){
$not_id = base64_decode($_REQUEST['clicked']);
$student_id = $this->session->userdata('id');
$not = $this->db->where('id',$not_id)->where('notify_id !=',$student_id)->or_where('audience','all')->where('id',$not_id)->get('notifications');
foreach($not->result() as $notify){
$clicked = 'no';
//insert to notification seen;
$array = array(
'notification_id'=>$notify->id,
'student_id'=>$student_id,
'datetime'=>date('Y-m-d H:i:s'),
'seen'=>'yes',
'clicked'=>'yes',
);
if($this->db->where('notification_id',$notify->id)->count_all_results('notification_view') == 0){
$this->db->insert('notification_view',$array);
}else{
$this->db->where('notification_id',$not_id)->update('notification_view',array('clicked'=>'yes'));
}
}
}
$this->load->view('includes/students_header');
$this->load->view('students/view_likes');
$this->load->view('includes/students_footer');
}
public function selectDate()
{
$d=base64_encode($this->input->post('date'));
$mid=base64_encode($this->input->post('mid'));
$pid=base64_encode($this->input->post('pid'));
redirect('learning/market_view?mid='.$mid.'&pid='.$pid.'&d='.$d);
}
public function get_product()
{
?>
db->where('category_id',$this->input->post('id'))->get('marketProduct')->result() as $cat){
?>
}
}
public function get_market()
{
?>
db->where('region_id',$this->input->post('id'))->get('markets')->num_rows();
if($c>0){
foreach($this->db->where('region_id',$this->input->post('id'))->get('markets')->result() as $cat){
?>
}
}else{
?>
}
}
public function get_regions()
{
?>
db->get('region')->result() as $region){
//check market
$cr = $this->db->where('region_id',$region->id)->get('markets')->num_rows();
if($cr==0){
continue;
}
foreach($this->db->where('region_id',$region->id)->get('markets')->result() as $market){
//check product
$cp = $this->db->where('product_id',$this->input->post('id'))->where('market_id',$market->id)->get('marketProductPrices')->num_rows();
if($cp==0){
continue;
}
foreach($this->db->where('id',$market->region_id)->get('region')->result() as $r){
?>
}
}
}
}
public function searchProduct()
{
$d=base64_encode($this->input->post('market'));
$id=base64_encode($this->input->post('product'));
redirect('learning/market_view?mid='.$d.'&pid='.$id);
}
public function forum1()
{
$this->load->view('includes/students_header');
$this->load->view('students/forum1');
$this->load->view('includes/students_footer');
}
public function links()
{
$this->load->view('includes/students_header');
$this->load->view('students/links');
$this->load->view('includes/students_footer');
}
public function business_information()
{
$this->load->view('includes/students_header');
$this->load->view('students/business_information');
$this->load->view('includes/students_footer');
}
public function view_member()
{
$this->load->view('includes/students_header');
$this->load->view('students/view_member');
$this->load->view('includes/students_footer');
}
public function read_lesson()
{
$this->load->view('includes/students_header');
$this->load->view('students/read_lesson');
$this->load->view('includes/students_footer');
}
public function read_topic()
{
$this->load->view('includes/students_header');
$this->load->view('students/read_topic');
$this->load->view('includes/students_footer');
}
public function reading_area()
{
$this->load->view('includes/students_header');
$this->load->view('students/reading_area');
$this->load->view('includes/students_footer');
}
public function examinations()
{
$this->load->view('includes/students_header');
$this->load->view('students/examinations');
$this->load->view('includes/students_footer');
}
public function view_results()
{
$this->load->view('includes/students_header');
$this->load->view('students/view_results');
$this->load->view('includes/students_footer');
}
public function apply_certificate()
{
$this->load->view('includes/students_header');
$this->load->view('students/apply_certificate');
$this->load->view('includes/students_footer');
}
public function print_certificate()
{
$this->load->view('includes/printing_header');
$this->load->view('students/print_certificate');
$this->load->view('includes/printing_footer');
}
public function do_exam()
{
$this->load->view('includes/printing_header');
$this->load->view('students/do_exam');
$this->load->view('includes/printing_footer');
}
public function view_marking()
{
$this->load->view('includes/printing_header');
$this->load->view('students/view_marking');
$this->load->view('includes/printing_footer');
}
public function my_profile()
{
$this->load->view('includes/students_header');
$this->load->view('students/my_profile');
$this->load->view('includes/students_footer');
}
public function edit_my_profile()
{
$this->load->view('includes/students_header');
$this->load->view('students/edit_my_profile');
$this->load->view('includes/students_footer');
}
public function edit_business_profile()
{
$this->load->view('includes/students_header');
$this->load->view('students/edit_business_profile');
$this->load->view('includes/students_footer');
}
public function edit_business_products()
{
$this->load->view('includes/students_header');
$this->load->view('students/edit_business_products');
$this->load->view('includes/students_footer');
}
public function my_account()
{
$this->load->view('includes/students_header');
$this->load->view('students/my_account');
$this->load->view('includes/students_footer');
}
public function change_password()
{
$this->load->view('includes/students_header');
$this->load->view('students/change_password');
$this->load->view('includes/students_footer');
}
public function product_details()
{
$this->load->view('includes/students_header');
$this->load->view('students/product_details');
$this->load->view('includes/students_footer');
}
}