Compare commits
No commits in common. "7fc7a8f24528b5e4f8bc599939ee7c4d4dde2668" and "bd3da737111a281aa9930ea6d5be63415dc83110" have entirely different histories.
7fc7a8f245
...
bd3da73711
File diff suppressed because one or more lines are too long
|
@ -42,18 +42,7 @@
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<strong>Adresse e-mail :</strong> <?php $this->s($_SESSION['user']['email']); ?><br/>
|
<strong>Adresse e-mail :</strong> <?php $this->s($_SESSION['user']['email']); ?><br/>
|
||||||
<strong>Niveau administrateur :</strong> <?php echo $_SESSION['user']['admin'] ? 'Oui' : 'Non'; ?><br/>
|
<strong>Niveau administrateur :</strong> <?php echo $_SESSION['user']['admin'] ? 'Oui' : 'Non'; ?><br/>
|
||||||
<br/>
|
<strong>Clef API :</strong> <?php echo $_SESSION['user']['api_key']; ?><br/>
|
||||||
<div id="api-key-container" class="">
|
|
||||||
<strong>Clef API :</strong>
|
|
||||||
<span id="show-api-key-link" class="visible">
|
|
||||||
<a href="#">Cliquez pour afficher la clef API.</a><br/>
|
|
||||||
</span>
|
|
||||||
<span id="api-key" class="hidden">
|
|
||||||
<?php echo $_SESSION['user']['api_key']; ?><br/>
|
|
||||||
<div style="margin-top: 15px" id="api-key-qrcode"></div>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
|
@ -157,25 +146,6 @@
|
||||||
});
|
});
|
||||||
window.location = url;
|
window.location = url;
|
||||||
});
|
});
|
||||||
|
|
||||||
jQuery('#show-api-key-link').on('click', function (e)
|
|
||||||
{
|
|
||||||
e.preventDefault();
|
|
||||||
jQuery(this).toggleClass('visible').toggleClass('hidden');
|
|
||||||
jQuery('#api-key').toggleClass('visible').toggleClass('hidden');
|
|
||||||
});
|
|
||||||
|
|
||||||
var qrcode = new QRCode("api-key-qrcode", {
|
|
||||||
text: <?= json_encode($_SESSION['user']['api_key']); ?>,
|
|
||||||
width: 128,
|
|
||||||
height: 128,
|
|
||||||
colorDark : "#000000",
|
|
||||||
colorLight : "#ffffff",
|
|
||||||
correctLevel : QRCode.CorrectLevel.H
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
jQuery('')
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -40,9 +40,7 @@
|
||||||
<!-- DataTables -->
|
<!-- DataTables -->
|
||||||
<link href="<?php echo HTTP_PWD_CSS; ?>/datatables/datatables.min.css" rel="stylesheet" type="text/css">
|
<link href="<?php echo HTTP_PWD_CSS; ?>/datatables/datatables.min.css" rel="stylesheet" type="text/css">
|
||||||
<script src="<?php echo HTTP_PWD_JS; ?>/datatables/datatables.min.js"></script>
|
<script src="<?php echo HTTP_PWD_JS; ?>/datatables/datatables.min.js"></script>
|
||||||
<!-- Qrcode lib -->
|
|
||||||
<script src="<?php echo HTTP_PWD_JS; ?>/qrcode.min.js"></script>
|
|
||||||
|
|
||||||
<!-- Custom JS -->
|
<!-- Custom JS -->
|
||||||
<script src="<?php echo HTTP_PWD_JS; ?>/custom.js"></script>
|
<script src="<?php echo HTTP_PWD_JS; ?>/custom.js"></script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue