";
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -82,7 +82,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/tools/sql_query.php
===================================================================
diff -u -N -r374 -r2536
--- trunk/admin/tools/sql_query.php (.../sql_query.php) (revision 374)
+++ trunk/admin/tools/sql_query.php (.../sql_query.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/users/user_mail.php
===================================================================
diff -u -N -r860 -r2536
--- trunk/admin/users/user_mail.php (.../user_mail.php) (revision 860)
+++ trunk/admin/users/user_mail.php (.../user_mail.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/users/adduser_items.php
===================================================================
diff -u -N -r1566 -r2536
--- trunk/admin/users/adduser_items.php (.../adduser_items.php) (revision 1566)
+++ trunk/admin/users/adduser_items.php (.../adduser_items.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/config/config_lang.php
===================================================================
diff -u -N -r822 -r2536
--- trunk/admin/config/config_lang.php (.../config_lang.php) (revision 822)
+++ trunk/admin/config/config_lang.php (.../config_lang.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/users/adduser_permissions.php
===================================================================
diff -u -N -r1566 -r2536
--- trunk/admin/users/adduser_permissions.php (.../adduser_permissions.php) (revision 1566)
+++ trunk/admin/users/adduser_permissions.php (.../adduser_permissions.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/editor/FCKeditor/css/fck_editorarea.php
===================================================================
diff -u -N -r374 -r2536
--- trunk/admin/editor/FCKeditor/css/fck_editorarea.php (.../fck_editorarea.php) (revision 374)
+++ trunk/admin/editor/FCKeditor/css/fck_editorarea.php (.../fck_editorarea.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/cat_select.php
===================================================================
diff -u -N -r1566 -r2536
--- trunk/admin/cat_select.php (.../cat_select.php) (revision 1566)
+++ trunk/admin/cat_select.php (.../cat_select.php) (revision 2536)
@@ -18,7 +18,7 @@
$b_header_addon = "
";
$pathtoroot="";
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -61,7 +61,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/logs/summary.php
===================================================================
diff -u -N -r822 -r2536
--- trunk/admin/logs/summary.php (.../summary.php) (revision 822)
+++ trunk/admin/logs/summary.php (.../summary.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/category/addcategory_relations.php
===================================================================
diff -u -N -r822 -r2536
--- trunk/admin/category/addcategory_relations.php (.../addcategory_relations.php) (revision 822)
+++ trunk/admin/category/addcategory_relations.php (.../addcategory_relations.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/editor/editor_new.php
===================================================================
diff -u -N -r1759 -r2536
--- trunk/admin/editor/editor_new.php (.../editor_new.php) (revision 1759)
+++ trunk/admin/editor/editor_new.php (.../editor_new.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/browse.php
===================================================================
diff -u -N -r1644 -r2536
--- trunk/admin/browse.php (.../browse.php) (revision 1644)
+++ trunk/admin/browse.php (.../browse.php) (revision 2536)
@@ -85,7 +85,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/config/addlang_export_result.php
===================================================================
diff -u -N -r374 -r2536
--- trunk/admin/config/addlang_export_result.php (.../addlang_export_result.php) (revision 374)
+++ trunk/admin/config/addlang_export_result.php (.../addlang_export_result.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/config/addtheme.php
===================================================================
diff -u -N -r1566 -r2536
--- trunk/admin/config/addtheme.php (.../addtheme.php) (revision 1566)
+++ trunk/admin/config/addtheme.php (.../addtheme.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/help/credits.php
===================================================================
diff -u -N -r898 -r2536
--- trunk/admin/help/credits.php (.../credits.php) (revision 898)
+++ trunk/admin/help/credits.php (.../credits.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/config/importlang_progress.php
===================================================================
diff -u -N -r898 -r2536
--- trunk/admin/config/importlang_progress.php (.../importlang_progress.php) (revision 898)
+++ trunk/admin/config/importlang_progress.php (.../importlang_progress.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/install/prerequisit_errors.php
===================================================================
diff -u -N -r1990 -r2536
--- trunk/admin/install/prerequisit_errors.php (.../prerequisit_errors.php) (revision 1990)
+++ trunk/admin/install/prerequisit_errors.php (.../prerequisit_errors.php) (revision 2536)
@@ -3,7 +3,7 @@
define('THIS_FILE', 'admin/install/prerequisit_errors.php');
$pathtoroot = "";
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
//$path=dirname(realpath(__FILE__));PATH_TRANSLATED
$path=dirname(realpath(__FILE__));
@@ -47,7 +47,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/config/email_edit.php
===================================================================
diff -u -N -r954 -r2536
--- trunk/admin/config/email_edit.php (.../email_edit.php) (revision 954)
+++ trunk/admin/config/email_edit.php (.../email_edit.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/category/addcategory_permissions.php
===================================================================
diff -u -N -r374 -r2536
--- trunk/admin/category/addcategory_permissions.php (.../addcategory_permissions.php) (revision 374)
+++ trunk/admin/category/addcategory_permissions.php (.../addcategory_permissions.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/users/user_groups.php
===================================================================
diff -u -N -r822 -r2536
--- trunk/admin/users/user_groups.php (.../user_groups.php) (revision 822)
+++ trunk/admin/users/user_groups.php (.../user_groups.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/modules/addmodule.php
===================================================================
diff -u -N -r2067 -r2536
--- trunk/admin/modules/addmodule.php (.../addmodule.php) (revision 2067)
+++ trunk/admin/modules/addmodule.php (.../addmodule.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/users/user_addimage.php
===================================================================
diff -u -N -r898 -r2536
--- trunk/admin/users/user_addimage.php (.../user_addimage.php) (revision 898)
+++ trunk/admin/users/user_addimage.php (.../user_addimage.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/users/group_mail.php
===================================================================
diff -u -N -r860 -r2536
--- trunk/admin/users/group_mail.php (.../group_mail.php) (revision 860)
+++ trunk/admin/users/group_mail.php (.../group_mail.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/config/addlang_email.php
===================================================================
diff -u -N -r954 -r2536
--- trunk/admin/config/addlang_email.php (.../addlang_email.php) (revision 954)
+++ trunk/admin/config/addlang_email.php (.../addlang_email.php) (revision 2536)
@@ -12,7 +12,7 @@
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -55,7 +55,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/email/do_send.php
===================================================================
diff -u -N -r534 -r2536
--- trunk/admin/email/do_send.php (.../do_send.php) (revision 534)
+++ trunk/admin/email/do_send.php (.../do_send.php) (revision 2536)
@@ -13,7 +13,7 @@
## privileges along maximum prosecution allowed by law. ##
##############################################################
//$pathtoroot="";
-if(!strlen($pathtoroot))
+if( !(isset($pathtoroot) && $pathtoroot) )
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
@@ -56,7 +56,7 @@
$p = "";
}
}
- if(!strlen($pathtoroot))
+ if( !(isset($pathtoroot) && $pathtoroot) )
$pathtoroot = ".".$pathchar;
}
else
Index: trunk/admin/head.php
===================================================================
diff -u -N -r1510 -r2536
--- trunk/admin/head.php (.../head.php) (revision 1510)
+++ trunk/admin/head.php (.../head.php) (revision 2536)
@@ -1,5 +1,5 @@