[vhffs-dev] [867] added checks for $panel

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 867
Author:   gradator
Date:     2007-09-06 19:46:23 +0000 (Thu, 06 Sep 2007)

Log Message:
-----------
added checks for $panel

Modified Paths:
--------------
    trunk/vhffs-public/allgroups.pl
    trunk/vhffs-public/allwebsites.pl
    trunk/vhffs-public/group.pl
    trunk/vhffs-public/index.pl
    trunk/vhffs-public/lastgroups.pl
    trunk/vhffs-public/lastusers.pl
    trunk/vhffs-public/user.pl
    trunk/vhffs-public/websearch.pl


Modified: trunk/vhffs-public/allgroups.pl
===================================================================
--- trunk/vhffs-public/allgroups.pl	2007-09-06 18:07:30 UTC (rev 866)
+++ trunk/vhffs-public/allgroups.pl	2007-09-06 19:46:23 UTC (rev 867)
@@ -45,6 +45,8 @@
 use CGI;
 
 my $panel = new Vhffs::Panel::Main();
+exit 0 unless $panel;
+
 my $vhffs = $panel->{'vhffs'};
 my $cgi = $panel->{'cgi'};
 my $templatedir = $panel->{'templatedir'};

Modified: trunk/vhffs-public/allwebsites.pl
===================================================================
--- trunk/vhffs-public/allwebsites.pl	2007-09-06 18:07:30 UTC (rev 866)
+++ trunk/vhffs-public/allwebsites.pl	2007-09-06 19:46:23 UTC (rev 867)
@@ -47,6 +47,8 @@
 use Vhffs::Services::Web;
 
 my $panel = new Vhffs::Panel::Main();
+exit 0 unless $panel;
+
 my $vhffs = $panel->{'vhffs'};
 my $cgi = $panel->{'cgi'};
 my $templatedir = $panel->{'templatedir'};

Modified: trunk/vhffs-public/group.pl
===================================================================
--- trunk/vhffs-public/group.pl	2007-09-06 18:07:30 UTC (rev 866)
+++ trunk/vhffs-public/group.pl	2007-09-06 19:46:23 UTC (rev 867)
@@ -48,6 +48,8 @@
 use Vhffs::Functions;
 
 my $panel = new Vhffs::Panel::Main();
+exit 0 unless $panel;
+
 my $vhffs = $panel->{'vhffs'};
 my $cgi = $panel->{'cgi'};
 my $templatedir = $panel->{'templatedir'};

Modified: trunk/vhffs-public/index.pl
===================================================================
--- trunk/vhffs-public/index.pl	2007-09-06 18:07:30 UTC (rev 866)
+++ trunk/vhffs-public/index.pl	2007-09-06 19:46:23 UTC (rev 867)
@@ -46,6 +46,8 @@
 use Vhffs::Panel::Main;
 
 my $panel = new Vhffs::Panel::Main();
+exit 0 unless $panel;
+
 my $vhffs = $panel->{'vhffs'};
 my $templatedir = $panel->{'templatedir'};
 my $cgi = $panel->{'cgi'};

Modified: trunk/vhffs-public/lastgroups.pl
===================================================================
--- trunk/vhffs-public/lastgroups.pl	2007-09-06 18:07:30 UTC (rev 866)
+++ trunk/vhffs-public/lastgroups.pl	2007-09-06 19:46:23 UTC (rev 867)
@@ -44,6 +44,8 @@
 use CGI;
 
 my $panel = new Vhffs::Panel::Main();
+exit 0 unless $panel;
+
 my $vhffs = $panel->{'vhffs'};
 my $templatedir = $panel->{'templatedir'};
 my $cgi = $panel->{'cgi'};

Modified: trunk/vhffs-public/lastusers.pl
===================================================================
--- trunk/vhffs-public/lastusers.pl	2007-09-06 18:07:30 UTC (rev 866)
+++ trunk/vhffs-public/lastusers.pl	2007-09-06 19:46:23 UTC (rev 867)
@@ -47,6 +47,8 @@
 use Vhffs::Conf;
 
 my $panel = new Vhffs::Panel::Main();
+exit 0 unless $panel;
+
 my $vhffs = $panel->{'vhffs'};
 my $templatedir = $panel->{'templatedir'};
 my $cgi = $panel->{'cgi'};

Modified: trunk/vhffs-public/user.pl
===================================================================
--- trunk/vhffs-public/user.pl	2007-09-06 18:07:30 UTC (rev 866)
+++ trunk/vhffs-public/user.pl	2007-09-06 19:46:23 UTC (rev 867)
@@ -48,6 +48,8 @@
 use Vhffs::Functions;
 
 my $panel = new Vhffs::Panel::Main();
+exit 0 unless $panel;
+
 my $vhffs = $panel->{'vhffs'};
 my $templatedir = $panel->{'templatedir'};
 my $cgi = $panel->{'cgi'};

Modified: trunk/vhffs-public/websearch.pl
===================================================================
--- trunk/vhffs-public/websearch.pl	2007-09-06 18:07:30 UTC (rev 866)
+++ trunk/vhffs-public/websearch.pl	2007-09-06 19:46:23 UTC (rev 867)
@@ -48,6 +48,8 @@
 use Vhffs::Functions;
 
 my $panel = new Vhffs::Panel::Main();
+exit 0 unless $panel;
+
 my $vhffs = $panel->{'vhffs'};
 my $templatedir = $panel->{'templatedir'};
 my $cgi = $panel->{'cgi'};


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/