Location: PHPKode > scripts > Ladder PHP > ladder-php/_app.inc
<?
/*	=======================================
	Copyright 1998, 2000, 2003, 2007, 2009 - E Net Arch
		www.ENetArch.net - 248-686-1407
		ENetArch on AIM, Yahoo, and Skype

	This program is distributed under the terms of the GNU 
	General Public License (or the Lesser GPL).
	======================================= */

   Include_Once ("functions.cls");
   Include_Once ("Ladder_Ladder.cls");

//***************************************************************
//*
//*		Database Connection
//*
//***************************************************************

$szODBC = "HOST=localhost;UID=sa;PSW=psw;DBF=development;";
$gblLadder = null;

// ==========================================

//*--------------------------------------------------------------
//*  main                Loop to process tokens.
//*--------------------------------------------------------------

Main ();

Function Main ()
{
	Connect ();
	
	php_Main ();
	
	Disconnect ();
}

//*--------------------------------------------------------------
//*  Connect to Ladder
//*--------------------------------------------------------------

Function Connect()
{
	Global $gblLadder;
	Global $szODBC;
	
	$gblLadder = new ldrLadder ();

	$gblLadder->Connect ($szODBC);
}

//*--------------------------------------------------------------
//*  Disconnect from the store
//*--------------------------------------------------------------

Function Disconnect()
{
	Global $gblLadder;
	
	$gblLadder->Disconnect();
}

?>
Return current item: Ladder PHP