LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: heikok [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=heikok) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=heikok) [auth.php:203]
LDAP search found single result ! [auth.php:230]
LDAP group search: Success [auth.php:277]
LDAP search at: ou=external,dc=met,dc=no (memberUid=heikok) [auth.php:278]
LDAP usergroup: dokipywikiuser [auth.php:297]
LDAP usergroup: emepwikiuser [auth.php:297]
LDAP usergroup: eumetgridwikiuser [auth.php:297]
LDAP usergroup: fimexwikiadmin [auth.php:297]
LDAP usergroup: metamodwikiadmin [auth.php:297]
LDAP usergroup: metocwikiuser [auth.php:297]
LDAP usergroup: normapwikiuser [auth.php:297]
LDAP usergroup: myoceancommonsuser [auth.php:297]
LDAP usergroup: aerocomwikiuser [auth.php:297]
LDAP usergroup: myoceanwikiuser [auth.php:297]
LDAP usergroup: myocean2wikiuser [auth.php:297]
LDAP usergroup: vulkanaskewikiadmin [auth.php:297]
LDAP usergroup: cmemscommonsuser [auth.php:297]
LDAP user to find: oysteint [auth.php:187]
LDAP Server: ldaps://ldap-ext-b1.met.no:636/ [auth.php:190]
LDAP Filter: (uid=oysteint) [auth.php:200]
LDAP user search: Success [auth.php:202]
LDAP search at: dc=met,dc=no (uid=oysteint) [auth.php:203]
LDAP search returned 0 results while it should return 1! [auth.php:221]
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
metamod:perl_code_style [2010-07-12 08:06:08] heikok |
metamod:perl_code_style [2022-05-31 09:29:32] (current) |
||
|---|---|---|---|
| Line 9: | Line 9: | ||
| * cuddled else:< | * cuddled else:< | ||
| if ($a > $b) { | if ($a > $b) { | ||
| - | | + | |
| } else { | } else { | ||
| - | | + | |
| } | } | ||
| </ | </ | ||
| * Line-length: | * Line-length: | ||
| - | * translate parameter from @_ to names in first line of sub | + | * translate parameter from @_ to names in start of sub |
| ==== Documentation ==== | ==== Documentation ==== | ||
| Line 32: | Line 32: | ||
| The following Perltidy configuration can be used as a guideline for formatting the code in Metamod. | The following Perltidy configuration can be used as a guideline for formatting the code in Metamod. | ||
| + | // | ||
| < | < | ||
| # make some defaults explicit to document the decision | # make some defaults explicit to document the decision | ||
| Line 55: | Line 55: | ||
| ===== Perl Template ===== | ===== Perl Template ===== | ||
| - | ==== Modules | + | ==== Basic module template |
| - | FIXME | + | This is a template for basic module. |
| + | <code perl> | ||
| + | package <package name>; | ||
| + | |||
| + | =begin LICENSE | ||
| + | |||
| + | METAMOD is free software; you can redistribute it and/or modify | ||
| + | it under the terms of the GNU General Public License as published by | ||
| + | the Free Software Foundation; either version 2 of the License, or | ||
| + | (at your option) any later version. | ||
| + | |||
| + | METAMOD 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 General Public License for more details. | ||
| + | |||
| + | You should have received a copy of the GNU General Public License | ||
| + | along with METAMOD; if not, write to the Free Software | ||
| + | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 | ||
| + | |||
| + | =end LICENSE | ||
| + | |||
| + | =cut | ||
| + | |||
| + | use strict; | ||
| + | use warnings; | ||
| + | |||
| + | =head1 NAME | ||
| + | |||
| + | <package name> - < | ||
| + | |||
| + | =head1 SYNOPSIS | ||
| + | |||
| + | =head1 DESCRIPTION | ||
| + | |||
| + | =head1 FUNCTIONS/ | ||
| + | |||
| + | =cut | ||
| + | |||
| + | <your code goes here> | ||
| + | |||
| + | =head1 LICENSE | ||
| + | |||
| + | GPLv2 L< | ||
| + | |||
| + | =cut | ||
| + | 1; | ||
| + | </ | ||
| + | |||
| + | ==== Catalyst controller template ==== | ||
| + | |||
| + | This template can be used for new Catalyst controllers. | ||
| + | |||
| + | <code perl> | ||
| + | package <package name>; | ||
| + | |||
| + | =begin LICENSE | ||
| + | |||
| + | METAMOD is free software; you can redistribute it and/or modify | ||
| + | it under the terms of the GNU General Public License as published by | ||
| + | the Free Software Foundation; either version 2 of the License, or | ||
| + | (at your option) any later version. | ||
| + | |||
| + | METAMOD 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 General Public License for more details. | ||
| + | |||
| + | You should have received a copy of the GNU General Public License | ||
| + | along with METAMOD; if not, write to the Free Software | ||
| + | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 | ||
| + | |||
| + | =end LICENSE | ||
| + | |||
| + | =cut | ||
| + | |||
| + | BEGIN {extends ' | ||
| + | |||
| + | =head1 NAME | ||
| + | |||
| + | <package name> - < | ||
| + | |||
| + | =head1 DESCRIPTION | ||
| + | |||
| + | =head1 METHODS | ||
| + | |||
| + | =cut | ||
| + | |||
| + | =head2 auto | ||
| + | |||
| + | =cut | ||
| + | |||
| + | sub auto :Private { | ||
| + | my ( $self, $c ) = @_; | ||
| + | |||
| + | # Controller specific initialisation for each request. | ||
| + | } | ||
| + | |||
| + | =head2 index | ||
| + | |||
| + | |||
| + | =cut | ||
| + | sub index : Path(" | ||
| + | my ( $self, $c ) = @_; | ||
| + | |||
| + | } | ||
| + | |||
| + | |||
| + | # | ||
| + | # Remove comment if you want a controller specific begin(). This | ||
| + | # will override the less specific begin() | ||
| + | # | ||
| + | #sub begin { | ||
| + | # my ( $self, $c ) = @_; | ||
| + | #} | ||
| + | |||
| + | # | ||
| + | # Remove comment if you want a controller specific end(). This | ||
| + | # will override the less specific end() | ||
| + | # | ||
| + | #sub end { | ||
| + | # my ( $self, $c ) = @_; | ||
| + | #} | ||
| + | |||
| + | |||
| + | __PACKAGE__-> | ||
| + | |||
| + | =head1 LICENSE | ||
| + | |||
| + | GPLv2 L< | ||
| + | |||
| + | =cut | ||
| + | |||
| + | 1; | ||
| + | </ | ||
| ==== Script ==== | ==== Script ==== | ||