[Linpha-cvs] SF.net SVN: linpha: [4866] trunk/linpha2
Status: Inactive
Brought to you by:
bzrudi
From: <fan...@us...> - 2008-02-11 19:21:36
|
Revision: 4866 http://linpha.svn.sourceforge.net/linpha/?rev=4866&view=rev Author: fangehrn Date: 2008-02-11 11:21:34 -0800 (Mon, 11 Feb 2008) Log Message: ----------- 2008-02-11 flo * deleted "debug" files and added them to the ignore list -> we will not forget them on releases and they will not be on any snapshot Modified Paths: -------------- trunk/linpha2/lib/classes/linpha.sql.class.php Property Changed: ---------------- trunk/linpha2/ trunk/linpha2/install/ Property changes on: trunk/linpha2 ___________________________________________________________________ Name: svn:ignore - .project project.index .cache .settings + .project project.index .cache .settings logsql.txt Property changes on: trunk/linpha2/install ___________________________________________________________________ Name: svn:ignore + ignore_delete_install_msg.txt Modified: trunk/linpha2/lib/classes/linpha.sql.class.php =================================================================== --- trunk/linpha2/lib/classes/linpha.sql.class.php 2008-02-11 18:59:15 UTC (rev 4865) +++ trunk/linpha2/lib/classes/linpha.sql.class.php 2008-02-11 19:21:34 UTC (rev 4866) @@ -27,7 +27,7 @@ class LinSql { - private $isLoggedIn, $isAdmin; + private $isLoggedIn = false, $isAdmin; public $config; // sub class $linpha->sql->config /** @@ -57,14 +57,19 @@ } else { - error_reporting('E_ALL'); + //error_reporting('E_ALL'); + error_reporting(0); include_once(LINPHA_DIR.'/lib/classes/adodb-errorhandler.inc.php'); /** - * if this file does not exists we already switch to installer + * if we can keep the "_once" at those include files it would be + * a good security improvement! + * + * if this file does not exists we already switched to installer + * -> there's no need for file_exists() */ $sql_dir = ''; - require_once(LINPHA_DIR.'/var/config.dir.php'); // no include_once if we reconnect from another directory... + require_once(LINPHA_DIR.'/var/config.dir.php'); $include_file = LinFilesys::getFullPath( $sql_dir ) . '/config.sql.php'; if( file_exists($include_file) ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |