1
0
mirror of https://github.com/e107inc/e107.git synced 2025-03-14 17:39:46 +01:00

menumanager_class.php: fixed path for menu config action (it included '.php' and leaded to '.php.php' anding);

signup.php: added default empty values for user_class, user_perms, user_prefs, user_realm as they were leading to DB Insert error;
This commit is contained in:
berckoff 2012-01-10 16:31:39 +00:00
parent 771fc01a9c
commit 59f2feb30c
2 changed files with 151 additions and 152 deletions

View File

@ -1060,7 +1060,7 @@ class e_menuManager {
$conf = '';
if (file_exists(e_PLUGIN.$menu_path.$menu_name.'_menu_config.php'))
{
$conf = $menu_path.$menu_name.'_menu_config.php';
$conf = $menu_path.$menu_name.'_menu_config';
}
if($conf == '' && file_exists(e_PLUGIN."{$menu_path}config.php"))
@ -1187,7 +1187,6 @@ class e_menuManager {
}
function menuSetConfigList()
{
global $sql,$pref;
@ -1226,13 +1225,5 @@ class e_menuManager {
$pref['menuconfig_list'] = $tmp;
save_prefs();
}
} // end of Class.
?>

View File

@ -513,7 +513,8 @@ if (isset($_POST['register']))
}
// Work out data to be written to user audit trail
$signup_data = array('user_name', 'user_loginname', 'user_email', 'user_ip');
foreach (array() as $f)
// foreach (array() as $f)
foreach ($signup_data as $f)
{
$signup_data[$f] = $allData['data'][$f]; // Just copy across selected fields
}
@ -526,6 +527,13 @@ if (isset($_POST['register']))
$allData['data']['user_join'] = time();
// The user_class, user_perms, user_prefs, user_realm fields don't have default value,
// so we put apropriate ones, otherwise - broken DB Insert
$allData['data']['user_class'] = '';
$allData['data']['user_perms'] = '';
$allData['data']['user_prefs'] = '';
$allData['data']['user_realm'] = '';
// Actually write data to DB
validatorClass::addFieldTypes($userMethods->userVettingInfo,$allData);
$nid = $sql->db_Insert('user', $allData);