source: extensions/ConcoursPhoto/admin/admin.php @ 8946

Last change on this file since 8946 was 8946, checked in by tiico, 13 years ago

Prepare v2.0.0 for Concours photo plugin :

  • Add exaequo checking for the result (beta)
  • Add EN language
  • Correct "concours not displayed" when no group is selected in admin page. Now, concours is available for all registered user (not depending on the group appartenance)
  • Add option to allow author to vote for their photos (disable check based on username=authorname)
  • Add option to allow user to change the score after a validation
  • Add to guest the possibility to vote for a concours (BETA)
  • Some correction (code and database structure)
File size: 1.4 KB
Line 
1<?php
2
3if (!defined('PHPWG_ROOT_PATH')) die('Hacking attempt!');
4
5global $template, $conf, $user;
6
7load_language('plugin.lang', CONCOURS_PATH);
8include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
9include_once(CONCOURS_PATH . 'admin/functions.inc.php');
10$my_base_url = get_admin_plugin_menu_link(__FILE__);
11
12// +-----------------------------------------------------------------------+
13// |                            Tabsheet
14// +-----------------------------------------------------------------------+
15if (!isset($_GET['tab']))
16    $page['tab'] = 'manage';
17else
18    $page['tab'] = $_GET['tab'];
19
20$tabsheet = new tabsheet();
21$tabsheet->add('manage',
22               l10n('concours_management'),
23               $my_base_url.'&amp;tab=manage');
24
25$tabsheet->add('add_concours',
26               l10n('concours_add'),
27               $my_base_url.'&amp;tab=add_concours&amp;action=new');
28
29$tabsheet->add('config',
30               l10n('concours_config'),
31               $my_base_url.'&amp;tab=config');
32
33$tabsheet->add('params',
34               l10n('concours_params'),
35               $my_base_url.'&amp;tab=params');
36
37$tabsheet->add('audit',
38               l10n('concours_audit'),
39               $my_base_url.'&amp;tab=audit');
40
41$tabsheet->select($page['tab']);
42$tabsheet->assign();
43
44
45// Include file
46include(CONCOURS_PATH.'admin/'.$page['tab'].'.php');
47
48?>
Note: See TracBrowser for help on using the repository browser.