if($argv[1]=="--pdns"){echo pdns_server()."\n".pdns_recursor();exit;} if($argv[1]=="--cyrus-imap"){echo cyrus_imap();exit;} if($argv[1]=="--mysql"){echo "\n".mysql_server()."\n".mysql_mgmt()."\n". mysql_replica();exit;} if($argv[1]=="--openldap"){echo "\n".openldap();;exit;} if($argv[1]=="--saslauthd"){echo "\n".saslauthd();;exit;} if($argv[1]=="--sysloger"){echo "\n".syslogger();;exit;} if($argv[1]=="--squid-tail"){echo "\n".squid_tail();;exit;} if($argv[1]=="--amavis"){echo "\n".amavis();exit;} if($argv[1]=="--amavis-milter"){echo"\n". amavis_milter();exit;} if($argv[1]=="--boa"){echo"\n". boa();exit;} if($argv[1]=="--lighttpd"){echo"\n". lighttpd();exit;} if($argv[1]=="--fcron"){echo"\n". fcron1()."\n".fcron2(); exit;} if($argv[1]=="--clamav"){echo"\n". clamd()."\n".clamscan()."\n".clammilter()."\n".freshclam(); exit;} if($argv[1]=="--retranslator"){echo"\n". retranslator_httpd(); exit;} if($argv[1]=="--spamassassin"){echo spamassassin_milter()."\n".spamassassin();exit;} if($argv[1]=="--postfix"){echo "\n".postfix();exit;} if($argv[1]=="--postfix-logger"){echo "\n".postfix_logger();exit;} if($argv[1]=="--mailman"){echo "\n".mailman();exit;} if($argv[1]=="--kas3"){echo "\n".kas3_milter()."\n".kas3_ap(); exit;} if($argv[1]=="--samba"){echo "\n".smbd()."\n".nmbd()."\n".winbindd()."\n".scanned_only()."\n"; exit;} if($argv[1]=="--roundcube"){echo "\n".roundcube();exit;} if($argv[1]=="--cups"){echo "\n".cups();exit;} if($argv[1]=="--apache-groupware"){echo "\n".apache_groupware();exit;} if($argv[1]=="--gdm"){echo "\n".gdm();exit;} if($argv[1]=="--console-kit"){echo "\n".consolekit();exit;} if($argv[1]=="--xfce"){echo "\n".xfce();exit;} if($argv[1]=="--vmtools"){echo "\n".vmtools();exit;} if($argv[1]=="--hamachi"){echo "\n".hamachi();exit;} if($argv[1]=="--artica-notifier"){echo "\n".artica_notifier();exit;} if($argv[1]=="--dhcpd"){echo "\n".dhcpd_server();exit;} if($argv[1]=="--pure-ftpd"){echo "\n".pure_ftpd();exit;}
$result['right'] = array_pop($stack); } $ctr++; } return $result; } $distribute = false; $leftToright = false; foreach ($expr as $expression) { $paren = strpos($expression, "("); if ($paren !== false && $paren > 0 && is_numeric($expression[$paren - 1])) { $distribute = true; echo "Distribute ", $expression[$paren - 1]; } } $e = explode(',', postfix($expr[0])); for ($i = 0; $i < count($e); $i++) { if (is_numeric($e[$i])) { $leftToright = true; } } if (!$distribute) { echo "nothing to distribute"; } $arr = array("distribute" => $distribute); // echo json_encode($arr); //$expr = normalize($expr); // var_dump($expr); // $eq['left'] = postfix($expr[0]); // //echo $eq['left'] . "<br>"; // $eq['right'] = postfix($expr[1]);
function check($expr, $given) { $eq['left'] = postfix($expr[0]); $eq['right'] = postfix($expr[1]); $eq = distribute($eq); $eq = firststep($eq); $eq['left'] = analyze($eq['left'], 'left'); $eq['right'] = analyze($eq['right'], 'right'); $eq['left'] = array_pop($eq['left']); $eq['right'] = array_pop($eq['right']); if ($eq['left'] == "x") { $resultExpr = $eq['right'] / 1; } else { $resultExpr = $eq['right'] / $eq['left']; } $eq['left'] = postfix($given[0]); $eq['right'] = postfix($given[1]); $eq = distribute($eq); $eq = firststep($eq); $eq['left'] = analyze($eq['left'], 'left'); $eq['right'] = analyze($eq['right'], 'right'); $eq['left'] = array_pop($eq['left']); $eq['right'] = array_pop($eq['right']); if ($eq['left'] == "x") { $resultGiven = $eq['right'] / 1; } else { $resultGiven = $eq['right'] / $eq['left']; } if ($resultGiven == $resultExpr) { return true; } return false; }
} if ($argv[1] == "--squidguard-http") { squidguard_http(); exit; } if ($argv[1] == "--apache") { apache(); exit; } if ($argv[1] == "--cntlm") { cntlm(); cntlm_parent(); exit; } if ($argv[1] == "--postfix") { postfix(); exit; } if ($argv[1] == "--auth-tail") { auth_tail(); exit; } if ($argv[1] == "--roundcube") { roundcube_http(); exit; } if ($argv[1] == "--spawnfcgi") { spawnfcgi(); exit; } if ($argv[1] == "--fetchmail") {
exit; } if ($argv[1] == "--clamav") { echo "\n" . clamd() . "\n" . clamscan() . "\n" . clammilter() . "\n" . freshclam(); exit; } if ($argv[1] == "--retranslator") { echo "\n" . retranslator_httpd(); exit; } if ($argv[1] == "--spamassassin") { echo spamassassin_milter() . "\n" . spamassassin(); exit; } if ($argv[1] == "--postfix") { echo "\n" . postfix(); exit; } if ($argv[1] == "--postfix-logger") { echo "\n" . postfix_logger(); exit; } if ($argv[1] == "--mailman") { echo "\n" . mailman(); exit; } if ($argv[1] == "--kas3") { echo "\n" . kas3_milter() . "\n" . kas3_ap(); exit; } if ($argv[1] == "--samba") {
/** * @return $this */ public function create() { if (func_num_args() == 0 || !array_key_exists('tmp_name', $_FILES[config('uploadFileIndex', 'Default')])) { return error404(); } Config::_getInstance()->load($this->_('type')); if (is_array($_FILES[config('uploadFileIndex', 'Default')]['tmp_name'])) { $fileNames = $_FILES[config('uploadFileIndex', 'Default')]['tmp_name']; $ids = array_fill(0, count($fileNames), array_fill(0, func_num_args(), 0)); $single = false; } else { $fileNames = array($_FILES[config('uploadFileIndex', 'Default')]['tmp_name']); $ids = array(func_get_args()); $single = true; } $result = array(); if (func_num_args() == 1) { for ($i = 0; $i < count($fileNames); $i++) { $result[$i] = $this->prepareSource($fileNames[$i])->parse(input('filter'))->prepareFilter()->save($ids[$i][0])->finalize()->__(); } } else { for ($i = 0; $i < count($fileNames); $i++) { $result[$i] = array(); foreach ($ids[$i] as $j => $id) { if ($id == -1) { $result[$i] = array_merge($result[$i], array("ID" . ($j + 1) => -1)); continue; } $t = $this->prepareSource($fileNames[$i])->parse(input('filter') . "/{$j}")->prepareFilter()->save($id)->__(); $result[$i] = array_merge($result[$i], array_combine(array_map(postfix($j ? $j + 1 : ""), array_keys($t)), array_values($t))); } $this->finalize(); } } return $this->result($single ? $result[0] : array('multiple' => $result)); }