CGI::CMS - Content Managment System that runs under mod_perl and and as cgi script.
use CGI::CMS;
CGI::CMS is a CGI subclass, This Module is mainly written for CGI::CMS::GUI.
But you can it also use standalone.
Take a look in example directory.
export_ok:
$ACCEPT_LANGUAGE translate init session createSession $params clearSession $qy include sessionValidity includeAction
export tags: lze: $ACCEPT_LANGUAGE translate init session createSession $params clearSession $qy include sessionValidity includeAction
and all export tags from CGI.pm
init("/srv/www/cgi-bin/config/settings.pl"); default: /srv/www/cgi-bin
%vars = (sub => 'main','file' => "fo.pl"); $qstring = createSession(\%vars); include($qstring); # in void context param('include') will be used.
includeAction('welcome');
see CGI::CMS::Actions
Secure your Session (or simple store session informations); my %vars = (first => 'query', secondly => "Jo"); my $qstring = createSession(\%vars); *params= \$CGI::CMS::params; session($qstring); print $params->{first};
$qstring = session(\%vars); session($qstring); print $params->{'key'};
delete old sessions. Delete all session older then 120 sec.
set the session Validity in seconds in scalar context:
sessionValidity(120); #120is the dafault value
or get it in void context:
$time = sessionValidity();
translate(key);
see CGI::CMS::Translate
used by include and includeAction.
CGI CGI::CMS::GUI CGI::CMS::Actions CGI::CMS::Translate CGI::CMS::Settings CGI::CMS::Config
Dirk Lindner <lze@cpan.org>
Copyright (C) 2008 by Hr. Dirk Lindner
This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
To install CGI::CMS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CGI::CMS
CPAN shell
perl -MCPAN -e shell install CGI::CMS
For more information on module installation, please visit the detailed CPAN module installation guide.