|
|
|
@ -46,7 +46,7 @@ include_once('dropbox_functions.inc.php'); |
|
|
|
|
require_once( "dropbox_class.inc.php"); |
|
|
|
|
|
|
|
|
|
// |
|
|
|
|
include_once(api_get_library_path().'/document.lib.php'); |
|
|
|
|
include_once(api_get_path(LIBRARY_PATH).'/document.lib.php'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* |
|
|
|
@ -152,7 +152,7 @@ else |
|
|
|
|
$work = new Dropbox_work($_GET['id']); |
|
|
|
|
$path = dropbox_cnf("sysPath") . "/" . $work -> filename; //path to file as stored on server |
|
|
|
|
$file = $work->title; |
|
|
|
|
require_once(api_get_library_path() . '/document.lib.php'); |
|
|
|
|
require_once(api_get_path(LIBRARY_PATH) . '/document.lib.php'); |
|
|
|
|
$mimetype = DocumentManager::file_get_mime_type(TRUE); |
|
|
|
|
$fileparts = explode( '.', $file); |
|
|
|
|
$filepartscount = count( $fileparts); |
|
|
|
|