[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc/cron import_files.php
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] property/inc/cron import_files.php |
Date: |
Fri, 31 Aug 2007 22:48:03 +0000 |
CVSROOT: /sources/phpgroupware
Module name: property
Changes by: Sigurd Nes <sigurdne> 07/08/31 22:48:03
Modified files:
inc/cron : import_files.php
Log message:
update
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/property/inc/cron/import_files.php?cvsroot=phpgroupware&r1=1.1&r2=1.2
Patches:
Index: import_files.php
===================================================================
RCS file: /sources/phpgroupware/property/inc/cron/import_files.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- import_files.php 31 Aug 2007 13:20:52 -0000 1.1
+++ import_files.php 31 Aug 2007 22:48:03 -0000 1.2
@@ -24,7 +24,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package property
* @subpackage custom
- * @version $Id: import_files.php,v 1.1 2007/08/31 13:20:52 sigurdne Exp
$
+ * @version $Id: import_files.php,v 1.2 2007/08/31 22:48:03 sigurdne Exp
$
*/
/**
@@ -153,10 +153,11 @@
function import_vaktprotokoll()
{
$filename = 'Vakthendelser.xls';
- require_once PHPGW_APP_INC . SEP . 'excelreader' . SEP
. 'reader.php';
- $data = new Spreadsheet_Excel_Reader();
+ //require_once PHPGW_APP_INC . SEP . 'excelreader' .
SEP . 'reader.php';
+ $data = CreateObject('phpgwapi.excelreader');
+
$data->setOutputEncoding('CP1251');
- $data->read(PHPGW_APP_INC . SEP . 'excelreader' . SEP .
'test' . SEP . $filename);
+ $data->read(PHPGW_API_INC . SEP . 'excelreader' . SEP .
'test' . SEP . $filename);
for ($i = 1; $i <= $data->sheets[0]['numRows']; $i++)
{