From 83a428a3645a67a34d5b1ee8d2d7cf8add292305 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 31 Jan 2013 18:16:45 +0100 Subject: [PATCH] DebugMenu entfernt, weil es momentan nicht mehr funktioniert --- SL/Controller/DebugMenu.pm | 24 ------------------------ SL/Controller/FrameHeader.pm | 16 ---------------- SL/LXDebug.pm | 26 -------------------------- config/kivitendo.conf.default | 4 ---- templates/webpages/menu/header.html | 10 ---------- 5 files changed, 80 deletions(-) delete mode 100644 SL/Controller/DebugMenu.pm delete mode 100644 SL/Controller/FrameHeader.pm diff --git a/SL/Controller/DebugMenu.pm b/SL/Controller/DebugMenu.pm deleted file mode 100644 index 79b3cd5d7..000000000 --- a/SL/Controller/DebugMenu.pm +++ /dev/null @@ -1,24 +0,0 @@ -package SL::Controller::DebugMenu; - -use strict; -use parent qw(SL::Controller::Base); - -# safety -__PACKAGE__->run_before(sub { die 'not allowed in config' unless $::lx_office_conf{debug}{show_debug_menu}; }); - -sub action_reload { - my ($self, %params) = @_; - - print $::request->{cgi}->redirect('controller.pl?action=FrameHeader/header'); - exit; -} - -sub action_toggle { - my ($self, %params) = @_; - - $::lxdebug->level_by_name($::form->{level}, !$::lxdebug->level_by_name($::form->{level})); - print $::request->{cgi}->redirect('controller.pl?action=FrameHeader/header'); - return; -} - -1; diff --git a/SL/Controller/FrameHeader.pm b/SL/Controller/FrameHeader.pm deleted file mode 100644 index 69c48eb70..000000000 --- a/SL/Controller/FrameHeader.pm +++ /dev/null @@ -1,16 +0,0 @@ -package SL::Controller::FrameHeader; - -use strict; -use parent qw(SL::Controller::Base); - -sub action_header { - my ($self) = @_; - - $::form->use_stylesheet('frame_header/header.css'); - $self->render('menu/header', { partial => 1, no_output => 1 }, - now => DateTime->now_local, - is_fastcgi => scalar($::dispatcher->interface_type =~ /fastcgi/i), - is_links => scalar($ENV{HTTP_USER_AGENT} =~ /links/i)); -} - -1; diff --git a/SL/LXDebug.pm b/SL/LXDebug.pm index a5f22df4e..ffd4fa1f3 100644 --- a/SL/LXDebug.pm +++ b/SL/LXDebug.pm @@ -453,32 +453,6 @@ following would not trigger a change: # This does trigger: $::form->{some_hash} = { something => 'else' }; -=item C - -A boolean (C<1> or C<0>). If turned on then certain debug facilities -are available from the v1 menu. These include e.g. - -=over 6 - -=item * - -restarting the FastCGI process by forcefully exiting after the -request, - -=item * - -enabling and disabling function tracing, - -=item * - -enabling and disabling certain debug levels. - -=back - -Note that these are only useful if kivitendo is running as a FastCGI -application because otherwise the changes would be lost when the -process exits in a normal CGI environment. - =item C A boolean (C<1> or C<0>). If turned on then certain temporary files diff --git a/config/kivitendo.conf.default b/config/kivitendo.conf.default index 51e7456fb..2f4c88a6b 100644 --- a/config/kivitendo.conf.default +++ b/config/kivitendo.conf.default @@ -277,10 +277,6 @@ global_level = NONE # default. watch_form = 0 -# Include menu options for debugging in the HTML menu. Works only in -# FastCGI mode. -show_debug_menu = 0 - # If you want to debug the creation of LaTeX files then set this to 1. # That way the temporary LaTeX files created during PDF creation are # not removed and remain in the "users" directory. diff --git a/templates/webpages/menu/header.html b/templates/webpages/menu/header.html index 2c443f4b7..869479fee 100644 --- a/templates/webpages/menu/header.html +++ b/templates/webpages/menu/header.html @@ -8,16 +8,6 @@ [[% 'Back' | $T8 %]] [[% 'Fwd' | $T8 %]] -[%- END %] -[% IF is_fastcgi && LXCONFIG.debug.show_debug_menu %] - - Debug: - [FCGI Reload] - [[% IF LXDEBUG.level_by_name('request_timer') %]Timing[% ELSE %]Timing[% END %]] - [[% IF LXDEBUG.level_by_name('trace') %]Trace[% ELSE %]Trace[% END %]] - [[% IF LXDEBUG.level_by_name('query') %]Query[% ELSE %]Query[% END %]] - [[% IF LXDEBUG.level_by_name('warn') %]Warnings[% ELSE %]Warnings[% END %]] - [%- END %] [% 'User' | $T8 %]: -- 2.20.1