67 lines
964 B
PHP
Executable File
67 lines
964 B
PHP
Executable File
<?php define('__ROOT__', dirname(dirname(__FILE__)) );
|
|
require_once __ROOT__.'/manager/autoloader.php';
|
|
?>
|
|
|
|
|
|
<!-- [1] Gestion du sous-menu de gauche -->
|
|
|
|
<nav class='sub-menu-side'>
|
|
<span data-sublink='view'>
|
|
<span class='svg'><?php echo file_get_contents( 'http://'.$_SERVER['HTTP_HOST'].'/f/svg/view/st/sub-menu-side'); ?></span>
|
|
<span>Mon Profil</span>
|
|
</span>
|
|
|
|
<span data-sublink='password'>
|
|
<span class='svg'><?php echo file_get_contents( 'http://'.$_SERVER['HTTP_HOST'].'/f/svg/password/st/sub-menu-side'); ?></span>
|
|
<span>Mot de passe</span>
|
|
</span>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$post = array();
|
|
foreach($_POST as $k=>$v)
|
|
array_push($post, $k);
|
|
|
|
$sublink = $post[0];
|
|
|
|
|
|
/* MON PROFIL
|
|
*
|
|
*/
|
|
if( $sublink == 'view' ){
|
|
|
|
echo '<section>';
|
|
echo 'Profil';
|
|
echo '</section>';
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* CHANGER MOT DE PASSE
|
|
*
|
|
*/
|
|
if( $sublink == 'password' ){
|
|
|
|
echo '<section>';
|
|
echo 'Changement de mot de passe';
|
|
echo '</section>';
|
|
|
|
}
|
|
|
|
?>
|