<?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];
}
}
}
};
?>