IBM

html_tophdr.inc

<? 
   // 
   // This material contains IBM copyrighted sample programming source 
   // code DB2(R) UDB PHP Demo.  IBM grants you a nonexclusive copyright 
   // license to use the Sample Code as an example from which you can 
   // generate similar function tailored to your own specific needs.  
   // Your license to this Sample Code provides you no right or licenses 
   // to any IBM patents.
   // 
   // The Sample Code is provided by IBM for illustrative purposes 
   // only.  The Sample Code has not been thoroughly tested under 
   // all conditions.  IBM, therefore, does not  guarantee or imply 
   // its reliability, serviceability, or function.  IBM provides 
   // no program services for the Sample Code.
   //  
   // All Sample Code contained herein is provided to you "AS IS" without 
   // any warranties of any kind. THE IMPLIED WARRANTIES OF 
   // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE 
   // AND NON-INFRINGMENT ARE EXPRESSLY DISCLAIMED.  SOME 
   // JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED 
   // WARRANTIES, SO THE ABOVE EXCLUSIONS MAY NOT APPLY 
   // TO YOU.  IN NO EVENT WILL IBM BE LIABLE TO ANY PARTY 
   // FOR ANY DIRECT, INDIRECT, SPECIAL OR OTHER CONSEQUENTIAL 
   // DAMAGES FOR ANY USE OF THE SAMPLE CODE INCLUDING, 
   // WITHOUT LIMITATION, ANY LOST PROFITS, BUSINESS 
   // INTERRUPTION, LOSS OF PROGRAMS OR OTHER DATA ON 
   // YOUR INFORMATION HANDLING SYSTEM OR OTHERWISE, 
   // EVEN IF WE ARE EXPRESSLY ADVISED OF THE POSSIBILITY 
   // OF SUCH DAMAGES.
   // 
   // (C) Copyright IBM CORP. 2001
   // All rights reserved.
   // US Government Users Restricted Rights -
   // Use, duplication or disclosure restricted
   // by GSA ADP Schedule Contract with IBM Corp.
   // Licensed Material - Property of IBM	

   //////////////////////////////////////////////////////////////
   // iSeries Linux DB2/PHP/ODBC Demo
   // Written by Dave Boutcher (boutcher@us.ibm.com)
   //////////////////////////////////////////////////////////////
   // This PHP include builds the banner at the top of the page
   //////////////////////////////////////////////////////////////
   include("html_header.inc"); 
?>
<table class=noborder align=left cellpadding="0" cellspacing="0">
<tr  bgcolor="#006699"><td colspan=2 class="top-pane">
<table class=noborder cellpadding="0" cellspacing="0">
<tr bgcolor="#006699">
<td width="150"  class="tbgc"><img src="img/mast_logo.gif" border="0" alt="IBM" width="150" height="47" /></td>
<td width="310" class="tbg"><img src="img/c.gif" border="0" width="1" height="1"/></td>
<td width="300" class="tbgc" align=right>
<? 
// Only display the system, schema, etc. information if it's available
if ((isset($isdb_system)) && (isset($isdb_database)) && (isset($_SERVER["PHP_AUTH_USER"]))) { ?>
<table class=noborder align=left cellpadding="0" cellspacing="0">
<tr class=hdrinfo><td>System:</td><td><? echo $isdb_system; ?></td></tr>
<tr class=hdrinfo><td>Database:&nbsp;</td><td><? echo $isdb_database; ?></td></tr>
<tr class=hdrinfo><td>User:</td><td><? echo $_SERVER["PHP_AUTH_USER"]; ?></td></tr>
</table>
<? } 
?>
</td>
</tr>
</table>
</td>
</tr>
<tr>

Source for this page: showsource.php