mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix for new constants
This commit is contained in:
parent
43a9aceecf
commit
8d402ca2d7
@ -32,19 +32,17 @@
|
|||||||
$phpgw_info['flags']['enable_browser_class'] = True;
|
$phpgw_info['flags']['enable_browser_class'] = True;
|
||||||
include('../header.inc.php');
|
include('../header.inc.php');
|
||||||
|
|
||||||
$sep = SEP;
|
|
||||||
|
|
||||||
if (!$convert)
|
if (!$convert)
|
||||||
{
|
{
|
||||||
$t = new Template(PHPGW_APP_TPL);
|
$t = new Template(PHPGW_APP_TPL);
|
||||||
$t->set_file(array('export' => 'export.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='';
|
$i=0; $myfilearray='';
|
||||||
while ($file = readdir($dir_handle))
|
while ($file = readdir($dir_handle))
|
||||||
{
|
{
|
||||||
#echo "<!-- ".is_file($phpgw_info["server"]["app_root"].$sep."conv".$sep.$file)." -->";
|
#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;
|
$myfilearray[$i] = $file;
|
||||||
$i++;
|
$i++;
|
||||||
@ -97,7 +95,7 @@
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
include ($phpgw_info['server']['app_root'].$sep.'export'.$sep.$conv_type);
|
include (PHPGW_APP_ROOT . SEP . 'export' . SEP . $conv_type);
|
||||||
$buffer=array();
|
$buffer=array();
|
||||||
$this = new export_conv;
|
$this = new export_conv;
|
||||||
|
|
||||||
|
@ -19,19 +19,17 @@
|
|||||||
);
|
);
|
||||||
include('../header.inc.php');
|
include('../header.inc.php');
|
||||||
|
|
||||||
$sep = SEP;
|
|
||||||
|
|
||||||
if (!$convert)
|
if (!$convert)
|
||||||
{
|
{
|
||||||
$t = new Template(PHPGW_APP_TPL);
|
$t = new Template(PHPGW_APP_TPL);
|
||||||
$t->set_file(array('import' => 'import.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='';
|
$i=0; $myfilearray='';
|
||||||
while ($file = readdir($dir_handle))
|
while ($file = readdir($dir_handle))
|
||||||
{
|
{
|
||||||
//echo "<!-- ".is_file($phpgw_info["server"]["app_root"].$sep."import".$sep.$file)." -->";
|
//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;
|
$myfilearray[$i] = $file;
|
||||||
$i++;
|
$i++;
|
||||||
@ -69,7 +67,7 @@
|
|||||||
}
|
}
|
||||||
else
|
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'; }
|
if ($private == '') { $private = 'public'; }
|
||||||
$row=0;
|
$row=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user