2 //NP_gallery admin page
\r
4 $strRel = '../../../';
\r
6 require($strRel . 'config.php'); //nucleus config
\r
7 include(dirname(__FILE__).'/config.php'); //gallery config
\r
9 if (!$member->isLoggedIn()) doError(_NOTLOGGEDIN);
\r
11 include($DIR_LIBS . 'PLUGINADMIN.php');
\r
13 global $galleryaction, $CONF, $NPG_CONF,$gmember,$member;
\r
14 $galleryaction=$CONF['PluginURL']."gallery/index.php";
\r
16 //create extra header info for admin page
\r
17 $gallery_header = '<style type="text/css">
\r
21 border-bottom: 1px solid black;
\r
22 margin: 12px 0px 0px 0px;
\r
25 padding-left: 10px }
\r
30 list-style-type: none; }
\r
32 #tabmenu a, a.active {
\r
36 border: 1px solid black;
\r
37 -moz-border-radius-topleft: 5px;
\r
38 -moz-border-radius-topright: 5px;
\r
39 padding: 5px 5px 0px 5px;
\r
41 text-decoration: none; }
\r
45 border-bottom: 1px solid white; }
\r
49 background: #F6F6F6; }
\r
51 #tabmenu a:visited {
\r
54 #tabmenu a.active:hover {
\r
58 #admin_content {font: 0.9em/1.3em "bitstream vera sans", verdana, sans-serif;
\r
59 text-align: justify;
\r
78 font: bold 1.0em Arial, Helvetica, sans-serif;
\r
82 border: 1px dotted #61B5CF;
\r
87 font: 1.2em Arial, Helvetica, sans-serif;
\r
97 function openTarget (form, features, windowName) {
\r
99 windowName = \'formTarget\' + (new Date().getTime());
\r
100 form.target = windowName;
\r
101 open (\'\', windowName, features);
\r
107 // create the admin area page
\r
108 $oPluginAdmin = new PluginAdmin('gallery');
\r
109 $oPluginAdmin->start($gallery_header);
\r
111 echo '<h2>'.__NPG_ADMIN_TITLE.'</h2>';
\r
114 $action = requestVar('action');
\r
115 if(!$action) $action = 'albumlist';
\r
116 $admin = new NPG_ADMIN();
\r
117 $admin->action($action);
\r
120 $oPluginAdmin->end();
\r