[vhffs-dev] [870] set_refresh_url is now called correctly |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 870
Author: gradator
Date: 2007-09-06 23:08:47 +0000 (Thu, 06 Sep 2007)
Log Message:
-----------
set_refresh_url is now called correctly
Modified Paths:
--------------
trunk/vhffs-api/src/Vhffs/Panel/Main.pm
trunk/vhffs-panel/admin/broadcast_delete.pl
trunk/vhffs-panel/admin/broadcast_submit.pl
trunk/vhffs-panel/admin/cvs/edit_submit.pl
trunk/vhffs-panel/admin/group/edit_submit.pl
trunk/vhffs-panel/admin/moderation_submit.pl
trunk/vhffs-panel/admin/mysql/edit_submit.pl
trunk/vhffs-panel/admin/pgsql/edit_submit.pl
trunk/vhffs-panel/admin/repository/edit_submit.pl
trunk/vhffs-panel/admin/user/edit_note.pl
trunk/vhffs-panel/admin/user/edit_submit.pl
trunk/vhffs-panel/admin/web/edit_submit.pl
trunk/vhffs-panel/group/delete.pl
trunk/vhffs-panel/mail/add_account.pl
trunk/vhffs-panel/mail/add_forward.pl
trunk/vhffs-panel/mail/change_forward.pl
trunk/vhffs-panel/mail/delete.pl
trunk/vhffs-panel/mail/delete_box.pl
trunk/vhffs-panel/mail/delete_forward.pl
trunk/vhffs-panel/mail/password_box.pl
trunk/vhffs-panel/mail/save_catchall.pl
trunk/vhffs-panel/mail/spambox.pl
trunk/vhffs-panel/mail/spamvirus.pl
trunk/vhffs-panel/mailinglist/add_sub.pl
trunk/vhffs-panel/mailinglist/change_right.pl
trunk/vhffs-panel/mailinglist/del_member.pl
trunk/vhffs-panel/mailinglist/save_options.pl
trunk/vhffs-panel/mailinglist/save_sig.pl
trunk/vhffs-panel/mysql/delete.pl
trunk/vhffs-panel/mysql/prefs_save.pl
trunk/vhffs-panel/object/upavatar.pl
trunk/vhffs-panel/panel.pl
trunk/vhffs-panel/pgsql/delete.pl
trunk/vhffs-panel/pgsql/prefs_save.pl
trunk/vhffs-panel/repository/prefs_save.pl
trunk/vhffs-panel/svn/prefs_save.pl
trunk/vhffs-panel/templates/main/main.tmpl
trunk/vhffs-panel/user/delete.pl
trunk/vhffs-panel/web/delete.pl
trunk/vhffs-panel/web/prefs_save.pl
Modified: trunk/vhffs-api/src/Vhffs/Panel/Main.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Panel/Main.pm 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-api/src/Vhffs/Panel/Main.pm 2007-09-06 23:08:47 UTC (rev 870)
@@ -615,11 +615,13 @@
sub set_refresh_url
{
- my ( $class , $panel , $url , $time ) = @_;
+ my ( $panel , $url , $time ) = @_;
- my $template = $panel->{'template'};
- $time = 3 if( $time == 0 );
- $template->param( HEADERS_SUP => "<meta http-equiv=\"refresh\" content=\"$time; url=$url\">" );
+ if( defined $url ) {
+ my $template = $panel->{template};
+ $template->param( REFRESH_URL => $url );
+ $template->param( REFRESH_TIME => $time || 3 );
+ }
return;
}
Modified: trunk/vhffs-panel/admin/broadcast_delete.pl
===================================================================
--- trunk/vhffs-panel/admin/broadcast_delete.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/broadcast_delete.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -96,6 +96,6 @@
}
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/broadcast_list.pl", 0);
+$panel->set_refresh_url( "/admin/broadcast_list.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/admin/broadcast_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/broadcast_submit.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/broadcast_submit.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -96,6 +96,6 @@
}
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/broadcast.pl", 0);
+$panel->set_refresh_url( "/admin/broadcast.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/admin/cvs/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/cvs/edit_submit.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/cvs/edit_submit.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -110,6 +110,6 @@
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/cvs/list.pl", 0);
+$panel->set_refresh_url( "/admin/cvs/list.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/admin/group/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/group/edit_submit.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/group/edit_submit.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -120,6 +120,6 @@
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/group/list.pl", 0);
+$panel->set_refresh_url( "/admin/group/list.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/admin/moderation_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/moderation_submit.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/moderation_submit.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -142,6 +142,6 @@
}
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/moderation.pl", 0);
+$panel->set_refresh_url( "/admin/moderation.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/admin/mysql/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/mysql/edit_submit.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/mysql/edit_submit.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -112,6 +112,6 @@
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/mysql/list.pl", 0);
+$panel->set_refresh_url( "/admin/mysql/list.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/admin/pgsql/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/pgsql/edit_submit.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/pgsql/edit_submit.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -109,6 +109,6 @@
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/pgsql/list.pl", 0);
+$panel->set_refresh_url( "/admin/pgsql/list.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/admin/repository/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/repository/edit_submit.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/repository/edit_submit.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -111,6 +111,6 @@
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/repository/list.pl", 0);
+$panel->set_refresh_url( "/admin/repository/list.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/admin/user/edit_note.pl
===================================================================
--- trunk/vhffs-panel/admin/user/edit_note.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/user/edit_note.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -104,6 +104,6 @@
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/user/list.pl", 0);
+$panel->set_refresh_url( "/admin/user/list.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/admin/user/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/user/edit_submit.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/user/edit_submit.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -139,6 +139,6 @@
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/user/list.pl", 0);
+$panel->set_refresh_url( "/admin/user/list.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/admin/web/edit_submit.pl
===================================================================
--- trunk/vhffs-panel/admin/web/edit_submit.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/admin/web/edit_submit.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -105,6 +105,6 @@
}
-set_refresh_url Vhffs::Panel::Main($panel, "/admin/web/list.pl", 0);
+$panel->set_refresh_url( "/admin/web/list.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/group/delete.pl
===================================================================
--- trunk/vhffs-panel/group/delete.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/group/delete.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -93,6 +93,6 @@
my $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/group/prefs.pl", 0);
+$panel->set_refresh_url( "/group/prefs.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mail/add_account.pl
===================================================================
--- trunk/vhffs-panel/mail/add_account.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mail/add_account.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -110,6 +110,6 @@
$template->param( MESSAGE => $message );
}
-set_refresh_url Vhffs::Panel::Main($panel, "/mail/prefs.pl?name=$domain", 0);
+$panel->set_refresh_url( "/mail/prefs.pl?name=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mail/add_forward.pl
===================================================================
--- trunk/vhffs-panel/mail/add_forward.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mail/add_forward.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -101,6 +101,6 @@
$template->param( MESSAGE => $message );
}
-set_refresh_url Vhffs::Panel::Main($panel, "/mail/prefs.pl?name=$domain", 0);
+$panel->set_refresh_url( "/mail/prefs.pl?name=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mail/change_forward.pl
===================================================================
--- trunk/vhffs-panel/mail/change_forward.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mail/change_forward.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -110,6 +110,6 @@
$template->param( MESSAGE => $message );
}
-set_refresh_url Vhffs::Panel::Main($panel, "/mail/prefs.pl?name=$domain", 0);
+$panel->set_refresh_url( "/mail/prefs.pl?name=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mail/delete.pl
===================================================================
--- trunk/vhffs-panel/mail/delete.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mail/delete.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -104,6 +104,6 @@
}
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/mail/prefs.pl?name=$domain", 0);
+$panel->set_refresh_url( "/mail/prefs.pl?name=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mail/delete_box.pl
===================================================================
--- trunk/vhffs-panel/mail/delete_box.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mail/delete_box.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -107,6 +107,6 @@
$template->param( MESSAGE => $message );
}
-set_refresh_url Vhffs::Panel::Main($panel, "/mail/prefs.pl?name=$domain", 0);
+$panel->set_refresh_url( "/mail/prefs.pl?name=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mail/delete_forward.pl
===================================================================
--- trunk/vhffs-panel/mail/delete_forward.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mail/delete_forward.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -102,6 +102,6 @@
$template->param( MESSAGE => $message );
}
-set_refresh_url Vhffs::Panel::Main($panel, "/mail/prefs.pl?name=$domain", 0);
+$panel->set_refresh_url( "/mail/prefs.pl?name=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mail/password_box.pl
===================================================================
--- trunk/vhffs-panel/mail/password_box.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mail/password_box.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -110,6 +110,6 @@
$template->param( MESSAGE => $message );
}
-set_refresh_url Vhffs::Panel::Main($panel, "/mail/prefs.pl?name=$domain", 0);
+$panel->set_refresh_url( "/mail/prefs.pl?name=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mail/save_catchall.pl
===================================================================
--- trunk/vhffs-panel/mail/save_catchall.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mail/save_catchall.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -101,6 +101,6 @@
}
}
-set_refresh_url Vhffs::Panel::Main($panel, "/mail/prefs.pl?name=$domain", 0);
+$panel->set_refresh_url( "/mail/prefs.pl?name=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mail/spambox.pl
===================================================================
--- trunk/vhffs-panel/mail/spambox.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mail/spambox.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -116,6 +116,6 @@
$template->param( MESSAGE => $message );
}
-set_refresh_url Vhffs::Panel::Main($panel, "/mail/prefs.pl?name=$domain", 0);
+$panel->set_refresh_url( "/mail/prefs.pl?name=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mail/spamvirus.pl
===================================================================
--- trunk/vhffs-panel/mail/spamvirus.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mail/spamvirus.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -116,6 +116,6 @@
$template->param( MESSAGE => $message );
}
-set_refresh_url Vhffs::Panel::Main($panel, "/mail/prefs.pl?name=$domain", 0);
+$panel->set_refresh_url( "/mail/prefs.pl?name=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mailinglist/add_sub.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/add_sub.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mailinglist/add_sub.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -116,6 +116,6 @@
}
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/mailinglist/prefs.pl?local=$lpart&domain=$domain", 0);
+$panel->set_refresh_url( "/mailinglist/prefs.pl?local=$lpart&domain=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mailinglist/change_right.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/change_right.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mailinglist/change_right.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -114,6 +114,6 @@
}
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/mailinglist/prefs.pl?local=$lpart&domain=$domain", 0);
+$panel->set_refresh_url( "/mailinglist/prefs.pl?local=$lpart&domain=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mailinglist/del_member.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/del_member.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mailinglist/del_member.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -109,6 +109,6 @@
}
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/mailinglist/prefs.pl?local=$lpart&domain=$domain", 0);
+$panel->set_refresh_url( "/mailinglist/prefs.pl?local=$lpart&domain=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mailinglist/save_options.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/save_options.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mailinglist/save_options.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -133,6 +133,6 @@
}
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/mailinglist/prefs.pl?local=$lpart&domain=$domain", 0);
+$panel->set_refresh_url( "/mailinglist/prefs.pl?local=$lpart&domain=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mailinglist/save_sig.pl
===================================================================
--- trunk/vhffs-panel/mailinglist/save_sig.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mailinglist/save_sig.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -99,6 +99,6 @@
}
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/mailinglist/prefs.pl?local=$lpart&domain=$domain", 0);
+$panel->set_refresh_url( "/mailinglist/prefs.pl?local=$lpart&domain=$domain" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mysql/delete.pl
===================================================================
--- trunk/vhffs-panel/mysql/delete.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mysql/delete.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -100,6 +100,6 @@
my $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/mysql/prefs.pl?name=$dbname", 0);
+$panel->set_refresh_url( "/mysql/prefs.pl?name=$dbname" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/mysql/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/mysql/prefs_save.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/mysql/prefs_save.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -110,6 +110,6 @@
my $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/mysql/prefs.pl?name=$dbname", 0);
+$panel->set_refresh_url( "/mysql/prefs.pl?name=$dbname" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/object/upavatar.pl
===================================================================
--- trunk/vhffs-panel/object/upavatar.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/object/upavatar.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -132,6 +132,6 @@
}
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/panel.pl", 0);
+$panel->set_refresh_url( "/panel.pl" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/panel.pl
===================================================================
--- trunk/vhffs-panel/panel.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/panel.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -75,6 +75,7 @@
$session->param("uid", $user_bis->get_uid);
$session->flush();
$panel = new Vhffs::Panel::Main();
+ $session = $panel->get_session;
$message = gettext( sprintf( "Su successful with name %s " , $su_user) );
}
else
Modified: trunk/vhffs-panel/pgsql/delete.pl
===================================================================
--- trunk/vhffs-panel/pgsql/delete.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/pgsql/delete.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -101,6 +101,6 @@
my $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/pgsql/prefs.pl?name=$dbname", 0);
+$panel->set_refresh_url( "/pgsql/prefs.pl?name=$dbname" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/pgsql/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/pgsql/prefs_save.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/pgsql/prefs_save.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -104,6 +104,6 @@
my $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/pgsql/prefs.pl?name=$dbname", 0);
+$panel->set_refresh_url( "/pgsql/prefs.pl?name=$dbname" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/repository/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/repository/prefs_save.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/repository/prefs_save.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -103,6 +103,6 @@
my $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/panel.pl?project=".$repo->get_group->get_groupname, 0);
+$panel->set_refresh_url( "/panel.pl?project=".$repo->get_group->get_groupname, 0);
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/svn/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/svn/prefs_save.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/svn/prefs_save.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -137,6 +137,6 @@
my $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/panel.pl?project=".$svn->get_group->get_groupname, 0);
+$panel->set_refresh_url( "/panel.pl?project=".$svn->get_group->get_groupname, 0);
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/templates/main/main.tmpl
===================================================================
--- trunk/vhffs-panel/templates/main/main.tmpl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/templates/main/main.tmpl 2007-09-06 23:08:47 UTC (rev 870)
@@ -5,7 +5,9 @@
<link rel="stylesheet" type="text/css" href="/themes/<tmpl_var name="THEME">/main.css"/>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
- <tmpl_var name="HEADERS_SUP">
+ <tmpl_if name="REFRESH_URL">
+ <meta http-equiv="refresh" content="<tmpl_var name="REFRESH_TIME">; url=<tmpl_var name="REFRESH_URL">">
+ </tmpl_if>
<tmpl_loop name="JSCRIPTS">
<script language="javascript" type="text/javascript" charset="utf-8" src="<tmpl_var name="SCRIPT">"></script>
</tmpl_loop>
Modified: trunk/vhffs-panel/user/delete.pl
===================================================================
--- trunk/vhffs-panel/user/delete.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/user/delete.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -97,6 +97,6 @@
my $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/panel.pl?project=$groupname", 0);
+$panel->set_refresh_url( "/panel.pl?project=$groupname" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/web/delete.pl
===================================================================
--- trunk/vhffs-panel/web/delete.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/web/delete.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -106,6 +106,6 @@
my $template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/panel.pl?project=$groupname", 0);
+$panel->set_refresh_url( "/panel.pl?project=$groupname" );
$panel->build( $template );
$panel->display;
Modified: trunk/vhffs-panel/web/prefs_save.pl
===================================================================
--- trunk/vhffs-panel/web/prefs_save.pl 2007-09-06 23:07:14 UTC (rev 869)
+++ trunk/vhffs-panel/web/prefs_save.pl 2007-09-06 23:08:47 UTC (rev 870)
@@ -95,6 +95,6 @@
$template = new HTML::Template( filename => $templatedir."/panel/misc/simplemsg.tmpl" );
$template->param( MESSAGE => $message );
-set_refresh_url Vhffs::Panel::Main($panel, "/web/prefs.pl?name=$servername", 0);
+$panel->set_refresh_url( "/web/prefs.pl?name=$servername" );
$panel->build( $template );
$panel->display;