Example #1
0
 function __construct()
 {
     self::$token = get_secret("lighthouse");
 }
Example #2
0
<?php

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