1 |
4
|
ryan
|
<?php
|
2 |
1376
|
FrankH
|
/**
|
3 |
|
|
*
|
4 |
|
|
* @category modules
|
5 |
|
|
* @package wrapper
|
6 |
|
|
* @author WebsiteBaker Project
|
7 |
|
|
* @copyright 2004-2009, Ryan Djurovich
|
8 |
|
|
* @copyright 2009-2011, Website Baker Org. e.V.
|
9 |
|
|
* @link http://www.websitebaker2.org/
|
10 |
|
|
* @license http://www.gnu.org/licenses/gpl.html
|
11 |
|
|
* @platform WebsiteBaker 2.8.x
|
12 |
|
|
* @requirements PHP 5.2.2 and higher
|
13 |
|
|
* @version $Id$
|
14 |
|
|
* @filesource $HeadURL: http://svn.websitebaker2.org/branches/2.8.x/wb/modules/wrapper/install.php $
|
15 |
|
|
* @lastmodified $Date: 2011-01-10 13:21:47 +0100 (Mo, 10 Jan 2011) $
|
16 |
|
|
*
|
17 |
|
|
*/
|
18 |
4
|
ryan
|
|
19 |
|
|
// Setup template object
|
20 |
|
|
$template = new Template(WB_PATH.'/modules/wrapper');
|
21 |
1070
|
Ruebenwurz
|
$template->set_file('page', 'modify.htt');
|
22 |
4
|
ryan
|
$template->set_block('page', 'main_block', 'main');
|
23 |
|
|
|
24 |
|
|
// Get page content
|
25 |
|
|
$query = "SELECT url,height FROM ".TABLE_PREFIX."mod_wrapper WHERE section_id = '$section_id'";
|
26 |
|
|
$get_settings = $database->query($query);
|
27 |
|
|
$settings = $get_settings->fetchRow();
|
28 |
116
|
stefan
|
$url = ($settings['url']);
|
29 |
4
|
ryan
|
$height = $settings['height'];
|
30 |
|
|
|
31 |
|
|
// Insert vars
|
32 |
|
|
$template->set_var(array(
|
33 |
|
|
'PAGE_ID' => $page_id,
|
34 |
|
|
'SECTION_ID' => $section_id,
|
35 |
|
|
'WB_URL' => WB_URL,
|
36 |
|
|
'URL' => $url,
|
37 |
|
|
'HEIGHT' => $height,
|
38 |
|
|
'TEXT_URL' => $TEXT['URL'],
|
39 |
|
|
'TEXT_HEIGHT' => $TEXT['HEIGHT'],
|
40 |
|
|
'TEXT_SAVE' => $TEXT['SAVE'],
|
41 |
1376
|
FrankH
|
'TEXT_CANCEL' => $TEXT['CANCEL'],
|
42 |
|
|
'FTAN' => $admin->getFTAN()
|
43 |
4
|
ryan
|
)
|
44 |
|
|
);
|
45 |
|
|
|
46 |
|
|
// Parse template object
|
47 |
|
|
$template->parse('main', 'main_block', false);
|
48 |
|
|
$template->pparse('output', 'page');
|
49 |
|
|
|
50 |
|
|
?>
|