03-31-2015, 01:19 AM
cheers. to null 4.1 yoy can
null quick open : app/install/installcontroller.php and delete lines:
67: if ($code = \Input::get('code')) {
ini_set('user_agent', 'Mozilla/5.0');
73: return $this->instalRender(\View::make('install.index', ['error' => $error]), '');
}
83 - 120: public function check()
{
$domain = \Input::get('domain');
$buyerCode = \Input::get('code');
$apiKey = "2ndevom38wcgtiag8r52hrn09rhvb18o";
ini_set('user_agent', 'Mozilla/5.0');
try{
$requestUrl = 'http://marketplace.envato.com/api/edge/procrea8/'.$apiKey.'/verify-purchase:'.$buyerCode.'.json';
$jsonContent = file_get_contents($requestUrl);
if (empty($jsonContent)) return '0';
$jsonData = json_decode($jsonContent, true);
if (isset($jsonData['error'])) return '0';
if (empty($jsonData['verify-purchase'])) return '0';
if ($row = $this->installRepository->check($buyerCode)) {
if ($row->domain != $domain) {
return '0';
} else {
return '1';
}
}
$this->installRepository->addDomain($domain, $buyerCode);
return '1';
} catch(\Exception $e) {
return '0';
}
}
then run the step up.. it will bypass the purchase verify
null quick open : app/install/installcontroller.php and delete lines:
67: if ($code = \Input::get('code')) {
ini_set('user_agent', 'Mozilla/5.0');
73: return $this->instalRender(\View::make('install.index', ['error' => $error]), '');
}
83 - 120: public function check()
{
$domain = \Input::get('domain');
$buyerCode = \Input::get('code');
$apiKey = "2ndevom38wcgtiag8r52hrn09rhvb18o";
ini_set('user_agent', 'Mozilla/5.0');
try{
$requestUrl = 'http://marketplace.envato.com/api/edge/procrea8/'.$apiKey.'/verify-purchase:'.$buyerCode.'.json';
$jsonContent = file_get_contents($requestUrl);
if (empty($jsonContent)) return '0';
$jsonData = json_decode($jsonContent, true);
if (isset($jsonData['error'])) return '0';
if (empty($jsonData['verify-purchase'])) return '0';
if ($row = $this->installRepository->check($buyerCode)) {
if ($row->domain != $domain) {
return '0';
} else {
return '1';
}
}
$this->installRepository->addDomain($domain, $buyerCode);
return '1';
} catch(\Exception $e) {
return '0';
}
}
then run the step up.. it will bypass the purchase verify