Ok, your title was not a very good description so I am going to change that for you to make it describe your issue a little better. I also moved it to the proper forum.
If you want to block access to the RSS import cron page so that only a logged in users can view the page here are some instructions. But first I warn everyone that by doing this you will not be able to set up a cronjob script to automatically run the import script for you since it will need to be authenticated for it to work after this change.
Open: /modules/rss_import/rss_import_main.php
Find:
Code:
// breadcrumbs and page title
$navwhere['text1'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel');
$navwhere['link1'] = getmyurl('admin', '');
$navwhere['text2'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel_RSSImport');
$navwhere['link2'] = my_pligg_base . '/module.php?module=rss_import';
$navwhere['text3'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel_RSSImport_Feeds');
$main_smarty->assign('navbar_where', $navwhere);
$main_smarty->assign('posttitle', ' / ' . $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel_RSSImport'));
// show the template
if ($insideTpl == true){
$main_smarty->assign('tpl_center', rss_import_tpl_path . 'import_fields_center');
$main_smarty->display($template_dir . '/admin/admin.tpl');
} else {
$main_smarty->display(rss_import_tpl_path_2 . 'import_fields_center.tpl');
} Replace with:
Code:
force_authentication();
$canIhaveAccess = 0;
$canIhaveAccess = $canIhaveAccess + checklevel('god');
if($canIhaveAccess == 1)
{
// breadcrumbs and page title
$navwhere['text1'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel');
$navwhere['link1'] = getmyurl('admin', '');
$navwhere['text2'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel_RSSImport');
$navwhere['link2'] = my_pligg_base . '/module.php?module=rss_import';
$navwhere['text3'] = $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel_RSSImport_Feeds');
$main_smarty->assign('navbar_where', $navwhere);
$main_smarty->assign('posttitle', ' / ' . $main_smarty->get_config_vars('PLIGG_Visual_Header_AdminPanel_RSSImport'));
// show the template
if ($insideTpl == true){
$main_smarty->assign('tpl_center', rss_import_tpl_path . 'import_fields_center');
$main_smarty->display($template_dir . '/admin/admin.tpl');
} else {
$main_smarty->display(rss_import_tpl_path_2 . 'import_fields_center.tpl');
}
}