friendica/friendica — pull request #245 by CatoTH (2012-04-18 07:41:42+00:00)
Title: XSRF-Protection and PHPdocs for /admin/

The form security tokens are added to the forms in /admin/. I also added PHPdocs for the functions (makes editing with an IDE easier).

Two other changes that should not affect the behavior:
The line
| set_config('system','directory_search_url', $global_search_url);
is deleted, as directory_search_url is set in .htaccess.php and $global_search_url is always empty / not defined in the code.

$is_unsupported = 1-(intval(file_exists($file . '/unsupported')));
is replaced with
$is_supported = 1-(intval(file_exists($file . '/unsupported'))); // Is not used yet
because some lines below the variable $is_supported is used. However, it seems the value is used nowhere at the moment.