Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1102368
addlang_export_result.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
Mon, Aug 18, 7:31 PM
Size
2 KB
Mime Type
text/x-php
Expires
Wed, Aug 20, 7:31 PM (1 d, 2 h)
Engine
blob
Format
Raw Data
Handle
714127
Attached To
rINP In-Portal
addlang_export_result.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/config'
);
$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
/* set the destination of the image upload, relative to the root path */
$DestDir
=
"kernel/images/"
;
require_once
(
$pathtoroot
.
$admin
.
"/include/elements.php"
);
require_once
(
$pathtoroot
.
"kernel/admin/include/navmenu.php"
);
//require_once ($pathtolocal."admin/include/navmenu.php");
require_once
(
$pathtoroot
.
$admin
.
"/browse/toolbar.php"
);
require_once
(
$pathtoroot
.
$admin
.
"/listview/listview.php"
);
$m
=
GetModuleArray
();
foreach
(
$m
as
$key
=>
$value
)
{
$path
=
$pathtoroot
.
$value
.
"admin/include/parser.php"
;
if
(
file_exists
(
$path
))
{
include_once
(
$path
);
}
}
$objLangList
=
new
clsLanguageList
();
if
(
isset
(
$_POST
[
"itemlist"
]))
{
$LangIds
=
implode
(
","
,
$_POST
[
"itemlist"
]);
$sql
=
"SELECT * FROM "
.
$objLangList
->
SourceTable
.
" WHERE LanguageId IN ($LangIds)"
;
$objLangList
->
Query_Item
(
$sql
);
$names
=
array
();
foreach
(
$objLangList
->
Items
as
$l
)
{
$names
[]
=
$l
->
Get
(
"PackName"
);
}
$names
=
implode
(
","
,
$names
);
}
$action
=
"m_lang_export"
;
$section
=
"in-portal:lang_export"
;
$envar
=
"env="
.
BuildEnv
();
$title
=
prompt_language
(
"la_Text_Export"
).
" "
.
prompt_language
(
"la_Text_Languages"
).
" "
.
prompt_language
(
"la_Text_Results"
);
int_header
(
$objCatToolBar
,
NULL
,
$title
);
?>
<TABLE cellSpacing="0" cellPadding="2" width="100%" class="tableborder">
<?php
int_subsection_title
(
prompt_language
(
"la_tab_General"
));
?>
<?php
if
(
$ExportResult
)
{
?>
<TR
<?php
int_table_color
();
?>
>
<TD>
<SPAN id="prompt_filename" class="text">
<?php
echo
prompt_language
(
"la_prompt_download_export"
);
?>
</SPAN></TD>
<TD><I><SPAN id="rootpath" CLASS="text">
<A HREF="
<?php
echo
$adminURL
.
"/export/"
.
$_POST
[
"filename"
];
?>
">
<?php
echo
$ExportFilename
;
?>
</A></SPAN></TD>
<TD></TD>
</TR>
<?php
}
else
{
?>
<TR
<?php
int_table_color
();
?>
>
<TD>
<?php
echo
admin_language
(
"la_prompt_export_error"
);
?>
</A>
</td>
<TD></TD>
<TD></TD>
</TR>
<?php
}
?>
<TR
<?php
int_table_color
();
?>
>
<TD>
<A HREF="
<?php
echo
$adminURL
.
"/config/config_lang.php?"
.
$envar
;
?>
">
<?php
echo
admin_language
(
"la_prompt_Continue"
);
?>
</A>
</td>
<TD></TD>
<TD></TD>
</TR>
Event Timeline
Log In to Comment