Menu

[r30]: / e9-core / admin_request.class.php  Maximize  Restore  History

Download this file

41 lines (34 with data), 917 Bytes

 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
class e_admin_request extends e_request
{
private $node, $query_string, $full_request;
function __construct( $array )
{
global $_dir;
// Some really dirty stuff here
$_dir['app'] = $_dir['admin'] . 'app/';
$_dir['theme'] = $_dir['admin'];
if ( isset( $array['node'] ) )
{
// $node = e_request::parse_folder_node( $array['node'] );
// if ( isset( $node[1] ) )
// $this->set_node( $node[1] );
$this->set_node( str_replace( '/', '_', $array['node'] ) );
}
if ( $this->get_node() == 'admin_' || $this->get_node() == 'admin' )
$this->set_node( 'admin_index' );
if ( isset( $array['query_string'] ) )
$this->set_query_string( $array['query_string'] );
// Modelling $_GET
$get_arr = explode( '&', $this->get_query_string() );
foreach( $get_arr as $value )
{
if ( $value )
{
$pair = explode( '=', $value );
$_GET[$pair[0]] = $pair[1];
}
}
}
};
?>