forked from bitweaver/nlpg
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
32 lines (26 loc) · 1001 Bytes
/
index.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
<?php
/*
* This source code is distributed under the terms as layed out in the
* GNU General Public License.
*
* Purpose: To provide the main entry point in accessing an NLPG repository entry
*
* Ported to bitweaver framework by Lester Caine 2006-12-29
* @version $Id$
*/
// Initialization
require_once( '../kernel/setup_inc.php' );
if( !empty( $_REQUEST['usrn'] ) ) {
header( "location: ".NLPG_PKG_URL."display_street.php?usrn=".( ( int )$_REQUEST['usrn'] ) );
}
if( !empty( $_REQUEST['uprn'] ) ) {
header( "location: ".NLPG_PKG_URL."display_property.php?uprn=".( ( int )$_REQUEST['uprn'] ) );
}
if( !empty( $_REQUEST['c_id'] ) ) {
header( "location: ".NLPG_PKG_URL."list_county.php?sort_mode=c_id_asc&list=local&c_id=".$_REQUEST['c_id'] );
}
if( !empty( $_REQUEST['l_id'] ) ) {
header( "location: ".NLPG_PKG_URL."list_county.php?sort_mode=l_id_asc&list=ward&l_id=".$_REQUEST['l_id'] );
}
$gBitSystem->display( 'bitpackage:nlpg/list_entries.tpl', tra( 'Extract status for: ' ) );
?>