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