[geeklog-cvs] geeklog-2/public_html glcore.php,1.3,1.4
geeklog-cvs-admin at lists.geeklog.net
geeklog-cvs-admin at lists.geeklog.net
Fri Apr 18 23:09:33 EDT 2003
Update of /usr/cvs/geeklog/geeklog-2/public_html
In directory internal.geeklog.net:/tmp/cvs-serv20691
Modified Files:
glcore.php
Log Message:
Added include for Translation class and instantiated it
Index: glcore.php
===================================================================
RCS file: /usr/cvs/geeklog/geeklog-2/public_html/glcore.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** glcore.php 11 Jan 2003 05:24:16 -0000 1.3
--- glcore.php 19 Apr 2003 03:09:31 -0000 1.4
***************
*** 8,12 ****
// | Geeklog's common library. |
// | |
! // | Copyright (C) 2002 |
// +---------------------------------------------------------------------------+
// | License Details To Be Determined |
--- 8,12 ----
// | Geeklog's common library. |
// | |
! // | Copyright (C) 2003 |
// +---------------------------------------------------------------------------+
// | License Details To Be Determined |
***************
*** 26,30 ****
* This is the Geeklog configuration file
*/
! include_once('/path/to/geeklog2/config.php');
// VERY IMPORTANT: to support people who want to use PEAR but ISP or host will
--- 26,30 ----
* This is the Geeklog configuration file
*/
! require_once '/path/to/geeklog2/config.php';
// VERY IMPORTANT: to support people who want to use PEAR but ISP or host will
***************
*** 39,59 ****
/**
* This is the Geeklog Error Handling and Log library
*/
! require_once($_CONF['path_lib'] . 'Geeklog.class.php');
/**
* Include the Geeklog database library
*/
! require_once($_CONF['path_lib'] . 'database/lib-database.php');
/**
* Include the Geeklog PHP4 Session Extension
*/
! require_once($_CONF['path_lib'] . 'sessions/lib-sessions.php');
// Set name of session (i.e. cookie)
session_name($_CONF['session_name']);
// NOTE: just because we have included the session code and set the name
// of the session cookie you can't call session_start(). This is mainly
--- 39,67 ----
/**
+ * This is the Geeklog Translation Library
+ */
+ require_once $_CONF['path_lib'] . '/Translations/Translator.class.php';
+
+ /**
* This is the Geeklog Error Handling and Log library
*/
! require_once $_CONF['path_lib'] . 'Geeklog.class.php';
/**
* Include the Geeklog database library
*/
! require_once $_CONF['path_lib'] . 'database/lib-database.php';
/**
* Include the Geeklog PHP4 Session Extension
*/
! require_once $_CONF['path_lib'] . 'sessions/lib-sessions.php';
// Set name of session (i.e. cookie)
session_name($_CONF['session_name']);
+ // Instanstiate translator
+ $_TRANS = new Translator('en');
+
// NOTE: just because we have included the session code and set the name
// of the session cookie you can't call session_start(). This is mainly
***************
*** 85,87 ****
set_error_handler('errorHandler');
! ?>
--- 93,95 ----
set_error_handler('errorHandler');
! ?>
\ No newline at end of file
More information about the geeklog-cvs
mailing list