diff options
Diffstat (limited to 'admin.php')
| -rw-r--r-- | admin.php | 6 | 
1 files changed, 5 insertions, 1 deletions
| @@ -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
 | 
