我正在浏览一个小型 Linux 发行版(基于 Busybox - 用于运行 GSM 电话交换机),我发现许多用脚本语言编写的脚本来自 xml
文件。这些文件的扩展名为 csp
<%output disable>
<%if $(httpd.requestMethod='POST') >
<%call httpd.authenticate: "Please Login">
<%if $(httpd.authUser='admin') >
<%if $(httpd.authPassword!=ADMIN_PASSWORD)>
<%call httpd.forceAuthenticate: "Please Login">
<%endif>
<%else>
<%call httpd.forceAuthenticate: "Please Login">
<%endif>
<%if $(param1='1')>
<%set PROGRAM_ARG_1:=$(param2)>
<%call syscfg.save>
<%call system.exec: /usr/bin/echocmd, $(action)>
<%endif>
<%endif>
<%endif>
它似乎是 ASP、python 和 shell 脚本的混合体!
这是什么脚本语言?我在哪里可以找到它的手册?
例如:
我有 send_status.html
,它接收 ajax 请求。在这个文件中有这一行 <%include send_status.csp>
. 神奇地这个命令行 /usr/bin/echocmd, $(action)
被执行! (注意:$(action) 被扩展为名为 action 的 POST 参数——这非常糟糕!)。
最佳答案
可能是 Caché 和 Caché Server Pages (CSP)
关于http - 这是什么脚本语言? <%if $(http.request 方法 ='POST' ) >,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21256166/