Location: PHPKode > scripts > ZBase > zbase/html/info.php
<?
/*****************************************************************************
 * info.php : Information about ZBase, themes, access_control
 *****************************************************************************
 * $Id: info.php,v 1.1.1.1 1999/12/05 01:59:34 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
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  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.
 *****************************************************************************/

require("srv_html.inc");
srv_init();
srv_header(srv_str("html", "info_title"));

srv_include("zbase");
$zbase = new zbase(TRUE);

$row = new row;
$row->row_begin(array("title" => srv_str("html", "info_zb_title")));
$row->row_newfield(srv_str("html", "info_zb_version"), $zbase->ZB_VERSION);
$row->row_newfield(srv_str("html", "info_zb_author"), $zbase->ZB_AUTHOR);
$row->row_newfield(srv_str("html", "info_zb_date"), $zbase->ZB_DATE);
$row->row_newfield(srv_str("html", "info_zb_url"), $zbase->ZB_URL, "",
                   array("link" => $zbase->ZB_URL));
$modules = array();
if (method_exists($zbase, "dep_maketree"))
  $modules[] = "dependances";
if (method_exists($zbase, "dp_verify"))
  $modules[] = "data protection";
$row->row_newfield(srv_str("html", "info_zb_modules"), implode(", ", $modules),
                   "", array("colspan" => 3));
$row->row_end();

$row = new row;
$row->row_begin(array("title" => srv_str("html", "info_ac_title")));
$row->row_newfield(srv_str("html", "info_ac_title"), $AC_OBJ->AC_TITLE);
$row->row_newfield(srv_str("html", "info_ac_author"), $AC_OBJ->AC_AUTHOR);
$row->row_newfield(srv_str("html", "info_ac_date"), $AC_OBJ->AC_DATE);
$row->row_newfield(srv_str("html", "info_ac_comments"), $AC_OBJ->AC_COMMENTS,
  "", array("colspan" => 3));
$row->row_end();

$THEME_OBJ->th_showthemeinfo();

$gates = srv_loadvar("htmlpage", "info_gates");

foreach (srv_makearray($gates) as $gate) {
  $row = new row;
  srv_include($temp = "gate_".$gate);
  $obj = new $temp(TRUE);
  $row->row_begin(array("title" => (srv_str("html", "info_gt_title").$gate)));
  $row->row_newfield(srv_str("html", "info_gt_name"), $obj->GT_NAME);
  $row->row_newfield(srv_str("html", "info_gt_author"), $obj->GT_AUTHOR);
  $row->row_newfield(srv_str("html", "info_gt_date"), $obj->GT_DATE);
  $row->row_newfield(srv_str("html", "info_gt_transsavvy"),
                     $obj->GT_TRANS_SAVVY ? srv_str("show", "boolean_true")
                                          : srv_str("show", "boolean_false"));
  $row->row_newfield(srv_str("html", "info_gt_comments"), $obj->GT_COMMENTS,
    "", array("colspan" => 3));
  $row->row_end();
}

$ROW_OBJ = new row;
$ROW_OBJ->row_begin(array("title" => srv_str("html", "info_user_title"),
                          "banner" => $AC_OBJ->user_obj->show_getbanner()));
$AC_OBJ->user_obj->show_row();
$ROW_OBJ->row_end();

srv_close();
?>
Return current item: ZBase