| 396 |
/*if (!user_access("access administration pages")) { |
/*if (!user_access("access administration pages")) { |
| 397 |
return message_access(); |
return message_access(); |
| 398 |
}*/ |
}*/ |
| 399 |
if (array_search(DBA_HANDLER, array_keys(dba_handlers())) === FALSE || !SNA_CACHE_ENABLED) { |
if (function_exists('dba_handlers') && SNA_CACHE_ENABLED) { |
| 400 |
drupal_set_message(t('The proper dba_handler support is missing.'), 'error'); |
if (array_search(DBA_HANDLER, array_keys(dba_handlers())) === FALSE) { |
| 401 |
drupal_set_message(t('You have to choose a valid dba_handler in common.php'), 'status'); |
drupal_set_message(t('The proper dba_handler support is missing.'), 'error'); |
| 402 |
|
drupal_set_message(t('You have to choose a valid dba_handler in common.php'), 'status'); |
| 403 |
|
} |
| 404 |
} |
} |
| 405 |
drupal_set_message(t('The network database is updated: ') . date('F d Y H:i:s', filemtime(DATA_PATH)), 'status'); |
drupal_set_message(t('The network database is updated: ') . date('F d Y H:i:s', filemtime(DATA_PATH)), 'status'); |
| 406 |
|
|
| 412 |
For example if you choose the Comments and replies option the |
For example if you choose the Comments and replies option the |
| 413 |
comments will be the base of the connection. If someone reply to a node |
comments will be the base of the connection. If someone reply to a node |
| 414 |
or another comment it results an edge in the network.')); |
or another comment it results an edge in the network.')); |
| 415 |
$form['sna_size_cache'] = array('#title' => t('Number of cached shortest routes'), |
if (SNA_CACHE_ENABLED) { |
| 416 |
'#type' => 'textfield', |
$form['sna_size_cache'] = array('#title' => t('Number of cached shortest routes'), |
| 417 |
'#default_value' => variable_get('sna_size_cache', 10), |
'#type' => 'textfield', |
| 418 |
'#description' => t('The Dijkstra algorithm will be executed on the top-n users by |
'#default_value' => variable_get('sna_size_cache', 10), |
| 419 |
sna_cron script so when the visitors want to search shortest route |
'#description' => t('The Dijkstra algorithm will be executed on the top-n users by |
| 420 |
it can be served from cache fast.')); |
sna_cron script so when the visitors want to search shortest route |
| 421 |
|
it can be served from cache fast.')); |
| 422 |
|
} |
| 423 |
$form['sna_data_path'] = array('#title' => t('Data files path which is writeable by the web server'), |
$form['sna_data_path'] = array('#title' => t('Data files path which is writeable by the web server'), |
| 424 |
'#type' => 'textfield', |
'#type' => 'textfield', |
| 425 |
'#default_value' => variable_get('sna_data_path', FILES_PATH), |
'#default_value' => variable_get('sna_data_path', FILES_PATH), |