From 5a05371627321ac2ac79815c5acde85b1369ae44 Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 3 Apr 2012 18:18:26 +0000 Subject: - is_homepage not set for flat view/calendar modes - added require jquery for some footer_script - removed unused/unnecesary css (hope I'm done for now) - if page[start] is greater than number of items than page not found (google+bing bots automatically detect patterns and increment start parameter) git-svn-id: http://piwigo.org/svn/trunk@13872 68402e56-0260-453c-a942-63ccdbb3a9ee --- index.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'index.php') diff --git a/index.php b/index.php index 1013c3aad..0646461a5 100644 --- a/index.php +++ b/index.php @@ -39,6 +39,10 @@ if (isset($page['category'])) { check_restrictions($page['category']['id']); } +if ($page['start']>0 && $page['start']>=count($page['items'])) +{ + page_not_found('', duplicate_index_url(array('start'=>0))); +} trigger_action('loc_begin_index'); -- cgit v1.2.3