diff options
Diffstat (limited to 'admin/WebConsole3/backend/app')
22 files changed, 0 insertions, 2105 deletions
diff --git a/admin/WebConsole3/backend/app/.htaccess b/admin/WebConsole3/backend/app/.htaccess deleted file mode 100644 index fb1de45b..00000000 --- a/admin/WebConsole3/backend/app/.htaccess +++ /dev/null @@ -1,7 +0,0 @@ -<IfModule mod_authz_core.c> - Require all denied -</IfModule> -<IfModule !mod_authz_core.c> - Order deny,allow - Deny from all -</IfModule> diff --git a/admin/WebConsole3/backend/app/AppCache.php b/admin/WebConsole3/backend/app/AppCache.php deleted file mode 100644 index 639ec2cd..00000000 --- a/admin/WebConsole3/backend/app/AppCache.php +++ /dev/null @@ -1,7 +0,0 @@ -<?php - -use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache; - -class AppCache extends HttpCache -{ -} diff --git a/admin/WebConsole3/backend/app/AppKernel.php b/admin/WebConsole3/backend/app/AppKernel.php deleted file mode 100644 index 480347f6..00000000 --- a/admin/WebConsole3/backend/app/AppKernel.php +++ /dev/null @@ -1,68 +0,0 @@ -<?php - -use Symfony\Component\HttpKernel\Kernel; -use Symfony\Component\Config\Loader\LoaderInterface; - -class AppKernel extends Kernel -{ - public function registerBundles() - { - $bundles = array( - new Symfony\Bundle\FrameworkBundle\FrameworkBundle(), - new Symfony\Bundle\SecurityBundle\SecurityBundle(), - new Symfony\Bundle\TwigBundle\TwigBundle(), - new Symfony\Bundle\MonologBundle\MonologBundle(), - new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(), - new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(), - new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(), - - new Opengnsys\CoreBundle\OpengnsysCoreBundle('FOSUserBundle'), - new Opengnsys\MigrationBundle\OpengnsysMigrationBundle(), - new Opengnsys\ServerBundle\OpengnsysServerBundle(), - new Opengnsys\RepositoryBundle\OpengnsysRepositoryBundle(), - - # FOS - new FOS\RestBundle\FOSRestBundle(), - new FOS\UserBundle\FOSUserBundle(), - new FOS\OAuthServerBundle\FOSOAuthServerBundle(), - - # JMS - new JMS\SerializerBundle\JMSSerializerBundle($this), - - # Nelmio - new Nelmio\ApiDocBundle\NelmioApiDocBundle(), - new Nelmio\CorsBundle\NelmioCorsBundle(), - - ); - - if (in_array($this->getEnvironment(), array('dev', 'test'), true)) { - $bundles[] = new Symfony\Bundle\DebugBundle\DebugBundle(); - $bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle(); - $bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle(); - $bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle(); - $bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle(); - } - - return $bundles; - } - - public function getRootDir() - { - return __DIR__; - } - - public function getCacheDir() - { - return dirname(__DIR__).'/var/cache/'.$this->getEnvironment(); - } - - public function getLogDir() - { - return dirname(__DIR__).'/var/logs'; - } - - public function registerContainerConfiguration(LoaderInterface $loader) - { - $loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml'); - } -} diff --git a/admin/WebConsole3/backend/app/Resources/views/base.html.twig b/admin/WebConsole3/backend/app/Resources/views/base.html.twig deleted file mode 100644 index bafd28d3..00000000 --- a/admin/WebConsole3/backend/app/Resources/views/base.html.twig +++ /dev/null @@ -1,13 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="UTF-8" /> - <title>{% block title %}Welcome!{% endblock %}</title> - {% block stylesheets %}{% endblock %} - <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" /> - </head> - <body> - {% block body %}{% endblock %} - {% block javascripts %}{% endblock %} - </body> -</html> diff --git a/admin/WebConsole3/backend/app/Resources/views/default/index.html.twig b/admin/WebConsole3/backend/app/Resources/views/default/index.html.twig deleted file mode 100644 index 1ce2bac8..00000000 --- a/admin/WebConsole3/backend/app/Resources/views/default/index.html.twig +++ /dev/null @@ -1,76 +0,0 @@ -{% extends 'base.html.twig' %} - -{% block body %} - <div id="wrapper"> - <div id="container"> - <div id="welcome"> - <h1><span>Welcome to</span> Symfony {{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION') }}</h1> - </div> - - <div id="status"> - <p> - <svg id="icon-status" width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z" fill="#759E1A"/></svg> - - Your application is now ready. You can start working on it at: - <code>{{ base_dir }}</code> - </p> - </div> - - <div id="next"> - <h2>What's next?</h2> - <p> - <svg id="icon-book" version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" viewBox="-12.5 9 64 64" enable-background="new -12.5 9 64 64" xml:space="preserve"> - <path fill="#AAA" d="M6.8,40.8c2.4,0.8,4.5-0.7,4.9-2.5c0.2-1.2-0.3-2.1-1.3-3.2l-0.8-0.8c-0.4-0.5-0.6-1.3-0.2-1.9 - c0.4-0.5,0.9-0.8,1.8-0.5c1.3,0.4,1.9,1.3,2.9,2.2c-0.4,1.4-0.7,2.9-0.9,4.2l-0.2,1c-0.7,4-1.3,6.2-2.7,7.5 - c-0.3,0.3-0.7,0.5-1.3,0.6c-0.3,0-0.4-0.3-0.4-0.3c0-0.3,0.2-0.3,0.3-0.4c0.2-0.1,0.5-0.3,0.4-0.8c0-0.7-0.6-1.3-1.3-1.3 - c-0.6,0-1.4,0.6-1.4,1.7s1,1.9,2.4,1.8c0.8,0,2.5-0.3,4.2-2.5c2-2.5,2.5-5.4,2.9-7.4l0.5-2.8c0.3,0,0.5,0.1,0.8,0.1 - c2.4,0.1,3.7-1.3,3.7-2.3c0-0.6-0.3-1.2-0.9-1.2c-0.4,0-0.8,0.3-1,0.8c-0.1,0.6,0.8,1.1,0.1,1.5c-0.5,0.3-1.4,0.6-2.7,0.4l0.3-1.3 - c0.5-2.6,1-5.7,3.2-5.8c0.2,0,0.8,0,0.8,0.4c0,0.2,0,0.2-0.2,0.5c-0.2,0.3-0.3,0.4-0.2,0.7c0,0.7,0.5,1.1,1.2,1.1 - c0.9,0,1.2-1,1.2-1.4c0-1.2-1.2-1.8-2.6-1.8c-1.5,0.1-2.8,0.9-3.7,2.1c-1.1,1.3-1.8,2.9-2.3,4.5c-0.9-0.8-1.6-1.8-3.1-2.3 - c-1.1-0.7-2.3-0.5-3.4,0.3c-0.5,0.4-0.8,1-1,1.6c-0.4,1.5,0.4,2.9,0.8,3.4l0.9,1c0.2,0.2,0.6,0.8,0.4,1.5c-0.3,0.8-1.2,1.3-2.1,1 - c-0.4-0.2-1-0.5-0.9-0.9c0.1-0.2,0.2-0.3,0.3-0.5s0.1-0.3,0.1-0.3c0.2-0.6-0.1-1.4-0.7-1.6c-0.6-0.2-1.2,0-1.3,0.8 - C4.3,38.4,4.7,40,6.8,40.8z M46.1,20.9c0-4.2-3.2-7.5-7.1-7.5h-3.8C34.8,10.8,32.7,9,30.2,9L-2.3,9.1c-2.8,0.1-4.9,2.4-4.9,5.4 - L-7,58.6c0,4.8,8.1,13.9,11.6,14.1l34.7-0.1c3.9,0,7-3.4,7-7.6L46.1,20.9z M-0.3,36.4c0-8.6,6.5-15.6,14.5-15.6 - c8,0,14.5,7,14.5,15.6S22.1,52,14.2,52C6.1,52-0.3,45-0.3,36.4z M42.1,65.1c0,1.8-1.5,3.1-3.1,3.1H4.6c-0.7,0-3-1.8-4.5-4.4h30.4 - c2.8,0,5-2.4,5-5.4V17.9h3.7c1.6,0,2.9,1.4,2.9,3.1V65.1L42.1,65.1z"/> - </svg> - - Read the documentation to learn - <a href="http://symfony.com/doc/{{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION')[:3] }}/page_creation.html"> - How to create your first page in Symfony - </a> - </p> - </div> - - </div> - </div> -{% endblock %} - -{% block stylesheets %} -<style> - body { background: #F5F5F5; font: 18px/1.5 sans-serif; } - h1, h2 { line-height: 1.2; margin: 0 0 .5em; } - h1 { font-size: 36px; } - h2 { font-size: 21px; margin-bottom: 1em; } - p { margin: 0 0 1em 0; } - a { color: #0000F0; } - a:hover { text-decoration: none; } - code { background: #F5F5F5; max-width: 100px; padding: 2px 6px; word-wrap: break-word; } - #wrapper { background: #FFF; margin: 1em auto; max-width: 800px; width: 95%; } - #container { padding: 2em; } - #welcome, #status { margin-bottom: 2em; } - #welcome h1 span { display: block; font-size: 75%; } - #icon-status, #icon-book { float: left; height: 64px; margin-right: 1em; margin-top: -4px; width: 64px; } - #icon-book { display: none; } - - @media (min-width: 768px) { - #wrapper { width: 80%; margin: 2em auto; } - #icon-book { display: inline-block; } - #status a, #next a { display: block; } - - @-webkit-keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } - @keyframes fade-in { 0% { opacity: 0; } 100% { opacity: 1; } } - .sf-toolbar { opacity: 0; -webkit-animation: fade-in 1s .2s forwards; animation: fade-in 1s .2s forwards;} - } -</style> -{% endblock %} diff --git a/admin/WebConsole3/backend/app/SymfonyRequirements.php b/admin/WebConsole3/backend/app/SymfonyRequirements.php deleted file mode 100644 index 4a1fcc62..00000000 --- a/admin/WebConsole3/backend/app/SymfonyRequirements.php +++ /dev/null @@ -1,810 +0,0 @@ -<?php - -/* - * This file is part of the Symfony package. - * - * (c) Fabien Potencier <fabien@symfony.com> - * - * For the full copyright and license information, please view the LICENSE - * file that was distributed with this source code. - */ - -/* - * Users of PHP 5.2 should be able to run the requirements checks. - * This is why the file and all classes must be compatible with PHP 5.2+ - * (e.g. not using namespaces and closures). - * - * ************** CAUTION ************** - * - * DO NOT EDIT THIS FILE as it will be overridden by Composer as part of - * the installation/update process. The original file resides in the - * SensioDistributionBundle. - * - * ************** CAUTION ************** - */ - -/** - * Represents a single PHP requirement, e.g. an installed extension. - * It can be a mandatory requirement or an optional recommendation. - * There is a special subclass, named PhpIniRequirement, to check a php.ini configuration. - * - * @author Tobias Schultze <http://tobion.de> - */ -class Requirement -{ - private $fulfilled; - private $testMessage; - private $helpText; - private $helpHtml; - private $optional; - - /** - * Constructor that initializes the requirement. - * - * @param bool $fulfilled Whether the requirement is fulfilled - * @param string $testMessage The message for testing the requirement - * @param string $helpHtml The help text formatted in HTML for resolving the problem - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - * @param bool $optional Whether this is only an optional recommendation not a mandatory requirement - */ - public function __construct($fulfilled, $testMessage, $helpHtml, $helpText = null, $optional = false) - { - $this->fulfilled = (bool) $fulfilled; - $this->testMessage = (string) $testMessage; - $this->helpHtml = (string) $helpHtml; - $this->helpText = null === $helpText ? strip_tags($this->helpHtml) : (string) $helpText; - $this->optional = (bool) $optional; - } - - /** - * Returns whether the requirement is fulfilled. - * - * @return bool true if fulfilled, otherwise false - */ - public function isFulfilled() - { - return $this->fulfilled; - } - - /** - * Returns the message for testing the requirement. - * - * @return string The test message - */ - public function getTestMessage() - { - return $this->testMessage; - } - - /** - * Returns the help text for resolving the problem. - * - * @return string The help text - */ - public function getHelpText() - { - return $this->helpText; - } - - /** - * Returns the help text formatted in HTML. - * - * @return string The HTML help - */ - public function getHelpHtml() - { - return $this->helpHtml; - } - - /** - * Returns whether this is only an optional recommendation and not a mandatory requirement. - * - * @return bool true if optional, false if mandatory - */ - public function isOptional() - { - return $this->optional; - } -} - -/** - * Represents a PHP requirement in form of a php.ini configuration. - * - * @author Tobias Schultze <http://tobion.de> - */ -class PhpIniRequirement extends Requirement -{ - /** - * Constructor that initializes the requirement. - * - * @param string $cfgName The configuration name used for ini_get() - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, - * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement - * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. - * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. - * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. - * @param string|null $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) - * @param string|null $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - * @param bool $optional Whether this is only an optional recommendation not a mandatory requirement - */ - public function __construct($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null, $optional = false) - { - $cfgValue = ini_get($cfgName); - - if (is_callable($evaluation)) { - if (null === $testMessage || null === $helpHtml) { - throw new InvalidArgumentException('You must provide the parameters testMessage and helpHtml for a callback evaluation.'); - } - - $fulfilled = call_user_func($evaluation, $cfgValue); - } else { - if (null === $testMessage) { - $testMessage = sprintf('%s %s be %s in php.ini', - $cfgName, - $optional ? 'should' : 'must', - $evaluation ? 'enabled' : 'disabled' - ); - } - - if (null === $helpHtml) { - $helpHtml = sprintf('Set <strong>%s</strong> to <strong>%s</strong> in php.ini<a href="#phpini">*</a>.', - $cfgName, - $evaluation ? 'on' : 'off' - ); - } - - $fulfilled = $evaluation == $cfgValue; - } - - parent::__construct($fulfilled || ($approveCfgAbsence && false === $cfgValue), $testMessage, $helpHtml, $helpText, $optional); - } -} - -/** - * A RequirementCollection represents a set of Requirement instances. - * - * @author Tobias Schultze <http://tobion.de> - */ -class RequirementCollection implements IteratorAggregate -{ - /** - * @var Requirement[] - */ - private $requirements = array(); - - /** - * Gets the current RequirementCollection as an Iterator. - * - * @return Traversable A Traversable interface - */ - public function getIterator() - { - return new ArrayIterator($this->requirements); - } - - /** - * Adds a Requirement. - * - * @param Requirement $requirement A Requirement instance - */ - public function add(Requirement $requirement) - { - $this->requirements[] = $requirement; - } - - /** - * Adds a mandatory requirement. - * - * @param bool $fulfilled Whether the requirement is fulfilled - * @param string $testMessage The message for testing the requirement - * @param string $helpHtml The help text formatted in HTML for resolving the problem - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - */ - public function addRequirement($fulfilled, $testMessage, $helpHtml, $helpText = null) - { - $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, false)); - } - - /** - * Adds an optional recommendation. - * - * @param bool $fulfilled Whether the recommendation is fulfilled - * @param string $testMessage The message for testing the recommendation - * @param string $helpHtml The help text formatted in HTML for resolving the problem - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - */ - public function addRecommendation($fulfilled, $testMessage, $helpHtml, $helpText = null) - { - $this->add(new Requirement($fulfilled, $testMessage, $helpHtml, $helpText, true)); - } - - /** - * Adds a mandatory requirement in form of a php.ini configuration. - * - * @param string $cfgName The configuration name used for ini_get() - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, - * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement - * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. - * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. - * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. - * @param string $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) - * @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - */ - public function addPhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null) - { - $this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, false)); - } - - /** - * Adds an optional recommendation in form of a php.ini configuration. - * - * @param string $cfgName The configuration name used for ini_get() - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, - * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement - * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. - * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. - * Example: You require a config to be true but PHP later removes this config and defaults it to true internally. - * @param string $testMessage The message for testing the requirement (when null and $evaluation is a boolean a default message is derived) - * @param string $helpHtml The help text formatted in HTML for resolving the problem (when null and $evaluation is a boolean a default help is derived) - * @param string|null $helpText The help text (when null, it will be inferred from $helpHtml, i.e. stripped from HTML tags) - */ - public function addPhpIniRecommendation($cfgName, $evaluation, $approveCfgAbsence = false, $testMessage = null, $helpHtml = null, $helpText = null) - { - $this->add(new PhpIniRequirement($cfgName, $evaluation, $approveCfgAbsence, $testMessage, $helpHtml, $helpText, true)); - } - - /** - * Adds a requirement collection to the current set of requirements. - * - * @param RequirementCollection $collection A RequirementCollection instance - */ - public function addCollection(RequirementCollection $collection) - { - $this->requirements = array_merge($this->requirements, $collection->all()); - } - - /** - * Returns both requirements and recommendations. - * - * @return Requirement[] - */ - public function all() - { - return $this->requirements; - } - - /** - * Returns all mandatory requirements. - * - * @return Requirement[] - */ - public function getRequirements() - { - $array = array(); - foreach ($this->requirements as $req) { - if (!$req->isOptional()) { - $array[] = $req; - } - } - - return $array; - } - - /** - * Returns the mandatory requirements that were not met. - * - * @return Requirement[] - */ - public function getFailedRequirements() - { - $array = array(); - foreach ($this->requirements as $req) { - if (!$req->isFulfilled() && !$req->isOptional()) { - $array[] = $req; - } - } - - return $array; - } - - /** - * Returns all optional recommendations. - * - * @return Requirement[] - */ - public function getRecommendations() - { - $array = array(); - foreach ($this->requirements as $req) { - if ($req->isOptional()) { - $array[] = $req; - } - } - - return $array; - } - - /** - * Returns the recommendations that were not met. - * - * @return Requirement[] - */ - public function getFailedRecommendations() - { - $array = array(); - foreach ($this->requirements as $req) { - if (!$req->isFulfilled() && $req->isOptional()) { - $array[] = $req; - } - } - - return $array; - } - - /** - * Returns whether a php.ini configuration is not correct. - * - * @return bool php.ini configuration problem? - */ - public function hasPhpIniConfigIssue() - { - foreach ($this->requirements as $req) { - if (!$req->isFulfilled() && $req instanceof PhpIniRequirement) { - return true; - } - } - - return false; - } - - /** - * Returns the PHP configuration file (php.ini) path. - * - * @return string|false php.ini file path - */ - public function getPhpIniConfigPath() - { - return get_cfg_var('cfg_file_path'); - } -} - -/** - * This class specifies all requirements and optional recommendations that - * are necessary to run the Symfony Standard Edition. - * - * @author Tobias Schultze <http://tobion.de> - * @author Fabien Potencier <fabien@symfony.com> - */ -class SymfonyRequirements extends RequirementCollection -{ - const LEGACY_REQUIRED_PHP_VERSION = '5.3.3'; - const REQUIRED_PHP_VERSION = '5.5.9'; - - /** - * Constructor that initializes the requirements. - */ - public function __construct() - { - /* mandatory requirements follow */ - - $installedPhpVersion = PHP_VERSION; - $requiredPhpVersion = $this->getPhpRequiredVersion(); - - $this->addRecommendation( - $requiredPhpVersion, - 'Vendors should be installed in order to check all requirements.', - 'Run the <code>composer install</code> command.', - 'Run the "composer install" command.' - ); - - if (false !== $requiredPhpVersion) { - $this->addRequirement( - version_compare($installedPhpVersion, $requiredPhpVersion, '>='), - sprintf('PHP version must be at least %s (%s installed)', $requiredPhpVersion, $installedPhpVersion), - sprintf('You are running PHP version "<strong>%s</strong>", but Symfony needs at least PHP "<strong>%s</strong>" to run. - Before using Symfony, upgrade your PHP installation, preferably to the latest version.', - $installedPhpVersion, $requiredPhpVersion), - sprintf('Install PHP %s or newer (installed version is %s)', $requiredPhpVersion, $installedPhpVersion) - ); - } - - $this->addRequirement( - version_compare($installedPhpVersion, '5.3.16', '!='), - 'PHP version must not be 5.3.16 as Symfony won\'t work properly with it', - 'Install PHP 5.3.17 or newer (or downgrade to an earlier PHP version)' - ); - - $this->addRequirement( - is_dir(__DIR__.'/../vendor/composer'), - 'Vendor libraries must be installed', - 'Vendor libraries are missing. Install composer following instructions from <a href="http://getcomposer.org/">http://getcomposer.org/</a>. '. - 'Then run "<strong>php composer.phar install</strong>" to install them.' - ); - - $cacheDir = is_dir(__DIR__.'/../var/cache') ? __DIR__.'/../var/cache' : __DIR__.'/cache'; - - $this->addRequirement( - is_writable($cacheDir), - 'app/cache/ or var/cache/ directory must be writable', - 'Change the permissions of either "<strong>app/cache/</strong>" or "<strong>var/cache/</strong>" directory so that the web server can write into it.' - ); - - $logsDir = is_dir(__DIR__.'/../var/logs') ? __DIR__.'/../var/logs' : __DIR__.'/logs'; - - $this->addRequirement( - is_writable($logsDir), - 'app/logs/ or var/logs/ directory must be writable', - 'Change the permissions of either "<strong>app/logs/</strong>" or "<strong>var/logs/</strong>" directory so that the web server can write into it.' - ); - - if (version_compare($installedPhpVersion, '7.0.0', '<')) { - $this->addPhpIniRequirement( - 'date.timezone', true, false, - 'date.timezone setting must be set', - 'Set the "<strong>date.timezone</strong>" setting in php.ini<a href="#phpini">*</a> (like Europe/Paris).' - ); - } - - if (false !== $requiredPhpVersion && version_compare($installedPhpVersion, $requiredPhpVersion, '>=')) { - $this->addRequirement( - in_array(@date_default_timezone_get(), DateTimeZone::listIdentifiers(), true), - sprintf('Configured default timezone "%s" must be supported by your installation of PHP', @date_default_timezone_get()), - 'Your default timezone is not supported by PHP. Check for typos in your <strong>php.ini</strong> file and have a look at the list of deprecated timezones at <a href="http://php.net/manual/en/timezones.others.php">http://php.net/manual/en/timezones.others.php</a>.' - ); - } - - $this->addRequirement( - function_exists('iconv'), - 'iconv() must be available', - 'Install and enable the <strong>iconv</strong> extension.' - ); - - $this->addRequirement( - function_exists('json_encode'), - 'json_encode() must be available', - 'Install and enable the <strong>JSON</strong> extension.' - ); - - $this->addRequirement( - function_exists('session_start'), - 'session_start() must be available', - 'Install and enable the <strong>session</strong> extension.' - ); - - $this->addRequirement( - function_exists('ctype_alpha'), - 'ctype_alpha() must be available', - 'Install and enable the <strong>ctype</strong> extension.' - ); - - $this->addRequirement( - function_exists('token_get_all'), - 'token_get_all() must be available', - 'Install and enable the <strong>Tokenizer</strong> extension.' - ); - - $this->addRequirement( - function_exists('simplexml_import_dom'), - 'simplexml_import_dom() must be available', - 'Install and enable the <strong>SimpleXML</strong> extension.' - ); - - if (function_exists('apc_store') && ini_get('apc.enabled')) { - if (version_compare($installedPhpVersion, '5.4.0', '>=')) { - $this->addRequirement( - version_compare(phpversion('apc'), '3.1.13', '>='), - 'APC version must be at least 3.1.13 when using PHP 5.4', - 'Upgrade your <strong>APC</strong> extension (3.1.13+).' - ); - } else { - $this->addRequirement( - version_compare(phpversion('apc'), '3.0.17', '>='), - 'APC version must be at least 3.0.17', - 'Upgrade your <strong>APC</strong> extension (3.0.17+).' - ); - } - } - - $this->addPhpIniRequirement('detect_unicode', false); - - if (extension_loaded('suhosin')) { - $this->addPhpIniRequirement( - 'suhosin.executor.include.whitelist', - create_function('$cfgValue', 'return false !== stripos($cfgValue, "phar");'), - false, - 'suhosin.executor.include.whitelist must be configured correctly in php.ini', - 'Add "<strong>phar</strong>" to <strong>suhosin.executor.include.whitelist</strong> in php.ini<a href="#phpini">*</a>.' - ); - } - - if (extension_loaded('xdebug')) { - $this->addPhpIniRequirement( - 'xdebug.show_exception_trace', false, true - ); - - $this->addPhpIniRequirement( - 'xdebug.scream', false, true - ); - - $this->addPhpIniRecommendation( - 'xdebug.max_nesting_level', - create_function('$cfgValue', 'return $cfgValue > 100;'), - true, - 'xdebug.max_nesting_level should be above 100 in php.ini', - 'Set "<strong>xdebug.max_nesting_level</strong>" to e.g. "<strong>250</strong>" in php.ini<a href="#phpini">*</a> to stop Xdebug\'s infinite recursion protection erroneously throwing a fatal error in your project.' - ); - } - - $pcreVersion = defined('PCRE_VERSION') ? (float) PCRE_VERSION : null; - - $this->addRequirement( - null !== $pcreVersion, - 'PCRE extension must be available', - 'Install the <strong>PCRE</strong> extension (version 8.0+).' - ); - - if (extension_loaded('mbstring')) { - $this->addPhpIniRequirement( - 'mbstring.func_overload', - create_function('$cfgValue', 'return (int) $cfgValue === 0;'), - true, - 'string functions should not be overloaded', - 'Set "<strong>mbstring.func_overload</strong>" to <strong>0</strong> in php.ini<a href="#phpini">*</a> to disable function overloading by the mbstring extension.' - ); - } - - /* optional recommendations follow */ - - if (file_exists(__DIR__.'/../vendor/composer')) { - require_once __DIR__.'/../vendor/autoload.php'; - - try { - $r = new ReflectionClass('Sensio\Bundle\DistributionBundle\SensioDistributionBundle'); - - $contents = file_get_contents(dirname($r->getFileName()).'/Resources/skeleton/app/SymfonyRequirements.php'); - } catch (ReflectionException $e) { - $contents = ''; - } - $this->addRecommendation( - file_get_contents(__FILE__) === $contents, - 'Requirements file should be up-to-date', - 'Your requirements file is outdated. Run composer install and re-check your configuration.' - ); - } - - $this->addRecommendation( - version_compare($installedPhpVersion, '5.3.4', '>='), - 'You should use at least PHP 5.3.4 due to PHP bug #52083 in earlier versions', - 'Your project might malfunction randomly due to PHP bug #52083 ("Notice: Trying to get property of non-object"). Install PHP 5.3.4 or newer.' - ); - - $this->addRecommendation( - version_compare($installedPhpVersion, '5.3.8', '>='), - 'When using annotations you should have at least PHP 5.3.8 due to PHP bug #55156', - 'Install PHP 5.3.8 or newer if your project uses annotations.' - ); - - $this->addRecommendation( - version_compare($installedPhpVersion, '5.4.0', '!='), - 'You should not use PHP 5.4.0 due to the PHP bug #61453', - 'Your project might not work properly due to the PHP bug #61453 ("Cannot dump definitions which have method calls"). Install PHP 5.4.1 or newer.' - ); - - $this->addRecommendation( - version_compare($installedPhpVersion, '5.4.11', '>='), - 'When using the logout handler from the Symfony Security Component, you should have at least PHP 5.4.11 due to PHP bug #63379 (as a workaround, you can also set invalidate_session to false in the security logout handler configuration)', - 'Install PHP 5.4.11 or newer if your project uses the logout handler from the Symfony Security Component.' - ); - - $this->addRecommendation( - (version_compare($installedPhpVersion, '5.3.18', '>=') && version_compare($installedPhpVersion, '5.4.0', '<')) - || - version_compare($installedPhpVersion, '5.4.8', '>='), - 'You should use PHP 5.3.18+ or PHP 5.4.8+ to always get nice error messages for fatal errors in the development environment due to PHP bug #61767/#60909', - 'Install PHP 5.3.18+ or PHP 5.4.8+ if you want nice error messages for all fatal errors in the development environment.' - ); - - if (null !== $pcreVersion) { - $this->addRecommendation( - $pcreVersion >= 8.0, - sprintf('PCRE extension should be at least version 8.0 (%s installed)', $pcreVersion), - '<strong>PCRE 8.0+</strong> is preconfigured in PHP since 5.3.2 but you are using an outdated version of it. Symfony probably works anyway but it is recommended to upgrade your PCRE extension.' - ); - } - - $this->addRecommendation( - class_exists('DomDocument'), - 'PHP-DOM and PHP-XML modules should be installed', - 'Install and enable the <strong>PHP-DOM</strong> and the <strong>PHP-XML</strong> modules.' - ); - - $this->addRecommendation( - function_exists('mb_strlen'), - 'mb_strlen() should be available', - 'Install and enable the <strong>mbstring</strong> extension.' - ); - - $this->addRecommendation( - function_exists('utf8_decode'), - 'utf8_decode() should be available', - 'Install and enable the <strong>XML</strong> extension.' - ); - - $this->addRecommendation( - function_exists('filter_var'), - 'filter_var() should be available', - 'Install and enable the <strong>filter</strong> extension.' - ); - - if (!defined('PHP_WINDOWS_VERSION_BUILD')) { - $this->addRecommendation( - function_exists('posix_isatty'), - 'posix_isatty() should be available', - 'Install and enable the <strong>php_posix</strong> extension (used to colorize the CLI output).' - ); - } - - $this->addRecommendation( - extension_loaded('intl'), - 'intl extension should be available', - 'Install and enable the <strong>intl</strong> extension (used for validators).' - ); - - if (extension_loaded('intl')) { - // in some WAMP server installations, new Collator() returns null - $this->addRecommendation( - null !== new Collator('fr_FR'), - 'intl extension should be correctly configured', - 'The intl extension does not behave properly. This problem is typical on PHP 5.3.X x64 WIN builds.' - ); - - // check for compatible ICU versions (only done when you have the intl extension) - if (defined('INTL_ICU_VERSION')) { - $version = INTL_ICU_VERSION; - } else { - $reflector = new ReflectionExtension('intl'); - - ob_start(); - $reflector->info(); - $output = strip_tags(ob_get_clean()); - - preg_match('/^ICU version +(?:=> )?(.*)$/m', $output, $matches); - $version = $matches[1]; - } - - $this->addRecommendation( - version_compare($version, '4.0', '>='), - 'intl ICU version should be at least 4+', - 'Upgrade your <strong>intl</strong> extension with a newer ICU version (4+).' - ); - - if (class_exists('Symfony\Component\Intl\Intl')) { - $this->addRecommendation( - \Symfony\Component\Intl\Intl::getIcuDataVersion() <= \Symfony\Component\Intl\Intl::getIcuVersion(), - sprintf('intl ICU version installed on your system is outdated (%s) and does not match the ICU data bundled with Symfony (%s)', \Symfony\Component\Intl\Intl::getIcuVersion(), \Symfony\Component\Intl\Intl::getIcuDataVersion()), - 'To get the latest internationalization data upgrade the ICU system package and the intl PHP extension.' - ); - if (\Symfony\Component\Intl\Intl::getIcuDataVersion() <= \Symfony\Component\Intl\Intl::getIcuVersion()) { - $this->addRecommendation( - \Symfony\Component\Intl\Intl::getIcuDataVersion() === \Symfony\Component\Intl\Intl::getIcuVersion(), - sprintf('intl ICU version installed on your system (%s) does not match the ICU data bundled with Symfony (%s)', \Symfony\Component\Intl\Intl::getIcuVersion(), \Symfony\Component\Intl\Intl::getIcuDataVersion()), - 'To avoid internationalization data inconsistencies upgrade the symfony/intl component.' - ); - } - } - - $this->addPhpIniRecommendation( - 'intl.error_level', - create_function('$cfgValue', 'return (int) $cfgValue === 0;'), - true, - 'intl.error_level should be 0 in php.ini', - 'Set "<strong>intl.error_level</strong>" to "<strong>0</strong>" in php.ini<a href="#phpini">*</a> to inhibit the messages when an error occurs in ICU functions.' - ); - } - - $accelerator = - (extension_loaded('eaccelerator') && ini_get('eaccelerator.enable')) - || - (extension_loaded('apc') && ini_get('apc.enabled')) - || - (extension_loaded('Zend Optimizer+') && ini_get('zend_optimizerplus.enable')) - || - (extension_loaded('Zend OPcache') && ini_get('opcache.enable')) - || - (extension_loaded('xcache') && ini_get('xcache.cacher')) - || - (extension_loaded('wincache') && ini_get('wincache.ocenabled')) - ; - - $this->addRecommendation( - $accelerator, - 'a PHP accelerator should be installed', - 'Install and/or enable a <strong>PHP accelerator</strong> (highly recommended).' - ); - - if ('WIN' === strtoupper(substr(PHP_OS, 0, 3))) { - $this->addRecommendation( - $this->getRealpathCacheSize() >= 5 * 1024 * 1024, - 'realpath_cache_size should be at least 5M in php.ini', - 'Setting "<strong>realpath_cache_size</strong>" to e.g. "<strong>5242880</strong>" or "<strong>5M</strong>" in php.ini<a href="#phpini">*</a> may improve performance on Windows significantly in some cases.' - ); - } - - $this->addPhpIniRecommendation('short_open_tag', false); - - $this->addPhpIniRecommendation('magic_quotes_gpc', false, true); - - $this->addPhpIniRecommendation('register_globals', false, true); - - $this->addPhpIniRecommendation('session.auto_start', false); - - $this->addRecommendation( - class_exists('PDO'), - 'PDO should be installed', - 'Install <strong>PDO</strong> (mandatory for Doctrine).' - ); - - if (class_exists('PDO')) { - $drivers = PDO::getAvailableDrivers(); - $this->addRecommendation( - count($drivers) > 0, - sprintf('PDO should have some drivers installed (currently available: %s)', count($drivers) ? implode(', ', $drivers) : 'none'), - 'Install <strong>PDO drivers</strong> (mandatory for Doctrine).' - ); - } - } - - /** - * Loads realpath_cache_size from php.ini and converts it to int. - * - * (e.g. 16k is converted to 16384 int) - * - * @return int - */ - protected function getRealpathCacheSize() - { - $size = ini_get('realpath_cache_size'); - $size = trim($size); - $unit = ''; - if (!ctype_digit($size)) { - $unit = strtolower(substr($size, -1, 1)); - $size = (int) substr($size, 0, -1); - } - switch ($unit) { - case 'g': - return $size * 1024 * 1024 * 1024; - case 'm': - return $size * 1024 * 1024; - case 'k': - return $size * 1024; - default: - return (int) $size; - } - } - - /** - * Defines PHP required version from Symfony version. - * - * @return string|false The PHP required version or false if it could not be guessed - */ - protected function getPhpRequiredVersion() - { - if (!file_exists($path = __DIR__.'/../composer.lock')) { - return false; - } - - $composerLock = json_decode(file_get_contents($path), true); - foreach ($composerLock['packages'] as $package) { - $name = $package['name']; - if ('symfony/symfony' !== $name && 'symfony/http-kernel' !== $name) { - continue; - } - - return (int) $package['version'][1] > 2 ? self::REQUIRED_PHP_VERSION : self::LEGACY_REQUIRED_PHP_VERSION; - } - - return false; - } -} diff --git a/admin/WebConsole3/backend/app/autoload.php b/admin/WebConsole3/backend/app/autoload.php deleted file mode 100644 index 3152e766..00000000 --- a/admin/WebConsole3/backend/app/autoload.php +++ /dev/null @@ -1,11 +0,0 @@ -<?php - -use Doctrine\Common\Annotations\AnnotationRegistry; -use Composer\Autoload\ClassLoader; - -/** @var ClassLoader $loader */ -$loader = require __DIR__.'/../vendor/autoload.php'; - -AnnotationRegistry::registerLoader(array($loader, 'loadClass')); - -return $loader; diff --git a/admin/WebConsole3/backend/app/check.php b/admin/WebConsole3/backend/app/check.php deleted file mode 100644 index 2cf2dcec..00000000 --- a/admin/WebConsole3/backend/app/check.php +++ /dev/null @@ -1,145 +0,0 @@ -<?php - -require_once dirname(__FILE__).'/SymfonyRequirements.php'; - -$lineSize = 70; -$symfonyRequirements = new SymfonyRequirements(); -$iniPath = $symfonyRequirements->getPhpIniConfigPath(); - -echo_title('Symfony Requirements Checker'); - -echo '> PHP is using the following php.ini file:'.PHP_EOL; -if ($iniPath) { - echo_style('green', ' '.$iniPath); -} else { - echo_style('yellow', ' WARNING: No configuration file (php.ini) used by PHP!'); -} - -echo PHP_EOL.PHP_EOL; - -echo '> Checking Symfony requirements:'.PHP_EOL.' '; - -$messages = array(); -foreach ($symfonyRequirements->getRequirements() as $req) { - if ($helpText = get_error_message($req, $lineSize)) { - echo_style('red', 'E'); - $messages['error'][] = $helpText; - } else { - echo_style('green', '.'); - } -} - -$checkPassed = empty($messages['error']); - -foreach ($symfonyRequirements->getRecommendations() as $req) { - if ($helpText = get_error_message($req, $lineSize)) { - echo_style('yellow', 'W'); - $messages['warning'][] = $helpText; - } else { - echo_style('green', '.'); - } -} - -if ($checkPassed) { - echo_block('success', 'OK', 'Your system is ready to run Symfony projects'); -} else { - echo_block('error', 'ERROR', 'Your system is not ready to run Symfony projects'); - - echo_title('Fix the following mandatory requirements', 'red'); - - foreach ($messages['error'] as $helpText) { - echo ' * '.$helpText.PHP_EOL; - } -} - -if (!empty($messages['warning'])) { - echo_title('Optional recommendations to improve your setup', 'yellow'); - - foreach ($messages['warning'] as $helpText) { - echo ' * '.$helpText.PHP_EOL; - } -} - -echo PHP_EOL; -echo_style('title', 'Note'); -echo ' The command console could use a different php.ini file'.PHP_EOL; -echo_style('title', '~~~~'); -echo ' than the one used with your web server. To be on the'.PHP_EOL; -echo ' safe side, please check the requirements from your web'.PHP_EOL; -echo ' server using the '; -echo_style('yellow', 'web/config.php'); -echo ' script.'.PHP_EOL; -echo PHP_EOL; - -exit($checkPassed ? 0 : 1); - -function get_error_message(Requirement $requirement, $lineSize) -{ - if ($requirement->isFulfilled()) { - return; - } - - $errorMessage = wordwrap($requirement->getTestMessage(), $lineSize - 3, PHP_EOL.' ').PHP_EOL; - $errorMessage .= ' > '.wordwrap($requirement->getHelpText(), $lineSize - 5, PHP_EOL.' > ').PHP_EOL; - - return $errorMessage; -} - -function echo_title($title, $style = null) -{ - $style = $style ?: 'title'; - - echo PHP_EOL; - echo_style($style, $title.PHP_EOL); - echo_style($style, str_repeat('~', strlen($title)).PHP_EOL); - echo PHP_EOL; -} - -function echo_style($style, $message) -{ - // ANSI color codes - $styles = array( - 'reset' => "\033[0m", - 'red' => "\033[31m", - 'green' => "\033[32m", - 'yellow' => "\033[33m", - 'error' => "\033[37;41m", - 'success' => "\033[37;42m", - 'title' => "\033[34m", - ); - $supports = has_color_support(); - - echo($supports ? $styles[$style] : '').$message.($supports ? $styles['reset'] : ''); -} - -function echo_block($style, $title, $message) -{ - $message = ' '.trim($message).' '; - $width = strlen($message); - - echo PHP_EOL.PHP_EOL; - - echo_style($style, str_repeat(' ', $width)); - echo PHP_EOL; - echo_style($style, str_pad(' ['.$title.']', $width, ' ', STR_PAD_RIGHT)); - echo PHP_EOL; - echo_style($style, $message); - echo PHP_EOL; - echo_style($style, str_repeat(' ', $width)); - echo PHP_EOL; -} - -function has_color_support() -{ - static $support; - - if (null === $support) { - if (DIRECTORY_SEPARATOR == '\\') { - $support = false !== getenv('ANSICON') || 'ON' === getenv('ConEmuANSI'); - } else { - $support = function_exists('posix_isatty') && @posix_isatty(STDOUT); - } - } - - return $support; -} diff --git a/admin/WebConsole3/backend/app/config/config.yml b/admin/WebConsole3/backend/app/config/config.yml deleted file mode 100644 index c4d37f11..00000000 --- a/admin/WebConsole3/backend/app/config/config.yml +++ /dev/null @@ -1,115 +0,0 @@ -imports: - - { resource: parameters.yml } - - # Opengnsys Feature Bundles - - { resource: opengnsys/config.yml } - - # JMS Feature Bundles - - { resource: jms/config.yml } - - - { resource: security.yml } - - { resource: services.yml } - -# Put parameters here that don't need to change on each machine where the app is deployed -# http://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration -parameters: - locale: en - -framework: - #esi: ~ - translator: { fallbacks: ["%locale%"] } - secret: "%secret%" - router: - resource: "%kernel.root_dir%/config/routing.yml" - strict_requirements: ~ - form: ~ - csrf_protection: ~ - validation: { enable_annotations: true } - #serializer: { enable_annotations: true } - templating: - engines: ['twig'] - default_locale: "%locale%" - trusted_hosts: ~ - trusted_proxies: ~ - session: - # handler_id set to null will use default session handler from php.ini - handler_id: ~ - fragments: ~ - http_method_override: true - -# Twig Configuration -twig: - debug: "%kernel.debug%" - strict_variables: "%kernel.debug%" - -# Doctrine Configuration -doctrine: - dbal: - default_connection: default - connections: - default: - driver: '%database_driver%' - server_version: '5.5' # your database server version here - host: "%database_host%" - port: "%database_port%" - dbname: "%database_name%" - user: "%database_user%" - password: "%database_password%" - charset: UTF8 - mapping_types: - enum: string - set: string - og_1: - driver: '%og_1_database_driver%' - server_version: '5.5' # your database server version here - host: '%og_1_database_host%' - port: '%og_1_database_port%' - dbname: '%og_1_database_name%' - user: '%og_1_database_user%' - password: '%og_1_database_password%' - charset: UTF8 - mapping_types: - enum: string - set: string - orm: - auto_generate_proxy_classes: "%kernel.debug%" - #naming_strategy: doctrine.orm.naming_strategy.underscore - #auto_mapping: true - entity_managers: - default: - connection: default - mappings: - OpengnsysServerBundle: ~ - OpengnsysRepositoryBundle: ~ - OpengnsysCoreBundle: ~ - FOSUserBundle: ~ - FOSOAuthServerBundle: ~ - #OpengnsysMigrationBundle: ~ - og_1: - connection: og_1 - mappings: - OpengnsysMigrationBundle: ~ - -# Swiftmailer Configuration -swiftmailer: - transport: "%mailer_transport%" - host: "%mailer_host%" - username: "%mailer_user%" - password: "%mailer_password%" - spool: { type: memory } - -monolog: - channels: ['og_server', 'og_migration'] - handlers: - og_server: - type: rotating_file - max_files: 31 - level: debug - path: '%kernel.logs_dir%/og_server.log' - channels: [og_server] - og_migration: - type: rotating_file - max_files: 31 - level: debug - path: '%kernel.logs_dir%/og_migration.log' - channels: [og_migration]
\ No newline at end of file diff --git a/admin/WebConsole3/backend/app/config/config_dev.yml b/admin/WebConsole3/backend/app/config/config_dev.yml deleted file mode 100644 index 7eb4739c..00000000 --- a/admin/WebConsole3/backend/app/config/config_dev.yml +++ /dev/null @@ -1,34 +0,0 @@ -imports: - - { resource: config.yml } - -framework: - router: - resource: "%kernel.root_dir%/config/routing_dev.yml" - strict_requirements: true - profiler: { only_exceptions: false } - -web_profiler: - toolbar: true - intercept_redirects: false - -monolog: - handlers: - main: - type: stream - path: "%kernel.logs_dir%/%kernel.environment%.log" - level: debug - channels: [!event] - console: - type: console - channels: [!event, !doctrine] - # uncomment to get logging in your browser - # you may have to allow bigger header sizes in your Web server configuration - #firephp: - # type: firephp - # level: info - #chromephp: - # type: chromephp - # level: info - -#swiftmailer: -# delivery_address: me@example.com diff --git a/admin/WebConsole3/backend/app/config/config_prod.yml b/admin/WebConsole3/backend/app/config/config_prod.yml deleted file mode 100644 index 66a8562d..00000000 --- a/admin/WebConsole3/backend/app/config/config_prod.yml +++ /dev/null @@ -1,28 +0,0 @@ -imports: - - { resource: config.yml } - -#framework: -# validation: -# cache: validator.mapping.cache.doctrine.apc -# serializer: -# cache: serializer.mapping.cache.apc - -#doctrine: -# orm: -# metadata_cache_driver: apc -# result_cache_driver: apc -# query_cache_driver: apc - -monolog: - handlers: - main: - type: fingers_crossed - action_level: error - handler: nested - nested: - type: rotating_file - max_files: 31 - path: "%kernel.logs_dir%/%kernel.environment%.log" - level: debug - console: - type: console diff --git a/admin/WebConsole3/backend/app/config/config_test.yml b/admin/WebConsole3/backend/app/config/config_test.yml deleted file mode 100644 index 2f6d9250..00000000 --- a/admin/WebConsole3/backend/app/config/config_test.yml +++ /dev/null @@ -1,16 +0,0 @@ -imports: - - { resource: config_dev.yml } - -framework: - test: ~ - session: - storage_id: session.storage.mock_file - profiler: - collect: false - -web_profiler: - toolbar: false - intercept_redirects: false - -swiftmailer: - disable_delivery: true diff --git a/admin/WebConsole3/backend/app/config/jms/config.yml b/admin/WebConsole3/backend/app/config/jms/config.yml deleted file mode 100644 index 4820ff61..00000000 --- a/admin/WebConsole3/backend/app/config/jms/config.yml +++ /dev/null @@ -1,16 +0,0 @@ -jms_serializer: - handlers: - datetime: - default_format: "Y-m-d H:i:s" #c # ISO8601 - default_timezone: "UTC" # defaults to whatever timezone set in php.ini or via date_default_timezone_set - metadata: - directories: - OpengnsysCoreBundle: - namespace_prefix: "Opengnsys\\CoreBundle" - path: "%kernel.root_dir%/../src/Opengnsys/CoreBundle/Resources/config/serializer/OpengnsysCoreBundle" - FOSUserBundle: - namespace_prefix: "FOS\\UserBundle" - path: "%kernel.root_dir%/../src/Opengnsys/CoreBundle/Resources/config/serializer/FOSUserBundle" - OpengnsysServerBundle: - namespace_prefix: "Opengnsys\\ServerBundle" - path: "%kernel.root_dir%/../src/Opengnsys/ServerBundle/Resources/config/serializer/OpengnsysServerBundle" diff --git a/admin/WebConsole3/backend/app/config/opengnsys/config.yml b/admin/WebConsole3/backend/app/config/opengnsys/config.yml deleted file mode 100644 index ff6e6563..00000000 --- a/admin/WebConsole3/backend/app/config/opengnsys/config.yml +++ /dev/null @@ -1,10 +0,0 @@ -parameters: - path_client: "/opt/opengnsys/log/clients/" - path_images: "/opt/opengnsys/images/" - oglivecli: "/opt/opengnsys/bin/oglivecli" - pxedir: "/opt/opengnsys/tftpboot/menu.lst" - - -imports: - # OpengnsysCore - - { resource: "@OpengnsysCoreBundle/Resources/config/config.yml" }
\ No newline at end of file diff --git a/admin/WebConsole3/backend/app/config/parameters.yml.dist b/admin/WebConsole3/backend/app/config/parameters.yml.dist deleted file mode 100644 index 4e9051b0..00000000 --- a/admin/WebConsole3/backend/app/config/parameters.yml.dist +++ /dev/null @@ -1,27 +0,0 @@ -# This file is a "template" of what your parameters.yml file should look like -# Set parameters here that may be different on each deployment target of the app, e.g. development, staging, production. -# http://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration -parameters: - database_driver: pdo_mysql - database_host: localhost - database_port: ~ - database_name: ogAdmBD3 - database_user: u1consola1OG - database_password: c1consola1OG - - og_1_database_driver: pdo_mysql - og_1_database_host: localhost - og_1_database_port: 3606 - og_1_database_name: "ogAdmBD" - og_1_database_user: "u1consola1OG" - og_1_database_password: "c1consola1OG" - - mailer_transport: smtp - mailer_host: 127.0.0.1 - mailer_user: no-reply@opengnsys.com - mailer_password: ~ - mailer_sender_name: Opengnsys - - # A secret key that's used to generate certain security-related tokens - secret: ThisTokenIsNotSoSecretChangeIt - diff --git a/admin/WebConsole3/backend/app/config/routing.yml b/admin/WebConsole3/backend/app/config/routing.yml deleted file mode 100644 index d1a02c93..00000000 --- a/admin/WebConsole3/backend/app/config/routing.yml +++ /dev/null @@ -1,16 +0,0 @@ -opengnsys_core: - resource: "@OpengnsysCoreBundle/Resources/config/routing.yml" - prefix: / - -opengnsys_server: - resource: "@OpengnsysServerBundle/Resources/config/routing.yml" - prefix: / - -opengnsys_repository: - resource: "@OpengnsysRepositoryBundle/Resources/config/routing.yml" - prefix: / - -# Nelmio -NelmioApiDocBundle: - resource: "@NelmioApiDocBundle/Resources/config/routing.yml" - prefix: /api/doc diff --git a/admin/WebConsole3/backend/app/config/routing_dev.yml b/admin/WebConsole3/backend/app/config/routing_dev.yml deleted file mode 100644 index 81f199a6..00000000 --- a/admin/WebConsole3/backend/app/config/routing_dev.yml +++ /dev/null @@ -1,22 +0,0 @@ -_wdt: - resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" - prefix: /_wdt - -_profiler: - resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" - prefix: /_profiler - -_errors: - resource: "@TwigBundle/Resources/config/routing/errors.xml" - prefix: /_error - -_main: - resource: routing.yml - -#opengnsys_server: -# resource: "@OpengnsysServerBundle/Resources/config/routing_dev.yml" -# prefix: / - -#opengnsys_repository: -# resource: "@OpengnsysRepositoryBundle/Resources/config/routing_dev.yml" -# prefix: / diff --git a/admin/WebConsole3/backend/app/config/security.yml b/admin/WebConsole3/backend/app/config/security.yml deleted file mode 100644 index d8396109..00000000 --- a/admin/WebConsole3/backend/app/config/security.yml +++ /dev/null @@ -1,55 +0,0 @@ -security: - encoders: - Symfony\Component\Security\Core\User\User: plaintext - FOS\UserBundle\Model\UserInterface: sha512 #{ algorithm: 'bcrypt', cost: 10 } - - role_hierarchy: - ROLE_ADMIN: [ROLE_USER] - ROLE_SUPER_ADMIN: [ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH] - - providers: - opengnsys_userbundle: - id: fos_user.user_provider.username - firewalls: - ## AUTH 2.0 ## - oauth_token: - pattern: ^/oauth/v2/token - security: false - - ## API - WEB SERVICE - REST ## - api_private: - pattern: ^/api/private - fos_oauth: true - stateless: true - anonymous: false - api: - pattern: ^/api - stateless: true - anonymous: true - ## MAIN --> WEB ./ ## - main: - pattern: .* - context: user - form_login: - provider: opengnsys_userbundle - login_path: /login - use_forward: false - check_path: /login_check - failure_path: null - logout: true - #path: fos_user_security_logout - #target: / - anonymous: true - remember_me: - secret: "%secret%" - lifetime: 31536000 # 365 days in seconds - path: / - name: REMEMBERME_OG_MAIN - access_control: - # Auth login - - { path: ^/oauth/v2/auth_login$, role: IS_AUTHENTICATED_ANONYMOUSLY } - # Secured part of the site - - { path: ^/.*, role: IS_AUTHENTICATED_ANONYMOUSLY } #ROLE_ADMIN - # Securet part of Api - - { path: ^/api/private, roles: [ IS_AUTHENTICATED_FULLY ] } - diff --git a/admin/WebConsole3/backend/app/config/services.yml b/admin/WebConsole3/backend/app/config/services.yml deleted file mode 100644 index 5a805ca4..00000000 --- a/admin/WebConsole3/backend/app/config/services.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Learn more about services, parameters and containers at -# http://symfony.com/doc/current/service_container.html -parameters: -# parameter_name: value - -services: -# service_name: -# class: AppBundle\Directory\ClassName -# arguments: ["@another_service_name", "plain_value", "%parameter_name%"] diff --git a/admin/WebConsole3/backend/app/console b/admin/WebConsole3/backend/app/console deleted file mode 100755 index 4e359c5a..00000000 --- a/admin/WebConsole3/backend/app/console +++ /dev/null @@ -1,28 +0,0 @@ -#!/usr/bin/env php -<?php - -use Symfony\Bundle\FrameworkBundle\Console\Application; -use Symfony\Component\Console\Input\ArgvInput; -use Symfony\Component\Debug\Debug; - -// if you don't want to setup permissions the proper way, just uncomment the following PHP line -// read http://symfony.com/doc/current/setup.html#checking-symfony-application-configuration-and-setup -// for more information -//umask(0000); - -set_time_limit(0); - -/** @var \Composer\Autoload\ClassLoader $loader */ -$loader = require __DIR__.'/autoload.php'; - -$input = new ArgvInput(); -$env = $input->getParameterOption(array('--env', '-e'), getenv('SYMFONY_ENV') ?: 'dev'); -$debug = getenv('SYMFONY_DEBUG') !== '0' && !$input->hasParameterOption(array('--no-debug', '')) && $env !== 'prod'; - -if ($debug) { - Debug::enable(); -} - -$kernel = new AppKernel($env, $debug); -$application = new Application($kernel); -$application->run($input); diff --git a/admin/WebConsole3/backend/app/doc/engine.json b/admin/WebConsole3/backend/app/doc/engine.json deleted file mode 100644 index 2820f22b..00000000 --- a/admin/WebConsole3/backend/app/doc/engine.json +++ /dev/null @@ -1,554 +0,0 @@ -{ - "partitiontable": [ - { - "id": 1, - "type": "MSDOS", - "partitions": [ - { - "id": "00", - "type": "EMPTY", - "clonable": false - }, - { - "id": "01", - "type": "FAT12", - "clonable": true - }, - { - "id": "05", - "type": "EXTENDED", - "clonable": false - }, - { - "id": "06", - "type": "FAT16", - "clonable": true - }, - { - "id": "07", - "type": "NTFS", - "clonable": true - }, - { - "id": "0B", - "type": "FAT32", - "clonable": true - }, - { - "id": "11", - "type": "HFAT12", - "clonable": true - }, - { - "id": "16", - "type": "HFAT16", - "clonable": true - }, - { - "id": "17", - "type": "HNTFS", - "clonable": true - }, - { - "id": "1B", - "type": "HFAT32", - "clonable": true - }, - { - "id": "82", - "type": "LINUX-SWAP", - "clonable": false - }, - { - "id": "83", - "type": "LINUX", - "clonable": true - }, - { - "id": "8E", - "type": "LINUX-LVM", - "clonable": true - }, - { - "id": "A5", - "type": "FREEBSD", - "clonable": true - }, - { - "id": "A6", - "type": "OPENBSD", - "clonable": true - }, - { - "id": "A9", - "type": "NETBSD", - "clonable": true - }, - { - "id": "AF", - "type": "HFS", - "clonable": true - }, - { - "id": "BE", - "type": "SOLARIS-BOOT", - "clonable": true - }, - { - "id": "BF", - "type": "SOLARIS", - "clonable": true - }, - { - "id": "CA", - "type": "CACHE", - "clonable": false - }, - { - "id": "DA", - "type": "DATA", - "clonable": true - }, - { - "id": "EE", - "type": "GPT", - "clonable": false - }, - { - "id": "EF", - "type": "EFI", - "clonable": true - }, - { - "id": "FB", - "type": "VMFS", - "clonable": true - }, - { - "id": "FD", - "type": "LINUX-RAID", - "clonable": true - } - ] - }, - { - "id": 2, - "type": "GPT", - "partitions": [ - { - "id": "0700", - "type": "WINDOWS", - "clonable": true - }, - { - "id": "0C01", - "type": "WIN-RESERV", - "clonable": true - }, - { - "id": "2700", - "type": "WIN-RECOV", - "clonable": true - }, - { - "id": "7F00", - "type": "CHROMEOS-KRN", - "clonable": true - }, - { - "id": "7F01", - "type": "CHROMEOS", - "clonable": true - }, - { - "id": "7F02", - "type": "CHROMEOS-RESERV", - "clonable": true - }, - { - "id": "8200", - "type": "LINUX-SWAP", - "clonable": false - }, - { - "id": "8300", - "type": "LINUX", - "clonable": true - }, - { - "id": "8301", - "type": "LINUX-RESERV", - "clonable": true - }, - { - "id": "8302", - "type": "LINUX", - "clonable": true - }, - { - "id": "8E00", - "type": "LINUX-LVM", - "clonable": true - }, - { - "id": "A500", - "type": "FREEBSD-DISK", - "clonable": false - }, - { - "id": "A501", - "type": "FREEBSD-BOOT", - "clonable": true - }, - { - "id": "A502", - "type": "FREEBSD-SWAP", - "clonable": false - }, - { - "id": "A503", - "type": "FREEBSD", - "clonable": true - }, - { - "id": "A504", - "type": "FREEBSD", - "clonable": true - }, - { - "id": "A901", - "type": "NETBSD-SWAP", - "clonable": false - }, - { - "id": "A902", - "type": "NETBSD", - "clonable": true - }, - { - "id": "A903", - "type": "NETBSD", - "clonable": true - }, - { - "id": "A904", - "type": "NETBSD", - "clonable": true - }, - { - "id": "A905", - "type": "NETBSD", - "clonable": true - }, - { - "id": "A906", - "type": "NETBSD-RAID", - "clonable": true - }, - { - "id": "AB00", - "type": "HFS-BOOT", - "clonable": true - }, - { - "id": "AF00", - "type": "HFS", - "clonable": true - }, - { - "id": "AF01", - "type": "HFS-RAID", - "clonable": true - }, - { - "id": "AF02", - "type": "HFS-RAID", - "clonable": true - }, - { - "id": "BE00", - "type": "SOLARIS-BOOT", - "clonable": true - }, - { - "id": "BF00", - "type": "SOLARIS", - "clonable": true - }, - { - "id": "BF01", - "type": "SOLARIS", - "clonable": true - }, - { - "id": "BF02", - "type": "SOLARIS-SWAP", - "clonable": false - }, - { - "id": "BF03", - "type": "SOLARIS-DISK", - "clonable": true - }, - { - "id": "BF04", - "type": "SOLARIS", - "clonable": true - }, - { - "id": "BF05", - "type": "SOLARIS", - "clonable": true - }, - { - "id": "CA00", - "type": "CACHE", - "clonable": false - }, - { - "id": "EF00", - "type": "EFI", - "clonable": true - }, - { - "id": "EF01", - "type": "MBR", - "clonable": false - }, - { - "id": "EF02", - "type": "BIOS-BOOT", - "clonable": false - }, - { - "id": "FB00", - "type": "VMFS", - "clonable": true - }, - { - "id": "FB01", - "type": "VMFS-RESERV", - "clonable": true - }, - { - "id": "FB02", - "type": "VMFS-KRN", - "clonable": true - }, - { - "id": "FD00", - "type": "LINUX-RAID", - "clonable": true - }, - { - "id": "FFFF", - "type": "UNKNOWN", - "clonable": true - } - ] - }, - { - "id": 3, - "type": "LVM", - "partitions": [ - { - "id": "10000", - "type": "LVM-LV", - "clonable": true - } - ] - }, - { - "id": 4, - "type": "ZPOOL", - "partitions": [ - { - "id": "10010", - "type": "ZFS-VOL", - "clonable": true - } - ] - } - ], - "filesystems": [ - "BTRFS", - "CACHE", - "EMPTY", - "EXFAT", - "EXT2", - "EXT3", - "EXT4", - "F2FS", - "FAT12", - "FAT16", - "FAT32", - "HFS", - "HFSPLUS", - "JFS", - "LINUX-SWAP", - "NILFS2", - "NTFS", - "REISER4", - "REISERFS", - "UFS", - "XFS" - ], - "operatingsystems": [ - "Android", - "BSD", - "GrubLoader", - "Hurd", - "Linux", - "MacOS", - "Solaris", - "Windows", - "WinLoader" - ], - "hardwaretypes": [ - { - "id": 1, - "nemonic": "boa", - "name": "Placas" - }, - { - "id": 2, - "nemonic": "mul", - "name": "Dispositivos Multimedia" - }, - { - "id": 3, - "nemonic": "net", - "name": "Tarjetas de Red" - }, - { - "id": 4, - "nemonic": "cpu", - "name": "Microprocesadores" - }, - { - "id": 5, - "nemonic": "mem", - "name": "Memorias" - }, - { - "id": 6, - "nemonic": "vga", - "name": "Tarjetas gráficas" - }, - { - "id": 7, - "nemonic": "dis", - "name": "Discos" - }, - { - "id": 8, - "nemonic": "aud", - "name": "Dispositivos de sonido" - }, - { - "id": 9, - "nemonic": "mod", - "name": "Marca y modelo del equipo" - }, - { - "id": 10, - "nemonic": "bio", - "name": "Modelo y version de la bios" - }, - { - "id": 11, - "nemonic": "cdr", - "name": "Modelo de grabadora o grabadora de CD/DVD" - }, - { - "id": 12, - "nemonic": "ide", - "name": "Controladores IDE" - }, - { - "id": 13, - "nemonic": "fir", - "name": "Controladores FireWire" - }, - { - "id": 14, - "nemonic": "usb", - "name": "Controladores USB" - }, - { - "id": 15, - "nemonic": "bus", - "name": "Bus del Sistema" - }, - { - "id": 16, - "nemonic": "cha", - "name": "Chasis del Sistema" - }, - { - "id": 17, - "nemonic": "sto", - "name": "Controladores de almacenamiento" - }, - { - "id": 18, - "nemonic": "boo", - "name": "Tipo de proceso de arranque" - } - ], - "softwaretypes": [ - { - "id": 1, - "nemonic": "os", - "name": "Sistemas Operativos" - }, - { - "id": 2, - "nemonic": "app", - "name": "Aplicaciones" - }, - { - "id": 3, - "nemonic": "file", - "name": "Archivos" - } - ], - "clientstatus": [ - { - "id": "off", - "name": "Off" - }, - { - "id": "initializing", - "name": "initializing" - }, - { - "id": "oglive", - "name": "oglive" - }, - { - "id": "busy", - "name": "busy" - }, - { - "id": "linux", - "name": "linux" - }, - { - "id": "linux_session", - "name": "linux_session" - }, - { - "id": "macos", - "name": "macos" - }, - { - "id": "windows", - "name": "windows" - }, - { - "id": "windows_session", - "name": "windows_session" - } - ] -} diff --git a/admin/WebConsole3/backend/app/phpunit.xml.dist b/admin/WebConsole3/backend/app/phpunit.xml.dist deleted file mode 100644 index 454e74d0..00000000 --- a/admin/WebConsole3/backend/app/phpunit.xml.dist +++ /dev/null @@ -1,38 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- https://phpunit.de/manual/current/en/appendixes.configuration.html --> -<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.8/phpunit.xsd" - backupGlobals="false" - colors="true" - bootstrap="autoload.php" -> - <php> - <ini name="error_reporting" value="-1" /> - <!-- - <server name="KERNEL_DIR" value="/path/to/your/app/" /> - --> - </php> - - <testsuites> - <testsuite name="Project Test Suite"> - <directory>../src/*/*Bundle/Tests</directory> - <directory>../src/*/Bundle/*Bundle/Tests</directory> - <directory>../src/*Bundle/Tests</directory> - </testsuite> - </testsuites> - - <filter> - <whitelist> - <directory>../src</directory> - <exclude> - <directory>../src/*Bundle/Resources</directory> - <directory>../src/*Bundle/Tests</directory> - <directory>../src/*/*Bundle/Resources</directory> - <directory>../src/*/*Bundle/Tests</directory> - <directory>../src/*/Bundle/*Bundle/Resources</directory> - <directory>../src/*/Bundle/*Bundle/Tests</directory> - </exclude> - </whitelist> - </filter> -</phpunit> |