Apache-Voodoo
view release on metacpan or search on metacpan
lib/Apache/Voodoo.pod
lib/Apache/Voodoo/Application.pm
lib/Apache/Voodoo/Application/ConfigParser.pm
lib/Apache/Voodoo/Constants.pm
lib/Apache/Voodoo/Debug.pm
lib/Apache/Voodoo/Debug/Common.pm
lib/Apache/Voodoo/Debug/FirePHP.pm
lib/Apache/Voodoo/Debug/Handler.pm
lib/Apache/Voodoo/Debug/html/debug.css
lib/Apache/Voodoo/Debug/html/debug.js
lib/Apache/Voodoo/Debug/html/debug.png
lib/Apache/Voodoo/Debug/html/debug.tmpl
lib/Apache/Voodoo/Debug/html/error.png
lib/Apache/Voodoo/Debug/html/exception.png
lib/Apache/Voodoo/Debug/html/info.png
lib/Apache/Voodoo/Debug/html/minus.png
lib/Apache/Voodoo/Debug/html/plus.png
lib/Apache/Voodoo/Debug/html/spinner.gif
lib/Apache/Voodoo/Debug/html/table.png
lib/Apache/Voodoo/Debug/html/trace.png
lib/Apache/Voodoo/Debug/html/warn.png
lib/Apache/Voodoo/Debug/Log4perl.pm
lib/Apache/Voodoo/Debug/Native.pm
lib/Apache/Voodoo/Debug/Native/common.pm
lib/Apache/Voodoo/Debug/Native/SQLite.pm
lib/Apache/Voodoo/Engine.pm
lib/Apache/Voodoo/Exception.pm
lib/Apache/Voodoo/Handler.pm
lib/Apache/Voodoo/Install.pm
lib/Apache/Voodoo/Install/Config.pm
lib/Apache/Voodoo/Install/Distribution.pm
lib/Apache/Voodoo/Debug/Handler.pm view on Meta::CPAN
$self->{template_dir} =~ s/Handler.pm$/html/;
$self->{handlers} = {
map { $_ => 'handle_'.$_ }
('profile','debug','return_data','session','template_conf','parameters','request')
};
$self->{static_files} = {
"debug.css" => "text/css",
"debug.js" => "application/x-javascript",
"debug.png" => "image/png",
"error.png" => "image/png",
"exception.png" => "image/png",
"info.png" => "image/png",
"minus.png" => "image/png",
"plus.png" => "image/png",
"spinner.gif" => "image/gif",
"table.png" => "image/png",
"trace.png" => "image/png",
"warn.png" => "image/png"
};
$self->{json} = JSON::DWIW->new({bad_char_policy => 'convert', pretty => 1});;
return $self;
}
sub handler {
my $self = shift;
my $r = shift;
lib/Apache/Voodoo/Debug/html/debug.js view on Meta::CPAN
this.session_id = opts.session_id;
this.request_id = opts.request_id;
this.origin_id = this.request_id;
this.imgSpinner = new Image(16,16);
this.imgMinus = new Image(9,9);
this.imgPlus = new Image(9,9);
this.imgSpinner.src = this.debug_root+"/spinner.gif";
this.imgMinus.src = this.debug_root+"/minus.png";
this.imgPlus.src = this.debug_root+"/plus.png";
this.elementid = 1; //counter so we can generate unique element ids.
this.levels = {
"debug": 1,
"info": 1,
"warn": 1,
"error": 1,
"exception": 1,
"table": 1,
lib/Apache/Voodoo/Debug/html/debug.js view on Meta::CPAN
"session": false,
"template_conf": false,
"parameters": false
};
this.parser = new voodooJson();
this.imgLevels = {};
for (var key in this.levels) {
this.imgLevels[key] = new Image(12,12);
this.imgLevels[key].src = this.debug_root+"/"+key+".png";
}
this.yourBrowserIsBroken = (navigator.userAgent.toLowerCase().indexOf("msie")!=-1);
////////////////////////////////////////////////////////////////////////////////
//
// PUBLIC METHODS
//
////////////////////////////////////////////////////////////////////////////////
lib/Apache/Voodoo/Debug/html/debug.tmpl view on Meta::CPAN
var vdDebug = new voodooDebug({
"debug_root": "<tmpl_var debug_root>",
'app_id': "<tmpl_var app_id>",
'session_id': "<tmpl_var session_id>",
'request_id': "<tmpl_var request_id>"
});
</script>
<div class="voodooDebug" id="voodooDebug">
<div class="vdClosed">
<span class="vdClick" onClick="vdDebug.handleSection(this,'top');"><img src="<tmpl_var debug_root>/plus.png" width="9"/>Debug</span>
<div class="vdContent">
Change Request: <select id="voodooDebugSelect" onChange="vdDebug.changeRequest(this)" onFocus="vdDebug.listRequests()"></select>
<tmpl_if enable_profile><div class="vdClosed"><span onClick="vdDebug.handleSection(this,'profile');" ><img src="<tmpl_var debug_root>/plus.png" width="9"/>Generation Time</span><div id="vd_profile" class="vdContent"></div></div></tmpl_i...
<tmpl_if enable_anydebug>
<div class="vdClosed">
<span class="vdClick" onClick="vdDebug.handleSection(this,'debug');"><img src="<tmpl_var debug_root>/plus.png" width="9"/>Debug Trace</span>
<div class="vdContent">
<tmpl_if enable_debug> <input type="checkbox" id="vd_switch_debug" checked="1" onClick="vdDebug.filterDebug(this,'debug')" />debug</tmpl_if>
<tmpl_if enable_info> <input type="checkbox" id="vd_switch_info" checked="1" onClick="vdDebug.filterDebug(this,'info')" />info</tmpl_if>
<tmpl_if enable_warn> <input type="checkbox" id="vd_switch_warn" checked="1" onClick="vdDebug.filterDebug(this,'warn')" />warn</tmpl_if>
<tmpl_if enable_error> <input type="checkbox" id="vd_switch_error" checked="1" onClick="vdDebug.filterDebug(this,'error')" />error</tmpl_if>
<tmpl_if enable_exception><input type="checkbox" id="vd_switch_exception" checked="1" onClick="vdDebug.filterDebug(this,'exception')"/>exception</tmpl_if>
<tmpl_if enable_trace> <input type="checkbox" id="vd_switch_trace" checked="1" onClick="vdDebug.filterDebug(this,'trace')" />trace</tmpl_if>
<tmpl_if enable_table> <input type="checkbox" id="vd_switch_table" checked="1" onClick="vdDebug.filterDebug(this,'table')" />table</tmpl_if>
<div id="vd_debug"></div>
</div>
</div>
</tmpl_if>
<tmpl_if enable_return_data> <div class="vdClosed"><span class="vdClick" onClick="vdDebug.handleSection(this,'return_data');" ><img src="<tmpl_var debug_root>/plus.png" width="9"/>Return Data</span ><div id="vd_return_data" class="vdContent...
<tmpl_if enable_session> <div class="vdClosed"><span class="vdClick" onClick="vdDebug.handleSection(this,'session');" ><img src="<tmpl_var debug_root>/plus.png" width="9"/>Session Data</span ><div id="vd_session" class="vdContent...
<tmpl_if enable_template_conf><div class="vdClosed"><span class="vdClick" onClick="vdDebug.handleSection(this,'template_conf');"><img src="<tmpl_var debug_root>/plus.png" width="9"/>Config Data</span ><div id="vd_template_conf" class="vdContent...
<tmpl_if enable_params> <div class="vdClosed"><span class="vdClick" onClick="vdDebug.handleSection(this,'parameters');" ><img src="<tmpl_var debug_root>/plus.png" width="9"/>Input Params</span ><div id="vd_parameters" class="vdContent...
</div>
</div>
</div>
( run in 1.397 second using v1.01-cache-2.11-cpan-df04353d9ac )