svg
This commit is contained in:
parent
571efe1ad9
commit
1e6f519aee
3
.env
3
.env
|
@ -20,9 +20,10 @@ APP_CRON=1
|
||||||
|
|
||||||
# NINEGATE
|
# NINEGATE
|
||||||
NINEGATE_ACTIVATE=0
|
NINEGATE_ACTIVATE=0
|
||||||
NINEGATE_URL=http://192.168.0.22
|
NINEGATE_URL=http://localhost
|
||||||
NINEGATE_SECRET=changeme
|
NINEGATE_SECRET=changeme
|
||||||
NINEGATE_MASTERIDENTITY=SQL
|
NINEGATE_MASTERIDENTITY=SQL
|
||||||
|
NINEGATE_MODEREGISTRATION=byadmin
|
||||||
|
|
||||||
# CAS
|
# CAS
|
||||||
CAS_HOST=
|
CAS_HOST=
|
||||||
|
|
|
@ -12,4 +12,6 @@ twig:
|
||||||
appAuth: '%appAuth%'
|
appAuth: '%appAuth%'
|
||||||
appName: '%appName%'
|
appName: '%appName%'
|
||||||
appCron: '%appCron%'
|
appCron: '%appCron%'
|
||||||
|
appNinegateactivate: '%appNinegateactivate%'
|
||||||
|
appNinegateurl: '%appNinegateurl%'
|
||||||
|
appNinegatemoderegistration: '%appNinegatemoderegistration%'
|
||||||
|
|
|
@ -19,6 +19,7 @@ parameters:
|
||||||
appNinegateurl: '%env(resolve:NINEGATE_URL)%'
|
appNinegateurl: '%env(resolve:NINEGATE_URL)%'
|
||||||
appNinegatesecret: '%env(resolve:NINEGATE_SECRET)%'
|
appNinegatesecret: '%env(resolve:NINEGATE_SECRET)%'
|
||||||
appNinegatemasteridentity: '%env(resolve:NINEGATE_MASTERIDENTITY)%'
|
appNinegatemasteridentity: '%env(resolve:NINEGATE_MASTERIDENTITY)%'
|
||||||
|
appNinegatemoderegistration: '%env(resolve:NINEGATE_MODEREGISTRATION)%'
|
||||||
|
|
||||||
casHost: '%env(resolve:CAS_HOST)%'
|
casHost: '%env(resolve:CAS_HOST)%'
|
||||||
casPort: '%env(resolve:CAS_PORT)%'
|
casPort: '%env(resolve:CAS_PORT)%'
|
||||||
|
|
|
@ -35,7 +35,6 @@ services:
|
||||||
- ./public/uploads:/app/public/uploads:delegated
|
- ./public/uploads:/app/public/uploads:delegated
|
||||||
- ./misc:/app/misc:delegated
|
- ./misc:/app/misc:delegated
|
||||||
- ./public/styles:/app/public/styles:delegated
|
- ./public/styles:/app/public/styles:delegated
|
||||||
|
|
||||||
adminer:
|
adminer:
|
||||||
image: adminer
|
image: adminer
|
||||||
container_name: ninefolio-adminer
|
container_name: ninefolio-adminer
|
||||||
|
|
|
@ -12,6 +12,7 @@ class HomeController extends AbstractController
|
||||||
public function home()
|
public function home()
|
||||||
{
|
{
|
||||||
$items=null;
|
$items=null;
|
||||||
|
dump($this->getParameter("appNinegateactivate"));
|
||||||
if($this->getParameter("appNinegateactivate")) {
|
if($this->getParameter("appNinegateactivate")) {
|
||||||
// Entete
|
// Entete
|
||||||
$headers = ['Accept' => 'application/json', 'key' => $this->getParameter("appNinegatesecret"), 'only'=>'items'];
|
$headers = ['Accept' => 'application/json', 'key' => $this->getParameter("appNinegatesecret"), 'only'=>'items'];
|
||||||
|
@ -29,7 +30,6 @@ class HomeController extends AbstractController
|
||||||
catch (\Exception $e) {
|
catch (\Exception $e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
dump($items);
|
|
||||||
|
|
||||||
$em = $this->getDoctrine()->getManager();
|
$em = $this->getDoctrine()->getManager();
|
||||||
$users = $em->getRepository("App:User")->findBy([],["pseudo"=>"ASC"]);
|
$users = $em->getRepository("App:User")->findBy([],["pseudo"=>"ASC"]);
|
||||||
|
|
|
@ -70,6 +70,12 @@
|
||||||
<i class="fa fa-sign-out-alt fa-fw"></i>
|
<i class="fa fa-sign-out-alt fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if(appNinegateurl and appNinegatemoderegistration!="none") %}
|
||||||
|
<a href="{{appNinegateurl}}/registration?redirect={{app.request.uri}}" class="btn btn-link" title="Inscription">
|
||||||
|
<i class="fa fa-user-plus fa-fw"></i>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<a href={{ path("app_login") }} class="btn btn-link" title="Connexion">
|
<a href={{ path("app_login") }} class="btn btn-link" title="Connexion">
|
||||||
<i class="fa fa-sign-in-alt fa-fw"></i>
|
<i class="fa fa-sign-in-alt fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
|
@ -125,6 +131,12 @@
|
||||||
<i class="fa fa-sign-out-alt fa-fw"></i>
|
<i class="fa fa-sign-out-alt fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if(appNinegateurl and appNinegatemoderegistration!="none") %}
|
||||||
|
<a href="{{appNinegateurl}}/registration?redirect={{app.request.uri}}" class="btn btn-link" title="Inscription">
|
||||||
|
<i class="fa fa-user-plus fa-fw"></i>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<a href={{ path("app_login") }} class="btn btn-link" title="Connexion">
|
<a href={{ path("app_login") }} class="btn btn-link" title="Connexion">
|
||||||
<i class="fa fa-sign-in-alt fa-fw"></i>
|
<i class="fa fa-sign-in-alt fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -87,6 +87,12 @@
|
||||||
<i class="fa fa-sign-out-alt fa-fw"></i>
|
<i class="fa fa-sign-out-alt fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if(appNinegateurl and appNinegatemoderegistration!="none") %}
|
||||||
|
<a href="{{appNinegateurl}}/registration?redirect={{app.request.uri}}" class="btn btn-link" title="Inscription">
|
||||||
|
<i class="fa fa-user-plus fa-fw"></i>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<a href={{ path("app_login") }} class="btn btn-link" title="Connexion">
|
<a href={{ path("app_login") }} class="btn btn-link" title="Connexion">
|
||||||
<i class="fa fa-sign-in-alt fa-fw"></i>
|
<i class="fa fa-sign-in-alt fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
|
@ -141,6 +147,12 @@
|
||||||
<i class="fa fa-sign-out-alt fa-fw"></i>
|
<i class="fa fa-sign-out-alt fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% if(appNinegateurl and appNinegatemoderegistration!="none") %}
|
||||||
|
<a href="{{appNinegateurl}}/registration?redirect={{app.request.uri}}" class="btn btn-link" title="Inscription">
|
||||||
|
<i class="fa fa-user-plus fa-fw"></i>
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<a href={{ path("app_login") }} class="btn btn-link" title="Connexion">
|
<a href={{ path("app_login") }} class="btn btn-link" title="Connexion">
|
||||||
<i class="fa fa-sign-in-alt fa-fw"></i>
|
<i class="fa fa-sign-in-alt fa-fw"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -64,6 +64,12 @@
|
||||||
<img src="{{app.user.avatar|urlavatar}}" class="avatar">
|
<img src="{{app.user.avatar|urlavatar}}" class="avatar">
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
{% elseif(appNinegateurl and appNinegatemoderegistration!="none") %}
|
||||||
|
<li>
|
||||||
|
<a href="{{appNinegateurl}}/registration">
|
||||||
|
<i class="fa fa-user-plus fa-fw"></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if is_granted('ROLE_ADMIN') %}
|
{% if is_granted('ROLE_ADMIN') %}
|
||||||
|
|
Loading…
Reference in New Issue