Documentation is available at experimental-code.php
- <?
- $page = $_GET["page"];
- //Content
- function content($page){
- if(!isset($page)){ $page = "home"; }
- $filename = "./page/$page.php";
- if (file_exists($filename)) {
- include($filename);
- } else {
- echo("<p>Error: Page not found!</p>");
- }
- }
- ?>
- en in de directery /page/ staat een .htaccess die het verbied om de file daar te lezen
- Order Deny,Allow
- /*
- Program E stores all of the AIML in a relational database.
- The key table is the patterns table:
- +--------+--------------+------+-----+---------+-------+
- | Field | Type | Null | Key | Default | Extra |
- +--------+--------------+------+-----+---------+-------+
- | id | int(11) | | PRI | 0 | |
- | word | varchar(255) | YES | | NULL | |
- | ordera | tinyint(4) | | | 0 | |
- | parent | int(11) | | MUL | 0 | |
- | isend | tinyint(4) | | | 0 | |
- +--------+--------------+------+-----+---------+-------+
- id is just an incremented unique number for each row
- word is a single word or <that> or <topic>
- ordera is 1, 2, or 3. 1 for '_'. 2 for a regular word. 3 for '*'.
- parent is the word that came before this word
- isend (is end) is a flag that says if this word is at the end of the
- <input>, <that>, or <topic>
- Then the table is used to go through the user input word by word.
- */
Documentation generated on Tue, 11 Jan 2005 18:41:04 +0100 by phpDocumentor 1.3.0RC3