diff options
author | plegall <plg@piwigo.org> | 2009-12-19 21:46:19 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2009-12-19 21:46:19 +0000 |
commit | aa42c1556ddd72b6c8daf944febe406406278385 (patch) | |
tree | 3e0f735be710a0ad844e755ee073cd4144727f61 /admin/site_manager.php | |
parent | 86d300541b8dc1a5d25d7a34134608c02245a218 (diff) | |
parent | 4a272ac9504d9fe7b98df5d33d5534b314dc0527 (diff) |
Create release 2.0.7 from branch 2.0 r4533
git-svn-id: http://piwigo.org/svn/tags/2.0.7@4534 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/site_manager.php')
-rw-r--r-- | admin/site_manager.php | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/admin/site_manager.php b/admin/site_manager.php index 06687a274..7e30090d6 100644 --- a/admin/site_manager.php +++ b/admin/site_manager.php @@ -33,6 +33,11 @@ include_once(PHPWG_ROOT_PATH.'admin/include/functions.php'); // +-----------------------------------------------------------------------+ check_status(ACCESS_ADMINISTRATOR); +if (!empty($_POST) or isset($_GET['action'])) +{ + check_pwg_token(); +} + /** * requests the given $url (a remote create_listing_file.php) and fills a * list of lines corresponding to request output @@ -198,11 +203,13 @@ SELECT galleries_url } } -$template->assign( array( - 'U_HELP' => get_root_url().'popuphelp.php?page=site_manager', - 'F_ACTION' => get_root_url().'admin.php' - .get_query_string_diff( array('action','site') ) - ) ); +$template->assign( + array( + 'U_HELP' => get_root_url().'popuphelp.php?page=site_manager', + 'F_ACTION' => get_root_url().'admin.php'.get_query_string_diff(array('action','site','pwg_token')), + 'PWG_TOKEN' => get_pwg_token(), + ) + ); // +-----------------------------------------------------------------------+ // | remote sites list | @@ -242,6 +249,7 @@ while ($row = mysql_fetch_array($result)) $base_url = PHPWG_ROOT_PATH.'admin.php'; $base_url.= '?page=site_manager'; $base_url.= '&site='.$row['id']; + $base_url.= '&pwg_token='.get_pwg_token(); $base_url.= '&action='; $update_url = PHPWG_ROOT_PATH.'admin.php'; |