--- /dev/null
+#!/bin/sh
+
+# Shell script to determine where in the code are commented-in debug lines
+#
+if ! test -e "modules.php"; then
+ echo "$0: Please execute this script from root directory."
+ exit 1
+fi
+
+svn diff |grep -v "svn diff" | grep "DEBUG" | grep "+" | grep -v "//\* DEBUG" > DOCS/debug-lines.log
+++ /dev/null
-#!/bin/sh
-
-# Shell script to determine where in the code are commented-in debug lines
-#
-if ! test -e "modules.php"; then
- echo "$0: Please execute this script from root directory."
- exit 1
-fi
-
-svn diff |grep -v "svn diff" | grep "DEBUG" | grep "+" | grep -v "//\* DEBUG" > DOCS/debug-lines.log
default:
logDebugMessage(__FUNCTION__, __LINE__, sprintf("Invalid date mode %s detected.", $mode));
break;
- }
+ } // END - switch
break;
default: // Default is the US date / time format!
// Call the multi-parameter call-back
$ret = call_user_func_array($filterFunction, $args);
- die('filterFunction='.$filterFunction.',args=<pre>'.print_r($args,true).',ret=<pre>'.print_r($ret,true).'</pre>');
} else {
// One parameter call
$ret = call_user_func($filterFunction, $value);
SUM(`clicks`) AS `normal_clicks`
FROM
`{?_MYSQL_PREFIX?}_user_stats`', __FILE__, __LINE__);
+
+// Merge data together
$content = merge_array($content, SQL_FETCHARRAY($result_media));
// Free memory
FROM
`{?_MYSQL_PREFIX?}_bonus`
LIMIT 1', __FILE__, __LINE__);
+
+ // Merge data together
$content = merge_array($content, SQL_FETCHARRAY($result_media));
// Free memory
} // END - if
// Now handle all over to the inner function which will execute the listing
- doAdminListEntries($SQL, $tableTemplate, $noEntryMessageId, $rowTemplate, $callbackColumns, $extraParameters = array());
+ doAdminListEntries($SQL, $tableTemplate, $noEntryMessageId, $rowTemplate, $callbackColumns, $extraParameters);
}
// Do the listing of entries
$OUT = '';
while ($content = SQL_FETCHARRAY($result)) {
// "Translate" content
- foreach ($callbackColumns as $column=>$callbackFunction) {
+ foreach ($callbackColumns as $columnName=>$callbackFunction) {
// Fill the callback arguments
- $args = array($content[$column]);
+ $args = array($content[$columnName]);
// Do we have more to add?
- if (isset($extraParameters[$column])) {
+ if (isset($extraParameters[$columnName])) {
// Add them as well
- merge_array($args, $extraParameters[$column]);
+ $args = merge_array($args, $extraParameters[$columnName]);
} // END - if
// Call the callback-function
//* NOISY-DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'callbackFunction=' . $callbackFunction . ',args=<pre>'.print_r($args, true).'</pre>');
// @TODO If we can rewrite the EL sub-system to support more than one parameter, this call_user_func_array() can be avoided
- $content[$column] = call_user_func_array($callbackFunction, $args);
+ $content[$columnName] = call_user_func_array($callbackFunction, $args);
} // END - foreach
// Load row template