Academy Learning Management System

Academy Learning Management System v6.12.2 Untouched

No permission to download

White Devil

Well-known member
Trusted Seller
Trusted Uploader
Jan 6, 2019
3,107
6,072
120
world
babiato.tech

codejasa

New member
Feb 26, 2021
2
0
1
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

codejasa

New member
Feb 26, 2021
2
0
1
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
 

CoderLady

Member
Dec 3, 2020
35
2
8
How do you configure other payment gateways with this script? I wish to add RazorPay. Kindly help.
 

tapas

New member
Banned User
Aug 28, 2020
18
4
3
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
 

nguyenvuongvu

New member
Babiato Lover
Mar 21, 2019
1
6
3
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
 

oxlowl

New member
Jan 23, 2019
2
0
1
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'];
}
 

fury3d

New member
May 10, 2022
4
0
1
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
 

fury3d

New member
May 10, 2022
4
0
1
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
 

fury3d

New member
May 10, 2022
4
0
1
I get these Addon, in case anyone wants!
 

Attachments

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

fury3d

New member
May 10, 2022
4
0
1
and
 

Attachments

  • academy-lms-offline-payment-addon v1.1.zip
    943 KB · Views: 76
  • academy-lms-live-streaming-class-addon.zip
    938.4 KB · Views: 53
  • academy-lms-offline-payment-addon.zip
    942.7 KB · Views: 66
  • academylmspaytmaddon-12.zip
    380.2 KB · Views: 51
  • academy-lms-paytm-payment-addon.zip
    592.5 KB · Views: 48
  • academylmsscormaddon-10.zip
    313 KB · Views: 65
  • academy-lms-scorm-course-addon-v1.0.zip
    297.7 KB · Views: 58

Forum statistics

Threads
69,228
Messages
908,456
Members
237,092
Latest member
Azakami

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