Accepting Script Nulling Requests

starliner

Well-known member
Null Master
Trusted Uploader
Mar 28, 2019
559
530
93
Am talking about this script

TimerPlanet

this script doesnt have license key restriction.

It gives error on sql installation.

I havent time to check all database tables.

Code:
Error Number: 1292

Incorrect datetime value: '0000-00-00 00:00:00' for column 'expired_date' at row 1

ALTER TABLE `users` ADD `expired_date` DATETIME NOT NULL AFTER `activation_code`;

Filename: C:\laragon\www\timerplanet\system\database\DB_driver.php

Line Number: 328
 

phpCore

ReLOADED
Trusted Uploader
Banned User
Jun 6, 2020
1,511
1,657
120
127.0.0.1/::1
this script doesnt have license key restriction.

It gives error on sql installation.

I havent time to check all database tables.

Code:
Error Number: 1292

Incorrect datetime value: '0000-00-00 00:00:00' for column 'expired_date' at row 1

ALTER TABLE `users` ADD `expired_date` DATETIME NOT NULL AFTER `activation_code`;

Filename: C:\laragon\www\timerplanet\system\database\DB_driver.php

Line Number: 328

Take a look at CI version it is 2.x.x, it's an old script. Take a look at the coding style.
 

inux2004

Active member
Aug 7, 2019
260
68
28
please help me to null this plugin:

Script name : schooldata
Required additional plugin : no
Restrictions : purchase code/ activation key

thanks in advance
 

Attachments

  • schooldata-2.2.1.zip
    5.1 MB · Views: 90
Last edited:

focuslinks

Active member
Aug 28, 2020
97
29
28
Lagos, Nigeria
this script doesnt have license key restriction.

It gives error on sql installation.

I havent time to check all database tables.

Code:
Error Number: 1292

Incorrect datetime value: '0000-00-00 00:00:00' for column 'expired_date' at row 1

ALTER TABLE `users` ADD `expired_date` DATETIME NOT NULL AFTER `activation_code`;

Filename: C:\laragon\www\timerplanet\system\database\DB_driver.php

Line Number: 328


but the script is working fine here but asking for purchase code

please check the screenshot


i think the problem is from this

/timerplanet/application/controllers/home.php

timer.png
 

focuslinks

Active member
Aug 28, 2020
97
29
28
Lagos, Nigeria
@starliner & @phpcore

on the script (TimerPlanet) in

/timerplanet/application/controllers/home.php


line: 1606 to line: 1663 i get this:




public function code_activation_check_action($purchase_code,$only_domain){

if($this->session->userdata("user_type")!="Admin") redirect('home/access_forbidden', 'location');
$url = "http://xeroneit.net/development/envato_license_activation/purchase_code_check.php?purchase_code={$purchase_code}&domain={$only_domain}&item_name=TimerPlanet";

$credentials = $this->get_general_content($url);
$decoded_credentials = json_decode($credentials);
if($decoded_credentials->status == 'success'){
$content_to_write = array(
'is_active' => md5($purchase_code),
'purchase_code' => $purchase_code,
'item_name' => $decoded_credentials->item_name,
'buy_at' => $decoded_credentials->buy_at,
'licence_type' => $decoded_credentials->license,
'domain' => $only_domain,
'checking_date'=>date('Y-m-d')
);
$config_json_content_to_write = json_encode($content_to_write);
file_put_contents(APPPATH.'config/licence.txt', $config_json_content_to_write, LOCK_EX);

$content_to_write['is_active'] = md5(md5($purchase_code));
$core_json_content_to_write = json_encode($content_to_write);
file_put_contents(APPPATH.'core/licence.txt', $core_json_content_to_write, LOCK_EX);

return json_encode("success");

} else {
if(file_exists(APPPATH.'core/licence.txt')) unlink(APPPATH.'core/licence.txt');
return json_encode($decoded_credentials);
}
}

public function periodic_check(){

$today= date('d');

if($today%7==0){

if(file_exists(APPPATH.'config/licence.txt') && file_exists(APPPATH.'core/licence.txt')){
$config_existing_content = file_get_contents(APPPATH.'config/licence.txt');
$config_decoded_content = json_decode($config_existing_content, true);
$last_check_date= $config_decoded_content['checking_date'];
$purchase_code = $config_decoded_content['purchase_code'];
$base_url = base_url();
$domain_name = get_domain_only($base_url);

if( strtotime(date('Y-m-d')) != strtotime($last_check_date)){
$this->code_activation_check_action($purchase_code,$domain_name);
}
}
}
}

public function php_info($code="")
{
if($code=="7ZT0EFiocUAM20wny6yu")
echo phpinfo();
}
 

phpCore

ReLOADED
Trusted Uploader
Banned User
Jun 6, 2020
1,511
1,657
120
127.0.0.1/::1
@starliner & @phpcore

on the script (TimerPlanet) in

/timerplanet/application/controllers/home.php


line: 1606 to line: 1663 i get this:




public function code_activation_check_action($purchase_code,$only_domain){

if($this->session->userdata("user_type")!="Admin") redirect('home/access_forbidden', 'location');
$url = "http://xeroneit.net/development/envato_license_activation/purchase_code_check.php?purchase_code={$purchase_code}&domain={$only_domain}&item_name=TimerPlanet";

$credentials = $this->get_general_content($url);
$decoded_credentials = json_decode($credentials);
if($decoded_credentials->status == 'success'){
$content_to_write = array(
'is_active' => md5($purchase_code),
'purchase_code' => $purchase_code,
'item_name' => $decoded_credentials->item_name,
'buy_at' => $decoded_credentials->buy_at,
'licence_type' => $decoded_credentials->license,
'domain' => $only_domain,
'checking_date'=>date('Y-m-d')
);
$config_json_content_to_write = json_encode($content_to_write);
file_put_contents(APPPATH.'config/licence.txt', $config_json_content_to_write, LOCK_EX);

$content_to_write['is_active'] = md5(md5($purchase_code));
$core_json_content_to_write = json_encode($content_to_write);
file_put_contents(APPPATH.'core/licence.txt', $core_json_content_to_write, LOCK_EX);

return json_encode("success");

} else {
if(file_exists(APPPATH.'core/licence.txt')) unlink(APPPATH.'core/licence.txt');
return json_encode($decoded_credentials);
}
}

public function periodic_check(){

$today= date('d');

if($today%7==0){

if(file_exists(APPPATH.'config/licence.txt') && file_exists(APPPATH.'core/licence.txt')){
$config_existing_content = file_get_contents(APPPATH.'config/licence.txt');
$config_decoded_content = json_decode($config_existing_content, true);
$last_check_date= $config_decoded_content['checking_date'];
$purchase_code = $config_decoded_content['purchase_code'];
$base_url = base_url();
$domain_name = get_domain_only($base_url);

if( strtotime(date('Y-m-d')) != strtotime($last_check_date)){
$this->code_activation_check_action($purchase_code,$domain_name);
}
}
}
}

public function php_info($code="")
{
if($code=="7ZT0EFiocUAM20wny6yu")
echo phpinfo();
}

You need to buy glasses ;)

 
  • Haha
Reactions: TassieNZ

Latest posts

Forum statistics

Threads
69,226
Messages
908,438
Members
237,027
Latest member
YoGGe

About us

  • Our community has been around for many years and pride ourselves on offering unbiased, critical discussion among people of all different backgrounds. We are working every day to make sure our community is one of the best.

Quick Navigation

User Menu