diff --git a/admin.php b/admin.php
index 99841c8..fa2c3db 100644
--- a/admin.php
+++ b/admin.php
@@ -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'] .')
';
+ }
+ }
break;
default:
// DO NOTHING
}
}
-$templatename = 'userlist.tpl';
+$templatename = 'admin.tpl';
$users =& $userservice->getObjectUsers();
if ( !is_array($users) ) {
diff --git a/templates/admin.tpl.php b/templates/admin.tpl.php
new file mode 100644
index 0000000..6e5773b
--- /dev/null
+++ b/templates/admin.tpl.php
@@ -0,0 +1,39 @@
+getCurrentObjectUser();
+
+$this->includeTemplate($GLOBALS['top_include']);
+
+echo '
'. $error ."
\n"; } if (isset($msg) && $msg!='') {