dpwo36915 2012-03-23 10:51
浏览 34
已采纳

有没有人知道从OLAT访问xml文件,图像......的正确途径,或者如何在2台服务器之间使用/访问文件

As the title says, I would like to know where or how you can access files from a Course or Test in OLAT. (or maybe copy them)

at this moment, we have a server where OLAT is installed on and we have also another server with PHP. Those 2 servers are seperated and aren't directly wired connected with each other.

The trickiest thing is that, this is at an university and security is top priority.

The path that we use now is eg. /opt/olat/olatdata/bcroot/course ...
Of course this will only work when everything is in the same location.


I was wondering of that you could rebuild the hash but dont know how to begin on that

(http://192.168.56.101:8080/OLAT-LMS-7.2.1.0/m/**aad7874b6b41278d91852c80eb5156cb**/Campin_Madonna.jpg)

More info: The reason for this all is
the professors of the university have made a lot of excercises and courses in OLAT. But there are too less features in OLAT so they want a php application where they can have some drag and drop excercise or other stuff. Now we need use a php server that uses the information (xml, pdf's, images, include html pages) from the OLAT server because everyday there could be build new courses in OLAT (or changes) and it would be usefull if the php application doesn't have any troubles with that.

any other suggestions are welcome

Kind regards

Dieter

  • 写回答

1条回答 默认 最新

  • drra6593 2012-03-26 07:41
    关注

    As you said, security is a top prio, thus it is not possible to use those fancy URL's to retrieve the images from another application as they are only valid when the user is logged in and is in the right location. E.g. images from a secific test can only be viewed when the test is actually running for this user.

    The hash itself is simple, it is an md5 hash of the file system path. Have a look at MapperRegistry.registerCacheable().

    A better solution would be to use the REST API. But as I heard UZH will drop support for that. Maybe you should also have a look at the free alternative OpenOLAT that has a much greater feature set compared to OLAT: http://www.openolat.org

    Cheers Florian

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条