A quali rischi si potrebbe andare in conto editando A in B?
A
Codice PHP:
if ($num_rows) {
$feed_url = url('rss.xml', array('absolute' => TRUE));
drupal_add_feed($feed_url, variable_get('site_name', 'Drupal') .' '. t('RSS'));
$output .= theme('pager', NULL, variable_get('default_nodes_main', 10));
}
else {
$default_message = t('<h1 class="title">Welcome to your new Drupal website!</h1>
Please follow these steps to set up and start using your website:</p>');
$default_message .= '[list=1]';
$default_message .= '[*]'. t('[b]Configure your website[/b] Once logged in, visit the [url="@admin"]administration section[/url], where you can [url="@config"]customize and configure[/url] all aspects of your website.', array('@admin' => url('admin'), '@config' => url('admin/settings'))) .'';
$default_message .= '[*]'. t('[b]Enable additional functionality[/b] Next, visit the [url="@modules"]module list[/url] and enable features which suit your specific needs. You can find additional modules in the [url="@download_modules"]Drupal modules download section[/url].', array('@modules' => url('admin/build/modules'), '@download_modules' => 'http://drupal.org/project/modules')) .'';
$default_message .= '[*]'. t('[b]Customize your website design[/b] To change the "look and feel" of your website, visit the [url="@themes"]themes section[/url]. You may choose from one of the included themes or download additional themes from the [url="@download_themes"]Drupal themes download section[/url].', array('@themes' => url('admin/build/themes'), '@download_themes' => 'http://drupal.org/project/themes')) .'';
$default_message .= '[*]'. t('[b]Start posting content[/b] Finally, you can [url="@content"]create content[/url] for your website. This message will disappear once you have promoted a post to the front page.', array('@content' => url('node/add'))) .'';
$default_message .= '[/list]';
$default_message .= '
'. t('For more information, please refer to the [url="@help"]help section[/url], or the [url="@handbook"]online Drupal handbooks[/url]. You may also post at the [url="@forum"]Drupal forum[/url], or view the wide range of [url="@support"]other support options[/url] available.', array('@help' => url('admin/help'), '@handbook' => 'http://drupal.org/handbooks', '@forum' => 'http://drupal.org/forum', '@support' => 'http://drupal.org/support')) .'</p>';
$output = '<div id="first-time">'. $default_message .'</div>';
}
drupal_set_title('');
return $output;
}
B
Codice PHP:
if ($num_rows) {
$feed_url = url('rss.xml', array('absolute' => TRUE));
drupal_add_feed($feed_url, variable_get('site_name', 'Drupal') .' '. t('RSS'));
$output .= theme('pager', NULL, variable_get('default_nodes_main', 10));
}
else {
$default_message = t('<h1 class="title">Benvenuti nel sito!</p>');
$output = '<div id="first-time">'. $default_message .'</div>';
}
drupal_set_title('');
return $output;
}