1: <?php
2: /*
3: You may not change or alter any portion of this comment or credits
4: of supporting developers from this source code or any supporting source code
5: which is considered copyrighted (c) material of the original comment or credit authors.
6:
7: This program is distributed in the hope that it will be useful,
8: but WITHOUT ANY WARRANTY; without even the implied warranty of
9: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10: */
11:
12: /**
13: * page module
14: *
15: * @copyright XOOPS Project (http://xoops.org)
16: * @license GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
17: * @package page
18: * @since 2.6.0
19: * @author Mage Grégory (AKA Mage)
20: * @version $Id$
21: */
22:
23: function xoops_module_install_page() {
24:
25: /*$namemodule = 'page';
26:
27: //Create dir '.$namemodule.'/
28: $dir = XOOPS_ROOT_PATH . '/uploads/' . $namemodule;
29: if(!is_dir($dir))
30: mkdir($dir, 0777);
31: chmod($dir, 0777);
32:
33: //Create file '.$namemodule.'/images/
34: $dir = XOOPS_ROOT_PATH . '/uploads/' . $namemodule . '/images';
35: if(!is_dir($dir))
36: mkdir($dir, 0777);
37: chmod($dir, 0777);
38:
39: //Copy index.html
40: $indexFile = XOOPS_ROOT_PATH . '/modules/' . $namemodule . '/include/index.html';
41: copy($indexFile, XOOPS_ROOT_PATH . '/uploads/' . $namemodule . '/index.html');
42: copy($indexFile, XOOPS_ROOT_PATH . '/uploads/' . $namemodule . '/images/index.html');
43:
44: //Copy blank.gif
45: $blankFile = XOOPS_ROOT_PATH . '/modules/' . $namemodule . '/images/blank.gif';*/
46: return true;
47: }
48: