|
From: Javier B. <jb...@us...> - 2004-12-26 22:57:29
|
Update of /cvsroot/openbash-org/openbash-org In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1613 Modified Files: config.php index.php Log Message: cambiado sistema de validacion por uno que funciona xD; arreglada la guarrada del dbconnect en el config.php: cambiado a los constructores; aplicada cache a consultas repetitivas que no van a tener cambios casi nunca; arreglado algun bug que otro; ... Index: config.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/config.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** config.php 24 Nov 2004 08:37:06 -0000 1.17 --- config.php 26 Dec 2004 22:57:18 -0000 1.18 *************** *** 3,11 **** $title = 'OpenBash.org'; ! $hostbd = 'localhost'; # host where the database is running ! $userbd = 'openbash'; # a user with full privileges to access the database ! $passbd = '02jdf9234y9'; # the user's password database ! $namedb = 'openbash'; # the database name ! $tipobd = 'mysql'; # type of database: mysql, pgsql, etc $lang = 'spanish'; --- 3,11 ---- $title = 'OpenBash.org'; ! $dbhost = 'localhost'; # host where the database is running ! $dbuser = 'openbash'; # a user with full privileges to access the database ! $dbpass = '02jdf9234y9'; # the user's password database ! $dbname = 'openbash-org'; # the database name ! $dbtype = 'mysql'; # type of database: mysql, pgsql, etc $lang = 'spanish'; *************** *** 17,26 **** $summaries = 50; # number of quotes shown on a single page include ('adodb/adodb.inc.php'); ! $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; # we prefer associative arrays ! $ADODB_CACHE_DIR = 'cache/'; # directory to store sql results to speed up queries ! $bd = &NewADOConnection($tipobd); ! $bd->PConnect($hostbd, $userbd, $passbd, $namedb); ! $bd->Debug = True; ?> --- 17,30 ---- $summaries = 50; # number of quotes shown on a single page + /* + * AdoDB + */ + include ('adodb/adodb.inc.php'); ! $ADODB_CACHE_DIR = 'cache/'; # we prefer associative arrays ! $ADODB_COUNTRECS = false; # we do not want RecordCount() emulation ! $ADODB_LANG = 'es'; ! $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; # directory to store sql results to speed up queries ! $ADODB_EXPIRE_CACHE = 3600; ?> Index: index.php =================================================================== RCS file: /cvsroot/openbash-org/openbash-org/index.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** index.php 24 Nov 2004 07:40:04 -0000 1.16 --- index.php 26 Dec 2004 22:57:18 -0000 1.17 *************** *** 9,12 **** --- 9,13 ---- if (isset($_SESSION['language'])) { $lang = $_SESSION['language']; } include ("language/${lang}.php"); + /* * Print general header and selected page |