Ejemplo n.º 1
0
function txShBuildAllNew()
{
    global $DB;
    VerifyAdministrator();
    $buffering = @ini_get('output_buffering');
    include_once 'includes/header.php';
    include_once 'includes/pages-build.php';
    if ($buffering) {
        echo '<span style="display: none">' . str_repeat('x', $buffering) . '</span>';
    }
    flush();
    BuildNewAll('txBuildCallback');
    echo "</div>\n<div id=\"done\"></div>\n</body>\n</html>";
}
Ejemplo n.º 2
0
switch ($GLOBALS['argv'][1]) {
    case '--build-with-new':
        $args = ParseCommandLine();
        if ($args['override-lock']) {
            $GLOBALS['override_page_lock'] = TRUE;
        }
        if (!IsEmptyString($args['pages'])) {
            if (preg_match('~(\\d+)-(\\d+)~', $args['pages'], $matches)) {
                $args['pages'] = join(',', range($matches[1], $matches[2]));
            }
            BuildNewSelected(explode(',', $args['pages']));
        } else {
            if (!IsEmptyString($args['tags'])) {
                BuildNewTagged($args['tags']);
            } else {
                BuildNewAll();
            }
        }
        break;
    case '--build':
        $args = ParseCommandLine();
        if ($args['override-lock']) {
            $GLOBALS['override_page_lock'] = TRUE;
        }
        if (!IsEmptyString($args['pages'])) {
            if (preg_match('~(\\d+)-(\\d+)~', $args['pages'], $matches)) {
                $args['pages'] = join(',', range($matches[1], $matches[2]));
            }
            BuildSelected(explode(',', $args['pages']));
        } else {
            if (!IsEmptyString($args['tags'])) {