commit
4b56c32ed5
29
.gitignore
vendored
29
.gitignore
vendored
|
@ -1,11 +1,18 @@
|
|||
/composer.lock
|
||||
/vendor/*
|
||||
/_relicats
|
||||
/public/prestashop/install-dev/theme/*
|
||||
/public/prestashop/js/*
|
||||
/public/prestashop/themes/*
|
||||
/public/wordpress/wp-admin/css/*
|
||||
/public/wordpress/wp-admin/js/*
|
||||
/public/wordpress/wp-content/themes/*
|
||||
/public/wordpress/wp-includes/css/*
|
||||
/public/wordpress/wp-includes/js/*
|
||||
composer.lock
|
||||
vendor
|
||||
_relicats
|
||||
.idea
|
||||
|
||||
# Avoid directory tests install of third party application module
|
||||
application/modules/phplist
|
||||
application/modules/symfony
|
||||
application/modules/wordpress
|
||||
application/modules/prestashop
|
||||
public/prestashop/install-dev/theme/*
|
||||
public/prestashop/js/*
|
||||
public/prestashop/themes/*
|
||||
public/wordpress/wp-admin/css/*
|
||||
public/wordpress/wp-admin/js/*
|
||||
public/wordpress/wp-content/themes/*
|
||||
public/wordpress/wp-includes/css/*
|
||||
public/wordpress/wp-includes/js/*
|
||||
|
|
|
@ -12,9 +12,9 @@
|
|||
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/support" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/illuminate/view" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/ircmaxell/password-compat" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/johnpbloch/wordpress" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/johnpbloch/wordpress-core-installer" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/michelf/php-markdown" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/neitanod/forceutf8" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/paragonie/random_compat" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/cache" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/container" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/psr/log" />
|
||||
|
@ -29,6 +29,7 @@
|
|||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-mbstring" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php54" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php55" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php70" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/routing" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/service-contracts" />
|
||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/var-exporter" />
|
||||
|
|
5
.idea/codeStyles/codeStyleConfig.xml
Normal file
5
.idea/codeStyles/codeStyleConfig.xml
Normal file
|
@ -0,0 +1,5 @@
|
|||
<component name="ProjectCodeStyleConfiguration">
|
||||
<state>
|
||||
<option name="PREFERRED_PROJECT_CODE_STYLE" value="Default" />
|
||||
</state>
|
||||
</component>
|
|
@ -2,37 +2,38 @@
|
|||
<project version="4">
|
||||
<component name="PhpIncludePathManager">
|
||||
<include_path>
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/var-exporter" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/routing" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/service-contracts" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/http-foundation" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/finder" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/config" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/expression-language" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/cache-contracts" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/yaml" />
|
||||
<path value="$PROJECT_DIR$/vendor/ircmaxell/password-compat" />
|
||||
<path value="$PROJECT_DIR$/vendor/windwalker/structure" />
|
||||
<path value="$PROJECT_DIR$/vendor/windwalker/renderer" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php55" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php54" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/filesystem" />
|
||||
<path value="$PROJECT_DIR$/vendor/composer" />
|
||||
<path value="$PROJECT_DIR$/vendor/hybridauth/hybridauth" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/log" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/container" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/cache" />
|
||||
<path value="$PROJECT_DIR$/vendor/illuminate/view" />
|
||||
<path value="$PROJECT_DIR$/vendor/illuminate/container" />
|
||||
<path value="$PROJECT_DIR$/vendor/hybridauth/hybridauth" />
|
||||
<path value="$PROJECT_DIR$/vendor/paragonie/random_compat" />
|
||||
<path value="$PROJECT_DIR$/vendor/ircmaxell/password-compat" />
|
||||
<path value="$PROJECT_DIR$/vendor/neitanod/forceutf8" />
|
||||
<path value="$PROJECT_DIR$/vendor/windwalker/renderer" />
|
||||
<path value="$PROJECT_DIR$/vendor/windwalker/structure" />
|
||||
<path value="$PROJECT_DIR$/vendor/illuminate/events" />
|
||||
<path value="$PROJECT_DIR$/vendor/illuminate/support" />
|
||||
<path value="$PROJECT_DIR$/vendor/illuminate/view" />
|
||||
<path value="$PROJECT_DIR$/vendor/illuminate/filesystem" />
|
||||
<path value="$PROJECT_DIR$/vendor/neitanod/forceutf8" />
|
||||
<path value="$PROJECT_DIR$/vendor/composer" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/cache" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/container" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/cache" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/service-contracts" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-ctype" />
|
||||
<path value="$PROJECT_DIR$/vendor/johnpbloch/wordpress-core-installer" />
|
||||
<path value="$PROJECT_DIR$/vendor/johnpbloch/wordpress" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php55" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/expression-language" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/finder" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/yaml" />
|
||||
<path value="$PROJECT_DIR$/vendor/psr/log" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/cache-contracts" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/config" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/http-foundation" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/filesystem" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-mbstring" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php54" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/var-exporter" />
|
||||
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php70" />
|
||||
<path value="$PROJECT_DIR$/vendor/michelf/php-markdown" />
|
||||
</include_path>
|
||||
</component>
|
||||
<component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/application/modules/phplist" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/application/modules/prestashop" vcs="Git" />
|
||||
<mapping directory="$PROJECT_DIR$/application/modules/wordpress" vcs="Git" />
|
||||
</component>
|
||||
</project>
|
|
@ -15,6 +15,7 @@ class Application
|
|||
public function __construct(){
|
||||
$this->http = new HttpMethod();
|
||||
$this->browser = new Browser();
|
||||
|
||||
$this->url = new Url($this->http->method, $this->browser->isAppRequest());
|
||||
|
||||
$dispacher = new Dispacher();
|
||||
|
|
|
@ -10,31 +10,62 @@ class Bdd
|
|||
{
|
||||
switch($bdd) {
|
||||
case 'bdd1':
|
||||
$this->bdd = new PDO(DSN_BDD1, USER_BDD1, PASS_BDD1);
|
||||
$this->bdd = new \PDO(DSN_BDD1, USER_BDD1, PASS_BDD1);
|
||||
break;
|
||||
case 'bdd2':
|
||||
$this->bdd = new PDO(DSN_BDD2, USER_BDD2, PASS_BDD2);
|
||||
$this->bdd = new \PDO(DSN_BDD2, USER_BDD2, PASS_BDD2);
|
||||
break;
|
||||
default:
|
||||
$this->bdd = new PDO(DSN_BDD_DEFAULT, USER_BDD_DEFAULT, PASS_BDD_DEFAULT);
|
||||
$this->bdd = new \PDO(DSN_BDD_DEFAULT, USER_BDD_DEFAULT, PASS_BDD_DEFAULT);
|
||||
}
|
||||
$this->bdd->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_WARNING);
|
||||
$this->bdd->setAttribute(\PDO::ATTR_DEFAULT_FETCH_MODE, \PDO::FETCH_ASSOC);
|
||||
}
|
||||
|
||||
public function faireUneRequete($sql)
|
||||
public function faireSQLRequete($sql)
|
||||
{
|
||||
$req = $this->bdd->query($sql, PDO::FETCH_ASSOC);
|
||||
$req = $this->bdd->query($sql);
|
||||
return $req;
|
||||
}
|
||||
|
||||
public function creerTableau($res){
|
||||
|
||||
$tab = array();
|
||||
foreach($res as $key => $row){
|
||||
if (is_string($row)) {
|
||||
$row = Caracter::normalise_ChaineDeCaracteresDownload($row);
|
||||
/**
|
||||
*
|
||||
* Exemple:
|
||||
* $sql = "SELECT * FROM annonce WHERE cat_id = :categorie and ann_est_valide = 1";
|
||||
* $req = $bdd->faireBindRequete($sql,
|
||||
* array(
|
||||
* array('categorie', $categorie, \PDO::PARAM_INT),
|
||||
* )
|
||||
* );
|
||||
* $data = $bdd->exploiterResultat($req)
|
||||
*
|
||||
*
|
||||
* @param $sql
|
||||
* @param array|null $params
|
||||
* @return bool|\PDOStatement
|
||||
*/
|
||||
public function faireBindRequete($sql,Array $params = null){
|
||||
$req = $this->bdd->prepare($sql);
|
||||
if($params){
|
||||
foreach ($params as $value) {
|
||||
$req->bindParam($value[0],Caracter::normalise_ChaineDeCaracteres($value[1]),$value[2]);
|
||||
}
|
||||
$tab[$key] = $row;
|
||||
}
|
||||
return $tab;
|
||||
$req->execute();
|
||||
//$req->closeCursor();
|
||||
return $req;
|
||||
}
|
||||
|
||||
public function exploiterResultat($req){
|
||||
$res = $req->fetchAll();
|
||||
foreach($res as $data) {
|
||||
foreach ($data as $key => $row) {
|
||||
if (is_string($row)) {
|
||||
$row = Caracter::normalise_ChaineDeCaracteres($row);
|
||||
}
|
||||
$data[$key] = $row;
|
||||
}
|
||||
}
|
||||
return $res;
|
||||
}
|
||||
}
|
|
@ -14,6 +14,7 @@ class Browser
|
|||
{
|
||||
$this->userAgent = $_SERVER['HTTP_USER_AGENT'];
|
||||
$this->user = $this->get_browser_name();
|
||||
//Logger::addLog('http.browser',$this->user);
|
||||
}
|
||||
|
||||
protected function get_browser_name()
|
||||
|
|
|
@ -9,9 +9,8 @@ use ForceUTF8\Encoding;
|
|||
class Caracter
|
||||
{
|
||||
|
||||
public static function normalise_ChaineDeCaracteresDownload($chaine)
|
||||
public static function normalise_ChaineDeCaracteres($chaine)
|
||||
{
|
||||
//return Caracter::remplacerAccents($chaine);
|
||||
return Encoding::fixUTF8(Caracter::fp_stripslashes($chaine));
|
||||
}
|
||||
|
||||
|
|
|
@ -16,11 +16,10 @@ class Controlleur{
|
|||
case 'POST':
|
||||
case 'GET':
|
||||
if ($application->browser->isAppRequest()) {
|
||||
require CONTROLLER_PATH . DIRECTORY_SEPARATOR . $application->url->page['name'] . 'HttpReponse.php';
|
||||
require $application->url->pageFile;
|
||||
$this->callHttpResponse($application);
|
||||
break;
|
||||
die();
|
||||
}
|
||||
|
||||
default:
|
||||
if ($application->route != NULL) {
|
||||
$conduit = explode('::', $application->route['controller']);
|
||||
|
@ -57,6 +56,8 @@ class Controlleur{
|
|||
$reponse->instanciate($application->url, $application->http->getData());
|
||||
$method = strtolower($application->http->method);
|
||||
|
||||
Logger::addLog('http11'," $reponseHttp app {$application->http->method} request! ( ".get_class($reponse)."->$method() )");
|
||||
|
||||
$this->vue = new VueVide();
|
||||
$this->vue->ecran = $reponse->$method();
|
||||
return;
|
||||
|
|
|
@ -14,5 +14,22 @@ class Dumper{
|
|||
}
|
||||
echo "</pre>";
|
||||
}
|
||||
/**
|
||||
* Fonction Statique permettant d'initialiser les valeurs de php lors du script courant
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function setPHPvalues()
|
||||
{
|
||||
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
ini_set('memory_limit', -1);
|
||||
ini_set('max_execution_time', 0);
|
||||
ini_set('default_socket_timeout', -1);
|
||||
|
||||
error_reporting(E_ALL);
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
|
@ -13,6 +13,7 @@ class HttpMethod
|
|||
public function __construct()
|
||||
{
|
||||
$this->method = $_SERVER['REQUEST_METHOD'];
|
||||
Logger::addLog('http.method',$this->method);
|
||||
$this->acceptResponse();
|
||||
}
|
||||
|
||||
|
|
|
@ -132,19 +132,30 @@ class HttpMethodRequete
|
|||
// return true;
|
||||
// }
|
||||
|
||||
$curl_cmd = "curl -i -X $this->method -H 'Content-Type: application/json' -d '$this->content' $this->url";
|
||||
|
||||
|
||||
$curl_cmd = "curl -i -k -X $this->method -H 'Content-Type: application/json' -d '$this->content' $this->url";
|
||||
|
||||
/** Pour utiliser ce code il faut utiliser la variable curl.cainfo dans php.ini */
|
||||
Logger::addLog('curl', $curl_cmd);
|
||||
|
||||
$curl = curl_init($this->url);
|
||||
/*$curl = curl_init($this->url);
|
||||
//curl_setopt($curl, CURLOPT_HEADER, false);
|
||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($curl,CURLOPT_SSL_ENABLE_NPN,false);
|
||||
curl_setopt($curl,CURLOPT_SSL_ENABLE_ALPN,false);
|
||||
curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);
|
||||
curl_setopt($curl,CURLOPT_SSL_VERIFYSTATUS,false);
|
||||
curl_setopt($curl,CURLOPT_PROXY_SSL_VERIFYPEER,false);
|
||||
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $this->method);
|
||||
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($this->data));
|
||||
|
||||
$response = curl_exec($curl);
|
||||
curl_close($curl);
|
||||
curl_close($curl);*/
|
||||
|
||||
$response = exec($curl_cmd);
|
||||
|
||||
Logger::addLog('curl.response', $response);
|
||||
|
||||
if (!$response) {
|
||||
return false;
|
||||
|
|
|
@ -15,11 +15,31 @@ class Logger
|
|||
$browser = new Browser();
|
||||
$date = date("F j, Y, g:i a");
|
||||
$what = PHP_EOL . '[' . $date . ' by ' . $browser->user . ']' . PHP_EOL . $browser->userAgent . PHP_EOL . $what;
|
||||
//$what = PHP_EOL . '[' . $date . ' by ]' . PHP_EOL . $what;
|
||||
if (is_file($file)) {
|
||||
file_put_contents($file, PHP_EOL . $what, FILE_APPEND | LOCK_EX);
|
||||
} else {
|
||||
file_put_contents($file, $what);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Fonction courante permettant de logger les erreurs obtenues dans un fichier
|
||||
*
|
||||
* @param array $errors
|
||||
* @return void
|
||||
*/
|
||||
public static function logCommandErrors(array $errors)
|
||||
{
|
||||
// log connection errors to the web service
|
||||
ob_start();
|
||||
foreach ($errors as $key => $value) {
|
||||
echo "\n\n$key : \n";
|
||||
print_r($value);
|
||||
}
|
||||
$write_string = ob_get_clean();
|
||||
file_put_contents(dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . "logs" . DIRECTORY_SEPARATOR . "errors_command.log", $write_string);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
|
@ -51,7 +51,33 @@ class Modular{
|
|||
default:
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
case "phplist":
|
||||
if(isset($options[0])) {
|
||||
switch ($options[0]) {
|
||||
case 'admin':
|
||||
$this->subapp_dir = DIRECTORY_SEPARATOR . 'public_html' . DIRECTORY_SEPARATOR . 'lists'. DIRECTORY_SEPARATOR . $options[0] ;
|
||||
break;
|
||||
default:
|
||||
}
|
||||
}else{
|
||||
$this->subapp_dir = DIRECTORY_SEPARATOR . 'public_html' . DIRECTORY_SEPARATOR . 'lists';
|
||||
}
|
||||
break;
|
||||
case "wanewsletter":
|
||||
$this->subfile = "install.php";
|
||||
if(isset($options[0])) {
|
||||
switch ($options[0]) {
|
||||
case 'admin':
|
||||
$this->subapp_dir = DIRECTORY_SEPARATOR . $options[0] ;
|
||||
$this->subfile = "index.php";
|
||||
break;
|
||||
default:
|
||||
$this->subapp_dir = DIRECTORY_SEPARATOR . $options[0] ;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case "phpmynewsletter":
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -71,6 +97,15 @@ class Modular{
|
|||
case "prestashop":
|
||||
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . $this->subapp_dir . DIRECTORY_SEPARATOR . "index.php";
|
||||
break;
|
||||
case "phplist":
|
||||
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . $this->subapp_dir . DIRECTORY_SEPARATOR . "index.php";
|
||||
break;
|
||||
case "wanewsletter":
|
||||
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . $this->subapp_dir . DIRECTORY_SEPARATOR . $this->subfile;
|
||||
break;
|
||||
case "phpmynewsletter":
|
||||
require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . $this->subapp_dir . DIRECTORY_SEPARATOR . $this->subfile;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -12,12 +12,27 @@ class Session
|
|||
session_start();
|
||||
return;
|
||||
}
|
||||
static public function destroy()
|
||||
{
|
||||
session_destroy();
|
||||
return;
|
||||
}
|
||||
|
||||
static public function setUserProfile($userProfile)
|
||||
{
|
||||
$_SESSION['userProfile'] = $userProfile;
|
||||
return;
|
||||
}
|
||||
static public function setId($id)
|
||||
{
|
||||
$_SESSION['id'] = $id;
|
||||
return;
|
||||
}
|
||||
static public function setUserName($username)
|
||||
{
|
||||
$_SESSION['username'] = $username;
|
||||
return;
|
||||
}
|
||||
|
||||
static public function setToken($token)
|
||||
{
|
||||
|
@ -25,10 +40,39 @@ class Session
|
|||
return;
|
||||
}
|
||||
|
||||
static public function setStorage($hybriauthStorage)
|
||||
{
|
||||
$_SESSION['storage'] = $hybriauthStorage;
|
||||
return;
|
||||
}
|
||||
static public function getStorage()
|
||||
{
|
||||
return $_SESSION['storage'] ;
|
||||
}
|
||||
|
||||
static public function setHybridAuth($hybriauth)
|
||||
{
|
||||
$_SESSION['auth'] = $hybriauth;
|
||||
return;
|
||||
}
|
||||
static public function getHybridAuth()
|
||||
{
|
||||
return $_SESSION['auth'] ;
|
||||
}
|
||||
|
||||
static public function isRegistered()
|
||||
{
|
||||
if (isset($_SESSION['userProfile'])) {
|
||||
return;
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
static public function redirectIfNotRegistered()
|
||||
{
|
||||
if (isset($_SESSION['userProfile'])) {
|
||||
return ;
|
||||
} else {
|
||||
header("location : " . Url::link_rewrite(false, 'error', []));
|
||||
die('Ooops, something was wrong...');
|
||||
|
|
|
@ -7,18 +7,19 @@ namespace MVC\Classe;
|
|||
class Url
|
||||
{
|
||||
public $page;
|
||||
public $pageFile;
|
||||
public $registre;
|
||||
|
||||
|
||||
public function __construct($method, $appRequest)
|
||||
{
|
||||
|
||||
//on créé le registre des modules symfony
|
||||
//on créé le registre des modules d'applications tierces
|
||||
$this->registre = new \MVC\Classe\ModularRegister();
|
||||
|
||||
//définition des parametres de base
|
||||
$page = array();
|
||||
$page['name'] = 'accueil';
|
||||
$page['name'] = 'index';
|
||||
$page['description'] = "";
|
||||
$page['params'] = array();
|
||||
$page['control'] = false;
|
||||
|
@ -31,17 +32,21 @@ class Url
|
|||
//print_r($urlParts);
|
||||
if(isset($urlParts[0])) {
|
||||
//Récupération du nom de la page
|
||||
($urlParts[0] == 'index' || $urlParts[0] == '') ? $page['name'] = 'accueil' : $page['name'] = $urlParts[0];
|
||||
//array_shift($urlParts);
|
||||
($urlParts[0] == 'index' || $urlParts[0] == '') ? $page['name'] = 'index' : $page['name'] = $urlParts[0];
|
||||
unset($urlParts[0]);
|
||||
}else{
|
||||
$page['name'] = 'accueil';
|
||||
$page['name'] = 'index';
|
||||
}
|
||||
|
||||
//il se peut que l'on ait des variable avec ? dans l'url
|
||||
$urlQuery = explode('?' , $page['name'] );
|
||||
$page['name'] = $urlQuery[0];
|
||||
|
||||
$page['name'] = strtolower($page['name']);
|
||||
|
||||
if($page['name'] == 'control'){
|
||||
$page['control'] = true;
|
||||
($urlParts[1] == 'index' || $urlParts[1] == '' ) ? $page['name']='accueil' : $page['name']=$urlParts[1];
|
||||
//array_shift($urlParts);
|
||||
($urlParts[1] == 'index' || $urlParts[1] == '' ) ? $page['name']='index' : $page['name']=$urlParts[1];
|
||||
unset($urlParts[1]);
|
||||
|
||||
}
|
||||
|
@ -56,7 +61,7 @@ class Url
|
|||
$page['params'] = array();
|
||||
$this->page = $page;
|
||||
return;
|
||||
}else {
|
||||
} else {
|
||||
foreach ($urlParts as $key => $value) {
|
||||
$values[] = $value;
|
||||
$keys[] = $key;
|
||||
|
@ -91,6 +96,8 @@ class Url
|
|||
}
|
||||
}
|
||||
}
|
||||
$page['name'] = lcfirst($page['name']);
|
||||
$pageFile = CONTROLLERS_PATH . DIRECTORY_SEPARATOR . $page['name'] . '.php';
|
||||
//verification de l'existence de la page dans les controlleurs
|
||||
if($page['control']){
|
||||
$pageFile = TRAITEMENT_PATH . DIRECTORY_SEPARATOR . $page['name'] . '.php';
|
||||
|
@ -124,6 +131,7 @@ class Url
|
|||
}
|
||||
}
|
||||
$this->page = $page;
|
||||
$this->pageFile = $pageFile;
|
||||
|
||||
}
|
||||
|
||||
|
@ -136,6 +144,15 @@ class Url
|
|||
}
|
||||
}
|
||||
|
||||
static public function module_link_rewrite($page, $params = array())
|
||||
{
|
||||
$stringParams = '';
|
||||
foreach ($params as $values) {
|
||||
$stringParams .= "/" . $values;
|
||||
}
|
||||
return '/' . $page . $stringParams;
|
||||
}
|
||||
|
||||
static private function link_rewrite_slashParam($page, $params = array())
|
||||
{
|
||||
$stringParams = '';
|
||||
|
|
|
@ -10,16 +10,19 @@ class Vue{
|
|||
public $ecran;
|
||||
public $block_body;
|
||||
|
||||
public function __construct($baseControlleur){
|
||||
public function __construct($application){
|
||||
|
||||
$templateData = array();
|
||||
extract( $baseControlleur->modele->page );
|
||||
extract( $application->modele->page );
|
||||
|
||||
ob_start();
|
||||
if(file_exists(VIEW_PATH.DIRECTORY_SEPARATOR."view".DIRECTORY_SEPARATOR.$name.".blade.php")) {
|
||||
|
||||
//l'inclusion du controlleur doit renvoyer le tableau $templateData
|
||||
require CONTROLLER_PATH . DIRECTORY_SEPARATOR . $name . '.php';
|
||||
|
||||
|
||||
|
||||
//TEMPLATING BLADE
|
||||
$paths = new \SplPriorityQueue;
|
||||
|
||||
|
@ -30,7 +33,7 @@ class Vue{
|
|||
$renderer = new \Windwalker\Renderer\BladeRenderer($paths, array('cache_path' => VIEW_PATH . DIRECTORY_SEPARATOR . "cache"));
|
||||
|
||||
//de base on ajoute les parametres du .model et ceux provenant de l'url
|
||||
foreach ($baseControlleur->modele->page as $key => $value) {
|
||||
foreach ($application->modele->page as $key => $value) {
|
||||
$templateData[$key] = $value;
|
||||
}
|
||||
echo $renderer->render($name, $templateData);
|
||||
|
|
|
@ -29,7 +29,7 @@ $config = [
|
|||
|
||||
'Twitter' => [
|
||||
'enabled' => true,
|
||||
'keys' => ['key' => '155718820-WdUWfYpQA4AIa57Cayt3sIXiR90mre31h5S9gUvj', 'secret' => 'nc1w9VLRmnXVl4GkqC8vvUFORzPIdWBz2PE9B5eAF8Idv'],
|
||||
'keys' => ['key' => 'gnsmsVW0EkdpSVeqwCOG7V1H5', 'secret' => 'cdv71bFMUV4OBpkjFIwPNOlbRBQhrAaWBTmLF8aPzZBeMf3PyQ'],
|
||||
]
|
||||
],
|
||||
//optional : set debug mode
|
||||
|
|
|
@ -9,4 +9,7 @@ define("ACTION_PATH", APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIREC
|
|||
define("MODELS_PATH", APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "modeles");
|
||||
define("VIEW_PATH", APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "vues");
|
||||
define("CONTROLLER_PATH", APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "controlleurs");
|
||||
define("TRAITEMENT_PATH", APPLICATION_PATH . DIRECTORY_SEPARATOR . "traitements");
|
||||
define("TRAITEMENT_PATH", APPLICATION_PATH . DIRECTORY_SEPARATOR . "traitements");
|
||||
define("PUBLIC_PATH", dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . "public");
|
||||
define("CONSOLE_PATH", dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . "console");
|
||||
define("DATA_PATH", dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . "data");
|
|
@ -1,6 +1,6 @@
|
|||
home_route:
|
||||
path: /
|
||||
defaults: { controller: 'FooController::indexAction' }
|
||||
defaults: { controller: '' }
|
||||
|
||||
foo_route:
|
||||
path: /foo
|
||||
|
@ -11,4 +11,3 @@ foo_placeholder_route:
|
|||
defaults: { controller: 'FooConduit::load' }
|
||||
requirements:
|
||||
id: '[0-9]+'
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
<?php
|
||||
|
||||
use MVC\Classe\Dumper;
|
||||
use MVC\Classe\HttpMethodRequete;
|
||||
use MVC\Classe\Implement\Action;
|
||||
use MVC\Classe\Url;
|
||||
|
@ -9,7 +10,6 @@ class DefaultAction extends Action
|
|||
{
|
||||
public function default($data)
|
||||
{
|
||||
|
||||
/**your action algorythm**/
|
||||
if (isset($data[0])) {
|
||||
$var1 = $data[0];
|
||||
|
@ -57,11 +57,12 @@ class DefaultAction extends Action
|
|||
{
|
||||
|
||||
$data = array('myval' => 25);
|
||||
|
||||
//Dumper::dump($data);
|
||||
\MVC\Classe\Logger::addLog('action','http11 make request');
|
||||
$request = new HttpMethodRequete();
|
||||
//$request->setUrl(Url::absolute_link_rewrite(false,'accueil',['var10'=>'val10']))->get($data);
|
||||
//$request->setUrl(Url::absolute_link_rewrite(false,'accueil',['var10'=>'val10']))->post($data);
|
||||
$request->setUrl(Url::absolute_link_rewrite(false,'accueil',['var10'=>'val10']))->get($data);
|
||||
$request->setUrl(Url::absolute_link_rewrite(false,'accueil',['var10'=>'val10']))->post($data);
|
||||
$request->setUrl(Url::absolute_link_rewrite(false, 'accueil', ['var10' => 'val10']))->put($data);
|
||||
//$request->setUrl(Url::absolute_link_rewrite(false,'accueil',['var10'=>'val10']))->delete($data);
|
||||
$request->setUrl(Url::absolute_link_rewrite(false,'accueil',['var10'=>'val10']))->delete($data);
|
||||
}
|
||||
}
|
||||
|
|
15
application/include/conduits/IndexConduit.php
Normal file
15
application/include/conduits/IndexConduit.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?php
|
||||
|
||||
|
||||
use MVC\Classe\Implement\Conduit;
|
||||
|
||||
class IndexConduit extends Conduit
|
||||
{
|
||||
// Route('/')
|
||||
public function homepage()
|
||||
{
|
||||
echo "IndexControlleur";
|
||||
return $this->render('index', array("templating_a"=>'blade',"templating_b"=>'twig',"templating_c"=>'edge'));
|
||||
}
|
||||
|
||||
}
|
|
@ -1,45 +0,0 @@
|
|||
<?php
|
||||
|
||||
use MVC\Classe\Dumper;
|
||||
use MVC\Classe\Implement\RestReponse;
|
||||
use MVC\Classe\Logger;
|
||||
|
||||
class AccueilHttpReponse extends RestReponse
|
||||
{
|
||||
|
||||
public function put()
|
||||
{
|
||||
ob_start();
|
||||
Dumper::dump($this->params);
|
||||
Dumper::dump($this->data);
|
||||
$text = ob_get_clean();
|
||||
Logger::addLog('put', '____Hello Put____' . PHP_EOL . $text);
|
||||
}
|
||||
public function delete()
|
||||
{
|
||||
ob_start();
|
||||
Dumper::dump($this->params);
|
||||
Dumper::dump($this->data);
|
||||
$text = ob_get_clean();
|
||||
Logger::addLog('delete', '____Hello Delete:____' . PHP_EOL . $text);
|
||||
|
||||
}
|
||||
|
||||
public function get()
|
||||
{
|
||||
ob_start();
|
||||
Dumper::dump($this->params);
|
||||
Dumper::dump($this->data);
|
||||
$text = ob_get_clean();
|
||||
Logger::addLog('get', '____Hello GET____' . PHP_EOL . $text);
|
||||
}
|
||||
|
||||
public function post()
|
||||
{
|
||||
ob_start();
|
||||
Dumper::dump($this->params);
|
||||
Dumper::dump($this->data);
|
||||
$text = ob_get_clean();
|
||||
Logger::addLog('post', '____Hello POST____' . PHP_EOL . $text);
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
|
||||
echo <<<EOD
|
||||
Conditions Générale de l'application:
|
||||
|
||||
1. Cette application est en phase de test et n'est qu'un test.
|
||||
2. Si cela est autre chose se référer au point 1.
|
||||
3. Cette application permet le developpement d'un frame-work propre dont la documentation sera écrite en MarkDown
|
||||
et publié par un moteur interne à l'application
|
||||
|
||||
EOD;
|
||||
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
|
||||
use MVC\Classe\Implement\RestReponse;
|
||||
use MVC\Classe\Logger;
|
||||
|
||||
class ErrorHttpReponse extends RestReponse
|
||||
{
|
||||
public function put()
|
||||
{
|
||||
Logger::addLog('put', 'Error PUT');
|
||||
}
|
||||
|
||||
public function delete()
|
||||
{
|
||||
Logger::addLog('delete', 'Error DELETE');
|
||||
}
|
||||
|
||||
public function get()
|
||||
{
|
||||
Logger::addLog('get', 'Error GET');
|
||||
}
|
||||
|
||||
public function post()
|
||||
{
|
||||
Logger::addLog('post', 'Error POST');
|
||||
}
|
||||
}
|
|
@ -1,12 +0,0 @@
|
|||
<?php
|
||||
|
||||
echo <<<EOD
|
||||
Politique Générale de Sécurité
|
||||
|
||||
1. Ce FrameWork est le fruit d'un travail personnel.
|
||||
2. Ce Framework est le fruit du travail aboutit de plusieurs personnes
|
||||
3. Ce Framework sera open-source sous licence CC Universal.
|
||||
|
||||
Si cela ne vous plait pas veuillez envoyer un courriel à emmanuel.roy@infoartsmedia.fr et nous en parlerons le plus calmement possible.
|
||||
EOD;
|
||||
|
|
@ -1,9 +0,0 @@
|
|||
<?php
|
||||
|
||||
require CONFIG_PATH . DIRECTORY_SEPARATOR . "authentification-config-example.php";
|
||||
|
||||
$hybridauth = new Hybridauth\Hybridauth($config);
|
||||
$adapters = $hybridauth->getConnectedAdapters();
|
||||
|
||||
$templateData['hybridauth'] = $hybridauth;
|
||||
$templateData['adapters'] = $adapters;
|
1
application/include/controlleurs/cgu.php
Normal file
1
application/include/controlleurs/cgu.php
Normal file
|
@ -0,0 +1 @@
|
|||
<?php
|
|
@ -1,21 +0,0 @@
|
|||
<?php
|
||||
|
||||
\MVC\Classe\Session::start();
|
||||
//\MVC\Classe\Session::isregistered();
|
||||
|
||||
require CONFIG_PATH . DIRECTORY_SEPARATOR . "authentification-config-example.php";
|
||||
|
||||
$hybridauth = new Hybridauth\Hybridauth($config);
|
||||
$adapters = $hybridauth->getConnectedAdapters();
|
||||
|
||||
$templateData['adapters'] = $adapters;
|
||||
|
||||
/*$templateData['extractedData'] = [
|
||||
'token' => $_SESSION['userToken'],
|
||||
'identifier' => $_SESSION['userProfile']->identifier,
|
||||
'email' => $_SESSION['userProfile']->email,
|
||||
'first_name' => $_SESSION['userProfile']->firstName,
|
||||
'last_name' => $_SESSION['userProfile']->lastName,
|
||||
'photoURL' => strtok($_SESSION['userProfile']->photoURL, '?'),
|
||||
];*/
|
||||
$templateData['extractedData'] = [];
|
12
application/include/controlleurs/index.php
Normal file
12
application/include/controlleurs/index.php
Normal file
|
@ -0,0 +1,12 @@
|
|||
<?php
|
||||
|
||||
|
||||
use MVC\Classe\Dumper;
|
||||
use MVC\Classe\Logger;
|
||||
|
||||
//Dumper::dump($_SESSION);
|
||||
|
||||
\MVC\Classe\ControlleurAction::inserer('default.makeHttp11',[]);
|
||||
|
||||
$templateData = array("templating_a"=>'blade',"templating_b"=>'twig',"templating_c"=>'edge');
|
||||
Logger::addLog('ok', 'Hello world');
|
1
application/include/controlleurs/policy.php
Normal file
1
application/include/controlleurs/policy.php
Normal file
|
@ -0,0 +1 @@
|
|||
<?php
|
|
@ -1,13 +0,0 @@
|
|||
<?php
|
||||
$app = new MVC\Classe\Modular($name,'prestashop',$url_params);
|
||||
//echo "Dawn Prestashop Error!";
|
||||
/*
|
||||
* Avoid Warning on my version ....
|
||||
*
|
||||
on application/modules/prestashop/config/config.inc.php:125
|
||||
|
||||
define('__PS_BASE_URI__', '/prestashop'.$context->shop->getBaseURI());
|
||||
|
||||
*/
|
||||
//echo $app->load('prestashop');die();
|
||||
$templateData = array('app' => $app);
|
|
@ -1,4 +0,0 @@
|
|||
<?php
|
||||
\MVC\Classe\Session::start();
|
||||
$app = new MVC\Classe\Modular($name);
|
||||
$templateData = array('app' => $app);
|
|
@ -1,4 +0,0 @@
|
|||
<?php
|
||||
\MVC\Classe\Session::start();
|
||||
$app = new MVC\Classe\Modular($name);
|
||||
$templateData = array('app' => $app);
|
|
@ -1,29 +0,0 @@
|
|||
<?php
|
||||
\MVC\Classe\Session::start();
|
||||
$app = new MVC\Classe\Modular($name,'wordpress',$url_params);
|
||||
//echo "Dawn Wordpress Error!";
|
||||
/*
|
||||
* Avoid Warning on my version ....
|
||||
*
|
||||
on application/modules/wordpress/wp-admin/menu-header.php:74
|
||||
if(!is_array($menu)){$menu = array();}
|
||||
|
||||
on application/modules/wordpress/wp-admin/includes/plugin.php:2047
|
||||
|
||||
if(isset($_wp_menu_nopriv)) {
|
||||
foreach (array_keys($_wp_submenu_nopriv) as $key) {
|
||||
if (isset($_wp_submenu_nopriv[$key][$pagenow])) {
|
||||
return false;
|
||||
}
|
||||
if (isset($plugin_page) && isset($_wp_submenu_nopriv[$key][$plugin_page])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
*/
|
||||
|
||||
|
||||
//echo $app->load('wordpress'); die();
|
||||
$templateData = array('app' => $app);
|
|
@ -1,4 +0,0 @@
|
|||
name : CGU
|
||||
page_title: Conditions Générale d'Utilisation de l'application
|
||||
description : abracadabla
|
||||
params : params
|
|
@ -1,4 +0,0 @@
|
|||
name : Policy
|
||||
page_title: Politique de Confidentialité de l'application
|
||||
description : abracadabla
|
||||
params : params
|
|
@ -1,5 +0,0 @@
|
|||
name : accueil
|
||||
page_title : Accueil de l'application
|
||||
description : zatou stra bracadabla
|
||||
params : params
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
name : authentification
|
||||
page_title: Hybrid Authentification de l'application
|
||||
description : La page d'authentification
|
||||
params : params
|
4
application/include/modeles/cgu.model
Normal file
4
application/include/modeles/cgu.model
Normal file
|
@ -0,0 +1,4 @@
|
|||
name : cgu
|
||||
page_title: Conditions Générale d'Utilisation de l'application
|
||||
description : abracadabla
|
||||
params : params
|
|
@ -1,4 +0,0 @@
|
|||
name : compte
|
||||
page_title: Compte(s) utilisateurs de l'application
|
||||
description : La page d'accès privé
|
||||
params : params
|
5
application/include/modeles/index.model
Normal file
5
application/include/modeles/index.model
Normal file
|
@ -0,0 +1,5 @@
|
|||
name : index
|
||||
page_title : Accueil de l'application
|
||||
description : zatou stra bracadabla
|
||||
params : params
|
||||
|
4
application/include/modeles/policy.model
Normal file
4
application/include/modeles/policy.model
Normal file
|
@ -0,0 +1,4 @@
|
|||
name : policy
|
||||
page_title: Politique de Confidentialité de l'application
|
||||
description : abracadabla
|
||||
params : params
|
|
@ -1,5 +0,0 @@
|
|||
name : prestashop
|
||||
page_title : Accueil de l'application modulaire
|
||||
description : zatou stra bracadabla
|
||||
params : params
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
name : syf43
|
||||
page_title : Accueil de l'application modulaire
|
||||
description : zatou stra bracadabla
|
||||
params : params
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
name : syf51
|
||||
page_title : Accueil de l'application modulaire
|
||||
description : zatou stra bracadabla
|
||||
params : params
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
name : wordpress
|
||||
page_title : Accueil de l'application modulaire
|
||||
description : zatou stra bracadabla
|
||||
params : params
|
|
@ -1,13 +1,106 @@
|
|||
@extends('system')
|
||||
|
||||
@section('body')
|
||||
<!-- Body Inner -->
|
||||
<div class="body-inner">
|
||||
<!-- Topbar -->
|
||||
<div id="topbar" class="d-none d-xl-block d-lg-block topbar-transparent topbar-fullwidth dark"
|
||||
style="background: rgba(0, 0, 0, 0.59);">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<ul class="top-menu">
|
||||
<li><a href="{{ \MVC\Classe\Url::link_rewrite( false, 'Admin', []) }}">Admin</a></li>
|
||||
<li><a href="{{ \MVC\Classe\Url::link_rewrite( false, 'Create', []) }}">Create</a></li>
|
||||
<li><a href="{{ \MVC\Classe\Url::link_rewrite( false, 'Beers', []) }}">Pricing</a></li>
|
||||
<li><a href="{{ \MVC\Classe\Url::link_rewrite( false, 'Policy', []) }}">Policy</a></li>
|
||||
<li><a href="{{ \MVC\Classe\Url::link_rewrite( false, 'CGU', []) }}"> CGU Terms</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- end: Topbar -->
|
||||
<!-- Header -->
|
||||
<header id="header" class="dark" data-transparent="true" data-fullwidth="true"
|
||||
style="background: rgba(0, 0, 0, 0.59);">
|
||||
<div class="header-inner">
|
||||
<div class="container">
|
||||
<!--Logo-->
|
||||
<div id="logo">
|
||||
<a href="{{ \MVC\Classe\Url::link_rewrite( false, 'accueil', []) }}">
|
||||
<span class="logo-default">Heberges APP</span>
|
||||
<span class="logo-dark">Heberges APP</span>
|
||||
</a>
|
||||
</div>
|
||||
<!--End: Logo-->
|
||||
<!--Navigation Resposnive Trigger-->
|
||||
<div id="mainMenu-trigger">
|
||||
<a class="lines-button x"><span class="lines"></span></a>
|
||||
</div>
|
||||
<!--end: Navigation Resposnive Trigger-->
|
||||
<!--Navigation-->
|
||||
<div id="mainMenu">
|
||||
<div class="container">
|
||||
<nav>
|
||||
<ul>
|
||||
{{--@if (\MVC\Classe\Session::isRegistered())
|
||||
<li>
|
||||
<a href="{{ \MVC\Classe\Url::module_link_rewrite( 'prestashop', ['admin-dev']) }}">E-commerce</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ \MVC\Classe\Url::module_link_rewrite( 'wordpress', ['wp-admin']) }}">Blog</a>
|
||||
</li>
|
||||
<li><a href="{{ \MVC\Classe\Url::module_link_rewrite( 'phplist', ['admin']) }}">Newsletter</a>
|
||||
</li>
|
||||
@else
|
||||
<li><a href="{{ \MVC\Classe\Url::module_link_rewrite( 'prestashop', ['']) }}">E-commerce</a>
|
||||
</li>
|
||||
<li><a href="{{ \MVC\Classe\Url::module_link_rewrite( 'wordpress', ['']) }}">Blog</a>
|
||||
</li>
|
||||
<li><a href="{{ \MVC\Classe\Url::module_link_rewrite( 'phplist', ['']) }}">Newsletter</a>
|
||||
</li>
|
||||
@endif--}}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
<!--end: Navigation-->
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!-- end: Header -->
|
||||
|
||||
@section('sidebar')
|
||||
This is the master sidebar.
|
||||
@show
|
||||
<section id="page-content">
|
||||
<div class="container">
|
||||
@yield('content')
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<div class="container">
|
||||
@yield('content')
|
||||
</div>
|
||||
<!-- Footer -->
|
||||
<footer id="footer">
|
||||
<div class="footer-content">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-lg-5">
|
||||
<div class="widget">
|
||||
<div class="widget-title">SAND Framework</div>
|
||||
<p class="mb-5">Built with love in Besançon, Doubs, France<br>
|
||||
All rights reserved. Copyright © 2020. Info[ARTS]Media</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="copyright-content">
|
||||
<div class="container">
|
||||
<div class="copyright-text text-center">© 2020 SAND Framework - Responsive FrameWork Template.
|
||||
All Rights Reserved.<a href="http://infoartsmedia.fr" target="_blank"> Info[ARTS]Media</a></div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<!-- end: Footer -->
|
||||
|
||||
</div>
|
||||
<!-- end: Body Inner -->
|
||||
@endsection
|
|
@ -2,10 +2,17 @@
|
|||
|
||||
<head>
|
||||
<title>{{$page_title}}</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<meta name="author" content="" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="description" lang="fr" content="{{$description}}"/>
|
||||
|
||||
@section('top-css')
|
||||
@endsection
|
||||
<link rel="stylesheet" href="/assets/css/main.css">
|
||||
<link rel="stylesheet" href="/assets/css/plugins.css">
|
||||
<link rel="stylesheet" href="/assets/css/style.css">
|
||||
@show
|
||||
|
||||
</head>
|
||||
|
||||
|
@ -17,6 +24,11 @@
|
|||
@yield('body')
|
||||
|
||||
@section('bottom-javascript')
|
||||
<script src="/assets/js/script.js" defer="defer"></script>
|
||||
<script src="/assets/js/jquery.js"></script>
|
||||
<script src="/assets/js/plugins.js"></script>
|
||||
<!--Template functions-->
|
||||
<script src="/assets/js/functions.js"></script>
|
||||
@show
|
||||
|
||||
</body>
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
@extends('body')
|
||||
|
||||
@section('sidebar')
|
||||
@parent
|
||||
|
||||
<p>This is appended to the master sidebar.</p>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1>Accueil</h1>
|
||||
<br /><br /><br />
|
||||
<a href="{{ \MVC\Classe\Url::link_rewrite(false, 'authentification', []) }}">S'authentifier ?</a>
|
||||
<hr/>
|
||||
{{$templating_a}}::{{$templating_b}}::{{$templating_c}}
|
||||
|
||||
{{\MVC\Classe\ControlleurAction::inserer('default',[])}}
|
||||
{{\MVC\Classe\ControlleurAction::inserer('default.default',[4,5,6])}}
|
||||
{{\MVC\Classe\ControlleurAction::inserer('default.variableSlug',['var1','var2','var3'])}}
|
||||
|
||||
{{--\MVC\Classe\ControlleurAction::inserer('default.makeHttp11',[])--}}
|
||||
|
||||
@endsection
|
||||
|
|
@ -1,34 +0,0 @@
|
|||
@extends('body')
|
||||
|
||||
@section('sidebar')
|
||||
@parent
|
||||
|
||||
<p>This is appended to the master sidebar.</p>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1>Sign in</h1>
|
||||
|
||||
<ul>
|
||||
@foreach ($hybridauth->getProviders() as $name)
|
||||
@if (!isset($adapters[$name]))
|
||||
<li>
|
||||
<a href="#" onclick="javascript:auth_popup('{{ $name }}');">
|
||||
Sign in with {{ $name }}
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
@endforeach
|
||||
</ul>
|
||||
@endsection
|
||||
|
||||
@section('top-javascript')
|
||||
<script>
|
||||
function auth_popup(provider) {
|
||||
// replace 'path/to/hybridauth' with the real path to this script
|
||||
var authWindow = window.open('{{ \MVC\Classe\Url::link_rewrite(true, 'authentification-callback-example', []) }}/provider/' + provider, 'authWindow', 'width=600,height=400,scrollbars=yes');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
@endsection
|
||||
|
15
application/include/vues/view/cgu.blade.php
Normal file
15
application/include/vues/view/cgu.blade.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
@extends('body')
|
||||
|
||||
@section('sidebar')
|
||||
@parent
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<h1>Conditions Générale de l'application:</h1>
|
||||
|
||||
<p>1. Cette application est en phase de test et n'est qu'un test.</p><br/>
|
||||
<p>2. Si cela est autre chose se référer au point 1.</p><br/>
|
||||
<p>3. Cette application permet le developpement d'un frame-work propre dont la documentation sera écrite en MarkDown et publié par un moteur interne à l'application</p><br/>
|
||||
</div>
|
||||
@endsection
|
|
@ -1,33 +0,0 @@
|
|||
@extends('body')
|
||||
|
||||
@section('sidebar')
|
||||
@parent
|
||||
|
||||
<p>This is appended to the master sidebar.</p>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
|
||||
<h1>Compte utilisateur</h1>
|
||||
|
||||
@foreach ($extractedData as $key => $value)
|
||||
{{ $key }} :: {{ $value }}
|
||||
@endforeach
|
||||
|
||||
@if ($adapters)
|
||||
<h1>You are logged in:</h1>
|
||||
<ul>
|
||||
@foreach ($adapters as $name => $adapter)
|
||||
<li>
|
||||
<strong>{{$adapter->getUserProfile()->displayName }}</strong> from
|
||||
<i>{{ $name }}</i>
|
||||
<span>(<a href="{{ \MVC\Classe\Url::link_rewrite( true, 'authentification-callback-example', ['logout'=>$name ]) }}"
|
||||
; ?>">Log Out</a>)</span>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
|
||||
@endsection
|
||||
|
21
application/include/vues/view/index.blade.php
Normal file
21
application/include/vues/view/index.blade.php
Normal file
|
@ -0,0 +1,21 @@
|
|||
@extends('body')
|
||||
|
||||
@section('sidebar')
|
||||
@parent
|
||||
|
||||
<p>This is appended to the master sidebar.</p>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<h1>Accueil</h1>
|
||||
<br /><br /><br />
|
||||
<a href="{{ \MVC\Classe\Url::link_rewrite(false, 'authentification', []) }}">S'authentifier ?</a>
|
||||
<hr/>
|
||||
{{$templating_a}}::{{$templating_b}}::{{$templating_c}}
|
||||
|
||||
{{\MVC\Classe\ControlleurAction::inserer('default',[])}}
|
||||
{{\MVC\Classe\ControlleurAction::inserer('default.default',[4,5,6])}}
|
||||
{{\MVC\Classe\ControlleurAction::inserer('default.variableSlug',['var1','var2','var3'])}}
|
||||
|
||||
@endsection
|
||||
|
17
application/include/vues/view/policy.blade.php
Normal file
17
application/include/vues/view/policy.blade.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
@extends('body')
|
||||
|
||||
@section('sidebar')
|
||||
@parent
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="container">
|
||||
<h1>Politique Générale de Sécurité</h1>
|
||||
|
||||
<p>1. Ce FrameWork est le fruit d'un travail personnel.</p><br/>
|
||||
<p>2. Ce Framework est le fruit du travail aboutit de plusieurs personnes</p><br/>
|
||||
<p>3. Ce Framework sera open-source sous licence CC Universal.</p><br/><br/>
|
||||
|
||||
<p>Si cela ne vous plait pas veuillez envoyer un courriel à emmanuel.roy@infoartsmedia.fr et nous en parlerons le plus calmement possible.</p>
|
||||
</div>
|
||||
@endsection
|
|
@ -1 +0,0 @@
|
|||
{{$app->load('prestashop')}}
|
|
@ -1 +0,0 @@
|
|||
{{$app->load();}}
|
|
@ -1 +0,0 @@
|
|||
{{$app->load();}}
|
|
@ -1 +0,0 @@
|
|||
{{$app->load('wordpress')}}
|
2
application/logs/.gitignore
vendored
Normal file
2
application/logs/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*
|
||||
!.gitignore
|
|
@ -1,145 +0,0 @@
|
|||
192.168.1.254 - - [05/Dec/2019:15:29:46 +0100] "GET / HTTP/1.1" 200 1643 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:29:46 +0100] "GET /favicon.ico HTTP/1.1" 200 1450 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:29:56 +0100] "GET /foo HTTP/1.1" 500 836 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:30:04 +0100] "GET /acceuil HTTP/1.1" 500 836 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:30:13 +0100] "GET / HTTP/1.1" 200 1644 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:31:12 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 500 836 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:15:31:12 +0100] "GET / HTTP/1.1" 200 1856 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:32:32 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 500 836 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:15:32:32 +0100] "GET / HTTP/1.1" 200 551 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:37:18 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 500 836 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:15:37:18 +0100] "GET / HTTP/1.1" 200 551 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:37:22 +0100] "GET /foo HTTP/1.1" 500 836 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:37:30 +0100] "GET /foo/15 HTTP/1.1" 500 836 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:41:12 +0100] "GET /foo/15 HTTP/1.1" 500 836 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:41:14 +0100] "GET /foo HTTP/1.1" 500 836 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:41:20 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 500 836 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:15:41:20 +0100] "GET / HTTP/1.1" 200 551 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:44:57 +0100] "GET /foo HTTP/1.1" 200 207 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:54:18 +0100] "GET /foo HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:54:18 +0100] "GET /acceuil HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:15:54:28 +0100] "GET /foo HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1450 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1450 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1450 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1450 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1450 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1450 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1450 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1450 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1450 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "GET /foo HTTP/1.1" 200 1126 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "GET /index.fphp HTTP/1.1" 200 1105 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "GET / HTTP/1.1" 200 1080 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:00:56 +0100] "GET /index.php HTTP/1.1" 200 1082 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:01:25 +0100] "GET /index.php HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:05:28 +0100] "GET /index.php HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:05:29 +0100] "GET /index.php HTTP/1.1" 200 360 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:05:30 +0100] "GET /index.php HTTP/1.1" 200 360 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:05:39 +0100] "GET /foo HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:07:19 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1430 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:07:19 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 1429 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:16:07:19 +0100] "GET /foo HTTP/1.1" 200 1117 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:07:19 +0100] "GET /compte HTTP/1.1" 200 1098 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:07:19 +0100] "GET /foo HTTP/1.1" 200 1115 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:07:19 +0100] "GET /index.php HTTP/1.1" 200 1074 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:07:25 +0100] "GET /foo HTTP/1.1" 200 1116 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:08:42 +0100] "GET /foo HTTP/1.1" 200 1187 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:09:18 +0100] "GET /foo HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:09:33 +0100] "GET /foo HTTP/1.1" 200 1196 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:10:02 +0100] "GET /foo HTTP/1.1" 200 436 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:10:13 +0100] "GET /foo HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:12:43 +0100] "GET /css/ HTTP/1.1" 200 720 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:12:43 +0100] "GET /index.php HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:12:43 +0100] "GET /icons/blank.gif HTTP/1.1" 200 431 "http://www.sand-framework.infoartsmedia.org/css/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:12:45 +0100] "GET /icons/text.gif HTTP/1.1" 200 513 "http://www.sand-framework.infoartsmedia.org/css/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:12:45 +0100] "GET /icons/back.gif HTTP/1.1" 200 500 "http://www.sand-framework.infoartsmedia.org/css/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:13:32 +0100] "GET /css/ HTTP/1.1" 200 720 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:13:32 +0100] "GET /icons/blank.gif HTTP/1.1" 304 179 "http://www.sand-framework.infoartsmedia.org/css/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:13:32 +0100] "GET /icons/text.gif HTTP/1.1" 304 179 "http://www.sand-framework.infoartsmedia.org/css/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:16:13:34 +0100] "GET /icons/back.gif HTTP/1.1" 304 180 "http://www.sand-framework.infoartsmedia.org/css/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:17:46:25 +0100] "GET /robots.txt HTTP/1.1" 200 433 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:51:41 +0100] "GET /robots.txt HTTP/1.1" 200 433 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:51:41 +0100] "GET / HTTP/1.1" 200 551 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:51:41 +0100] "GET /index.php HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:51:43 +0100] "GET /index.php HTTP/1.1" 200 360 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:51:43 +0100] "GET /favicon.ico HTTP/1.1" 200 1450 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:51:47 +0100] "GET / HTTP/1.1" 200 550 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:52:28 +0100] "GET /foo HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:52:28 +0100] "GET /css HTTP/1.1" 301 592 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:52:28 +0100] "GET /acceuil HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:52:30 +0100] "GET / HTTP/1.1" 200 551 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:52:35 +0100] "GET /css HTTP/1.1" 301 591 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:52:35 +0100] "GET /css/ HTTP/1.1" 200 707 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:52:35 +0100] "GET /icons/blank.gif HTTP/1.1" 200 431 "http://local.sandframework/css/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:57:41 +0100] "GET /icons/back.gif HTTP/1.1" 200 500 "http://local.sandframework/css/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:57:41 +0100] "GET /icons/text.gif HTTP/1.1" 200 513 "http://local.sandframework/css/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:57:41 +0100] "GET /js/ HTTP/1.1" 200 707 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:57:41 +0100] "GET / HTTP/1.1" 200 1528 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:57:41 +0100] "GET /authentification HTTP/1.1" 200 937 "http://local.sandframework/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:17:59:44 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 4817 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:17:59:44 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 4817 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:17:59:44 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 5322 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:17:59:44 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 5322 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:17:59:44 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 5322 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:17:59:44 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 5322 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:17:59:44 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 5322 "-" "-"
|
||||
192.168.1.254 - - [05/Dec/2019:17:59:44 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 5322 "-" "-"
|
||||
192.168.1.156 - - [05/Dec/2019:17:59:44 +0100] "GET / HTTP/1.1" 200 551 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:17:59:44 +0100] "PUT /accueil/var10/val10 HTTP/1.1" 200 5322 "-" "-"
|
||||
192.168.1.156 - - [05/Dec/2019:17:59:46 +0100] "GET / HTTP/1.1" 200 550 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:59:47 +0100] "GET / HTTP/1.1" 200 550 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:59:47 +0100] "GET / HTTP/1.1" 200 550 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:59:48 +0100] "GET / HTTP/1.1" 200 550 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:59:52 +0100] "GET /authentification HTTP/1.1" 200 936 "http://local.sandframework/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:17:59:57 +0100] "GET /authentification HTTP/1.1" 200 879 "http://local.sandframework/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:00:00 +0100] "GET /authentification HTTP/1.1" 200 878 "http://local.sandframework/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:00:01 +0100] "GET /control/authentification-callback-example/provider/GitHub HTTP/1.1" 302 537 "http://local.sandframework/authentification" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:00:09 +0100] "GET /foo HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:00:41 +0100] "GET /foo HTTP/1.1" 200 203 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:01:29 +0100] "GET /foo HTTP/1.1" 200 203 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:02:13 +0100] "GET /foo HTTP/1.1" 200 215 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:02:32 +0100] "GET /foo HTTP/1.1" 200 215 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:04:32 +0100] "GET /foo HTTP/1.1" 200 231 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:05:02 +0100] "GET /foo HTTP/1.1" 200 215 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:05:47 +0100] "GET /foo HTTP/1.1" 200 215 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:05:47 +0100] "GET /foo HTTP/1.1" 200 214 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:05:48 +0100] "GET /foo HTTP/1.1" 200 214 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:05:48 +0100] "GET /foo HTTP/1.1" 200 214 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:05:52 +0100] "GET /foo/15 HTTP/1.1" 200 202 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:06:45 +0100] "GET /foo HTTP/1.1" 200 215 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:07:14 +0100] "GET /foo HTTP/1.1" 200 331 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:09:13 +0100] "GET /foo HTTP/1.1" 200 253 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:09:42 +0100] "GET /foo HTTP/1.1" 200 248 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:10:17 +0100] "GET /foo HTTP/1.1" 200 258 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:10:49 +0100] "GET /foo HTTP/1.1" 200 441 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:10:59 +0100] "GET /foo HTTP/1.1" 200 270 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:11:53 +0100] "GET /foo HTTP/1.1" 200 248 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:12:13 +0100] "GET /foo HTTP/1.1" 200 231 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:14:56 +0100] "GET /foo HTTP/1.1" 200 215 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:16:30 +0100] "GET /foo/15 HTTP/1.1" 200 203 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:16:37 +0100] "GET /foo HTTP/1.1" 200 215 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:17:29 +0100] "GET /foo/15 HTTP/1.1" 200 215 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:17:48 +0100] "GET /foo/15 HTTP/1.1" 200 381 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:18:27 +0100] "GET /foo/15 HTTP/1.1" 200 381 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:18:30 +0100] "GET /foo/ HTTP/1.1" 200 360 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:18:32 +0100] "GET /foo HTTP/1.1" 200 1279 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:22:26 +0100] "GET /foo HTTP/1.1" 200 389 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:22:31 +0100] "GET /foo/15 HTTP/1.1" 200 385 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:18:22:52 +0100] "GET / HTTP/1.1" 200 551 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:18:22:52 +0100] "GET /favicon.ico HTTP/1.1" 200 1450 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:18:22:56 +0100] "GET /foo HTTP/1.1" 200 389 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:18:22:59 +0100] "GET / HTTP/1.1" 200 550 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:18:23:01 +0100] "GET /authentification HTTP/1.1" 200 936 "http://www.sand-framework.infoartsmedia.org/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:18:23:05 +0100] "GET /control/authentification-callback-example/provider/GitHub HTTP/1.1" 302 537 "http://www.sand-framework.infoartsmedia.org/authentification" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:18:23:11 +0100] "GET /control/authentification-callback-example/provider/Google HTTP/1.1" 302 714 "http://www.sand-framework.infoartsmedia.org/authentification" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:18:23:14 +0100] "GET /control/authentification-callback-example/provider/Facebook HTTP/1.1" 302 540 "http://www.sand-framework.infoartsmedia.org/authentification" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [05/Dec/2019:18:23:20 +0100] "GET /control/authentification-callback-example/provider/Twitter HTTP/1.1" 200 506 "http://www.sand-framework.infoartsmedia.org/authentification" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:33:21 +0100] "GET / HTTP/1.1" 200 552 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:33:26 +0100] "GET /foo/ HTTP/1.1" 200 361 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:33:29 +0100] "GET /foo HTTP/1.1" 200 470 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.156 - - [05/Dec/2019:18:33:35 +0100] "GET /foo/15 HTTP/1.1" 200 468 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0"
|
||||
192.168.1.254 - - [06/Dec/2019:13:33:27 +0100] "GET / HTTP/1.1" 200 552 "-" "PhpStorm/192.6262.66"
|
||||
192.168.1.156 - - [06/Dec/2019:13:42:33 +0100] "GET / HTTP/1.1" 200 552 "-" "PhpStorm/192.6262.66"
|
||||
192.168.1.156 - - [06/Dec/2019:13:53:25 +0100] "GET / HTTP/1.1" 200 552 "-" "PhpStorm/192.6262.66"
|
||||
192.168.1.254 - - [06/Dec/2019:13:53:45 +0100] "GET / HTTP/1.1" 200 552 "-" "PhpStorm/192.6262.66"
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1 +0,0 @@
|
|||
Subproject commit d3bbb96d8f9dd507c7b9bd309c04cf451ba39476
|
|
@ -1,4 +1,6 @@
|
|||
syf43 : Application permettant de tester l'intégration d'un module avec symfony4.3
|
||||
syf51 : Application permettant de tester l'intégration d'un module avec symfony5.0.99
|
||||
symfony : Application permettant de tester l'intégration d'un module avec symfony5.1
|
||||
wordpress : Application permettant de générer un blog wordpress
|
||||
prestashop : Application permettant de générer une site e-commerce prestashop
|
||||
prestashop : Application permettant de générer une site e-commerce prestashop
|
||||
phplist : Application permettant de générer une newsletter phplist
|
||||
wanewsletter : Application permettant de générer une newsletter wanewsletter
|
||||
phpmynewsletter : Application permettant de générer une newsletter phpmynewsletter
|
|
@ -1,21 +0,0 @@
|
|||
# In all environments, the following files are loaded if they exist,
|
||||
# the later taking precedence over the former:
|
||||
#
|
||||
# * .env contains default values for the environment variables needed by the app
|
||||
# * .env.local uncommitted file with local overrides
|
||||
# * .env.$APP_ENV committed environment-specific defaults
|
||||
# * .env.$APP_ENV.local uncommitted environment-specific overrides
|
||||
#
|
||||
# Real environment variables win over .env files.
|
||||
#
|
||||
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
|
||||
#
|
||||
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
|
||||
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
|
||||
|
||||
###> symfony/framework-bundle ###
|
||||
APP_ENV=dev
|
||||
APP_SECRET=6ab23352cfe81f9461b564151e956863
|
||||
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
|
||||
#TRUSTED_HOSTS='^localhost|example\.com$'
|
||||
###< symfony/framework-bundle ###
|
9
application/modules/syf43/.gitignore
vendored
9
application/modules/syf43/.gitignore
vendored
|
@ -1,9 +0,0 @@
|
|||
|
||||
###> symfony/framework-bundle ###
|
||||
/.env.local
|
||||
/.env.local.php
|
||||
/.env.*.local
|
||||
/public/bundles/
|
||||
/var/
|
||||
/vendor/
|
||||
###< symfony/framework-bundle ###
|
|
@ -1,42 +0,0 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use App\Kernel;
|
||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||
use Symfony\Component\Console\Input\ArgvInput;
|
||||
use Symfony\Component\Debug\Debug;
|
||||
|
||||
if (false === in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
|
||||
echo 'Warning: The console should be invoked via the CLI version of PHP, not the '.\PHP_SAPI.' SAPI'.\PHP_EOL;
|
||||
}
|
||||
|
||||
set_time_limit(0);
|
||||
|
||||
require dirname(__DIR__).'/vendor/autoload.php';
|
||||
|
||||
if (!class_exists(Application::class)) {
|
||||
throw new RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.');
|
||||
}
|
||||
|
||||
$input = new ArgvInput();
|
||||
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
|
||||
putenv('APP_ENV='.$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
|
||||
}
|
||||
|
||||
if ($input->hasParameterOption('--no-debug', true)) {
|
||||
putenv('APP_DEBUG='.$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
|
||||
}
|
||||
|
||||
require dirname(__DIR__).'/config/bootstrap.php';
|
||||
|
||||
if ($_SERVER['APP_DEBUG']) {
|
||||
umask(0000);
|
||||
|
||||
if (class_exists(Debug::class)) {
|
||||
Debug::enable();
|
||||
}
|
||||
}
|
||||
|
||||
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
|
||||
$application = new Application($kernel);
|
||||
$application->run($input);
|
|
@ -1,63 +0,0 @@
|
|||
{
|
||||
"type": "project",
|
||||
"license": "proprietary",
|
||||
"require": {
|
||||
"php": "^7.1.3",
|
||||
"ext-ctype": "*",
|
||||
"ext-iconv": "*",
|
||||
"sensio/framework-extra-bundle": "^5.4",
|
||||
"symfony/console": "4.3.*",
|
||||
"symfony/dotenv": "4.3.*",
|
||||
"symfony/flex": "^1.3.1",
|
||||
"symfony/framework-bundle": "4.3.*",
|
||||
"symfony/twig-bundle": "4.3.*",
|
||||
"symfony/yaml": "4.3.*"
|
||||
},
|
||||
"require-dev": {
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": {
|
||||
"*": "dist"
|
||||
},
|
||||
"sort-packages": true
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "src/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"App\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"replace": {
|
||||
"paragonie/random_compat": "2.*",
|
||||
"symfony/polyfill-ctype": "*",
|
||||
"symfony/polyfill-iconv": "*",
|
||||
"symfony/polyfill-php71": "*",
|
||||
"symfony/polyfill-php70": "*",
|
||||
"symfony/polyfill-php56": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"auto-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"post-install-cmd": [
|
||||
"@auto-scripts"
|
||||
],
|
||||
"post-update-cmd": [
|
||||
"@auto-scripts"
|
||||
]
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/symfony": "*"
|
||||
},
|
||||
"extra": {
|
||||
"symfony": {
|
||||
"allow-contrib": false,
|
||||
"require": "4.3.*"
|
||||
}
|
||||
}
|
||||
}
|
2227
application/modules/syf43/composer.lock
generated
2227
application/modules/syf43/composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Symfony\Component\Dotenv\Dotenv;
|
||||
|
||||
require dirname(__DIR__).'/vendor/autoload.php';
|
||||
|
||||
// Load cached env vars if the .env.local.php file exists
|
||||
// Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
|
||||
if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {
|
||||
foreach ($env as $k => $v) {
|
||||
$_ENV[$k] = $_ENV[$k] ?? (isset($_SERVER[$k]) && 0 !== strpos($k, 'HTTP_') ? $_SERVER[$k] : $v);
|
||||
}
|
||||
} elseif (!class_exists(Dotenv::class)) {
|
||||
throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
|
||||
} else {
|
||||
// load all the .env files
|
||||
(new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');
|
||||
}
|
||||
|
||||
$_SERVER += $_ENV;
|
||||
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
|
||||
$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];
|
||||
$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';
|
|
@ -1,7 +0,0 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
||||
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
|
||||
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
|
||||
];
|
|
@ -1,19 +0,0 @@
|
|||
framework:
|
||||
cache:
|
||||
# Put the unique name of your app here: the prefix seed
|
||||
# is used to compute stable namespaces for cache keys.
|
||||
#prefix_seed: your_vendor_name/app_name
|
||||
|
||||
# The app cache caches to the filesystem by default.
|
||||
# Other options include:
|
||||
|
||||
# Redis
|
||||
#app: cache.adapter.redis
|
||||
#default_redis_provider: redis://localhost
|
||||
|
||||
# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
|
||||
#app: cache.adapter.apcu
|
||||
|
||||
# Namespaced pools use the above "app" backend by default
|
||||
#pools:
|
||||
#my.dedicated.cache: null
|
|
@ -1,3 +0,0 @@
|
|||
framework:
|
||||
router:
|
||||
strict_requirements: true
|
|
@ -1,16 +0,0 @@
|
|||
framework:
|
||||
secret: '%env(APP_SECRET)%'
|
||||
#csrf_protection: true
|
||||
#http_method_override: true
|
||||
|
||||
# Enables session support. Note that the session will ONLY be started if you read or write from it.
|
||||
# Remove or comment this section to explicitly disable session support.
|
||||
session:
|
||||
handler_id: null
|
||||
cookie_secure: auto
|
||||
cookie_samesite: lax
|
||||
|
||||
#esi: true
|
||||
#fragments: true
|
||||
php_errors:
|
||||
log: true
|
|
@ -1,4 +0,0 @@
|
|||
framework:
|
||||
router:
|
||||
strict_requirements: null
|
||||
utf8: true
|
|
@ -1,3 +0,0 @@
|
|||
framework:
|
||||
router:
|
||||
strict_requirements: true
|
|
@ -1,4 +0,0 @@
|
|||
twig:
|
||||
default_path: '%kernel.project_dir%/templates'
|
||||
debug: '%kernel.debug%'
|
||||
strict_variables: '%kernel.debug%'
|
|
@ -1,3 +0,0 @@
|
|||
controllers:
|
||||
resource: ../../src/Controller/
|
||||
type: annotation
|
|
@ -1,3 +0,0 @@
|
|||
_errors:
|
||||
resource: '@TwigBundle/Resources/config/routing/errors.xml'
|
||||
prefix: /_error
|
|
@ -1,27 +0,0 @@
|
|||
# This file is the entry point to configure your own services.
|
||||
# Files in the packages/ subdirectory configure your dependencies.
|
||||
|
||||
# Put parameters here that don't need to change on each machine where the app is deployed
|
||||
# https://symfony.com/doc/current/best_practices/configuration.html#application-related-configuration
|
||||
parameters:
|
||||
|
||||
services:
|
||||
# default configuration for services in *this* file
|
||||
_defaults:
|
||||
autowire: true # Automatically injects dependencies in your services.
|
||||
autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
|
||||
|
||||
# makes classes in src/ available to be used as services
|
||||
# this creates a service per class whose id is the fully-qualified class name
|
||||
App\:
|
||||
resource: '../src/*'
|
||||
exclude: '../src/{DependencyInjection,Entity,Migrations,Tests,Kernel.php}'
|
||||
|
||||
# controllers are imported separately to make sure services can be injected
|
||||
# as action arguments even if you don't extend any base controller class
|
||||
App\Controller\:
|
||||
resource: '../src/Controller'
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
# add more service definitions when explicit configuration is needed
|
||||
# please note that last definitions always *replace* previous ones
|
|
@ -1,27 +0,0 @@
|
|||
<?php
|
||||
|
||||
use App\Kernel;
|
||||
use Symfony\Component\Debug\Debug;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
|
||||
require dirname(__DIR__).'/config/bootstrap.php';
|
||||
|
||||
if ($_SERVER['APP_DEBUG']) {
|
||||
umask(0000);
|
||||
|
||||
Debug::enable();
|
||||
}
|
||||
|
||||
if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? $_ENV['TRUSTED_PROXIES'] ?? false) {
|
||||
Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_ALL ^ Request::HEADER_X_FORWARDED_HOST);
|
||||
}
|
||||
|
||||
if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? $_ENV['TRUSTED_HOSTS'] ?? false) {
|
||||
Request::setTrustedHosts([$trustedHosts]);
|
||||
}
|
||||
|
||||
$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
|
||||
$request = Request::createFromGlobals();
|
||||
$response = $kernel->handle($request);
|
||||
$response->send();
|
||||
$kernel->terminate($request, $response);
|
|
@ -1,44 +0,0 @@
|
|||
<?php
|
||||
namespace App\Controller;
|
||||
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
class DefaultController extends Controller
|
||||
{
|
||||
/**
|
||||
* @Route("/syf43", name="homepage")
|
||||
*/
|
||||
public function indexAction(Request $request)
|
||||
{
|
||||
print_r("<pre>");
|
||||
print_r($this->get('session'));
|
||||
print_r($_COOKIE);
|
||||
print_r($_SESSION);
|
||||
$_SESSION['test-user43'] = "user43";
|
||||
// replace this example code with whatever you need
|
||||
return $this->render('default/page.html.twig', [
|
||||
'text' => 'homepage',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Route("/syf43/page1", name="page1")
|
||||
*/
|
||||
public function page1Action(Request $request)
|
||||
{
|
||||
// replace this example code with whatever you need
|
||||
return $this->render('default/page.html.twig', [
|
||||
'text' => 'page1',
|
||||
]);
|
||||
}
|
||||
/**
|
||||
* @Route("/syf43/page2", name="page2")
|
||||
*/
|
||||
public function page2Action(Request $request)
|
||||
{
|
||||
// replace this example code with whatever you need
|
||||
return $this->render('default/page.html.twig', [
|
||||
'text' => 'page2',
|
||||
]);
|
||||
}
|
||||
}
|
|
@ -1,53 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
|
||||
use Symfony\Component\Config\Loader\LoaderInterface;
|
||||
use Symfony\Component\Config\Resource\FileResource;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
|
||||
use Symfony\Component\Routing\RouteCollectionBuilder;
|
||||
|
||||
class Kernel extends BaseKernel
|
||||
{
|
||||
use MicroKernelTrait;
|
||||
|
||||
private const CONFIG_EXTS = '.{php,xml,yaml,yml}';
|
||||
|
||||
public function registerBundles(): iterable
|
||||
{
|
||||
$contents = require $this->getProjectDir().'/config/bundles.php';
|
||||
foreach ($contents as $class => $envs) {
|
||||
if ($envs[$this->environment] ?? $envs['all'] ?? false) {
|
||||
yield new $class();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function getProjectDir(): string
|
||||
{
|
||||
return \dirname(__DIR__);
|
||||
}
|
||||
|
||||
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
|
||||
{
|
||||
$container->addResource(new FileResource($this->getProjectDir().'/config/bundles.php'));
|
||||
$container->setParameter('container.dumper.inline_class_loader', true);
|
||||
$confDir = $this->getProjectDir().'/config';
|
||||
|
||||
$loader->load($confDir.'/{packages}/*'.self::CONFIG_EXTS, 'glob');
|
||||
$loader->load($confDir.'/{packages}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob');
|
||||
$loader->load($confDir.'/{services}'.self::CONFIG_EXTS, 'glob');
|
||||
$loader->load($confDir.'/{services}_'.$this->environment.self::CONFIG_EXTS, 'glob');
|
||||
}
|
||||
|
||||
protected function configureRoutes(RouteCollectionBuilder $routes): void
|
||||
{
|
||||
$confDir = $this->getProjectDir().'/config';
|
||||
|
||||
$routes->import($confDir.'/{routes}/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob');
|
||||
$routes->import($confDir.'/{routes}/*'.self::CONFIG_EXTS, '/', 'glob');
|
||||
$routes->import($confDir.'/{routes}'.self::CONFIG_EXTS, '/', 'glob');
|
||||
}
|
||||
}
|
|
@ -1,195 +0,0 @@
|
|||
{
|
||||
"doctrine/annotations": {
|
||||
"version": "1.0",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "1.0",
|
||||
"ref": "cb4152ebcadbe620ea2261da1a1c5a9b8cea7672"
|
||||
},
|
||||
"files": [
|
||||
"./config/routes/annotations.yaml"
|
||||
]
|
||||
},
|
||||
"doctrine/cache": {
|
||||
"version": "v1.8.0"
|
||||
},
|
||||
"doctrine/collections": {
|
||||
"version": "v1.6.2"
|
||||
},
|
||||
"doctrine/event-manager": {
|
||||
"version": "v1.0.0"
|
||||
},
|
||||
"doctrine/lexer": {
|
||||
"version": "1.1.0"
|
||||
},
|
||||
"doctrine/persistence": {
|
||||
"version": "1.1.1"
|
||||
},
|
||||
"doctrine/reflection": {
|
||||
"version": "v1.0.0"
|
||||
},
|
||||
"psr/cache": {
|
||||
"version": "1.0.1"
|
||||
},
|
||||
"psr/container": {
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"psr/log": {
|
||||
"version": "1.1.0"
|
||||
},
|
||||
"sensio/framework-extra-bundle": {
|
||||
"version": "5.2",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "5.2",
|
||||
"ref": "fb7e19da7f013d0d422fa9bce16f5c510e27609b"
|
||||
},
|
||||
"files": [
|
||||
"./config/packages/sensio_framework_extra.yaml"
|
||||
]
|
||||
},
|
||||
"symfony/cache": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/cache-contracts": {
|
||||
"version": "v1.1.5"
|
||||
},
|
||||
"symfony/config": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/console": {
|
||||
"version": "3.3",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "3.3",
|
||||
"ref": "482d233eb8de91ebd042992077bbd5838858890c"
|
||||
},
|
||||
"files": [
|
||||
"./bin/console",
|
||||
"./config/bootstrap.php"
|
||||
]
|
||||
},
|
||||
"symfony/debug": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/dependency-injection": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/dotenv": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/event-dispatcher": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/event-dispatcher-contracts": {
|
||||
"version": "v1.1.5"
|
||||
},
|
||||
"symfony/filesystem": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/finder": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/flex": {
|
||||
"version": "1.0",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "1.0",
|
||||
"ref": "dc3fc2e0334a4137c47cfd5a3ececc601fa61a0b"
|
||||
},
|
||||
"files": [
|
||||
"./.env"
|
||||
]
|
||||
},
|
||||
"symfony/framework-bundle": {
|
||||
"version": "4.2",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "4.2",
|
||||
"ref": "61ad963f28c091b8bb9449507654b9c7d8bbb53c"
|
||||
},
|
||||
"files": [
|
||||
"./config/bootstrap.php",
|
||||
"./config/packages/cache.yaml",
|
||||
"./config/packages/framework.yaml",
|
||||
"./config/packages/test/framework.yaml",
|
||||
"./config/services.yaml",
|
||||
"./public/index.php",
|
||||
"./src/Controller/.gitignore",
|
||||
"./src/Kernel.php"
|
||||
]
|
||||
},
|
||||
"symfony/http-foundation": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/http-kernel": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/mime": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/polyfill-intl-idn": {
|
||||
"version": "v1.12.0"
|
||||
},
|
||||
"symfony/polyfill-mbstring": {
|
||||
"version": "v1.12.0"
|
||||
},
|
||||
"symfony/polyfill-php72": {
|
||||
"version": "v1.12.0"
|
||||
},
|
||||
"symfony/polyfill-php73": {
|
||||
"version": "v1.12.0"
|
||||
},
|
||||
"symfony/routing": {
|
||||
"version": "4.2",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "4.2",
|
||||
"ref": "4c107a8d23a16b997178fbd4103b8d2f54f688b7"
|
||||
},
|
||||
"files": [
|
||||
"./config/packages/dev/routing.yaml",
|
||||
"./config/packages/routing.yaml",
|
||||
"./config/packages/test/routing.yaml",
|
||||
"./config/routes.yaml"
|
||||
]
|
||||
},
|
||||
"symfony/service-contracts": {
|
||||
"version": "v1.1.5"
|
||||
},
|
||||
"symfony/translation-contracts": {
|
||||
"version": "v1.1.5"
|
||||
},
|
||||
"symfony/twig-bridge": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/twig-bundle": {
|
||||
"version": "3.3",
|
||||
"recipe": {
|
||||
"repo": "github.com/symfony/recipes",
|
||||
"branch": "master",
|
||||
"version": "3.3",
|
||||
"ref": "369b5b29dc52b2c190002825ae7ec24ab6f962dd"
|
||||
},
|
||||
"files": [
|
||||
"./config/packages/twig.yaml",
|
||||
"./config/routes/dev/twig.yaml",
|
||||
"./templates/base.html.twig"
|
||||
]
|
||||
},
|
||||
"symfony/var-exporter": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"symfony/yaml": {
|
||||
"version": "v4.3.3"
|
||||
},
|
||||
"twig/twig": {
|
||||
"version": "v2.11.3"
|
||||
}
|
||||
}
|
|
@ -1,74 +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="https://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 %}
|
|
@ -1,48 +0,0 @@
|
|||
<link rel="stylesheet" href="./../../dist/themes/default/style.min.css"/>
|
||||
<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:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="next">
|
||||
<h2>What's next?</h2>
|
||||
<p>{{ text }}</p>
|
||||
|
||||
|
||||
<a href='{{ url('page1') }}'>tab one</a>
|
||||
<br />
|
||||
<a href='{{ url('page2')}}'>tab two</a>
|
||||
<br/>
|
||||
<a href='/syf51/page1'>upgrade to symfony51</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
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>
|
|
@ -1,33 +0,0 @@
|
|||
# In all environments, the following files are loaded if they exist,
|
||||
# the latter taking precedence over the former:
|
||||
#
|
||||
# * .env contains default values for the environment variables needed by the app
|
||||
# * .env.local uncommitted file with local overrides
|
||||
# * .env.$APP_ENV committed environment-specific defaults
|
||||
# * .env.$APP_ENV.local uncommitted environment-specific overrides
|
||||
#
|
||||
# Real environment variables win over .env files.
|
||||
#
|
||||
# DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
|
||||
#
|
||||
# Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
|
||||
# https://symfony.com/doc/current/best_practices/configuration.html#infrastructure-related-configuration
|
||||
|
||||
###> symfony/framework-bundle ###
|
||||
APP_ENV=dev
|
||||
APP_SECRET=285d92280f430d7ddb1a1e478bc37c1f
|
||||
#TRUSTED_PROXIES=127.0.0.0/8,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16
|
||||
#TRUSTED_HOSTS='^localhost|example\.com$'
|
||||
###< symfony/framework-bundle ###
|
||||
|
||||
###> symfony/mailer ###
|
||||
# MAILER_DSN=smtp://localhost
|
||||
###< symfony/mailer ###
|
||||
|
||||
###> doctrine/doctrine-bundle ###
|
||||
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
|
||||
# For an SQLite database, use: "sqlite:///%kernel.project_dir%/var/data.db"
|
||||
# For a PostgreSQL database, use: "postgresql://db_user:db_password@127.0.0.1:5432/db_name?serverVersion=11"
|
||||
# IMPORTANT: You MUST configure your db driver and server version, either here or in config/packages/doctrine.yaml
|
||||
DATABASE_URL=mysql://db_user:db_password@127.0.0.1:3306/db_name?serverVersion=5.7
|
||||
###< doctrine/doctrine-bundle ###
|
|
@ -1,5 +0,0 @@
|
|||
# define your env variables for the test env here
|
||||
KERNEL_CLASS='App\Kernel'
|
||||
APP_SECRET='$ecretf0rt3st'
|
||||
SYMFONY_DEPRECATIONS_HELPER=999999
|
||||
PANTHER_APP_ENV=panther
|
15
application/modules/syf51/.gitignore
vendored
15
application/modules/syf51/.gitignore
vendored
|
@ -1,15 +0,0 @@
|
|||
|
||||
###> symfony/framework-bundle ###
|
||||
/.env.local
|
||||
/.env.local.php
|
||||
/.env.*.local
|
||||
/public/bundles/
|
||||
/var/
|
||||
/vendor/
|
||||
###< symfony/framework-bundle ###
|
||||
|
||||
###> symfony/phpunit-bridge ###
|
||||
.phpunit
|
||||
.phpunit.result.cache
|
||||
/phpunit.xml
|
||||
###< symfony/phpunit-bridge ###
|
|
@ -1,42 +0,0 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
use App\Kernel;
|
||||
use Symfony\Bundle\FrameworkBundle\Console\Application;
|
||||
use Symfony\Component\Console\Input\ArgvInput;
|
||||
use Symfony\Component\ErrorHandler\Debug;
|
||||
|
||||
if (false === in_array(\PHP_SAPI, ['cli', 'phpdbg', 'embed'], true)) {
|
||||
echo 'Warning: The console should be invoked via the CLI version of PHP, not the ' . \PHP_SAPI . ' SAPI' . \PHP_EOL;
|
||||
}
|
||||
|
||||
set_time_limit(0);
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
|
||||
if (!class_exists(Application::class)) {
|
||||
throw new RuntimeException('You need to add "symfony/framework-bundle" as a Composer dependency.');
|
||||
}
|
||||
|
||||
$input = new ArgvInput();
|
||||
if (null !== $env = $input->getParameterOption(['--env', '-e'], null, true)) {
|
||||
putenv('APP_ENV=' . $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = $env);
|
||||
}
|
||||
|
||||
if ($input->hasParameterOption('--no-debug', true)) {
|
||||
putenv('APP_DEBUG=' . $_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = '0');
|
||||
}
|
||||
|
||||
require dirname(__DIR__) . '/config/bootstrap.php';
|
||||
|
||||
if ($_SERVER['APP_DEBUG']) {
|
||||
umask(0000);
|
||||
|
||||
if (class_exists(Debug::class)) {
|
||||
Debug::enable();
|
||||
}
|
||||
}
|
||||
|
||||
$kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']);
|
||||
$application = new Application($kernel);
|
||||
$application->run($input);
|
|
@ -1,13 +0,0 @@
|
|||
#!/usr/bin/env php
|
||||
<?php
|
||||
|
||||
if (!file_exists(dirname(__DIR__) . '/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php')) {
|
||||
echo "Unable to find the `simple-phpunit.php` script in `vendor/symfony/phpunit-bridge/bin/`.\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (false === getenv('SYMFONY_PHPUNIT_DIR')) {
|
||||
putenv('SYMFONY_PHPUNIT_DIR=' . __DIR__ . '/.phpunit');
|
||||
}
|
||||
|
||||
require dirname(__DIR__) . '/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php';
|
|
@ -1,84 +0,0 @@
|
|||
{
|
||||
"type": "project",
|
||||
"license": "proprietary",
|
||||
"require": {
|
||||
"php": "^7.2.5",
|
||||
"ext-ctype": "*",
|
||||
"ext-iconv": "*",
|
||||
"sensio/framework-extra-bundle": "^5.5",
|
||||
"symfony/asset": "5.0.*",
|
||||
"symfony/console": "5.0.*",
|
||||
"symfony/dotenv": "5.0.*",
|
||||
"symfony/expression-language": "5.0.*",
|
||||
"symfony/flex": "^1.3.1",
|
||||
"symfony/form": "5.0.*",
|
||||
"symfony/framework-bundle": "5.0.*",
|
||||
"symfony/http-client": "5.0.*",
|
||||
"symfony/intl": "5.0.*",
|
||||
"symfony/mailer": "5.0.*",
|
||||
"symfony/monolog-bundle": "^3.1",
|
||||
"symfony/notifier": "5.0.*",
|
||||
"symfony/orm-pack": "*",
|
||||
"symfony/process": "5.0.*",
|
||||
"symfony/security-bundle": "5.0.*",
|
||||
"symfony/serializer-pack": "*",
|
||||
"symfony/string": "5.0.*",
|
||||
"symfony/translation": "5.0.*",
|
||||
"symfony/twig-pack": "*",
|
||||
"symfony/validator": "5.0.*",
|
||||
"symfony/web-link": "5.0.*",
|
||||
"symfony/yaml": "5.0.*"
|
||||
},
|
||||
"require-dev": {
|
||||
"symfony/debug-pack": "*",
|
||||
"symfony/maker-bundle": "^1.0",
|
||||
"symfony/profiler-pack": "*",
|
||||
"symfony/test-pack": "*"
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": {
|
||||
"*": "dist"
|
||||
},
|
||||
"sort-packages": true
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"App\\": "src/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
"psr-4": {
|
||||
"App\\Tests\\": "tests/"
|
||||
}
|
||||
},
|
||||
"replace": {
|
||||
"paragonie/random_compat": "2.*",
|
||||
"symfony/polyfill-ctype": "*",
|
||||
"symfony/polyfill-iconv": "*",
|
||||
"symfony/polyfill-php72": "*",
|
||||
"symfony/polyfill-php71": "*",
|
||||
"symfony/polyfill-php70": "*",
|
||||
"symfony/polyfill-php56": "*"
|
||||
},
|
||||
"scripts": {
|
||||
"auto-scripts": {
|
||||
"cache:clear": "symfony-cmd",
|
||||
"assets:install %PUBLIC_DIR%": "symfony-cmd"
|
||||
},
|
||||
"post-install-cmd": [
|
||||
"@auto-scripts"
|
||||
],
|
||||
"post-update-cmd": [
|
||||
"@auto-scripts"
|
||||
]
|
||||
},
|
||||
"conflict": {
|
||||
"symfony/symfony": "*"
|
||||
},
|
||||
"extra": {
|
||||
"symfony": {
|
||||
"allow-contrib": false,
|
||||
"require": "5.0.*"
|
||||
}
|
||||
}
|
||||
}
|
6744
application/modules/syf51/composer.lock
generated
6744
application/modules/syf51/composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -1,23 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Symfony\Component\Dotenv\Dotenv;
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
|
||||
// Load cached env vars if the .env.local.php file exists
|
||||
// Run "composer dump-env prod" to create it (requires symfony/flex >=1.2)
|
||||
if (is_array($env = @include dirname(__DIR__) . '/.env.local.php') && ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV']) {
|
||||
foreach ($env as $k => $v) {
|
||||
$_ENV[$k] = $_ENV[$k] ?? (isset($_SERVER[$k]) && 0 !== strpos($k, 'HTTP_') ? $_SERVER[$k] : $v);
|
||||
}
|
||||
} elseif (!class_exists(Dotenv::class)) {
|
||||
throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
|
||||
} else {
|
||||
// load all the .env files
|
||||
(new Dotenv(false))->loadEnv(dirname(__DIR__) . '/.env');
|
||||
}
|
||||
|
||||
$_SERVER += $_ENV;
|
||||
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
|
||||
$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV'];
|
||||
$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int)$_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0';
|
|
@ -1,15 +0,0 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
|
||||
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
|
||||
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
|
||||
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
|
||||
Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true],
|
||||
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
|
||||
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true],
|
||||
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
|
||||
Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle::class => ['all' => true],
|
||||
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
|
||||
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
|
||||
];
|
|
@ -1,19 +0,0 @@
|
|||
framework:
|
||||
cache:
|
||||
# Unique name of your app: used to compute stable namespaces for cache keys.
|
||||
#prefix_seed: your_vendor_name/app_name
|
||||
|
||||
# The "app" cache stores to the filesystem by default.
|
||||
# The data in this cache should persist between deploys.
|
||||
# Other options include:
|
||||
|
||||
# Redis
|
||||
#app: cache.adapter.redis
|
||||
#default_redis_provider: redis://localhost
|
||||
|
||||
# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
|
||||
#app: cache.adapter.apcu
|
||||
|
||||
# Namespaced pools use the above "app" backend by default
|
||||
#pools:
|
||||
#my.dedicated.cache: null
|
|
@ -1,4 +0,0 @@
|
|||
debug:
|
||||
# Forwards VarDumper Data clones to a centralized server allowing to inspect dumps on CLI or in your browser.
|
||||
# See the "server:dump" command to start a new server.
|
||||
dump_destination: "tcp://%env(VAR_DUMPER_SERVER)%"
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue