]> git.mxchange.org Git - mailer.git/blobdiff - inc/sql_error.php
Fixes for extension problems while installing/removing (still double-registration...
[mailer.git] / inc / sql_error.php
index fa001a2ff686940cebbd1f718ecff0c8197c928a..7918cd1a45202dc59ccc1f133604dc64e63cc1eb 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Gibt MySQL-Fehler aus                            *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -32,9 +37,8 @@
  ************************************************************************/
 
 // Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+if (!defined('__SECURITY')) {
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }