Example #1
0
function init()
{
    global $gcInternal, $gcProbability;
    if ($gcInternal === true && ($gcProbability === 1.0 || mt_rand() / mt_getrandmax() < $gcProbability)) {
        runGc();
    }
}
Example #2
0
File: expire.php Project: dg-wfk/dl
#!/usr/bin/env php
<?php 
if (!isset($argc)) {
    die("not running from the command line\n");
}
require_once "../init.php";
require_once "admfuncs.php";
if ($gcInternal === false) {
    runGc();
}