source: extensions/PublicAdmin/include/public_events.inc.php @ 24879

Last change on this file since 24879 was 24879, checked in by mistic100, 11 years ago

create plugin PublicAdmin
(only photo:name, photo:comment and photo:author are editable for now)

File size: 562 bytes
Line 
1<?php
2defined('PUBLICADMIN_PATH') or die('Hacking attempt!');
3
4function publicadmin_picture_page()
5{
6  global $template, $picture;
7 
8  if (empty($picture['current']['comment']))
9  {
10    $template->assign('COMMENT_IMG', '');
11  }
12  if (empty($picture['current']['date_creation']))
13  {
14    $template->assign('INFO_CREATION_DATE', '(unknown)');
15  }
16 
17  $template->assign(array(
18    'PUBLICADMIN_PATH' => PUBLICADMIN_PATH,
19  ));
20 
21  $template->set_filename('puba_picture', realpath(PUBLICADMIN_PATH . 'template/picture.tpl'));
22  $template->parse('puba_picture');
23}
Note: See TracBrowser for help on using the repository browser.