}
// Create function name
- $functionName = sprintf("doAdminNetworkProcess%sForm", capitalizeUnderscoreString(getRequestParameter('do')));
+ $functionName = sprintf("doAdminNetworkProcess%s", capitalizeUnderscoreString(getRequestParameter('do')));
// Is the function valid?
if (!function_exists($functionName)) {
//------------------------------------------------------------------------------
// Callback function to add new network
-function doAdminNetworkProcessAddNetworkForm () {
+function doAdminNetworkProcessAddNetwork () {
// We can say here, the form is sent, so check if the network is already added
if (isNetworkNameValid(postRequestParameter('network_short_name'))) {
// Already there
}
// Displays selected networks for editing
-function doAdminNetworkProcessHandleNetworkForm () {
+function doAdminNetworkProcessHandleNetwork () {
// Do we have selections?
if (ifPostContainsSelections()) {
// Something has been selected, so start displaying one by one
}
// Handle network type form
-function doAdminNetworkProcessHandleNetworkTypeForm () {
+function doAdminNetworkProcessHandleNetworkType () {
// Do we have selections?
if (ifPostContainsSelections()) {
// Load network data
}
// Handle network request parameter form
-function doAdminNetworkProcessHandleRequestParamsForm () {
+function doAdminNetworkProcessHandleRequestParams () {
// Do we have selections?
if (ifPostContainsSelections()) {
// Init cache array
}
// Changes given networks
-function doAdminNetworkProcessChangeNetworkForm () {
+function doAdminNetworkProcessChangeNetwork () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is updated
}
// Removes given networks
-function doAdminNetworkProcessRemoveNetworkForm () {
+function doAdminNetworkProcessRemoveNetwork () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is removed
}
// Add a network type handler if not yet found
-function doAdminNetworkProcessAddNetworkTypeForm () {
+function doAdminNetworkProcessAddNetworkType () {
// Is the network type handle already used with given network?
if (isNetworkTypeHandleValid(postRequestParameter('network_type_handle'), getRequestParameter('network'))) {
// Already added
}
// Changes given network type handlers
-function doAdminNetworkProcessChangeNetworkTypeForm () {
+function doAdminNetworkProcessChangeNetworkType () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is updated
}
// Changes given network request parameters
-function doAdminNetworkProcessChangeNetworkParamForm () {
+function doAdminNetworkProcessChangeNetworkParam () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is updated
}
// Removes given network type handlers
-function doAdminNetworkProcessRemoveNetworkTypeForm () {
+function doAdminNetworkProcessRemoveNetworkType () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is removed
}
// Removes given network request parameters
-function doAdminNetworkProcessRemoveNetworkParamForm () {
+function doAdminNetworkProcessRemoveNetworkParam () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is removed
}
// Adds a request parameter to given network and type
-function doAdminNetworkProcessAddNetworkParamForm () {
+function doAdminNetworkProcessAddNetworkParam () {
// Is the request parameter already used with given network?
if (isNetworkRequestParameterValid(postRequestParameter('request_param_key'), postRequestParameter('network_type_id'), getRequestParameter('network'))) {
// Already added
case 'added': // Sponsor successfully added with account status = UNCONFIRMED!
// Check for his id number
$result = SQL_QUERY_ESC("SELECT `id`, `hash` FROM `{?_MYSQL_PREFIX?}_sponsor_data` WHERE `email`='%s' LIMIT 1",
- array(postRequestParameter('email')), __FILE__, __LINE__);
+ array(postRequestParameter('email')), __FUNCTION__, __LINE__);
if (SQL_NUMROWS($result) == 1) {
// id found so let's load it for the confirmation email
list($id, $hash) = SQL_FETCHROW($result);
break;
default:
- logDebugMessage(__FILE__, __LINE__, sprintf("Unknown status %s detected.", $status));
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected.", $status));
if (!isAdmin()) {
// Message for testing admin
$message = getMaskedMessage('ADMIN_SPONSOR_UNKNOWN_STATUS', $status);