chore: initial commit
This commit is contained in:
29
api/controllers/Env_ver.php
Normal file
29
api/controllers/Env_ver.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
defined('BASEPATH') || exit('No direct script access allowed');
|
||||
|
||||
class Env_ver extends AdminController {
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
}
|
||||
|
||||
public function index() {
|
||||
show_404();
|
||||
}
|
||||
|
||||
public function activate() {
|
||||
$res = modules\api\core\Apiinit::pre_validate($this->input->post('module_name'), $this->input->post('purchase_key'));
|
||||
if ($res['status']) {
|
||||
$res['original_url'] = $this->input->post('original_url');
|
||||
}
|
||||
echo json_encode($res);
|
||||
}
|
||||
|
||||
public function upgrade_database() {
|
||||
$res = modules\api\core\Apiinit::pre_validate($this->input->post('module_name'), $this->input->post('purchase_key'));
|
||||
if ($res['status']) {
|
||||
$res['original_url'] = $this->input->post('original_url');
|
||||
}
|
||||
echo json_encode($res);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user