mirror of
https://github.com/e107inc/e107.git
synced 2025-08-12 17:44:37 +02:00
Bugtracker #4495 - couldn't add new fields
This commit is contained in:
@@ -11,8 +11,8 @@
|
|||||||
| GNU General Public License (http://gnu.org).
|
| GNU General Public License (http://gnu.org).
|
||||||
|
|
|
|
||||||
| $Source: /cvs_backup/e107_0.8/e107_admin/users_extended.php,v $
|
| $Source: /cvs_backup/e107_0.8/e107_admin/users_extended.php,v $
|
||||||
| $Revision: 1.10 $
|
| $Revision: 1.11 $
|
||||||
| $Date: 2008-04-06 21:38:02 $
|
| $Date: 2008-08-29 19:56:26 $
|
||||||
| $Author: e107steved $
|
| $Author: e107steved $
|
||||||
+----------------------------------------------------------------------------+
|
+----------------------------------------------------------------------------+
|
||||||
*/
|
*/
|
||||||
@@ -273,6 +273,7 @@ class users_ext
|
|||||||
|
|
||||||
if(!$current)
|
if(!$current)
|
||||||
{ // Show existing fields
|
{ // Show existing fields
|
||||||
|
$mode = 'show';
|
||||||
$text = "<div style='text-align:center'>";
|
$text = "<div style='text-align:center'>";
|
||||||
$text .= "<table style='".ADMIN_WIDTH."' class='fborder'>
|
$text .= "<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -357,6 +358,7 @@ class users_ext
|
|||||||
{
|
{
|
||||||
if($current == 'new')
|
if($current == 'new')
|
||||||
{
|
{
|
||||||
|
$mode = 'new';
|
||||||
$current = array();
|
$current = array();
|
||||||
$current_include = '';
|
$current_include = '';
|
||||||
$current_regex = '';
|
$current_regex = '';
|
||||||
@@ -365,8 +367,10 @@ class users_ext
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{ // Editing existing definition
|
{ // Editing existing definition
|
||||||
|
$mode = 'edit';
|
||||||
list($current_include, $current_regex, $current_regexfail, $current_hide) = explode("^,^",$current['user_extended_struct_parms']);
|
list($current_include, $current_regex, $current_regexfail, $current_hide) = explode("^,^",$current['user_extended_struct_parms']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
<form method='post' action='".e_SELF."?".e_QUERY."'>
|
<form method='post' action='".e_SELF."?".e_QUERY."'>
|
||||||
";
|
";
|
||||||
@@ -624,7 +628,8 @@ class users_ext
|
|||||||
$text .= "<tr>
|
$text .= "<tr>
|
||||||
<td colspan='4' style='text-align:center' class='forumheader'>";
|
<td colspan='4' style='text-align:center' class='forumheader'>";
|
||||||
|
|
||||||
if ((!is_array($current) || $action == "continue") && $sub_action == "")
|
// if ((!is_array($current) || $action == "continue") && $sub_action == "")
|
||||||
|
if ((($mode == 'new') || $action == "continue") && $sub_action == "")
|
||||||
{
|
{
|
||||||
$text .= "
|
$text .= "
|
||||||
<input class='button' type='submit' name='add_field' value='".EXTLAN_23."' />
|
<input class='button' type='submit' name='add_field' value='".EXTLAN_23."' />
|
||||||
|
Reference in New Issue
Block a user