70 lines
1.0 KiB
PHP
Executable File
70 lines
1.0 KiB
PHP
Executable File
<?php define('__ROOT__', dirname(dirname(dirname(__FILE__))) );
|
|
require_once __ROOT__.'/autoloader.php';
|
|
use \api\core\ModuleRequest;
|
|
use \error\core\Error;
|
|
?>
|
|
|
|
|
|
<!-- [1] Gestion du sous-menu de gauche -->
|
|
|
|
<nav class='sub-menu-side'>
|
|
<span data-sublink='view'>
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/view.svg' ); ?></span>
|
|
<span>Mon Profil</span>
|
|
</span>
|
|
|
|
<span data-sublink='password'>
|
|
<span class='svg'><?php echo file_get_contents( __PUBLIC__.'/src/static/sub-menu-side/password.svg' ); ?></span>
|
|
<span>Mot de passe</span>
|
|
</span>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$post = [];
|
|
foreach($_POST as $k=>$v)
|
|
array_push($post, $k);
|
|
|
|
$sublink = $post[0];
|
|
|
|
|
|
/* MON PROFIL
|
|
*
|
|
*/
|
|
// if( $sublink == 'view' ){
|
|
|
|
echo "<section data-sublink='view'>";
|
|
echo 'Profil';
|
|
echo '</section>';
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* CHANGER MOT DE PASSE
|
|
*
|
|
*/
|
|
// if( $sublink == 'password' ){
|
|
|
|
echo "<section data-sublink='password'>";
|
|
echo 'Changement de mot de passe';
|
|
echo '</section>';
|
|
|
|
// }
|
|
|
|
?>
|