]> 91.132.146.200 Git - insipid.git/commitdiff
init of the management page
authorBanana <banana@starscream.de>
Wed, 15 Feb 2012 14:58:09 +0000 (15:58 +0100)
committerBanana <banana@starscream.de>
Wed, 15 Feb 2012 14:58:09 +0000 (15:58 +0100)
lib/Insipid/Main.pm
lib/Insipid/Manage.pm [new file with mode: 0644]

index 8511bd610a688626dea86f8dbe85a45d772259fe..7724ef2308248fd227512ee765caf2e9543d1cfe 100755 (executable)
@@ -39,6 +39,7 @@ use Insipid::Sessions;
 use Insipid::Snapshots;
 use Insipid::Tags;
 use Insipid::Util;
+use Insipid::Manage;
 
 use CGI qw/:standard/;
 use CGI::Carp qw(fatalsToBrowser);
@@ -415,6 +416,7 @@ FORM
 
     if (defined(param('op'))) {
         if (logged_in() eq 1) {
+                       # used in snapshots
             if (param('op') eq 'fetchrelated') {
                 if (defined(param('id'))) {
                     fetch_related(param('id'));
@@ -462,10 +464,18 @@ BLET
                 exit;
             }
 
+                       # show the options
             if (param('op') eq 'options') {
                 show_options();
                 print '</body></html>';
                 exit;
+            }
+
+                       # management
+                       if (param('op') eq 'manage') {
+                show_management();
+                print '</body></html>';
+                exit;
             }
         }
     }
@@ -794,6 +804,7 @@ sub show_toolbar {
 
     if (logged_in() eq 1) {
         print "<a class=\"tools\" href=\"$site_url/insipid.cgi?op=options\">options</a> | ";
+               print "<a class=\"tools\" href=\"$site_url/insipid.cgi?op=manage\">manage</a> | ";
         print "<a class=\"tools\" href=\"$site_url/insipid.cgi?op=tags\">tags</a> | ";
         print "<a class=\"tools\" href=\"$site_url/insipid.cgi?op=import\">import</a> | ";
         print "<a class=\"tools\" href=\"$site_url/insipid.cgi?op=export\">export</a> | ";
diff --git a/lib/Insipid/Manage.pm b/lib/Insipid/Manage.pm
new file mode 100644 (file)
index 0000000..a7a5d2d
--- /dev/null
@@ -0,0 +1,48 @@
+#!/usr/bin/perl
+#
+# Copyright (C) 2012 jumpin.banana
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
+# USA
+#
+
+package Insipid::Manage;
+
+use strict;
+use warnings;
+
+use vars qw(@ISA @EXPORT @EXPORT_OK);
+use CGI qw/:standard/;
+use CGI::Carp qw(fatalsToBrowser);
+use Insipid::Config;
+use Insipid::Database;
+use Insipid::Sessions;
+use Insipid::Util;
+require Exporter;
+
+use Data::Dumper;
+
+@ISA = qw(Exporter);
+
+@EXPORT = qw(
+show_management
+);
+
+sub show_management {
+
+}
+
+1;
+__END__