/
home
/
techb158
/
exp.abdallabala.com
/
application
/
autoload
/
/home/techb158/exp.abdallabala.com/application/autoload
mkdir
upload
Name
Size
Mode
Actions
Ib/
-
0755
rm
IBilling/
-
0755
rm
Models/
-
0755
rm
Notify/
-
0755
rm
Admin.php
1626
0644
edit
dl
rm
App.php
87
0644
edit
dl
rm
Arr.php
416
0644
edit
dl
rm
Asset.php
1822
0644
edit
dl
rm
Auth.php
1246
0644
edit
dl
rm
Backup.php
11650
0644
edit
dl
rm
Cache.php
84
0644
edit
dl
rm
Ccavenue.php
8458
0644
edit
dl
rm
class.smtp.php
39438
0644
edit
dl
rm
Companies.php
2564
0644
edit
dl
rm
Contacts.php
6607
0644
edit
dl
rm
Countries.php
31152
0644
edit
dl
rm
Currency.php
23237
0644
edit
dl
rm
Dashboard.php
20625
0644
edit
dl
rm
DB.php
62
0644
edit
dl
rm
Demo.php
24844
0644
edit
dl
rm
Dev.php
1666
0644
edit
dl
rm
Ed.php
1758
0644
edit
dl
rm
Event.php
449
0644
edit
dl
rm
ExtendedZip.php
1381
0644
edit
dl
rm
Finance.php
5874
0644
edit
dl
rm
Fsubmit.php
4489
0644
edit
dl
rm
Gravatar.php
2721
0644
edit
dl
rm
Image.php
69395
0644
edit
dl
rm
index.html
112
0644
edit
dl
rm
Invoice.php
15557
0644
edit
dl
rm
Make.php
966
0644
edit
dl
rm
Misc.php
1385
0644
edit
dl
rm
Model.php
23728
0644
edit
dl
rm
ORM.php
84036
0644
edit
dl
rm
Paginator.php
6122
0644
edit
dl
rm
parseCSV.php
39009
0644
edit
dl
rm
Parsedown.php
38137
0644
edit
dl
rm
Password.php
2136
0644
edit
dl
rm
PHPMailer.php
111411
0644
edit
dl
rm
Plugins.php
2973
0644
edit
dl
rm
Quote.php
8090
0644
edit
dl
rm
Reorder.php
2017
0644
edit
dl
rm
Repeating.php
5771
0644
edit
dl
rm
Schema.php
4899
0644
edit
dl
rm
Sms.php
1047
0644
edit
dl
rm
Syscpanel.php
6058
0644
edit
dl
rm
Syscurl.php
1075
0644
edit
dl
rm
Sysfile.php
579
0644
edit
dl
rm
Tags.php
831
0644
edit
dl
rm
Template.php
540
0644
edit
dl
rm
Timezone.php
1171
0644
edit
dl
rm
Transaction.php
1073
0644
edit
dl
rm
Uploader.php
3369
0644
edit
dl
rm
User.php
374
0644
edit
dl
rm
Util.php
9760
0644
edit
dl
rm
Validator.php
8634
0644
edit
dl
rm
View.php
2170
0644
edit
dl
rm
Edit:
/home/techb158/exp.abdallabala.com/application/autoload/Syscpanel.php
(6058B)
<?php /** * PHP class to handle connections with cPanel's UAPI as seamlessly and simply as possible. * * For documentation on cPanel's UAPI: * @see https://documentation.cpanel.net/display/SDK/UAPI+Functions * * @author N1ghteyes - www.source-control.co.uk * @copyright 2014 N1ghteyes * @license license.txt The MIT License (MIT) * @link https://github.com/N1ghteyes/cpanel-UAPI-php-class */ /** * Class cpanelUAPI */ class Syscpanel { public $cpanelUAPI = '1.0'; public $scope = ""; //String - Module we want to use public $ssl = 1; //Bool - TRUE / FALSE for ssl connection public $port = 2083; //default for ssl servers. public $server; protected $auth; protected $user; protected $pass; protected $type; protected $requestUrl; /** * @param $user * @param $pass * @param $server */ function __construct($user, $pass, $server) { $this->user = $user; $this->pass = $pass; $this->server = $server; } /** * Magic __call method, will translate all function calls to object to API requests * @param String $name name of the function * @param array $arguments an array of arguments * @return - Object from json_decode */ public function __call($name, $arguments) { $this->connections(); //set paths etc at the last possible moment to allow for changes before this call is made. if (count($arguments) < 1 || !is_array($arguments[0])) { $arguments[0] = []; } return json_decode($this->APIcall($name, $arguments[0])); } /** * function to set all the connection variables, called before APIcall */ protected function connections() { $this->type = $this->ssl == 1 ? "https://" : "http://"; $this->requestUrl = $this->type . $this->server . ':' . $this->port . '/execute/'; $this->auth = base64_encode($this->user . ":" . $this->pass); } /** * @param $name * @param $arguments * @return bool|mixed */ protected function APIcall($name, $arguments) { $url = $this->requestUrl . ($this->scope != '' ? $this->scope . "/" : '') . $name . '?'; foreach ($arguments as $key => $value) { $url .= $key . "=" . $value . "&"; } return $this->curl_request($url); } /** * @param $url * @return bool|mixed */ protected function curl_request($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, [ "Authorization: Basic " . $this->auth, ]); curl_setopt($ch, CURLOPT_TIMEOUT, 100020); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $content = $this->curl_exec_follow($ch); $err = curl_errno($ch); $errmsg = curl_error($ch); $header = curl_getinfo($ch); curl_close($ch); $header['errno'] = $err; $header['errmsg'] = $errmsg; $header['content'] = $content; return $header['content']; } /** * @param $ch * @param null $maxredirect * @return bool|mixed */ protected function curl_exec_follow($ch, &$maxredirect = null) { // we emulate a browser here since some websites detect // us as a bot and don't let us do our job $user_agent = "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)" . " Gecko/20041107 Firefox/1.0"; curl_setopt($ch, CURLOPT_USERAGENT, $user_agent); $mr = $maxredirect === null ? 5 : intval($maxredirect); if (ini_get('open_basedir') == '' && ini_get('safe_mode') == 'Off') { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, $mr > 0); curl_setopt($ch, CURLOPT_MAXREDIRS, $mr); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); } else { curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); if ($mr > 0) { $original_url = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL); $newurl = $original_url; $rch = curl_copy_handle($ch); curl_setopt($rch, CURLOPT_HEADER, true); curl_setopt($rch, CURLOPT_NOBODY, true); curl_setopt($rch, CURLOPT_FORBID_REUSE, false); do { curl_setopt($rch, CURLOPT_URL, $newurl); $header = curl_exec($rch); if (curl_errno($rch)) { $code = 0; } else { $code = curl_getinfo($rch, CURLINFO_HTTP_CODE); if ($code == 301 || $code == 302) { preg_match('/Location:(.*?)\n/', $header, $matches); $newurl = trim(array_pop($matches)); // if no scheme is present then the new url is a // relative path and thus needs some extra care if (!preg_match("/^https?:/i", $newurl)) { $newurl = $original_url . $newurl; } } else { $code = 0; } } } while ($code && --$mr); curl_close($rch); if (!$mr) { if ($maxredirect === null) { trigger_error('Too many redirects.', E_USER_WARNING); } else { $maxredirect = 0; } return false; } curl_setopt($ch, CURLOPT_URL, $newurl); } } return curl_exec($ch); } }
Save
cmd:
run