// Is the function valid?
if (!function_exists($functionName)) {
// Invalid function name
- debug_report_bug('Invalid do ' . getRequestParameter('do') . ', function ' . $functionName .' does not exist.', false);
+ debug_report_bug(__FUNCTION__, __LINE__, 'Invalid do ' . getRequestParameter('do') . ', function ' . $functionName .' does not exist.', false);
} // END - if
// Call-back the method handling our request
// Ids lower one are not accepted
if ($id < 1) {
// Not good, should be fixed
- debug_report_bug('Network id ' . $id . ' is smaller than 1.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Network id ' . $id . ' is smaller than 1.');
} // END - if
// Set current network id
// Ids lower one are not accepted
if ($id < 1) {
// Not good, should be fixed
- debug_report_bug('Network type id ' . $id . ' is smaller than 1.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Network type id ' . $id . ' is smaller than 1.');
} // END - if
// Set current network id
// Ids lower one are not accepted
if ($id < 1) {
// Not good, should be fixed
- debug_report_bug('Network type id ' . $id . ' is smaller than 1.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Network type id ' . $id . ' is smaller than 1.');
} // END - if
// By default we have no data
// Ids lower one are not accepted
if ($id < 1) {
// Not good, should be fixed
- debug_report_bug('Network request parameter id ' . $id . ' is smaller than 1.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Network request parameter id ' . $id . ' is smaller than 1.');
} // END - if
// By default we have no data
// Ids lower one are not accepted
if ($id < 1) {
// Not good, should be fixed
- debug_report_bug('Network id ' . $id . ' is smaller than 1.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Network id ' . $id . ' is smaller than 1.');
} // END - if
// Just call our inner method
// Ids lower one are not accepted
if ($id < 1) {
// Not good, should be fixed
- debug_report_bug('Network type handler id ' . $id . ' is smaller than 1.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Network type handler id ' . $id . ' is smaller than 1.');
} // END - if
// Just call our inner method
// Ids lower one are not accepted
if ($id < 1) {
// Not good, should be fixed
- debug_report_bug('Network request parameter id ' . $id . ' is smaller than 1.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Network request parameter id ' . $id . ' is smaller than 1.');
} // END - if
// Just call our inner method
function doAdminRemoveNetworkEntry ($table, $column, $id, $limit = 1) {
// Remove the entry
SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_network_%s` WHERE `%s`=%s LIMIT %s",
- array($table, $column, $id, $limit), __FILE__, __LINE__);
+ array($table, $column, $id, $limit), __FUNCTION__, __LINE__);
// Return affected rows
return SQL_AFFECTEDROWS();
FROM
`{?_MYSQL_PREFIX?}_network_data`
ORDER BY
- `network_short_name` ASC", __FILE__, __LINE__);
+ `network_short_name` ASC", __FUNCTION__, __LINE__);
// Do we have entries?
if (SQL_NUMROWS($result) > 0) {
`network_type_handle` ASC",
array(
bigintval($networkId)
- ), __FILE__, __LINE__);
+ ), __FUNCTION__, __LINE__);
// Do we have entries?
if (SQL_NUMROWS($result) > 0) {
t.`network_id`=d.`network_id`
ORDER BY
d.`network_short_name` ASC,
- t.`network_type_handle` ASC", __FILE__, __LINE__);
+ t.`network_type_handle` ASC", __FUNCTION__, __LINE__);
// Do we have entries?
if (SQL_NUMROWS($result) > 0) {
$OUT .= loadTemplate('admin_del_networks_row', true, $networkData);
} else {
// Problem!
- debug_report_bug('Cannot detect edit/del.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
}
// Switch colors
loadTemplate('admin_del_networks', false, $OUT);
} else {
// Problem!
- debug_report_bug('Cannot detect edit/del.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
}
// Don't display the list/add new form
$OUT .= loadTemplate('admin_del_network_types_row', true, $networkTypeData);
} else {
// Problem!
- debug_report_bug('Cannot detect edit/del.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
}
// Switch colors
loadTemplate('admin_del_network_types', false, $content);
} else {
// Problem!
- debug_report_bug('Cannot detect edit/del.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
}
// Don't display the list/add new form
$OUT .= loadTemplate('admin_del_network_params_row', true, $networkRequestData);
} else {
// Problem!
- debug_report_bug('Cannot detect edit/del.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
}
// Switch colors
loadTemplate('admin_del_network_params', false, $content);
} else {
// Problem!
- debug_report_bug('Cannot detect edit/del.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'Cannot detect edit/del.');
}
// Don't display the list/add new form
// Do we have this enty?
if (!isset($entry[$id])) {
// Not found, needs fixing
- debug_report_bug('No entry in key=' . $key . ', id=' . $id . ' found.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'No entry in key=' . $key . ', id=' . $id . ' found.');
} // END - if
// Add this entry
// Do we have this enty?
if (!isset($entry[$id])) {
// Not found, needs fixing
- debug_report_bug('No entry in key=' . $key . ', id=' . $id . ' found.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'No entry in key=' . $key . ', id=' . $id . ' found.');
} // END - if
// Fix empty network_type_banner_url to NULL
// Do we have this enty?
if (!isset($entry[$id])) {
// Not found, needs fixing
- debug_report_bug('No entry in key=' . $key . ', id=' . $id . ' found.');
+ debug_report_bug(__FUNCTION__, __LINE__, 'No entry in key=' . $key . ', id=' . $id . ' found.');
} // END - if
// Fix empty request_param_default to NULL