我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

当有人在Mediawiki上编辑一个页面时执行操作

I'm trying to perform an action when someone edit a page on my Mediawiki. The action is exec a .sh script (for example with this code: exec('sh /path/file.sh');). I analized the EditPages.php and I didn't find where I could add this command.

Can you help me?

Thanks!

You can do this by adding hooks to your Mediawiki installation. In your case you register to the PageContentSaveComplete event.

近期文章

  • 尝试使用数组PHP格式化日期时出错
  • 如何同时进行ajax调用?
  • 从mac中的php运行bash脚本时,$ USER为空
  • 如何在wordpress中自定义自定义发布日期格式?
  • 在PHP中设置ROOT目录
  • $ a =新PharData($ tar_achive); cakephp3
  • 在php中显示mysql的日期
  • 如何将数组对象php显示为ajax js?
  • 无法通过ajax调用显示返回数据
  • 会话变量 - mysqli_query结果
  • 如何获得组织模块信息,vtiger
  • unserialize():13个字节的偏移9处的错误
  • 为什么我的SQL在刷新页面时插入相同的数据?
  • Yii2控制台从外部服务器获取数据
  • 在Javascript中工作的RegEx在PHP中不会这样做
  • jquery中的多维数组
  • 使用Eloquent仅提取具有完整日期的项目
  • 从XML节点中提取多个值并将其映射到数据库
  • Codeigniter - 在单个mysql列中可能存在多维数组数据?
  • 位于linux服务器上的PHP代码需要运行windows .exe

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华