Source for file experimental-code.php

Documentation is available at experimental-code.php

  1. <?
  2. $page = $_GET["page"];
  3.  
  4. //Content
  5. function content($page){
  6. if(!isset($page)){ $page = "home"; }
  7. $filename = "./page/$page.php";
  8.  
  9.  
  10. if (file_exists($filename)) {
  11. include($filename);
  12.  
  13. } else {
  14.  
  15. echo("<p>Error: Page not found!</p>");
  16.  
  17. }
  18.  
  19. }
  20. ?>
  21.  
  22. en in de directery /page/ staat een .htaccess die het verbied om de file daar te lezen
  23.  
  24.  
  25. Order Deny,Allow
  26.  
  27. /*
  28. Program E stores all of the AIML in a relational database.
  29.  
  30. The key table is the patterns table:
  31. +--------+--------------+------+-----+---------+-------+
  32. | Field | Type | Null | Key | Default | Extra |
  33. +--------+--------------+------+-----+---------+-------+
  34. | id | int(11) | | PRI | 0 | |
  35. | word | varchar(255) | YES | | NULL | |
  36. | ordera | tinyint(4) | | | 0 | |
  37. | parent | int(11) | | MUL | 0 | |
  38. | isend | tinyint(4) | | | 0 | |
  39. +--------+--------------+------+-----+---------+-------+
  40.  
  41. id is just an incremented unique number for each row
  42. word is a single word or <that> or <topic>
  43. ordera is 1, 2, or 3. 1 for '_'. 2 for a regular word. 3 for '*'.
  44. parent is the word that came before this word
  45. isend (is end) is a flag that says if this word is at the end of the
  46. <input>, <that>, or <topic>
  47.  
  48. Then the table is used to go through the user input word by word.
  49.  
  50.  
  51. */

Documentation generated on Tue, 11 Jan 2005 18:41:04 +0100 by phpDocumentor 1.3.0RC3