Index: branches/unlabeled/unlabeled-1.20.4/admin/install/install_lib.php
===================================================================
diff -u -r543 -r795
--- branches/unlabeled/unlabeled-1.20.4/admin/install/install_lib.php (.../install_lib.php) (revision 543)
+++ branches/unlabeled/unlabeled-1.20.4/admin/install/install_lib.php (.../install_lib.php) (revision 795)
@@ -457,8 +457,10 @@
//$lic = LoadLicense();
$lic = base64_decode($g_License);
inst_ParseLicense($lic);
-// echo "Checking $g_Domain..
\n";
-// echo "
";print_r($i_Keys); echo "
";
+
+ //echo "Checking $g_Domain..
\n";
+ //echo "";print_r($i_Keys); echo "
";
+
$modules = array();
if(!inst_IsLocalSite($g_Domain))
{
@@ -470,16 +472,14 @@
$modules = explode(",",strtolower($key["mod"]));
}
}
- if(in_array($name,$modules))
- {
-// echo "Module $name is licensed
\n";
- return TRUE;
- }
- else
- {
- // echo "Module $name is not licensed
\n";
- return FALSE;
- }
+ if(in_array(strtolower($name),$modules))
+ {
+ return TRUE;
+ }
+ else
+ {
+ return FALSE;
+ }
}
else
return TRUE;
@@ -557,9 +557,9 @@
$inst_file = $ModuleAdminDir.'install.php';
if( file_exists($inst_file) && file_exists($ModuleAdminDir.'install/inportal_schema.sql') )
{
- //if(inst_ModuleLicensed($file))
+ //if(inst_ModuleLicensed($file)) {
$new[$file] = $inst_file;
-
+ //}
}
}
}