diff options
author | 2008-12-03 13:24:17 +0000 | |
---|---|---|
committer | 2008-12-03 13:24:17 +0000 | |
commit | b818ffae24857f39a57c7c43dea2c9aa87815368 (patch) | |
tree | 96e118ef05fe97cfca491cf7020c43c81f9d6f59 /admin.php | |
parent | 9723a57f4ca309da030f6d2aaf6d1e3d3ca2136e (diff) | |
download | scuttle-b818ffae24857f39a57c7c43dea2c9aa87815368.tar.gz scuttle-b818ffae24857f39a57c7c43dea2c9aa87815368.zip |
New Feature: admin can check urls validity
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@190 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'admin.php')
-rw-r--r-- | admin.php | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -32,7 +32,9 @@ $currentUser = $userservice->getCurrentObjectUser(); // Header variables
$tplVars['subtitle'] = T_('Manage users');
$tplVars['loadjs'] = true; -$tplVars['sidebar_blocks'] = array('users' );
+$tplVars['sidebar_blocks'] = array('users' ); +$tplVars['error'] = ''; +$tplVars['msg'] = '';
if ( !$userservice->isLoggedOn() ) {
header('Location: '. createURL('login', ''));
@@ -65,14 +67,19 @@ if ( $action } break; case 'checkUrl' : - $tplVars['msg'] = checkUrl('http://fr3.php.net/manual/fr/function.get-headers.php')?"no pb": "ouille";
+ $bookmarks =& $bookmarkservice->getBookmarks(0, NULL, NULL, NULL, NULL, getSortOrder()); + foreach($bookmarks['bookmarks'] as $bookmark) { + if(!checkUrl($bookmark['bAddress'])) { + $tplVars['error'].= T_('Problem with ').$bookmark['bAddress'].' ('. $bookmark['username'] .')<br/>'; + } + }
break;
default:
// DO NOTHING
}
}
-$templatename = 'userlist.tpl';
+$templatename = 'admin.tpl';
$users =& $userservice->getObjectUsers();
if ( !is_array($users) ) {
|