Last change
on this file since 16186 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 | /* |
---|
3 | Plugin Name: Guest View Thumb Only |
---|
4 | Version: 1 |
---|
5 | Description: Users only have access to thumbnails |
---|
6 | Plugin URI: http://piwigo.org |
---|
7 | Author: Piwigo |
---|
8 | Author URI:http://piwigo.org/ext/extension_view.php?eid=607 |
---|
9 | */ |
---|
10 | |
---|
11 | add_event_handler('loc_begin_picture', 'picture_guest_denied'); |
---|
12 | |
---|
13 | function 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.