Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1173304
in-portal
No One
Temporary
Actions
View 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, Oct 1, 12:43 AM
Size
6 KB
Mime Type
text/x-diff
Expires
Fri, Oct 3, 12:43 AM (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
760511
Attached To
rINP In-Portal
in-portal
View Options
Index: trunk/admin/config/importlang.php
===================================================================
--- trunk/admin/config/importlang.php (revision 694)
+++ trunk/admin/config/importlang.php (revision 695)
@@ -1,185 +1,185 @@
<?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. ##
##############################################################
if(!strlen($pathtoroot))
{
$path=dirname(realpath(__FILE__));
if(strlen($path))
{
/* determine the OS type for path parsing */
$pos = strpos($path,":");
if ($pos === false)
{
$gOS_TYPE="unix";
$pathchar = "/";
}
else
{
$gOS_TYPE="win";
$pathchar="\\";
}
$p = $path.$pathchar;
/*Start looking for the root flag file */
while(!strlen($pathtoroot) && strlen($p))
{
$sub = substr($p,strlen($pathchar)*-1);
if($sub==$pathchar)
{
$filename = $p."root.flg";
}
else
$filename = $p.$pathchar."root.flg";
if(file_exists($filename))
{
$pathtoroot = $p;
}
else
{
$parent = realpath($p.$pathchar."..".$pathchar);
if($parent!=$p)
{
$p = $parent;
}
else
$p = "";
}
}
if(!strlen($pathtoroot))
$pathtoroot = ".".$pathchar;
}
else
{
$pathtoroot = ".".$pathchar;
}
}
$sub = substr($pathtoroot,strlen($pathchar)*-1);
if($sub!=$pathchar)
{
$pathtoroot = $pathtoroot.$pathchar;
}
//echo $pathtoroot;
//print_r($_GET);
//print_r($_POST);
require_once($pathtoroot."kernel/startup.php");
//admin only util
/* set the destination of the image upload, relative to the root path */
$DestDir = "kernel/images/";
$rootURL="http://".ThisDomain().$objConfig->Get("Site_Path");
$admin = $objConfig->Get("AdminDirectory");
if(!strlen($admin))
$admin = "admin";
$localURL=$rootURL."kernel/";
$adminURL = $rootURL.$admin;
$imagesURL = $adminURL."/images";
$browseURL = $adminURL."/browse";
$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="xren<?php echo $post; ?>">
+<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(); ?>
Property changes on: trunk/admin/config/importlang.php
___________________________________________________________________
Modified: cvs2svn:cvs-rev
## -1 +1 ##
-1.3
\ No newline at end of property
+1.4
\ No newline at end of property
Event Timeline
Log In to Comment