source: extensions/SmartAlbums/admin.php @ 13327

Last change on this file since 13327 was 11392, checked in by mistic100, 13 years ago

add a list of all SmartAlbums

File size: 913 bytes
Line 
1<?php
2if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
3
4global $conf, $template, $page;
5
6load_language('plugin.lang', SMART_PATH);
7if (!is_array($conf['SmartAlbums'])) $conf['SmartAlbums'] = unserialize($conf['SmartAlbums']);
8
9include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
10$page['tab'] = (isset($_GET['tab'])) ? $_GET['tab'] : $page['tab'] = 'albums';
11 
12$tabsheet = new tabsheet();
13$tabsheet->add('albums', l10n('All SmartAlbums'), SMART_ADMIN.'-albums');
14$tabsheet->add('config', l10n('Configuration'),   SMART_ADMIN.'-config');
15$tabsheet->select($page['tab']);
16$tabsheet->assign();
17
18$template->assign(array(
19  'SMART_PATH' => SMART_PATH,
20));
21
22include(SMART_PATH.'admin/'.$page['tab'].'.inc.php');
23$template->set_filename('SmartAlbums_content', dirname(__FILE__).'/admin/template/'.$page['tab'].'.tpl');
24$template->assign_var_from_handle('ADMIN_CONTENT', 'SmartAlbums_content');
25
26?>
Note: See TracBrowser for help on using the repository browser.