#!/usr/bin/php <?php include "/home/websites/browserplus/php/site.php"; include "/home/websites/browserplus/php/bugzilla.php"; // DOK_BASE - normally set in apache, but not available to scripts putenv("DOK_BASE=/home/websites/browserplus/data"); $bugs = new Bugzilla(); $secret = $bugs->get_cache_secret(); $host = get_cfg_var('bp_env') == "local" ? "borg" : "browserplus.org"; fetch("http://{$host}/site/cache_bugzilla.php?s={$secret}");
<?php include "../../php/site.php"; include "../../php/bugzilla.php"; $bugs = new Bugzilla(); // to make sure we're the ones calling if (isset($_GET["s"]) && $_GET["s"] == $bugs->get_cache_secret()) { // fetches bugs $bugs->fetch_bugs(); }