Page MenuHomeIn-Portal Phabricator

index4_direct.php
No OneTemporary

File Metadata

Created
Wed, Nov 18, 3:34 PM

index4_direct.php

<?php
##############################################################
##In-portal ##
##############################################################
## In-portal ##
## Intechnic Corporation ##
## All Rights Reserved, 1998-2002 ##
## ##
## No portion of this code may be copied, reproduced or ##
## otherwise redistributed without proper written ##
## consent of Intechnic Corporation. Violation will ##
## result in revocation of the license and support ##
## privileges along maximum prosecution allowed by law. ##
##############################################################
// new startup: begin
define('REL_PATH', 'admin');
$relation_level = count( explode('/', REL_PATH) );
define('FULL_PATH', realpath(dirname(__FILE__) . str_repeat('/..', $relation_level) ) );
require_once FULL_PATH.'/kernel/startup.php';
// new startup: end
$prefix = $application->GetVar('prefix');
$application->SetVar($prefix.'_mode', 't');
$id_field = $application->getUnitOption($prefix, 'IDField');
$temp_handler =& $application->recallObject($prefix.'_TempHandler', 'kTempTablesHandler');
$table_name = $temp_handler->GetTempName( $application->getUnitOption($prefix, 'TableName'), 'prefix:'.$prefix );
$db =& $application->GetADODBConnection();
$item_id = $db->GetOne('SELECT '.$id_field.' FROM '.$table_name, (int)$application->GetVar('en'));
$application->SetVar($prefix.'_id', $item_id);
$object =& $application->recallObject($prefix, null, Array('skip_autoload' => true));
$object->Load($item_id);
$template = $application->GetVar('t');
include_once FULL_PATH.'/admin/'.$template.'.php';
$application->Run();
int_footer();
?>

Event Timeline