__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package SP Page Builder
* @author JoomShaper http://www.joomshaper.com
* @copyright Copyright (c) 2010 - 2021 JoomShaper
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
*/
use Joomla\CMS\Language\Text;
//no direct accees
defined ('_JEXEC') or die ('restricted aceess');
class SppagebuilderHelperLanguages {
public static function language_list() {
$language_api = 'http://sppagebuilder.com/api/languages/languages.json';
if( ini_get('allow_url_fopen') ) {
$components = json_decode(file_get_contents($language_api));
} elseif(extension_loaded('curl')) {
$components = json_decode(self::getCurlData($language_api));
} else {
$report['message'] = Text::_('Please enable \'cURL\' or url_fopen in PHP or Contact with your Server or Hosting administrator.');
die(json_encode($report));
}
$languages = new stdClass;
foreach ($components as $key => $component) {
$languages->$key = $component;
}
return $languages;
}
private static function getCurlData($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| traits | Folder | 0775 |
|
|
| ajax.php | File | 6.72 KB | 0664 |
|
| image.php | File | 2.65 KB | 0664 |
|
| integrations.php | File | 949 B | 0664 |
|
| language.php | File | 46 KB | 0664 |
|
| languages.php | File | 1.2 KB | 0664 |
|
| maintenance.php | File | 8.71 KB | 0664 |
|
| media-helper.php | File | 4.55 KB | 0664 |
|
| sppagebuilder.php | File | 11.96 KB | 0664 |
|