Index: branches/RC/admin/index4_direct.php =================================================================== diff -u -r8929 -r9389 --- branches/RC/admin/index4_direct.php (.../index4_direct.php) (revision 8929) +++ branches/RC/admin/index4_direct.php (.../index4_direct.php) (revision 9389) @@ -5,8 +5,8 @@ ## In-portal ## ## Intechnic Corporation ## ## All Rights Reserved, 1998-2002 ## -## ## -## No portion of this code may be copied, reproduced or ## +## ## +## 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 ## @@ -19,25 +19,25 @@ 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); - + $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'; - + include_once FULL_PATH.ADMIN_DIRECTORY.'/'.$template.'.php'; + $application->Run(); - + int_footer(); ?> \ No newline at end of file