From f5af4fcceb8a36c3d0885dfa197798a77de64727 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 20 Jun 2007 22:28:28 +0000 Subject: integrate RTx::Statistics package, part of merging spiritone RT changes (#1661) --- rt/html/Developer/CronTool/autohandler | 9 +++ rt/html/Developer/CronTool/index.html | 116 +++++++++++++++++++++++++++++++++ 2 files changed, 125 insertions(+) create mode 100644 rt/html/Developer/CronTool/autohandler create mode 100644 rt/html/Developer/CronTool/index.html (limited to 'rt/html/Developer') diff --git a/rt/html/Developer/CronTool/autohandler b/rt/html/Developer/CronTool/autohandler new file mode 100644 index 000000000..7daa09e8d --- /dev/null +++ b/rt/html/Developer/CronTool/autohandler @@ -0,0 +1,9 @@ +%# All theoretical chemistry is really physics; +%# and all theoretical chemists know it. +%# -- Richard P. Feynman +<%INIT> +$m->call_next(%ARGS) if $session{'CurrentUser'}->UserObj->HasRight( + Right => 'SuperUser', + Object => $RT::System, +); + diff --git a/rt/html/Developer/CronTool/index.html b/rt/html/Developer/CronTool/index.html new file mode 100644 index 000000000..67c9e5634 --- /dev/null +++ b/rt/html/Developer/CronTool/index.html @@ -0,0 +1,116 @@ +% if ($@) { +

<% $@ %>

+% } +% if (!$NoUI) { +
+
+ +% foreach my $class (qw( Search Condition Action )) { + +% } + + +
+<% loc($class) %> + + + +<&|/l&>Parameter + + +
+ + +
+
+
+% } +<%INIT> +$m->print("

", loc("Web CronTool"), "

"); +if ($Search) { + my $load_module = sub { + my $modname = $_[0]; + $modname =~ s{::}{/}g; + require "$modname.pm" or die ( + loc( "Failed to load module [_1]. ([_2])", $_[0], $@ ) . "\n" + ); + }; + $m->print(loc("Starting..."), "', loc("Finished.")); +} + +<%ARGS> +$Search => undef +$SearchArg => undef +$Condition => undef +$ConditionArg => undef +$Action => undef +$ActionArg => undef +$TemplateId => undef +$TemplateObj => undef +$Verbose => 1 +$NoUI => 0 + -- cgit v1.2.1