• You MUST read the Babiato Rules before making your first post otherwise you may get permanent warning points or a permanent Ban.

    Our resources on Babiato Forum are CLEAN and SAFE. So you can use them for development and testing purposes. If your are on Windows and have an antivirus that alerts you about a possible infection: Know it's a false positive because all scripts are double checked by our experts. We advise you to add Babiato to trusted sites/sources or disable your antivirus momentarily while downloading a resource. "Enjoy your presence on Babiato"

Academy Learning Management System

Academy Learning Management System v6.7 Untouched

No permission to download
For Baypass Purchased Code Addon version 5, you must uncomment or deleted

Application > Models > Addon_model

start line 14

/* if ($param1 == 'install'){
if($_SERVER['SERVER_NAME'] == 'localhost' || $_SERVER['SERVER_NAME'] == '127.0.0.1'){
//Local server
$purchase_code = null;
}else{
$purchase_code = $this->input->post('purchase_code');
// $addon_exits = $this->get_addon_by_purchase_code($purchase_code);
// if($addon_exits->num_rows() > 0){
// $this->session->set_flashdata('error_message', get_phrase('you_have_already_used_this_purchase_code'));
// redirect(site_url('admin/addon'), 'refresh');
// }
$status_response = $this->crud_model->curl_request($purchase_code);
if(!$status_response){
$this->session->set_flashdata('error_message', get_phrase('purchase_code_is_wrong').'. '.get_phrase('please_enter_your_valid_purchase_code'));
redirect(site_url('admin/addon'), 'refresh');
}
}
}


end line 34

Success to install addon
 
Last edited:
  • Like
Reactions: XUANTHINH
For Baypass Purchased Code Install version 5, you must add one line of code
between lines 49 and 50

Application >Controller > Install.php

49 ---> $validation_response = $this->crud_model->curl_request($purchase_code);

50 ---> if ($validation_response == true) {



add


49 ---> $validation_response = $this->crud_model->curl_request($purchase_code);

50 ---> $validation_response = true; /* Add This Line */

51 ---> if ($validation_response == true) {


Good Lucky
 
How do you configure other payment gateways with this script? I wish to add RazorPay. Kindly help.
 
Which addon is causing an issue?
For Baypass Purchased Code Addon version 5, you must uncomment or deleted

Application > Models > Addon_model

start line 14

/* if ($param1 == 'install'){
if($_SERVER['SERVER_NAME'] == 'localhost' || $_SERVER['SERVER_NAME'] == '127.0.0.1'){
//Local server
$purchase_code = null;
}else{
$purchase_code = $this->input->post('purchase_code');
// $addon_exits = $this->get_addon_by_purchase_code($purchase_code);
// if($addon_exits->num_rows() > 0){
// $this->session->set_flashdata('error_message', get_phrase('you_have_already_used_this_purchase_code'));
// redirect(site_url('admin/addon'), 'refresh');
// }
$status_response = $this->crud_model->curl_request($purchase_code);
if(!$status_response){
$this->session->set_flashdata('error_message', get_phrase('purchase_code_is_wrong').'. '.get_phrase('please_enter_your_valid_purchase_code'));
redirect(site_url('admin/addon'), 'refresh');
}
}
}*/

end line 34

Success to install addon
 
For Baypass Purchased Code Addon version 5, you must uncomment or deleted

Application > Models > Addon_model

start line 14

/* if ($param1 == 'install'){
if($_SERVER['SERVER_NAME'] == 'localhost' || $_SERVER['SERVER_NAME'] == '127.0.0.1'){
//Local server
$purchase_code = null;
}else{
$purchase_code = $this->input->post('purchase_code');
// $addon_exits = $this->get_addon_by_purchase_code($purchase_code);
// if($addon_exits->num_rows() > 0){
// $this->session->set_flashdata('error_message', get_phrase('you_have_already_used_this_purchase_code'));
// redirect(site_url('admin/addon'), 'refresh');
// }
$status_response = $this->crud_model->curl_request($purchase_code);
if(!$status_response){
$this->session->set_flashdata('error_message', get_phrase('purchase_code_is_wrong').'. '.get_phrase('please_enter_your_valid_purchase_code'));
redirect(site_url('admin/addon'), 'refresh');
}
}
}*/

end line 34

Success to install addon
I try install theme + addon = > It's okey but admin cpanel not show addon or theme
 
I debug this script and find out why error 500 occurs while installing addon.
So here is my contribution for this awesome forum.

To bypass license, open /applications/models/Crud_model.php

Replace
PHP:
function curl_request($code = '')
    {

        $product_code = $code;

        $personal_token = "FkA9UyDiQT0YiKwYLK3ghyFNRVV9SeUn";
        $url = "https://api.envato.com/v3/market/author/sale?code=" . $product_code;
        $curl = curl_init($url);

        //setting the header for the rest of the api
        $bearer   = 'bearer ' . $personal_token;
        $header   = array();
        $header[] = 'Content-length: 0';
        $header[] = 'Content-type: application/json; charset=utf-8';
        $header[] = 'Authorization: ' . $bearer;

        $verify_url = 'https://api.envato.com/v1/market/private/user/verify-purchase:' . $product_code . '.json';
        $ch_verify = curl_init($verify_url . '?code=' . $product_code);

        curl_setopt($ch_verify, CURLOPT_HTTPHEADER, $header);
        curl_setopt($ch_verify, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch_verify, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch_verify, CURLOPT_CONNECTTIMEOUT, 5);
        curl_setopt($ch_verify, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');

        $cinit_verify_data = curl_exec($ch_verify);
        curl_close($ch_verify);

        $response = json_decode($cinit_verify_data, true);

        if (count($response['verify-purchase']) > 0) {
            return true;
        } else {
            return false;
        }
    }

To
PHP:
function curl_request($code = '')
    {

        return !empty($code) ? true : false;

    }

For addon error, it happens because the name difference between folder and archive name. Simply, match your archive name with its folder inside, or vice-versa. Then do a little modification, open /applications/models/Addon_model.php

Replace
PHP:
$zipped_file_name = $_FILES['addon_zip']['name'];

To
PHP:
if(isset($_FILES['addon_zip'])){
            $zipped_file_name = $_FILES['addon_zip']['name'];
}
 
For Baypass Purchased Code Install version 5, you must add one line of code
between lines 49 and 50

Application >Controller > Install.php

49 ---> $validation_response = $this->crud_model->curl_request($purchase_code);

50 ---> if ($validation_response == true) {



add


49 ---> $validation_response = $this->crud_model->curl_request($purchase_code);

50 ---> $validation_response = true; /* Add This Line */

51 ---> if ($validation_response == true) {


Good Lucky
Tranks xD
 
For Baypass Purchased Code Addon version 5, you must uncomment or deleted

Application > Models > Addon_model

start line 14

/* if ($param1 == 'install'){
if($_SERVER['SERVER_NAME'] == 'localhost' || $_SERVER['SERVER_NAME'] == '127.0.0.1'){
//Local server
$purchase_code = null;
}else{
$purchase_code = $this->input->post('purchase_code');
// $addon_exits = $this->get_addon_by_purchase_code($purchase_code);
// if($addon_exits->num_rows() > 0){
// $this->session->set_flashdata('error_message', get_phrase('you_have_already_used_this_purchase_code'));
// redirect(site_url('admin/addon'), 'refresh');
// }
$status_response = $this->crud_model->curl_request($purchase_code);
if(!$status_response){
$this->session->set_flashdata('error_message', get_phrase('purchase_code_is_wrong').'. '.get_phrase('please_enter_your_valid_purchase_code'));
redirect(site_url('admin/addon'), 'refresh');
}
}
}


end line 34

Success to install addon
I do not understand, enter this file, and delete line 14 to 34 and then I can install the addon? Sorry I'm new at this, I'm trying here, or give error 500 or nothing happens and does not install or pop up something saying that the buying code is wrong
 
I get these Addon, in case anyone wants!
 

Attachments

  • Academy LMS Live Streaming Class Addon v1.1.zip
    822.9 KB · Views: 82
  • academyamazon-10.zip
    3.2 MB · Views: 68
  • academyliveclass-11.zip
    822.5 KB · Views: 79
  • Academy-LMS.zip
    13.2 MB · Views: 88
  • academylmsanalyticsaddon-10.zip
    638 KB · Views: 90
  • academy-lms-certificate-addon-1.0.zip
    878.3 KB · Views: 83
  • academylmscertificateaddon-10.zip
    1.5 MB · Views: 91
and
 

Attachments

  • academy-lms-offline-payment-addon v1.1.zip
    943 KB · Views: 78
  • academy-lms-live-streaming-class-addon.zip
    938.4 KB · Views: 54
  • academy-lms-offline-payment-addon.zip
    942.7 KB · Views: 67
  • academylmspaytmaddon-12.zip
    380.2 KB · Views: 52
  • academy-lms-paytm-payment-addon.zip
    592.5 KB · Views: 50
  • academylmsscormaddon-10.zip
    313 KB · Views: 66
  • academy-lms-scorm-course-addon-v1.0.zip
    297.7 KB · Views: 62

Forum statistics

Threads
79,491
Messages
1,143,705
Members
249,152
Latest member
TGC007
AdBlock Detected

We get it, advertisements are annoying!

However in order to keep our huge array of resources free of charge we need to generate income from ads so to use the site you will need to turn off your adblocker.

If you'd like to have an ad free experience you can become a Babiato Lover by donating as little as $5 per month. Click on the Donate menu tab for more info.

I've Disabled AdBlock