From 921f3a2eeeca9be23cb006a31b6d6f71e186374a Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Fri, 27 Mar 2009 03:43:21 +0000 Subject: Put csrf token into Admin_View and Theme_View by default, then use it directly wherever possible instead of access::csrf_token(). --- core/views/admin_dashboard.html.php | 2 +- core/views/admin_graphics.html.php | 2 +- core/views/admin_maintenance.html.php | 4 ++-- core/views/admin_themes.html.php | 2 +- core/views/admin_themes_preview.html.php | 2 +- core/views/permissions_browse.html.php | 2 +- core/views/quick_pane.html.php | 8 ++++---- core/views/simple_uploader.html.php | 2 +- 8 files changed, 12 insertions(+), 12 deletions(-) (limited to 'core/views') diff --git a/core/views/admin_dashboard.html.php b/core/views/admin_dashboard.html.php index 05fec643..c266d7e1 100644 --- a/core/views/admin_dashboard.html.php +++ b/core/views/admin_dashboard.html.php @@ -2,7 +2,7 @@ diff --git a/core/views/admin_themes_preview.html.php b/core/views/admin_themes_preview.html.php index d4fa617d..a7aea172 100644 --- a/core/views/admin_themes_preview.html.php +++ b/core/views/admin_themes_preview.html.php @@ -1,6 +1,6 @@

- + "> %theme_name", array("theme_name" => $info->name)) ?>

diff --git a/core/views/permissions_browse.html.php b/core/views/permissions_browse.html.php index 4c960134..36d097cc 100644 --- a/core/views/permissions_browse.html.php +++ b/core/views/permissions_browse.html.php @@ -12,7 +12,7 @@ }); } - var action_url = ""; + var action_url = ""; set = function(cmd, group_id, perm_id, item_id) { $.ajax({ url: action_url.replace("__CMD__", cmd).replace("__GROUP__", group_id). diff --git a/core/views/quick_pane.html.php b/core/views/quick_pane.html.php index 45d14251..d6f097d4 100644 --- a/core/views/quick_pane.html.php +++ b/core/views/quick_pane.html.php @@ -14,14 +14,14 @@ is_photo() && graphics::can("rotate")): ?> -id/ccw?csrf=" . access::csrf_token()) ?>" +id/ccw?csrf=$csrf") ?>" title=""> -id/cw?csrf=" . access::csrf_token()) ?>" +id/cw?csrf=$csrf") ?>" title=""> @@ -51,7 +51,7 @@ type == "album"): ?> -id?csrf=" . access::csrf_token()) ?>" +id?csrf=$csrf") ?>" title=""> @@ -65,7 +65,7 @@ type == "album"): ?> -id?csrf=" . access::csrf_token()) ?>" +id?csrf=$csrf") ?>" title=""> diff --git a/core/views/simple_uploader.html.php b/core/views/simple_uploader.html.php index 246e59b2..16ca0d0b 100644 --- a/core/views/simple_uploader.html.php +++ b/core/views/simple_uploader.html.php @@ -68,7 +68,7 @@ post_params: { "g3sid": "id() ?>", "user_agent": "server("HTTP_USER_AGENT") ?>", - "csrf": "" + "csrf": "" }, file_size_limit : "100 MB", file_types : "*.gif;*.jpg;*.png;*.flv;*.mp4", -- cgit v1.2.3