From 77fd1f51a3c5f5a52f72ef8a299fe368228e2285 Mon Sep 17 00:00:00 2001 From: vdigital Date: Fri, 23 May 2008 21:05:41 +0000 Subject: git-svn-id: http://piwigo.org/svn/trunk@2357 68402e56-0260-453c-a942-63ccdbb3a9ee --- BSF/random.php | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 BSF/random.php (limited to 'BSF/random.php') diff --git a/BSF/random.php b/BSF/random.php new file mode 100644 index 000000000..7b0deaeb3 --- /dev/null +++ b/BSF/random.php @@ -0,0 +1,63 @@ + 'category_id', + 'visible_categories' => 'category_id', + 'visible_images' => 'id' + ), + 'WHERE' + ).' + ORDER BY RAND(NOW()) + LIMIT 0, '.$conf['top_number'].' +;'; + +// +-----------------------------------------------------------------------+ +// | redirect | +// +-----------------------------------------------------------------------+ + +redirect(make_index_url(array('list' => array_from_query($query, 'id')))); +?> \ No newline at end of file -- cgit v1.2.3