Apache2-WebApp-Extra-Admin
view release on metacpan or search on metacpan
usr/share/webapp-toolkit/extra/class/admin.tt view on Meta::CPAN
Create the Control Panel interface. Load the selected window into an HTML frame.
=head2 _error
Print errors/exceptions and exit.
$self->_error(\%controller, $title, $value);
=head2 _log_action
Logs the action including HTTP request parameters.
$self->_log_action(\%controller, $value);
=head2 _gen_results
Generate per-page results.
$self->_gen_results($total, $start, $limit, \%ary_ref);
=head2 _merge_hashref
Return a single reference to a hash, merge key/value pairs.
$self->_merge_hashref(\%hash1, \%hash2);
=head2 _sort_data
Return a sorted multi-dimensional array.
$self->_sort_data($column, $order, \%ary_ref);
=head1 OPTIONAL
If database support is available, you can log control panel user actions
to a database. The database table to store logging information is
auto-generated. Since this is the case, the SQL user must have CREATE
privileges.
In case you want to manually create this table, you can run the following
SQL statement on the database command-line:
CREATE TABLE IF NOT EXISTS admin_log (
admin_log_id int(3) NOT NULL AUTO_INCREMENT,
admin_log_username varchar(15) DEFAULT NULL,
admin_log_action varchar(55) DEFAULT NULL,
admin_log_query_string text,
admin_log_user_ip_addr varchar(15) DEFAULT NULL,
admin_log_created datetime DEFAULT NULL,
PRIMARY KEY (admin_log_id)
);
If a database is not available at the time data is collected, this
information will be written to a file that can be located in your project
C<logs> directory.
=head1 DEBUG MODE
If debugging is enabled, the URI and query string are logged. This can
pose as a security risk when running in a production environment since
personal information (including passwords) may be exposed.
=head1 SEE ALSO
L<Apache2::WebApp>, L<Apache2::WebApp::Plugin::DBI>
=head1 AUTHOR
Marc S. Brooks, E<lt>mbrooks@cpan.orgE<gt> L<http://mbrooks.info>
=head1 COPYRIGHT
This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
See L<http://www.perl.com/perl/misc/Artistic.html>
=cut
( run in 0.637 second using v1.01-cache-2.11-cpan-39bf76dae61 )