示例#1
0
    buildkey($argv[2]);
}
if ($argv[1] == "--x509") {
    x509($argv[2]);
}
if ($argv[1] == "--mysql") {
    update_from_mysql($argv[2]);
}
if ($argv[1] == "--squid-auto") {
    squid_autosigned($argv[2]);
}
if ($argv[1] == "--squid-validate") {
    squid_validate($argv[2]);
}
if ($argv[1] == "--BuildCSR") {
    BuildCSR($argv[2]);
}
if ($argv[1] == "--client-server") {
    autosigned_certificate_server_client($argv[2]);
}
echo "Cannot understand your commandline {$argv[1]}\n";
function BuildCSR($CommonName)
{
    $CommonName = str_replace("_ALL_", "*", $CommonName);
    buildkey($CommonName);
    squid_autosigned($CommonName);
    update_from_mysql($CommonName);
}
function build_progress_x509($text, $pourc)
{
    $GLOBALS["CACHEFILE"] = "/usr/share/artica-postfix/ressources/logs/web/openssl.x509.progress";
示例#2
0
    exit;
}
if (isset($_GET["syslogdb-status"])) {
    syslogdb_status();
    exit;
}
if (isset($_GET["syslogdb-query"])) {
    syslogdb_query();
    exit;
}
if (isset($_GET["logrotate-query"])) {
    logrotate_query();
    exit;
}
if (isset($_GET["BuildCSR"])) {
    BuildCSR();
    exit;
}
if (isset($_GET["SYSTEMS_ALL_PARTITIONS"])) {
    SYSTEMS_ALL_PARTITIONS();
    exit;
}
if (isset($_GET["apply-patch"])) {
    APPLY_PATCH();
    exit;
}
if (isset($_GET["apply-soft"])) {
    APPLY_SOFT();
    exit;
}
if (isset($_GET["syslogarchive-logs"])) {