home *** CD-ROM | disk | FTP | other *** search
/ ftp.ee.pdx.edu / 2014.02.ftp.ee.pdx.edu.tar / ftp.ee.pdx.edu / oss / cvs-2004 / bahasa / web / logout.php,v < prev    next >
Text File  |  2003-10-20  |  4KB  |  224 lines

  1. head    1.7;
  2. access;
  3. symbols
  4.     Initial:1.1.1.1 bule:1.1.1;
  5. locks; strict;
  6. comment    @# @;
  7.  
  8.  
  9. 1.7
  10. date    2003.10.20.00.21.45;    author bule;    state Exp;
  11. branches;
  12. next    1.6;
  13.  
  14. 1.6
  15. date    2003.10.18.00.33.41;    author bule;    state Exp;
  16. branches;
  17. next    1.5;
  18.  
  19. 1.5
  20. date    2003.10.06.00.39.27;    author bule;    state Exp;
  21. branches;
  22. next    1.4;
  23.  
  24. 1.4
  25. date    2003.10.01.06.51.29;    author bule;    state Exp;
  26. branches;
  27. next    1.3;
  28.  
  29. 1.3
  30. date    2003.09.11.05.28.22;    author bule;    state Exp;
  31. branches;
  32. next    1.2;
  33.  
  34. 1.2
  35. date    2003.08.19.19.05.16;    author bule;    state Exp;
  36. branches;
  37. next    1.1;
  38.  
  39. 1.1
  40. date    2003.08.12.19.18.23;    author bule;    state Exp;
  41. branches
  42.     1.1.1.1;
  43. next    ;
  44.  
  45. 1.1.1.1
  46. date    2003.08.12.19.18.23;    author bule;    state Exp;
  47. branches;
  48. next    ;
  49.  
  50.  
  51. desc
  52. @@
  53.  
  54.  
  55. 1.7
  56. log
  57. @*** empty log message ***
  58. @
  59. text
  60. @<?
  61. session_start();
  62. require_once("../php/Indonesia.php");
  63. require_once("../php/Web.php");
  64. //////////////////////////////////////////////////////////////////////////////
  65. //////////////////////////////////////////////////////////////////////////////
  66. // Project Name: Bahasa Indonesia Dictionary
  67. // Directory:    bahasa/web
  68. // File Name:    logout.php
  69. // Author(s):    John L. Whiteman
  70. // Created:      June 23, 2003  
  71. // Modified:     October 19, 2003
  72. // Description:  The purpose of this restricted access PHP web 
  73. //               client page is to allow administrators already logged in
  74. //               to logout.  Destroys all sessions variables as well. 
  75. // 
  76. // Copyright (c) 2003 John L. Whiteman
  77. //
  78. // Permission is herby granted, free of charge, to any person obtaining a 
  79. // copy of this software, data, and associated documentation files 
  80. // (the "Software"), to deal in the Software without restriction, 
  81. // including without limitation the rights to use, copy, modify, merge, 
  82. // publish, distribute, sublicense, and/or sell copies of Software, and to
  83. // permit persons to whom the Software is furnished to do so, subject to 
  84. // the following conditions:
  85. //
  86. // The above copyright notice and this permission notice shall be 
  87. // included in all copies or substantial portions of the Software.
  88. //
  89. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
  90. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
  91. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  92. // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 
  93. // ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHERE IN AN ACTION OF CONTRACT,
  94. // TORT OR OTHERWISE, ARISING IN THE SOFTWARE.  
  95. //////////////////////////////////////////////////////////////////////////////
  96. //////////////////////////////////////////////////////////////////////////////
  97. $indonesia = new Indonesia();
  98. $web = new Web();
  99.  
  100. if (
  101. (!$_SESSION['ADMIN']) &&
  102. (!$_SESSION['DB_ADMIN'])) {  
  103.  
  104.     $web->redirect("login.php");
  105.  
  106.     exit;
  107. }
  108. ?>
  109. <html>
  110. <head>
  111. <title>Bahasa Indonesia Dictionary: Logout</title>
  112.  
  113. <link href="bahasa.css" rel="stylesheet" type="text/css">
  114.  
  115. </head>
  116. <body>
  117. <?
  118. $web->show_logo("Logout");
  119. ?>
  120. <hr><b>Logging out <? echo "$_SESSION[ADMIN]...";?></b><hr>
  121. </body>
  122. </html>
  123. <?
  124. session_destroy();
  125. $web->redirect_meta("search.php", 0);
  126. ?>
  127. @
  128.  
  129.  
  130. 1.6
  131. log
  132. @*** empty log message ***
  133. @
  134. text
  135. @d12 1
  136. a12 1
  137. // Modified:     October 17, 2003
  138. d53 3
  139. @
  140.  
  141.  
  142. 1.5
  143. log
  144. @*** empty log message ***
  145. @
  146. text
  147. @d12 1
  148. a12 1
  149. // Modified:     October 05, 2003
  150. d52 1
  151. a52 3
  152. <title>
  153. Bahasa Indonesia Dictionary: Logout
  154. </title>
  155. @
  156.  
  157.  
  158. 1.4
  159. log
  160. @*** empty log message ***
  161. @
  162. text
  163. @d12 1
  164. a12 1
  165. // Modified:     September 30, 2003
  166. d57 3
  167. a59 1
  168. <h2>Bahasa Indonesia Dictionary: Logout</h2> 
  169. @
  170.  
  171.  
  172. 1.3
  173. log
  174. @*** empty log message ***
  175. @
  176. text
  177. @d12 1
  178. a12 1
  179. // Modified:     September 05, 2003
  180. d42 2
  181. a43 2
  182. (!session_is_registered("ADMIN")) &&
  183. (!session_is_registered("DB_ADMIN"))) {  
  184. @
  185.  
  186.  
  187. 1.2
  188. log
  189. @*** empty log message ***
  190. @
  191. text
  192. @d12 1
  193. a12 1
  194. // Modified:     August 19, 2003
  195. d58 1
  196. a58 5
  197. <hr>
  198. <br>
  199. <h3>Logging out <? echo "$_SESSION[ADMIN]...";?></h3>
  200. <br>
  201. <hr>
  202. @
  203.  
  204.  
  205. 1.1
  206. log
  207. @Initial revision
  208. @
  209. text
  210. @d5 33
  211. a37 1
  212.  
  213. a68 1
  214.  
  215. @
  216.  
  217.  
  218. 1.1.1.1
  219. log
  220. @Bahasa Indonesia Dictionary
  221. @
  222. text
  223. @@
  224.