uawdijnntqw1x1x1
IP : 216.73.217.24
Hostname : webm007.cluster114.gra.hosting.ovh.net
Kernel : Linux webm007.cluster114.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
locationbo
/
www
/
.
/
administrator
/
components
/
com_widgetkit
/
src
/
Controller
/
ContentController.php
/
/
<?php namespace YOOtheme\Widgetkit\Controller; use YOOtheme\Framework\Routing\Controller; use YOOtheme\Framework\Routing\Exception\HttpException; class ContentController extends Controller { public function indexAction() { return $this['view']->render('views/content.php'); } public function queryContentAction() { $contents = new \ArrayObject; foreach ($this['content']->findAll() as $id => $content) { if (isset($this['types'][$content->getType()])) { $contents[$id] = $content->toArray(); } } return $this['response']->json($contents); } public function getContentAction($id) { if ($content = $this['content']->find($id)) { return $this['response']->json($content->toArray()); } throw new HttpException(404); } public function saveContentAction($content) { $status = !isset($content['id']) || !$content['id'] ? 201 : 200; if ($content = $this['content']->save($content)) { return $this['response']->json($content, $status); } throw new HttpException(400); } public function deleteContentAction($id) { if ($this['content']->delete($id)) { return $this['response']->json(null, 204); } throw new HttpException(400); } public static function getRoutes() { return array( array('index', 'indexAction', 'GET', array('access' => 'manage_widgetkit')), array('/content', 'queryContentAction', 'GET', array('access' => 'manage_widgetkit')), array('/content/:id', 'getContentAction', 'GET', array('access' => 'manage_widgetkit')), array('/content(/:id)', 'saveContentAction', 'POST', array('access' => 'manage_widgetkit')), array('/content/:id', 'deleteContentAction', 'DELETE', array('access' => 'manage_widgetkit')) ); } }
/home/locationbo/www/./administrator/components/com_widgetkit/src/Controller/ContentController.php