Subversion Repositories eFlore/Applications.cel

Rev

Rev 1802 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1802 Rev 1803
Line 180... Line 180...
180
 
180
 
181
function import($d) {
181
function import($d) {
182
	$URL = DOMAIN . '/jrest/InventoryImportExcel';
182
	$URL = DOMAIN . '/jrest/InventoryImportExcel';
183
	if(!is_file($d)) return FALSE;
183
	if(!is_file($d)) return FALSE;
184
	exec("csvtool -o /tmp/a.csv col 1- $d");
184
	exec("csvtool -o /tmp/a.csv col 1- $d");
185
	exec("/home/raphael/bin/csv2xls -v 0 -f -o /tmp/a /tmp/a.csv");
185
	exec(__DIR__ . "/bin/csv2xls -v 0 -f -o /tmp/a /tmp/a.csv");
186
	//if(DEBUG) fwrite(STDERR, "/home/raphael/bin/csv2xls -v 0 -f -o /tmp/a $d\n");
186
	//if(DEBUG) fwrite(STDERR, __DIR__ . "/bin/csv2xls -v 0 -f -o /tmp/a $d\n");
187
	if(DEBUG) fwrite(STDERR, "/home/raphael/bin/csv2xls -v 0 -f -o /tmp/a /tmp/a.csv\n");
187
	if(DEBUG) fwrite(STDERR, __DIR__ . "/bin/csv2xls -v 0 -f -o /tmp/a /tmp/a.csv\n");
188
	$d = "/tmp/a.xls";
188
	$d = "/tmp/a.xls";
Line 189... Line 189...
189
	$ch = curl_init();
189
	$ch = curl_init();
190
 
190