mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-01 20:04:51 +02:00
Add token to themes installation.
Only webmasters can install new plugins, themes or languages. git-svn-id: http://piwigo.org/svn/trunk@5406 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+11
-4
@@ -58,11 +58,18 @@ if (!is_writable($languages_dir))
|
||||
|
||||
if (isset($_GET['revision']) and !is_adviser())
|
||||
{
|
||||
check_pwg_token();
|
||||
if (!is_webmaster())
|
||||
{
|
||||
array_push($page['errors'], l10n('Webmaster status is required.'));
|
||||
}
|
||||
else
|
||||
{
|
||||
check_pwg_token();
|
||||
|
||||
$install_status = $languages->extract_language_files('install', $_GET['revision']);
|
||||
|
||||
redirect($base_url.'&installstatus='.$install_status);
|
||||
$install_status = $languages->extract_language_files('install', $_GET['revision']);
|
||||
|
||||
redirect($base_url.'&installstatus='.$install_status);
|
||||
}
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
||||
Reference in New Issue
Block a user