forked from egi/Gudang-Data-Indonesia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore PHPExcel, show only .txt file, initial DIA model
- Loading branch information
Showing
3 changed files
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
*~ | ||
|
||
/lib/jqplot | ||
/config.php | ||
/config.php | ||
/lib/PHPExcel.php | ||
/lib/PHPExcel |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,9 @@ | |
* Gudang Data Indonesia | ||
* | ||
* @author Wida Sari <[email protected]> | ||
* @author Ivan Lanin <[email protected]> | ||
* @since 2011-10-05 10:30 | ||
* @last_update Wida Sari <[email protected]> 2011-10-05 11:18 | ||
* @last_update 2011-12-09 06:55 - IL | ||
*/ | ||
|
||
class catalog | ||
|
@@ -19,7 +20,9 @@ function list_catalog($dir) | |
if(is_file("$dir/$file")) | ||
{ | ||
$info = pathinfo($file); | ||
$data_sets[] = basename($file,'.'.$info['extension']); | ||
// only load .txt file | ||
if ($info['extension'] == 'txt') | ||
$data_sets[] = basename($file,'.'.$info['extension']); | ||
} | ||
} | ||
|
||
|