source: extensions/guest_view_thumb_only/main.inc.php @ 21765

Last change on this file since 21765 was 15771, checked in by ddtddt, 12 years ago

[extensions] - guest_view_thumb_only - first commit Thanks to p@t for code

File size: 391 bytes
Line 
1<?php
2/*
3Plugin Name: Guest View Thumb Only
4Version: 1
5Description: Users only have access to thumbnails
6Plugin URI: http://piwigo.org
7Author: Piwigo
8Author URI:http://piwigo.org/ext/extension_view.php?eid=607
9*/
10
11add_event_handler('loc_begin_picture', 'picture_guest_denied');
12
13function picture_guest_denied()
14{
15  global $user;
16  if (is_a_guest()) access_denied();
17}
18
19
20?>
Note: See TracBrowser for help on using the repository browser.