Location: PHPKode > scripts > ZBase > zbase/html/index.php
 * index.php : ZBase web entry point
 * $Id: index.php,v 1.3 1999/12/17 23:36:32 massiot Exp $
 *  ZBase - a gateway between the database and the WWW
 *  Copyright (c) 1999 The ZBase team
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  GNU General Public License for more details.
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

srv_header(srv_str("html", "index_title"));

/* To insert a new entry in a table, you must send create.php the adequate
 * arguments. Please look : */
$zb_user = new zb_user;

/* And now create.php?FORM_NB=1&$movie->show_getfields(1) will do the trick
 *                            ^                        ^
 *                  Must be the same, you can increase it if you want
 *                     to create several objects at the same time.
 * (FORM_NB is always the number of objects you give in the arguments) */

<H2>Installation - Part 2</H2>
<li><a href="<?
echo srv_url("create.php?FORM_NB=1&".$zb_user->show_getfields(1)); ?>">
Create a user</a>
<!-- /* You MUST ALWAYS call srv_url for a URL. It adds the session
      * information and puts the link in the link database. */ -->

<li><a href="<? echo srv_url("install3.php"); ?>">Create a table</a>
<li><a href="<? echo srv_url("search.php"); ?>">Search</a>

When you're finished with the installation, don't forget :
<ul><li>To change index.php to remove the two installation links above 
and to add the new tables to config_htmlpage::search_tables in zb_config.inc ;
<li>To remove the install*.php files in your document root (otherwise it is
a HUGE security hole) ;
<li>To remove the ZBase administration account (otherwise it is a VERY HUGE
security hole) ;
<li>You can finally edit theme_std.inc to change the look of your pages.
<center><em>Thank you for using ZBase.</em></center>
Return current item: ZBase