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 / download.php,v < prev    next >
Text File  |  2003-10-20  |  4KB  |  242 lines

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