From d16d2688397aa0c795937b0613543c481f563317 Mon Sep 17 00:00:00 2001 From: Banana Date: Wed, 15 Feb 2012 15:58:09 +0100 Subject: [PATCH] init of the management page --- lib/Insipid/Main.pm | 11 ++++++++++ lib/Insipid/Manage.pm | 48 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 lib/Insipid/Manage.pm diff --git a/lib/Insipid/Main.pm b/lib/Insipid/Main.pm index 8511bd6..7724ef2 100755 --- a/lib/Insipid/Main.pm +++ b/lib/Insipid/Main.pm @@ -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 ''; exit; + } + + # management + if (param('op') eq 'manage') { + show_management(); + print ''; + exit; } } } @@ -794,6 +804,7 @@ sub show_toolbar { if (logged_in() eq 1) { print "options | "; + print "manage | "; print "tags | "; print "import | "; print "export | "; diff --git a/lib/Insipid/Manage.pm b/lib/Insipid/Manage.pm new file mode 100644 index 0000000..a7a5d2d --- /dev/null +++ b/lib/Insipid/Manage.pm @@ -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__ -- 2.39.5