Open abhaych opened 7 years ago
Is your supposed to be Log.php a controller/model class? Share section of ark_admin code that make reference to Log.php
I follow the instruction and configure as listed in readme file when I execute local server I got this error
I am new in CI
Log.php file is located into System/Libraries/Log.php
Share piece of code in ark_admin that calls Log.php
I have no idea
default controller home.php //////////////////////////////////////////////////////////// <?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
class Home extends CI_Controller {
/**
* Index Page for this controller.
*
* Maps to the following URL
* http://example.com/index.php/welcome
* - or -
* http://example.com/index.php/welcome/index
* - or -
* Since this controller is set as the default controller in
* config/routes.php, it's displayed at http://example.com/
*
* So any other public methods not prefixed with an underscore will
* map to /index.php/welcome/<method_name>
* @see http://codeigniter.com/user_guide/general/urls.html
*/
public function __construct() {
parent::__construct();
$this->load->library('form_validation');
}
public function index() {
echo "Abhay";
exit();
$arr['page'] ='home';
$this->load->view('vwHome',$arr);
}
public function do_login() {
if ($this->session->userdata('is_client_login')) {
redirect('home/loggedin');
} else {
$user = $_POST['username'];
$password = $_POST['password'];
$this->form_validation->set_rules('username', 'Username', 'required');
$this->form_validation->set_rules('password', 'Password', 'required');
if ($this->form_validation->run() == FALSE) {
/*
Sr. Software Developer / $this->load->view('login'); } else { $sql = "SELECT FROM users WHERE user_name = '" . $user . "' AND user_hash = '" . md5($password) . "'"; $val = $this->db->query($sql);
if ($val->num_rows) {
foreach ($val->result_array() as $recs => $res) {
$this->session->set_userdata(array(
'id' => $res['id'],
'user_name' => $res['user_name'],
'email' => $res['email'],
'is_client_login' => true
)
);
}
redirect('calls/call');
} else {
$err['error'] = 'Username or Password incorrect';
$this->load->view('login', $err);
}
}
}
}
public function logout() { $this->session->unset_userdata('id'); $this->session->unset_userdata('username'); $this->session->unset_userdata('email'); $this->session->unset_userdata('title'); $this->session->unset_userdata('ag_country');
$this->session->unset_userdata('is_client_login');
$this->session->sess_destroy();
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0");
$this->output->set_header("Pragma: no-cache");
redirect('home', 'refresh');
}
}
/ End of file welcome.php / / Location: ./application/controllers/welcome.php /
Try to replace system files with latest codeigniter files. You did not format that code above clearly so it's hard to read
Let me debug i will contact you soon
Thanks & Regards
Abhay
On Fri, May 26, 2017 at 1:57 PM, Aaron Rono notifications@github.com wrote:
Try to replace system files with latest codeigniter files. You did not format that code above clearly so it's hard to read
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sapienza/CodeIgniter-admin-panel/issues/32#issuecomment-304223510, or mute the thread https://github.com/notifications/unsubscribe-auth/AZrAMpqhbOryagrF35VhPNxprRcsmMHaks5r9ozzgaJpZM4NnO9e .