Source of file SocialAdmin.php
Size: 0,597 Bytes - Last Modified: 2022-01-13T10:01:15+00:00
/var/www/docs.ssmods.com/process/src/code/Controllers/SocialAdmin.php
12345678910111213141516171819202122232425262728293031 | <?php class SocialAdmin extends Controller { private static $allowed_actions = array( 'index', 'htmlfragment' ); public function ModuleDir() { return ABC_SOCIAL_DIR; } public function init() { parent::init(); if (!Permission::check('CMS_ACCESS')) Security::permissionFailure(); } public function index() { return []; } public function htmlfragment() { $url = $this->request->getVar('pUrl'); $nocache = (int) $this->request->getVar('nocache'); if ($embed = OEmbedCacheItem::fetch(array('url' => $url))) { if ($data = $embed->data()) return $data->html; } } } |