AnonSec Shell
Server IP : 162.214.74.102  /  Your IP : 216.73.217.103
Web Server : Apache
System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64
User : lrsys ( 1015)
PHP Version : 5.6.40
Disable Function : exec,passthru,shell_exec,system
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/lrsys/www/lrsys_projetos/sopizzas/application/controllers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_projetos/sopizzas/application/controllers/verifylogin.php
<?php
class Verifylogin extends CI_controller{

  function __construct()
  {
    parent::__construct();
    $this->load->model('user','',TRUE);
    $this->load->helper('form');
    $this->load->helper('cookie');
    $this->load->library('form_validation');
    //$this->load->library('email');
    if($this->session->userdata('user_language'))
    {
      $language = $this->session->userdata('user_language');
    }
    else
    {
      $language = $this->config->item("language");
    }
    $data['user_language'] =  $language;
    $this->lang->load('superAdmin', $language);
  }


  function index()
  {
    //$this->sendmail();
    $this->form_validation->set_rules('username', 'Username', 'trim|required|xss_clean');
    $this->form_validation->set_rules('password', 'Password', 'trim|required|xss_clean|callback_check_password');

    if($this->form_validation->run() == FALSE)
      {
        $data['username'] = '';
        $data['password'] = '';
        $data['ischecked'] = '';
       $this->load->view('superadmin/login',$data);
       //redirect('superadmin/', 'refresh');

      }else
      {

        
        //Go to private area
        $myArray = $this->session->userdata('logged_in');
        $designation = $myArray['designation'];
        if ($designation == 'subsuperadmin') {
          redirect('superadmin/managerestaurant');
        }
        redirect('superadmin/dashboard');
        // $this->load->view('dashboard');
      }
    }

  function check_password($password)
  {
    //Field validation succeeded.  Validate against database
    $username   = $this->input->post('username');
    

      
    //query the database
    $result = $this->user->login($username, $password);
    if($result)
    {
      $sess_array = array();
      foreach($result as $row)
      {
        $admin_id =  $row->admin_id;
        $sess_array = array(
          'id'          => $row->admin_id,
          'is_admin'    => 1,
          'is_active'   => 1,
          'username'    => $row->username,
          'admin_image' => $row->admin_image,
          'designation' => $row->designation
        );

        ///  Remember Me

        $rememberme = $this->input->post('rememberme');
        if($rememberme)
        {
          //$this->input->set_cookie('cookiesample', '754767567', 3600);  
          ///echo "string";
          //exit();
        $cookie = array(
          'name'   => 'remember_me_token_superadmin',
          'value'  => md5($admin_id),
          'expire' => '36000'  // Two weeks
          );

          $this->input->set_cookie($cookie);
        }else{
          $this->input->set_cookie('remember_me_token_superadmin', '');
        }

        //--------------------

        if($sess_array['is_active']==1)
        {
          $this->session->set_userdata('logged_in', $sess_array);
          if ($this->session->userdata('logged_in_restaurant')) {
            $this->session->unset_userdata('logged_in_restaurant');
          }
        }else{
          $this->form_validation->set_message('check_password', $this->lang->line('sorry_suspend'));
          return false;
        }
      }
      return TRUE;
    }
    else
    {
      $this->form_validation->set_message('check_password', $this->lang->line('Invalid_user_pass'));
      return false;
    }
  }

  function sendmail()
    {
      $this->email->from('noreply@orderingsystemonline.com', 'sender name');
      $this->email->to('earthtechnology5@gmail.com');
      //$this->email->cc('test2@gmail.com'); 
      $this->email->subject('Your Subject');
      $this->email->message('Your Message');
      //$this->email->attach('/path/to/file1.png'); // attach file
      //$this->email->attach('/path/to/file2.pdf');
      if ($this->email->send())
          echo "Mail Sent!";
      else
          echo "There is error in sending mail!";
    }
}
?>

Anon7 - 2022
AnonSec Team