From 08bbd3f9127204aa4bc8be18fdc6ca6d68d88ff1 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 6 Apr 2011 18:31:26 +1000 Subject: Post saving/cache and Google Analytics integration --- mod.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'mod.php') diff --git a/mod.php b/mod.php index c7ee054b..15a602c2 100644 --- a/mod.php +++ b/mod.php @@ -174,6 +174,24 @@ destroyCookies(); header('Location: ?/', true, $config['redirect_http']); + } elseif(preg_match('/^\/confirm\/(.+)$/', $query, $matches)) { + $uri = $matches[1]; + + $body = '

' . + 'Are you sure you want to do that?' . + 'You clicked ' . + '?/' . htmlentities($uri) . '' . + ' but had Javascript disabled, so we weren\'t able to serve the confirmation dialog.' . + '

' . + '

Confirm.

'; + + echo Element('page.html', Array( + 'config'=>$config, + 'title'=>'Confirm', + 'body'=>$body, + 'mod'=>true + ) + ); } elseif(preg_match('/^\/log$/', $query)) { if($mod['type'] < $config['mod']['modlog']) error($config['error']['noaccess']); -- cgit v1.3