0 && $UploadMaxPostSize < $UploadMaxSize) $UploadMaxSize = $UploadMaxPostSize; $confMaxSize = ConfService::getConf("UPLOAD_MAX_FILE"); if($confMaxSize != 0 && $confMaxSize < $UploadMaxSize) $UploadMaxSize = $confMaxSize; $confTotalSize = ConfService::getConf("UPLOAD_MAX_TOTAL"); $confTotalNumber = ConfService::getConf("UPLOAD_MAX_NUMBER"); $pluginConfigs = AJXP_PluginsService::getInstance()->findPlugin("uploader", "plupload")->getConfigs(); $repository = ConfService::getRepository(); $accessType = $repository->getAccessType(); if($accessType == "fs"){ $partitionLength = $UploadMaxSize - 1000; }else if($accessType == "remotefs"){ $maxFileLength = $UploadMaxSize; }else if($accessType == "ftp"){ $maxFileLength = $UploadMaxSize; /* // Here we could switch to FTP, but that would mean, by a way or another, // to display in clear the ftp credentials... // Also, beware the ftp_z.jar is needed for this to work. $ftpWrapper = new ftpAccessWrapper(); $plugin = AJXP_PluginsService::findPlugin("access", $repository->getAccessType()); $streamData = $plugin->detectStreamWrapper(true); $destStreamURL = $streamData["protocol"]."://".$repository->getId()."/"; // Not working now, as ftpAccessWrapper::buildRealUrl is in fact protected $ftpURL = $ftpWrapper->buildRealUrl($destStreamURL); // Then pass this URL to the javascript uploadUrl => to the applet. */ } $minisite_session = ""; if(strpos(session_name(), "AjaXplorer_Shared") === 0){ $minisite_session = "&minisite_session=".substr(session_name(), strlen("AjaXplorer_Shared")); } ?>