Пример #1
0
}
/******************************************
*******************************************
*******************************************
*******THE PROGRAM STARTS HERE*************
*******************************************
*******************************************
******************************************/
if (!file_exists($tupac_directory)) {
    if ($uid == 0) {
        mkdir($tupac_directory);
        chmod($tupac_directory, 0777);
    } else {
        // TODO Make this message localized
        //sendMessage('cacheNeedRoot',array());
        Std::send('In order to create the TUPAC_CACHE directory you need to be root. (' . $tupac_directory . ')');
        exit;
    }
}
$colorMap = "darkbg";
$lang = getPipeContents('echo -n $LANG');
$GLOBALS['NO_AUR'] = false;
$argv_count = count($argv);
for ($i = 1; $i < $argv_count; $i++) {
    switch ($argv[$i]) {
        case '--safe':
            $GLOBALS['onlySafeAurResults'] = true;
            array_splice($argv, $i, 1);
            $i--;
            break;
        case '--noaur':