Inilabs School Management System Express v3.0 » Premium Scripts, Plugins & Mobile

Share It


Dont bother purchase code just modify 2 lines then put anything as purchase code and thank me later. in /mvc/controllers/install.php

function
Delete or comment out lines

456 and 457. after modify line 477 by jst removing the exclamation mark i.e !
your final code should appear like this. //note that i have pasted from line 443

public function pcode_validation() {
$purchase_code = trim($this->input->post(‘purchase_code’));
$username = ‘inilabs’;
$api_key = ‘a7hfhirfq8dw64old1bafe2dpimk5zdb’;
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, ‘API’);
curl_setopt($ch, CURLOPT_URL, “http://marketplace.envato.com/api/edge/”. $username .”/”. $api_key .”/verify-purchase:”. $purchase_code .”.json”);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$purchase_data = json_decode(curl_exec($ch), true);
if(!count($purchase_data[‘verify-purchase’])) {
$this->form_validation->set_message(“pcode_validation”, “Your Purchase Code Is Not Valid.”);

$file = APPPATH.’config/purchase’.EXT;
@chmod($file, FILE_WRITE_MODE);
$purchase_file = read_file($file);
write_file($file, $purchase_code);
return TRUE;
}
}

function check_pcode() {
$file = APPPATH.’config/purchase’.EXT;
@chmod($file, FILE_WRITE_MODE);
$purchase_code = read_file($file);

$username = ‘inilabs’;
$api_key = ‘a7hfhirfq8dw64old1bafe2dpimk5zdb’;
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, ‘API’);
curl_setopt($ch, CURLOPT_URL, “http://marketplace.envato.com/api/edge/”. $username .”/”. $api_key .”/verify-purchase:”. $purchase_code .”.json”);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$purchase_data = json_decode(curl_exec($ch), true);
if(count($purchase_data[‘verify-purchase’])) {
return FALSE;
} else {
return TRUE;
}
}
}


Share It

Leave a Comment