Location: PHPKode > projects > Web Application Gateway > wagateway/docs/app_variables.html
<!-- 
/*************************************************************************************

    COPYRIGHT NOTICE

    This copyright notice must appear at the top of all scripts which are part of
    the Web Application Gateway package.

    Copyright (C) 2001-2008 Gregory Engel
    
    All rights reserved
    
    8547 E Arapahoe Rd, #J-504
    Greenwood Village, CO  80112 USA
    hide@address.com

    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.

    The GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html
    A copy is included with the WAG package and is found in the text file gpl.txt

    You should have received a copy of the GNU General Public License (gpl.txt, gpl.html)
    along with the WAG distribution package; if not, the GNU General Public License can
    be found at http://www.gnu.org/copyleft/gpl.html, or by writing to:
    
    Free Software Foundation, Inc.
    59 Temple Place - Suite 330
    Boston, MA  02111-1307, USA.

    This script is part of the Web Application Gateway (WAG) Project. The WAG software
    is free, subject to 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.
    
    $Revision: 45 $
    $LastChangedDate: 2008-01-14 14:15:32 -0700 (Mon, 14 Jan 2008) $
    $LastChangedBy: gpeangel $
 
*************************************************************************************/
 -->
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
<title>WAG - Application Variables</title>

<!-- The wagsession.js script needs to be included to keep the session alive when this page is accessed -->
<script type="text/javascript" src="../../js/wagsession.js"></script>

<link rel="stylesheet" type="text/css" href="../common/gateway.css" />
<link rel="stylesheet" type="text/css" href="docs.css" />
</head>

<body bgcolor="#ffffff">

<table bgcolor="#f5f5f5" border="0" cellpadding="4" cellspacing="0" style="margin-bottom: 15px;" width="100%">
    <tr>
        <td><b><a href="../admin/index.php" onmouseout="javascript:window.status=''; return true;" onmouseover="javascript:window.status=''; return true;" onmousemove="javascript:window.status='Administration';" target="_self">Administration</a> - <a href="index.html" onmouseout="javascript:window.status=''; return true;" onmouseover="javascript:window.status=''; return true;" onmousemove="javascript:window.status='Documentation Index';" target="_self">Documentation Index</a> - Application Variables</b></td>
    </tr>
</table>

<table bgcolor="#ffffff" border="0" cellpadding="4" cellspacing="0" width="100%">
    <tr>
        <td bgcolor="#f5f5f5">Variable Name</td>
        <td bgcolor="#f5f5f5">Description</td>
    </tr>
    <tr>
        <td align="right" style="font-family: courier;" valign="top">$_SESSION["WAGATEWAY"]["INSTALL_DIR"]</td>
        <td>Physical server directory path to the WAG installation directory.  Example: /home/webapps/wag/</td>
    </tr>
    <tr>
        <td align="right" style="font-family: courier;" valign="top">$_SESSION["WAGATEWAY"]["WEB_ROOT"]</td>
        <td>Web server directory path to the WAG installation directory.  This does not include the server name.  Example: wag.javazen.org/wag/</td>
    </tr>
    <tr>
        <td align="right" style="font-family: courier;" valign="top">$_SESSION["WAGATEWAY"]["PROTOCOL"]</td>
        <td>Protocol used to access the Web Application Gateway.  Examples:  http://, https://</td>
    </tr>
    <tr>
        <td align="right" style="font-family: courier;" valign="top">$_SESSION["WAGATEWAY"]["DB_SERVER"]</td>
        <td>Location of database which stores configuration settings for the Web Application Gateway.  Example: localhost</td>
    </tr>
    <tr>
        <td align="right" style="font-family: courier;" valign="top">$_SESSION["WAGATEWAY"]["DB_DATABASE"]</td>
        <td>Name of database.  Example: mycoolapp</td>
    </tr>
    <tr>
        <td align="right" style="font-family: courier;" valign="top">$_SESSION["WAGATEWAY"]["DB_USERNAME"]</td>
        <td>User name for accessing database.  Example: cooluser</td>
    </tr>
    <tr>
        <td align="right" style="font-family: courier;" valign="top">$_SESSION["WAGATEWAY"]["DB_PASSWORD"]</td>
        <td>Password for accessing database.  Example: secret</td>
    </tr>
    <tr>
        <td align="right" style="font-family: courier;" valign="top">$_SESSION["WAGATEWAY"]["DB_TABLE_PREFIX"]</td>
        <td>Optional prefix for distinguishing Web Application Gateway tables from other tables which may exist in the database.  Example: wag_</td>
    </tr>
</table>

</body>
</html>
Return current item: Web Application Gateway