forked from bitweaver/nlpg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
display_property.php
41 lines (35 loc) · 1.04 KB
/
display_property.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
/**
* $Header$
*
* Copyright (c) 2006 bitweaver.org
* All Rights Reserved. See below for details and a complete list of authors.
* Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See http://www.gnu.org/copyleft/lesser.html for details.
*
* @package nlpg
* @subpackage functions
*/
/**
* required setup
*/
require_once( '../kernel/setup_inc.php' );
include_once( NLPG_PKG_PATH.'BitNlpg.php' );
include_once( NLPG_PKG_PATH.'NlpgProperty.php' );
$gBitSystem->isPackageActive('nlpg', TRUE);
// Now check permissions to access this page
$gBitSystem->verifyPermission('p_nlpg_view' );
if( !empty( $_REQUEST['uprn'] ) ) {
$gProperty = new NlpgProperty($_REQUEST['uprn']);
$gProperty->load();
} else {
$gProperty = new NlpgProperty();
}
$gBitSmarty->assign_by_ref( 'propertyInfo', $gProperty->mInfo );
if ( $gProperty->isValid() ) {
$gBitSystem->setBrowserTitle("National Land and Property Gazetteer Item");
$gBitSystem->display( 'bitpackage:nlpg/show_property.tpl');
} else {
// header ("location: ".NLPG_PKG_URL."index.php");
// die;
}
?>