Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Register ex..

Decoded Output download

<?php defined('BASEPATH') OR exit('No direct script access allowed'); 
 
class Register extends CI_Controller { 
 
	function index(){ 
		$this->cek_status(); 
		$this->load->view('admin/register'); 
	} 
 
	function web($url){ 
       $agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";$ch=curl_init(); 
       curl_setopt ($ch, CURLOPT_URL,$url ); 
       curl_setopt($ch, CURLOPT_USERAGENT, $agent); 
       curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
       curl_setopt ($ch,CURLOPT_VERBOSE,false); 
       curl_setopt($ch, CURLOPT_TIMEOUT, 5); 
       curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, FALSE); 
       curl_setopt($ch,CURLOPT_SSLVERSION,3); 
       curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, FALSE); 
       $page=curl_exec($ch); 
       //echo curl_error($ch); 
       $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE); 
       curl_close($ch); 
       if($httpcode>=200 && $httpcode<300) return true; 
       else return false; 
	} 
	function proses(){ 
	$connected = @fsockopen("www.google.com", 80);  
    if ($connected) { 
	$kode= random_string('alnum', 40); 
	$npsn = $this->input->post('npsn'); 
	$time = $this->input->post('time'); 
	$sekolah = $this->input->post('sekolah'); 
	$jenjang = $this->input->post('idjenjang'); 
	$email = $this->input->post('email'); 
 
    	$data = array( 
      	'ua' => $this->input->post('username'), 
      	'pa' => md5($this->input->post('password')), 
	  	'npsn' => $npsn, 
	  	'id_kota' => 1, 
		'status' => 0, 
        	'code' => $kode, 
	  	'no_server' => $this->input->post('idjenjang')); 
	    	$datau = array( 
	  	'sekolah' => $sekolah, 
		'email' => $this->input->post('email'), 
	  	'npsn' => $this->input->post('npsn'),); 
		 
		$this->db->update('mdl_zref_sekolah',$datau); 
		$this->db->insert('mdl_zserver_info',$data); 
		$query = $this->db->get('mdl_zserver_info'); 
 
 
	 
    $config = array(); 
    $config['charset'] = 'utf-8'; 
    $config['useragent'] = 'Codeigniter'; 
    $config['protocol']= "smtp"; 
    $config['mailtype']= "html"; 
    $config['smtp_host']= "ssl://smtp.gmail.com";//pengaturan smtp 
    $config['smtp_port']= "465"; 
    $config['smtp_timeout']= "400"; 
    $config['smtp_user']= ""; // isi dengan email kamu 
    $config['smtp_pass']= ""; // isi dengan password kamu 
    $config['crlf']="
";  
    $config['newline']="
";  
    $config['wordwrap'] = TRUE; 
    $this->email->initialize($config); 
    //konfigurasi pengiriman 
   //$body = $this->load->view('admin/email.php',TRUE); 
    $this->email->from($config['smtp_user']); 
    $this->email->to("[email protected],$email",); 
    $this->email->subject("Verifikasi Akun"); 
    $this->email->message($body); 
    $this->email->message("Verifikasi VHD untuk NPSN : ".$npsn." Nama Sekolah : ".$sekolah." Email Sekolah : ".$email." Serial Number : ".$kode.""); 
    if($this->email->send()) 
    { 
	$this->session->set_flashdata('s_msg', 'Anda Berhasil melakukan registrasi'); 
       redirect('login'); 
    	}}else{ 
	$this->session->set_flashdata('e_msg', 'Status OFFLINE, Mohon Chek Koneksi di VHD Anda'); 
       redirect('login'); 
    	} 
 	redirect('/'); 
} 
 
	function confrim(){ 
	$key = $this->input->post(reg); 
	$query = $this->db->get("mdl_zserver_info"); 
	if($query->num_rows() >0){ 
	foreach ($query->result() as $row){ 
	if($row->code == $key){ 
	$this->db->update('mdl_zserver_info', array (status => 1)); 
	$this->session->set_flashdata('s_msg', 'Serial Number Valid'); 
       	redirect('login'); 
	}else{ 
	$this->session->set_flashdata('e_msg', 'Gagal Memasukan Serial Number'); 
       redirect('login'); 
 
	} 
	} 
   } 
	 
} 
 
	function cek_status(){ 
		if ($this->mdl_cbtadmin->server_info()->num_rows()){ 
		redirect('login'); 
		} 
	} 
 
} 
 ?>

Did this file decode correctly?

Original Code

<?php defined('BASEPATH') OR exit('No direct script access allowed');

class Register extends CI_Controller {

	function index(){
		$this->cek_status();
		$this->load->view('admin/register');
	}

	function web($url){
       $agent = "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)";$ch=curl_init();
       curl_setopt ($ch, CURLOPT_URL,$url );
       curl_setopt($ch, CURLOPT_USERAGENT, $agent);
       curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
       curl_setopt ($ch,CURLOPT_VERBOSE,false);
       curl_setopt($ch, CURLOPT_TIMEOUT, 5);
       curl_setopt($ch,CURLOPT_SSL_VERIFYPEER, FALSE);
       curl_setopt($ch,CURLOPT_SSLVERSION,3);
       curl_setopt($ch,CURLOPT_SSL_VERIFYHOST, FALSE);
       $page=curl_exec($ch);
       //echo curl_error($ch);
       $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
       curl_close($ch);
       if($httpcode>=200 && $httpcode<300) return true;
       else return false;
	}
	function proses(){
	$connected = @fsockopen("www.google.com", 80); 
    if ($connected) {
	$kode= random_string('alnum', 40);
	$npsn = $this->input->post('npsn');
	$time = $this->input->post('time');
	$sekolah = $this->input->post('sekolah');
	$jenjang = $this->input->post('idjenjang');
	$email = $this->input->post('email');

    	$data = array(
      	'ua' => $this->input->post('username'),
      	'pa' => md5($this->input->post('password')),
	  	'npsn' => $npsn,
	  	'id_kota' => 1,
		'status' => 0,
        	'code' => $kode,
	  	'no_server' => $this->input->post('idjenjang'));
	    	$datau = array(
	  	'sekolah' => $sekolah,
		'email' => $this->input->post('email'),
	  	'npsn' => $this->input->post('npsn'),);
		
		$this->db->update('mdl_zref_sekolah',$datau);
		$this->db->insert('mdl_zserver_info',$data);
		$query = $this->db->get('mdl_zserver_info');


	
    $config = array();
    $config['charset'] = 'utf-8';
    $config['useragent'] = 'Codeigniter';
    $config['protocol']= "smtp";
    $config['mailtype']= "html";
    $config['smtp_host']= "ssl://smtp.gmail.com";//pengaturan smtp
    $config['smtp_port']= "465";
    $config['smtp_timeout']= "400";
    $config['smtp_user']= ""; // isi dengan email kamu
    $config['smtp_pass']= ""; // isi dengan password kamu
    $config['crlf']="\r\n"; 
    $config['newline']="\r\n"; 
    $config['wordwrap'] = TRUE;
    $this->email->initialize($config);
    //konfigurasi pengiriman
   //$body = $this->load->view('admin/email.php',TRUE);
    $this->email->from($config['smtp_user']);
    $this->email->to("[email protected],$email",);
    $this->email->subject("Verifikasi Akun");
    $this->email->message($body);
    $this->email->message("Verifikasi VHD untuk NPSN : ".$npsn." Nama Sekolah : ".$sekolah." Email Sekolah : ".$email." Serial Number : ".$kode."");
    if($this->email->send())
    {
	$this->session->set_flashdata('s_msg', 'Anda Berhasil melakukan registrasi');
       redirect('login');
    	}}else{
	$this->session->set_flashdata('e_msg', 'Status OFFLINE, Mohon Chek Koneksi di VHD Anda');
       redirect('login');
    	}
 	redirect('/');
}

	function confrim(){
	$key = $this->input->post(reg);
	$query = $this->db->get("mdl_zserver_info");
	if($query->num_rows() >0){
	foreach ($query->result() as $row){
	if($row->code == $key){
	$this->db->update('mdl_zserver_info', array (status => 1));
	$this->session->set_flashdata('s_msg', 'Serial Number Valid');
       	redirect('login');
	}else{
	$this->session->set_flashdata('e_msg', 'Gagal Memasukan Serial Number');
       redirect('login');

	}
	}
   }
	
}

	function cek_status(){
		if ($this->mdl_cbtadmin->server_info()->num_rows()){
		redirect('login');
		}
	}

}

Function Calls

None

Variables

None

Stats

MD5 36e372be74b51132ebf2cd3a6921b782
Eval Count 0
Decode Time 115 ms