From d6397309a9f65af2ccb5e5784d905e51dfb1b3af Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Mon, 3 Sep 2007 11:42:41 +0200 Subject: [PATCH] [svn r12919] alpha version of oogie... still a lot of things to improve (refactoring of html for example). --- main/newscorm/learnpath.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/newscorm/learnpath.class.php b/main/newscorm/learnpath.class.php index 910ddcf730..32bd0545e2 100644 --- a/main/newscorm/learnpath.class.php +++ b/main/newscorm/learnpath.class.php @@ -1717,6 +1717,10 @@ class learnpath { { return 'ppt'; } + if(!empty($_POST['woogie']) && !in_array($extension,array('dll','exe'))) + { + return 'woogie'; + } $file_base_name = str_replace('.'.$extension,'',$filename); //filename without its extension