Index: trunk/admin/install.php =================================================================== diff -u -r534 -r537 --- trunk/admin/install.php (.../install.php) (revision 534) +++ trunk/admin/install.php (.../install.php) (revision 537) @@ -489,6 +489,22 @@ $ado =& inst_&GetADODBConnection(); $mod_arr = $_POST['modules']; + $mod_str = ''; + foreach ($mod_arr as $tmp_mod) { + $mod_str .= "'$tmp_mod',"; + } + + $mod_str = substr($mod_str, 0, strlen($mod_str) - 1); + + $sql = "SELECT Name FROM ".$g_TablePrefix."Modules WHERE Name IN ($mod_str) ORDER BY LoadOrder"; + $rs = $ado->Execute($sql); + + $mod_arr = array(); + while ($rs && !$rs->EOF) { + $mod_arr[] = $rs->fields['Name']; + $rs->MoveNext(); + } + foreach($mod_arr as $p) { $mod_name = strtolower($p); Index: trunk/kernel/parser.php =================================================================== diff -u -r534 -r537 --- trunk/kernel/parser.php (.../parser.php) (revision 534) +++ trunk/kernel/parser.php (.../parser.php) (revision 537) @@ -1426,7 +1426,9 @@ return $ret; } - +/* + @description: Initializes categories +*/ function m_init_cats($attribs = array()) { // save current & previous category (used in pagination) Index: trunk/admin/install/upgrades/inportal_upgrade_v1.0.8.sql =================================================================== diff -u --- trunk/admin/install/upgrades/inportal_upgrade_v1.0.8.sql (revision 0) +++ trunk/admin/install/upgrades/inportal_upgrade_v1.0.8.sql (revision 537) @@ -0,0 +1 @@ +UPDATE Modules SET Version = '1.0.7' WHERE Name = 'In-Portal'; \ No newline at end of file Index: trunk/kernel/include/parse.php =================================================================== diff -u -r493 -r537 --- trunk/kernel/include/parse.php (.../parse.php) (revision 493) +++ trunk/kernel/include/parse.php (.../parse.php) (revision 537) @@ -238,7 +238,7 @@ { $func = $this->name; $override = "_".$func; - + if( function_exists($override) ) { $ret = @$override($this->attributes); Index: trunk/kernel/include/emailmessage.php =================================================================== diff -u -r534 -r537 --- trunk/kernel/include/emailmessage.php (.../emailmessage.php) (revision 534) +++ trunk/kernel/include/emailmessage.php (.../emailmessage.php) (revision 537) @@ -311,7 +311,6 @@ $next_tag = strpos($html,"",$next_tag); @@ -378,7 +377,7 @@ } function ParseElement($raw, $inner_html ="") - { + { $tag = new clsHtmlTag($raw); $tag->inner_html = $inner_html; @@ -390,7 +389,8 @@ } else { - if (is_object($this->Item)) { + if (is_object($this->Item)) { + $this->Item->TagPrefix = $tag->name; $output = $this->Item->ParseObject($tag); } else { Index: trunk/kernel/frontaction.php =================================================================== diff -u -r534 -r537 --- trunk/kernel/frontaction.php (.../frontaction.php) (revision 534) +++ trunk/kernel/frontaction.php (.../frontaction.php) (revision 537) @@ -34,61 +34,54 @@ { case "m_login": // if($objSession->ValidSession()) $objSession->Logout(); - //echo $objSession->GetSessionKey()."
\n"; + //echo $objSession->GetSessionKey()."
\n"; if ($objConfig->Get("CookieSessions") == 1 && $_COOKIE["CookiesTest"] != "1") { $FormError["login"]["login_user"] = language("lu_cookies_error"); } - else - { - $MissingCount = SetMissingDataErrors("login"); - if($MissingCount==2) + else { - $FormError["login"]["login_user"]= language("lu_ferror_loginboth"); - unset($FormError["login"]["login_password"]); + $MissingCount = SetMissingDataErrors("login"); + if($MissingCount==2) + { + $FormError["login"]["login_user"]= language("lu_ferror_loginboth"); + unset($FormError["login"]["login_password"]); + } + + if($MissingCount==0) + { + if($_POST["login_user"]=="root") + { + $FormError["login"]["login_user"]= language("lu_access_denied"); + } + else + { + if ($objSession->Login($_POST["login_user"], md5($_POST["login_password"])) == FALSE) + { + $FormError["login"]["login_password"] = language("lu_incorrect_login"); + } + else + { + if( !headers_sent() && GetVar('usercookie') == 1 ) + { + $c = $_POST["login_user"]."|"; + $pw = $_POST["login_password"]; + if(strlen($pw) < 31) $pw = md5($pw); + $c .= $pw; + + setcookie("login",$c,time()+2592000); + } + + + // set new destination template if passed + $dest = GetVar('dest', true); + if(!$dest) $dest = GetVar('DestTemplate', true); + if($dest) $var_list['t'] = $dest; + //echo "DEST: $dest
"; + } + } + } } - - if($MissingCount==0) - { - if($_POST["login_user"]=="root") - { - $FormError["login"]["login_user"]= language("lu_access_denied"); - } - else - { - $LoginCheck = $objSession->Login( $_POST["login_user"], md5($_POST["login_password"]) ); - if($LoginCheck === true) - { - if( !headers_sent() && GetVar('usercookie') == 1 ) - { - $c = $_POST["login_user"]."|"; - $pw = $_POST["login_password"]; - if(strlen($pw) < 31) $pw = md5($pw); - $c .= $pw; - setcookie("login",$c,time()+2592000); - } - - // set new destination template if passed - $dest = GetVar('dest', true); - if(!$dest) $dest = GetVar('DestTemplate', true); - if($dest) $var_list['t'] = $dest; - } - else - { - switch($LoginCheck) - { - case -1: // user or/and pass wrong - $FormError["login"]["login_password"] = language("lu_incorrect_login"); - break; - - case -2: // user ok, but has no permission - $FormError["login"]["login_password"] = language("la_text_nopermissions"); - break; - } - } - } - } - } - break; + break; case "m_forgotpw": $MissingCount = SetMissingDataErrors("forgotpw"); @@ -111,7 +104,8 @@ } if($found) { - $newpw = makepassword(); + $newpw = makepassword(); + $objSession->Set('password', $newpw); $u->Set("Password",$newpw); $u->Update(); $u->SendUserEventMail("USER.PSWD",$u->Get("PortalUserId")); Index: trunk/kernel/include/category.php =================================================================== diff -u -r534 -r537 --- trunk/kernel/include/category.php (.../category.php) (revision 534) +++ trunk/kernel/include/category.php (.../category.php) (revision 537) @@ -735,6 +735,7 @@ switch($field) { case "name": + case "Name": /* @field:cat.name @description:Category name