summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
139c6a5)
- All call-back function names in ext-network shortened, they were to long
- __FUNCTION__ used now in all (except security_functions.php) function
libraries
- logDebugMessage(__FILE__, __LINE__, sprintf("Unknown status %s detected in mailid_error_redirect.", getConfig('mailid_error_redirect')));
+ logDebugMessage(__FUNCTION__, __LINE__, sprintf("Unknown status %s detected in mailid_error_redirect.", getConfig('mailid_error_redirect')));
redirectToUrl('modules.php?module=index&code=' . getCode('UNKNOWN_STATUS') . '&ext=mailid');
break;
} // END - switch
redirectToUrl('modules.php?module=index&code=' . getCode('UNKNOWN_STATUS') . '&ext=mailid');
break;
} // END - switch
}
// Create function name
}
// 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)) {
// Is the function valid?
if (!function_exists($functionName)) {
//------------------------------------------------------------------------------
// Callback function to add new network
//------------------------------------------------------------------------------
// 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
// 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
}
// 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
// Do we have selections?
if (ifPostContainsSelections()) {
// Something has been selected, so start displaying one by one
}
// Handle network type form
}
// Handle network type form
-function doAdminNetworkProcessHandleNetworkTypeForm () {
+function doAdminNetworkProcessHandleNetworkType () {
// Do we have selections?
if (ifPostContainsSelections()) {
// Load network data
// Do we have selections?
if (ifPostContainsSelections()) {
// Load network data
}
// Handle network request parameter form
}
// Handle network request parameter form
-function doAdminNetworkProcessHandleRequestParamsForm () {
+function doAdminNetworkProcessHandleRequestParams () {
// Do we have selections?
if (ifPostContainsSelections()) {
// Init cache array
// Do we have selections?
if (ifPostContainsSelections()) {
// Init cache array
}
// Changes given networks
}
// Changes given networks
-function doAdminNetworkProcessChangeNetworkForm () {
+function doAdminNetworkProcessChangeNetwork () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is updated
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is updated
}
// Removes given networks
}
// Removes given networks
-function doAdminNetworkProcessRemoveNetworkForm () {
+function doAdminNetworkProcessRemoveNetwork () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is removed
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is removed
}
// Add a network type handler if not yet found
}
// 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
// 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
}
// Changes given network type handlers
-function doAdminNetworkProcessChangeNetworkTypeForm () {
+function doAdminNetworkProcessChangeNetworkType () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is updated
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is updated
}
// Changes given network request parameters
}
// Changes given network request parameters
-function doAdminNetworkProcessChangeNetworkParamForm () {
+function doAdminNetworkProcessChangeNetworkParam () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is updated
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is updated
}
// Removes given network type handlers
}
// Removes given network type handlers
-function doAdminNetworkProcessRemoveNetworkTypeForm () {
+function doAdminNetworkProcessRemoveNetworkType () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is removed
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is removed
}
// Removes given network request parameters
}
// Removes given network request parameters
-function doAdminNetworkProcessRemoveNetworkParamForm () {
+function doAdminNetworkProcessRemoveNetworkParam () {
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is removed
// Do we have selections?
if (ifPostContainsSelections()) {
// By default nothing is removed
}
// Adds a request parameter to given network and type
}
// 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
// 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",
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);
if (SQL_NUMROWS($result) == 1) {
// id found so let's load it for the confirmation email
list($id, $hash) = SQL_FETCHROW($result);
- 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);
if (!isAdmin()) {
// Message for testing admin
$message = getMaskedMessage('ADMIN_SPONSOR_UNKNOWN_STATUS', $status);
<td class="header_column bottom right">
<u>$content[total] {?POINTS?}</u>
</td>
<td class="header_column bottom right">
<u>$content[total] {?POINTS?}</u>
</td>
- <td class="header_column bottom"> </td>
+ <td class="header_column bottom">
+
+ </td>
</tr>
<tr>
<td colspan="5" align="center">
</tr>
<tr>
<td colspan="5" align="center">