diff --git a/e107_admin/frontpage.php b/e107_admin/frontpage.php index 1ba829c1a..ea3ea0b6d 100644 --- a/e107_admin/frontpage.php +++ b/e107_admin/frontpage.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/frontpage.php,v $ -| $Revision: 1.3 $ -| $Date: 2007-06-24 16:30:42 $ +| $Revision: 1.4 $ +| $Date: 2007-10-28 19:04:13 $ | $Author: e107steved $ | +----------------------------------------------------------------------------+ @@ -206,7 +206,15 @@ if (isset($_POST['fp_delete_rule'])) { if (isset($fp_settings[key($_POST['fp_delete_rule'])])) { - unset($fp_settings[key($_POST['fp_delete_rule'])]); + $rule_no = key($_POST['fp_delete_rule']); + $array_size = count($fp_settings); + unset($fp_settings[$rule_no]); + while ($rule_no < $array_size) + { // Move up and renumber any entries after the deleted rule + $fp_settings[$rule_no] = $fp_settings[$rule_no + 1]; + $rule_no++; + unset($fp_settings[$rule_no]); + } $fp_update_prefs = TRUE; } } @@ -344,7 +352,7 @@ class frontpage ".($rule_info['order'] ? FRTLAN_46 : FRTLAN_42)." - ".FRTLAN_43.r_userclass('class', $rule_info['class'], 'off', 'guest,member,admin,main,classes')." + ".FRTLAN_43.r_userclass('class', $rule_info['class'], 'off', 'public,guest,member,admin,main,classes')." ".FRTLAN_49."  ".FRTLAN_35."
".FRTLAN_50.""; diff --git a/e107_handlers/login.php b/e107_handlers/login.php index 230822110..781c8ac73 100644 --- a/e107_handlers/login.php +++ b/e107_handlers/login.php @@ -12,9 +12,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_handlers/login.php,v $ -| $Revision: 1.5 $ -| $Date: 2007-07-17 15:11:55 $ -| $Author: sweetas $ +| $Revision: 1.6 $ +| $Date: 2007-10-28 19:04:14 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -170,7 +170,7 @@ class userlogin { { // We've found the entry of interest if (strlen($fp)) { - $redir = ((strpos($fp, 'http') === FALSE) ? e_BASE : '').$tp -> replaceConstants($fp, TRUE, TRUE); + $redir = ((strpos($fp, 'http') === FALSE) ? e_BASE : '').$tp -> replaceConstants($fp, TRUE, FALSE); if (e_QUERY) $redir .= "?".e_QUERY; // $admin_log->e_log_event(4,__FILE__."|".__FUNCTION__."@".__LINE__,"DBG","Redirect active",$redir,FALSE,FALSE); }