define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "300");
+define('CURR_SVN_REVISION', "301");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
// If we have an array simply use it and pre-extend it with our value
if (is_array($extraValue)) {
// Make the new args array
- $args = array_merge(array($vaue), $extraValue);
+ $args = array_merge(array($value), $extraValue);
} // END - if
// Call the multi-parameter call-back
}
}
//
-function ADD_MEMBER_SELECTION_BOX($add_all = false, $return = false, $none = false, $def = "0")
+function ADD_MEMBER_SELECTION_BOX ($def="0", $add_all=false, $return=false, $none=false)
{
// Output selection form with all confirmed user accounts listed
$result = SQL_QUERY("SELECT userid, surname, family FROM "._MYSQL_PREFIX."_user_data ORDER BY userid", __FILE__, __LINE__);
// Load template
LOAD_TEMPLATE("admin_member_selection_box", false, $GLOBALS['what']);
+ } else {
+ // Return content
+ return "<select name=\"userid\" size=\"1\">\n".$OUT."</select>\n";
}
}
//
$_POST['id'],
"surfbar_urls",
array("id", "userid", "url", "reward", "costs"),
- array("bigintval", "", "", "TRANSLATE_COMMA", "TRANSLATE_COMMA"),
- array("", "", "", "")
+ array("bigintval", "ADD_MEMBER_SELECTION_BOX", "FRAMETESTER", "TRANSLATE_COMMA", "TRANSLATE_COMMA"),
+ array("", array(false, true), "", "", "")
);
$show = false;
} elseif (isset($_POST['do_edit'])) {
ADMIN_EDIT_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array(), array(), array(), true);
} elseif (isset($_POST['delete'])) {
// Delete entries (with confirmation)
- ADMIN_DELETE_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array("id", "userid", "url", "registered"), array("bigintval", "ADMIN_USER_PROFILE_LINK", "", "MAKE_DATETIME"), array("", "", "", "2"));
+ ADMIN_DELETE_ENTRIES_CONFIRM($_POST['id'], "surfbar_urls", array("id", "userid", "url", "registered"), array("bigintval", "ADMIN_USER_PROFILE_LINK", "FRAMETESTER", "MAKE_DATETIME"), array("", "", "", "2"));
$show = false;
} elseif (isset($_POST['remove'])) {
// Delete entries (with confirmation)