Initial upload to TYPO3 Forge
[TYPO3CMS/Extensions/sr_freecap.git] / mod1 / index.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 2006-2008 Stanislas Rolland <typo3(arobas)sjbr.ca>
6 * All rights reserved
7 *
8 * This script is part of the Typo3 project. The Typo3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 *
17 * This script is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
21 *
22 * This copyright notice MUST APPEAR in all copies of the script!
23 ***************************************************************/
24 /**
25 * Module 'Font Maker' for the 'sr_freecap' extension.
26 *
27 * @author Stanislas Rolland <typo3(arobas)sjbr.ca>
28 */
29 // initialization of the module
30 unset($MCONF);
31 require('conf.php');
32 require($BACK_PATH.'init.php');
33 require($BACK_PATH.'template.php');
34 $LANG->includeLLFile(t3lib_extMgm::extPath('sr_freecap').'mod1/locallang.xml');
35 require_once(t3lib_extMgm::extPath('sr_freecap').'mod1/class.tx_srfreecap_fontmaker.php');
36
37 $BE_USER->modAccess($MCONF, 1); // This checks permissions and exits if the users has no permission for entry.
38
39 // Make instance:
40 $SOBE = t3lib_div::makeInstance('tx_srfreecap_fontmaker');
41 $SOBE->init();
42
43 // Include files?
44 reset($SOBE->include_once);
45 while (list(, $INC_FILE) = each($SOBE->include_once)) {
46 include_once($INC_FILE);
47 }
48
49 $SOBE->main();
50 $SOBE->printContent();
51
52 ?>