linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file sup.php

Documentation is available at sup.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage user
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. //////////// Check Inclusion de pages ////////////
  12. if (!function_exists('AuthenthificationProcess')) {
  13.     include_once("../lib/lib_common.php");
  14.     ReloadIndex('admin');
  15. ////////////
  16.  
  17. //////////// Check Droits utilisateur ////////////
  18. if (!IsSuperAdmin()) ReloadIndex('admin');
  19. ////////////
  20.  
  21. if(isset($_POST['id']))    $id=$_POST['id'];
  22. if(isset($_GET['id']))    $id=$_GET['id'];
  23. $link_det=$rub_link."&amp;todo=det&amp;id=".$id
  24.  
  25.  
  26. if(isset($_POST['valider'])) {
  27.     $user_object new user;
  28.     $link_confirm="confirm.php?rub=".$rub."&todo=".$todo;
  29.     $result=$user_object->DeleteUser($id$sql_object);
  30.     if($resultheader("Location: ".$link_confirm);
  31.     else  system_error();
  32. }
  33.  
  34. $requeteSQL_getUserLogin($id);
  35. $result=$sql_object->DBSelect($requete);
  36. $current_title=stripslashes($result[0]['user_login']);
  37.  
  38. ?>
  39. <div id="chemin">
  40.     <ul>
  41.         <li>
  42.             <a href="index.php"><?php echo $GLOBALS['lang']['way']['home'?></a>
  43.         </li>
  44.         <li>
  45.             <a href="<?php echo $rub_link?>"><?php echo $GLOBALS['lang']['menu']['theme']?></a>
  46.         </li>
  47.         <li>
  48.             <span><?php echo formatnavTitle($GLOBALS['lang']['user']['sup']." : "$current_title)?></span>
  49.         </li>
  50.     </ul>
  51. </div>
  52. <!--end barre haute -->
  53. <?php
  54. include_once("quickicons.php");
  55. ?>
  56. <div class="contentcontainer">
  57. <?php
  58. include_once($dir."/menurub.php");
  59. ?>
  60. <div id="content">
  61. <?php echo "<h2>".formatTitleh2($current_title)."</h2>"?>
  62. <form id="suptheme" action="<?php echo $_SERVER['SCRIPT_NAME']?>" method="post">
  63. <p class="info"><?php echo $GLOBALS['lang']['divers']['sup_confirm']?></p>
  64. <div>
  65. <input name="id" type="hidden" value="<?php echo $id?>" />
  66. <input name="rub" type="hidden" value="<?php echo $rub?>" id="rub" />
  67. <input name="todo" type="hidden" value="<?php echo $todo?>" id="todo" />
  68. <?php echo cancel_button('javascript:history.go(-1);')?>
  69. <input name="valider" type="submit" value="<?php echo $GLOBALS['lang']['btn']['valid'?>" class="button" id="valider" />
  70. </div>
  71. </form>
  72. </div>
  73. <?php include_once($dir."/help.php")?>
  74. </div>

Documentation generated on Sat, 08 Nov 2008 14:54:27 +0100 by phpDocumentor 1.4.1