changed git call from https to git readonly
[atutor.git] / mods / wiki / plugins / lib / shutdown.php
1 <?php
2
3 /*
4    Registration of shutdown-functions via $ewiki_plugins["shutdown"][],
5    where each entry is either a function name or funcname + fixed args.
6 */
7
8
9 function ewiki_shutdown() {
10    global $ewiki_plugins, $ewiki_id, $ewiki_data, $ewiki_action;
11
12    if ($pf_a = $ewiki_plugins["shutdown"]) {
13       foreach ($pf_a as $pf) {
14
15          $args = array();
16          if (is_array($pf)) {
17             $args = $pf;
18             $pf = array_shift($args);
19          }
20
21          set_time_limit(+20);
22          $pf($ewiki_id, $ewiki_data, $ewiki_action, $args);
23       }
24    }
25 }
26
27 register_shutdown_function("ewiki_shutdown");
28
29 ?>