Prechádzať zdrojové kódy

GitIgnore + fix submit user

stany.ferer 1 rok pred
rodič
commit
dda4b64e40

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+.vscode/sftp.json
+public-cms/test.php

+ 1 - 3
core/views/pages/cms.parametres-debug.php

@@ -2,19 +2,17 @@
 <tbody>
     <tr>
         <th scope="row">
-            <h4>Rechargement</h4>
                 <div class="element-parametres">
                     <a href="/submit.php?from=parametres-json-refresh" onclick="return confirm('Etes-vous certain de vouloir réinitialiser les JSON ?')"><button type="button" class="btn btn-warning">Réinitialisation des JSON</button></a>
                 </div>
 
                 <?php if (session::accessUserByType(1) and session::getId() == 1 and (ENVIRONNEMENT == "DEV" or ENVIRONNEMENT == "PREPROD")) { ?>
 
-                <h4>Développement</h4>
                 <div class="element-parametres">
                     <a href="/submit.php?from=parametres-reset-datas" onclick="return confirm('Etes-vous certain de vouloir supprimer les données ?')"><button type="button" class="btn btn-danger">Nettoyer les données</button></a>
                 </div>
                 <div class="element-parametres">
-                    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalPHPInfo">PHP Infos</button>
+                    <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#modalPHPInfo">Voir le PHP Infos</button>
                 </div>
 
                 <div class="modal fade" id="modalPHPInfo" tabindex="-1" role="dialog" aria-hidden="true">

+ 8 - 7
core/views/pages/cms.user.php

@@ -133,7 +133,7 @@ if(core::ifGet("add")) {
 
     <?php endif; ?>
 
-    <?php if(isset($user["googleAuthenticator"]) AND $user["googleAuthenticator"] == 1 AND $protect == 1) { ?>
+    <?php if(isset($user["googleAuthenticator"]) AND $user["googleAuthenticator"] == 1 AND $protect == 1): ?>
         <div class="card text-center" style="width: 18rem;">
                 <?php
                     $qrCodeUrl = googleAuthenticator::getGoogleUrl("CMS CSE Invent: " . ENVIRONNEMENT,  user::getMyGoogleAuthenticator(session::getId()));
@@ -145,7 +145,7 @@ if(core::ifGet("add")) {
             </div>
         </div>  
         <br />
-    <?php } ?>
+    <?php endif; ?>
 
     <?php if($protect == 0): ?>
     <div class="form-group">
@@ -156,13 +156,14 @@ if(core::ifGet("add")) {
         </select>
     </div>
     <br />
+    <?php endif; ?>
 
-        <?php if($protect == 1): ?>
-            <input type="hidden" name="actif" value="<?php echo $user["actif"] ?>">
-        <?php endif; ?>
-    
-    <input class="btn btn-primary btn-lg" style="width: 100%" type="submit" value="<?php echo $submit ?>">
+    <?php if($protect == 1): ?>
+        <input type="hidden" name="actif" value="<?php echo $user["actif"] ?>">
     <?php endif; ?>
+
+    <input class="btn btn-primary btn-lg" style="width: 100%" type="submit" value="<?php echo $submit ?>">
+
     <br />
     <br />