public static function execute(ApplicationAbstract $application) { $data = HTML::sanitize(basename($_GET['code'])); if (!Services::exists($data) || Services::get($data, 'uninstallable') !== true) { OSCOM::redirect(OSCOM::getLink()); } }
<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\ObjectInfo; use osCommerce\OM\Core\OSCOM; use osCommerce\OM\Core\Site\Admin\Application\Configuration\Configuration; use osCommerce\OM\Core\Site\Admin\Application\Services\Services; $OSCOM_ObjectInfo = new ObjectInfo(Services::get($_GET['code'])); ?> <h1><?php echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle()); ?> </h1> <?php if ($OSCOM_MessageStack->exists()) { echo $OSCOM_MessageStack->get(); } ?> <div class="infoBox"> <h3><?php echo HTML::icon('edit.png') . ' ' . $OSCOM_ObjectInfo->getProtected('title'); ?>