Ejemplo n.º 1
0
function init()
{
    global $gcInternal, $gcProbability;
    if ($gcInternal === true && ($gcProbability === 1.0 || mt_rand() / mt_getrandmax() < $gcProbability)) {
        runGc();
    }
}
Ejemplo n.º 2
0
Archivo: expire.php Proyecto: 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();
}