aboutsummaryrefslogtreecommitdiff
path: root/admin.php
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-03 11:11:08 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-12-03 11:11:08 +0000
commit9723a57f4ca309da030f6d2aaf6d1e3d3ca2136e (patch)
tree5c74d68c45e6163caddd27adfbb222d62d06eebc /admin.php
parent61daf846313f9eddbc6098fdd32b07620480be7e (diff)
downloadsemanticscuttle-9723a57f4ca309da030f6d2aaf6d1e3d3ca2136e.tar.gz
semanticscuttle-9723a57f4ca309da030f6d2aaf6d1e3d3ca2136e.tar.bz2
Bug fix: correct get title function (missing ) )
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@189 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'admin.php')
-rw-r--r--admin.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/admin.php b/admin.php
index c548480..99841c8 100644
--- a/admin.php
+++ b/admin.php
@@ -45,6 +45,7 @@ if ( !$currentUser->isAdmin() ) {
}
@list($url, $action, $user) = isset($_SERVER['PATH_INFO']) ? explode('/', $_SERVER['PATH_INFO']) : NULL;
+
if ( $action
&& strpos($_SERVER['HTTP_REFERER'], ROOT.'admin.php') === 0 // Prevent CSRF attacks
@@ -61,7 +62,10 @@ if ( $action
$bookmarkservice->deleteBookmarksForUser($uId);
$tplVars['msg'] = sprintf(T_('%s and all his bookmarks and tags were deleted.'), $user);
- }
+ }
+ break;
+ case 'checkUrl' :
+ $tplVars['msg'] = checkUrl('http://fr3.php.net/manual/fr/function.get-headers.php')?"no pb": "ouille";
break;
default:
// DO NOTHING