Просмотр файла wap4mambo/config.php

Размер файла: 1.92Kb
<?php
/*******************************************************************\
*   File Name config.php                                            *
*   Date 02-10-2003                                                 *
*   For Mambo WAP Site Builder                                      *
*   Writen By Tony Skilton [email protected]              *
*   Version 2.00                                                    *
*   Copyright (C) 2003 Media Finder http://mediafinder.sytes.net    *
*	Distributed under the terms of the GNU General Public License   *
*   Please do not remove any of the information above               *
\*******************************************************************/
$wap_title="Your Site Name"; // Your Sites Name
$to = "[email protected]"; // Your Email Address
$dbpre = "mos"; // Your Database Prefix
$no_list = "15"; //Number of Stories to list in category page, there is a 2 page limit
$dbn = "mambo"; // Your Database Name
$host = "localhost"; // Your Host Name, You can probably leave this as it is
$user = "name"; // Your DataBase User Name
$pass = "password"; // Your DataBase Password
/***************************************\
*                                       *
*   Dont Change Anything Bellow here,   *
*   It Could Stop The Script Working.   *
*                                       *
\***************************************/
function DB_connect($dbn,$host,$user,$pass){
$connection = mysql_connect("$host", "$user", "$pass") 
or die("Couldn't connect.");
$db = mysql_select_db($dbn, $connection)	
or die("Couldn't select database.");
}
class database {
	function openConnectionWithReturn($query){
		$result=mysql_query($query) or die("Query failed with error: ".mysql_error());
		return $result;
	}
	function openConnectionNoReturn($query){
		mysql_query($query) or die("Query failed with error: ".mysql_error());
	}
}
$from = 0;
$card = 1;
$i = 0;
$t = 0;
?>