Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1949537
importlang.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
Thu, Oct 29, 6:35 AM
Size
4 KB
Mime Type
text/x-php
Expires
Sat, Oct 31, 6:35 AM (29 m, 9 s)
Engine
blob
Format
Raw Data
Handle
963456
Attached To
rINP In-Portal
importlang.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/"
;
$pathtolocal
=
$pathtoroot
.
"kernel/"
;
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
);
}
}
$objMessages
=
new
clsEmailMessageList
();
unset
(
$objEditItems
);
$objEditItems
=
new
clsLanguageList
();
$objEditItems
->
SourceTable
=
$objSession
->
GetEditTable
(
"Language"
);
$objEditItems
->
EnablePaging
=
FALSE
;
$objPhraseList
=
new
clsPhraseList
();
$section
=
"in-portal:lang_import"
;
$envar
=
"env="
.
BuildEnv
();
$title
=
prompt_language
(
"la_Title_LanguageImport"
).
" - "
.
admin_language
(
"la_Step"
).
" 1"
;
$script_name
=
$objSession
->
HasSystemPermission
(
"SYSTEM_ACCESS.READONLY"
)
?
'config_lang'
:
'importlang_progress'
;
$post
=
$adminURL
.
'/config/'
.
$script_name
.
'.php?'
.
$envar
;
//Display header
if
(
$_GET
[
'importerror'
]
!=
'1'
)
{
$sec
=
$objSections
->
GetSection
(
$section
);
$objCatToolBar
=
new
clsToolBar
();
$objCatToolBar
->
Add
(
"img_save"
,
"la_Save"
,
"#"
,
"swap('img_save','toolbar/tool_select_f2.gif');"
,
"swap('img_save', 'toolbar/tool_select.gif');"
,
"edit_submit('language','"
.
$admin
.
"/config/"
.
$script_name
.
".php',1);"
,
$imagesURL
.
"/toolbar/tool_select.gif"
);
$objCatToolBar
->
Add
(
"img_cancel"
,
"la_Cancel"
,
"#"
,
"swap('img_cancel','toolbar/tool_cancel_f2.gif');"
,
"swap('img_cancel', 'toolbar/tool_cancel.gif');"
,
"edit_submit('language','"
.
$admin
.
"/config/config_lang.php',2);"
,
$imagesURL
.
"/toolbar/tool_cancel.gif"
);
}
int_header
(
$objCatToolBar
,
NULL
,
$title
);
?>
<FORM enctype="multipart/form-data" ID="language" NAME="language" method="POST" ACTION="
<?php
echo
$post
;
?>
">
<INPUT TYPE="HIDDEN" NAME="Action" VALUE="m_lang_import">
<TABLE cellSpacing="0" cellPadding="2" width="100%" class="tableborder">
<?php
int_subsection_title
(
prompt_language
(
"la_tab_General"
));
?>
<?php
if
(
$_GET
[
'importerror'
]
==
1
)
{
?>
<TR
<?php
int_table_color
();
?>
>
<TD>
<?php
echo
admin_language
(
"la_prompt_import_error"
);
?>
</A>
</TD>
<TD></TD>
<TD></TD>
</TR>
<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>
<?php
}
else
{
?>
<TR
<?php
int_table_color
();
?>
>
<TD class="text">
<?php
echo
prompt_language
(
"la_prompt_LanguageFile"
);
?>
</TD>
<TD><INPUT TYPE="FILE" name="lang_file"></TD>
<TD></TD>
</TR>
<TR
<?php
int_table_color
();
?>
>
<TD><SPAN id="prompt_localname">
<?php
echo
prompt_language
(
"la_prompt_LoadLangTypes"
);
?>
</SPAN></TD>
<TD><input type=checkbox NAME="langtypes[]" VALUE="0" CHECKED>
<?php
echo
prompt_language
(
"la_Text_FrontEnd"
);
?>
<input type=checkbox NAME="langtypes[]" VALUE="1" CHECKED>
<?php
echo
prompt_language
(
"la_Text_Admin"
);
?>
<input type=checkbox NAME="langtypes[]" VALUE="2" CHECKED>
<?php
echo
prompt_language
(
"la_Text_Both"
);
?>
</TD>
<TD></TD>
</TR>
<TR
<?php
int_table_color
();
?>
>
<TD><SPAN id="prompt_localname">
<?php
echo
prompt_language
(
"la_prompt_overwritephrases"
);
?>
</SPAN></TD>
<TD><input type=checkbox NAME="overwrite" VALUE="1"><i>
<?php
echo
prompt_language
(
"la_importlang_phrasewarning"
);
?>
</i></TD>
<td></td>
</tr>
<?php
}
?>
</TABLE>
</FORM>
<!-- CODE FOR VIEW MENU -->
<form method="post" action="
<?php
echo
$_SERVER
[
"PHP_SELF"
].
"?"
.
$envar
;
?>
" name="viewmenu">
<input type="hidden" name="fieldname" value="">
<input type="hidden" name="varvalue" value="">
<input type="hidden" name="varvalue2" value="">
<input type="hidden" name="Action" value="">
</form>
<!-- END CODE-->
<?php
int_footer
();
?>
Event Timeline
Log In to Comment