Project

General

Profile

1
<?php
2
/**
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: modify.php 1457 2011-06-25 17:18:50Z Luisehahne $
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

    
19
// Must include code to stop this file being access directly
20
if(defined('WB_PATH') == false) { die("Cannot access this file directly"); }
21

    
22
// Setup template object
23
$template = new Template(WB_PATH.'/modules/wrapper');
24
$template->set_file('page', 'modify.htt');
25
$template->set_block('page', 'main_block', 'main');
26

    
27
// Get page content
28
$query = "SELECT url,height FROM ".TABLE_PREFIX."mod_wrapper WHERE section_id = '$section_id'";
29
$get_settings = $database->query($query);
30
$settings = $get_settings->fetchRow();
31
$url = ($settings['url']);
32
$height = $settings['height'];
33

    
34
// Insert vars
35
$template->set_var(array(
36
					'PAGE_ID' => $page_id,
37
					'SECTION_ID' => $section_id,
38
					'WB_URL' => WB_URL,
39
					'URL' => $url,
40
					'HEIGHT' => $height,
41
					'TEXT_URL' => $TEXT['URL'],
42
					'TEXT_HEIGHT' => $TEXT['HEIGHT'],
43
					'TEXT_SAVE' => $TEXT['SAVE'],
44
					'TEXT_CANCEL' => $TEXT['CANCEL'],
45
					'FTAN' => $admin->getFTAN()
46
				)
47
			);
48

    
49
// Parse template object
50
$template->parse('main', 'main_block', false);
51
$template->pparse('output', 'page');
52

    
53
?>
(7-7/9)