Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F2115165
index4_direct.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 18, 5:27 PM
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Nov 20, 5:27 PM (11 m, 51 s)
Engine
blob
Format
Raw Data
Handle
978271
Attached To
rINP In-Portal
index4_direct.php
View Options
<?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
Log In to Comment