addYouAreHereLink('admin', __FILE__);
// By default we should display list/add new forms
-$GLOBALS['network_display'] = true;
+$GLOBALS['network_display'] = TRUE;
// Handle form here
doNetworkHandleForm();
// Display forms?
-if ($GLOBALS['network_display'] === false) {
+if ($GLOBALS['network_display'] === FALSE) {
// Abort here
return;
} // END - if
-// Do we have a network selected?
+// Is there a network selected?
if (isGetRequestElementSet('network_id')) {
// Set current network id
setCurrentNetworkId(getRequestElement('network_id'));
bigintval(getRequestElement('network_type_id'))
), __FUNCTION__, __LINE__);
- // Do we have a record?
+ // Is there a record?
if (SQL_NUMROWS($result) == 1) {
// Load it
$content = SQL_FETCHARRAY($result);
$content['network_max_reload_time'] = createTimeSelections($content['network_max_reload_time'], 'network_max_reload_time', 'WDhms');
// Load template
- loadTemplate($templateName, false, $content);
+ loadTemplate($templateName, FALSE, $content);
// Abort here
return;
bigintval(getRequestElement('network_id'))
), __FUNCTION__, __LINE__);
- // Do we have entries left?
+ // Are there entries left?
if (!SQL_HASZERONUMS($result)) {
// Init row output
$OUT = '';
bigintval($content['network_type_id'])
), __FUNCTION__, __LINE__);
- // Do we have an entry?
+ // Is there an entry?
if (SQL_NUMROWS($result_config) == 1) {
// Load this data as well
$content = merge_array($content, SQL_FETCHARRAY($result_config));
// Add it with extra template
- $content['network_type_config_content'] = loadTemplate('admin_show_config_network_type', true, $content);
+ $content['network_type_config_content'] = loadTemplate('admin_show_config_network_type', TRUE, $content);
} else {
// No configuration found, so display form
- $content['network_type_config_content'] = loadTemplate('admin_add_config_network_type', true, $content);
+ $content['network_type_config_content'] = loadTemplate('admin_add_config_network_type', TRUE, $content);
}
// Free result
SQL_FREERESULT($result_config);
// Load row template
- $OUT .= loadTemplate('admin_config_network_types_row', true, $content);
+ $OUT .= loadTemplate('admin_config_network_types_row', TRUE, $content);
} // END - while
// Prepare array for main template
);
// Load main template
- loadTemplate('admin_config_network_types', false, $content);
+ loadTemplate('admin_config_network_types', FALSE, $content);
} else {
// No entries found
displayMessage('{%message,ADMIN_CONFIG_NETWORK_HANDLER_TYPES_404=' . bigintval(getRequestElement('network_id')) . '%}');