Fix for new constants

This commit is contained in:
Miles Lott 2001-06-27 05:11:38 +00:00
parent 43a9aceecf
commit 8d402ca2d7
2 changed files with 6 additions and 10 deletions

View File

@ -32,19 +32,17 @@
$phpgw_info['flags']['enable_browser_class'] = True;
include('../header.inc.php');
$sep = SEP;
if (!$convert)
{
$t = new Template(PHPGW_APP_TPL);
$t->set_file(array('export' => 'export.tpl'));
$dir_handle=opendir($phpgw_info['server']['app_root'].$sep.'export');
$dir_handle=opendir(PHPGW_APP_ROOT . SEP . 'export');
$i=0; $myfilearray='';
while ($file = readdir($dir_handle))
{
#echo "<!-- ".is_file($phpgw_info["server"]["app_root"].$sep."conv".$sep.$file)." -->";
if ((substr($file, 0, 1) != '.') && is_file($phpgw_info['server']['app_root'].$sep.'export'.$sep.$file) )
if ((substr($file, 0, 1) != '.') && is_file(PHPGW_APP_ROOT . SEP . 'export' . SEP . $file) )
{
$myfilearray[$i] = $file;
$i++;
@ -97,7 +95,7 @@
}
else
{
include ($phpgw_info['server']['app_root'].$sep.'export'.$sep.$conv_type);
include (PHPGW_APP_ROOT . SEP . 'export' . SEP . $conv_type);
$buffer=array();
$this = new export_conv;

View File

@ -19,19 +19,17 @@
);
include('../header.inc.php');
$sep = SEP;
if (!$convert)
{
$t = new Template(PHPGW_APP_TPL);
$t->set_file(array('import' => 'import.tpl'));
$dir_handle=opendir($phpgw_info['server']['app_root'] . $sep . 'import');
$dir_handle=opendir(PHPGW_APP_ROOT . SEP . 'import');
$i=0; $myfilearray='';
while ($file = readdir($dir_handle))
{
//echo "<!-- ".is_file($phpgw_info["server"]["app_root"].$sep."import".$sep.$file)." -->";
if ((substr($file, 0, 1) != '.') && is_file($phpgw_info['server']['app_root'] . $sep . 'import' . $sep . $file) )
if ((substr($file, 0, 1) != '.') && is_file(PHPGW_APP_ROOT . SEP . 'import' . SEP . $file) )
{
$myfilearray[$i] = $file;
$i++;
@ -69,7 +67,7 @@
}
else
{
include ($phpgw_info['server']['app_root'] . $sep . 'import' . $sep . $conv_type);
include (PHPGW_APP_ROOT . SEP. 'import' . SEP . $conv_type);
if ($private == '') { $private = 'public'; }
$row=0;