<?php

include_once dirname(__FILE__) . '/ressources/class.templates.inc';
include_once dirname(__FILE__) . '/ressources/class.ldap.inc';
include_once dirname(__FILE__) . '/ressources/class.demime.inc';
include_once dirname(__FILE__) . '/ressources/class.mysql.inc';
include_once dirname(__FILE__) . "/framework/class.unix.inc";
include_once dirname(__FILE__) . "/framework/frame.class.inc";
include_once dirname(__FILE__) . '/ressources/class.artica-meta.inc';
cpulimit();
if ($argv[1] == "--transfert") {
    transfert();
    die;
}
$_GET["DOMAINS"] = null;
$_GET["FALSE_EMAILS"] = null;
$_GET["EMAILS"] = null;
if (posix_getuid() != 0) {
    die("Cannot be used in web server mode\n\n");
}
if (!Build_pid_func(__FILE__, "MAIN")) {
    writelogs(basename(__FILE__) . ":Already executed.. aborting the process", basename(__FILE__), __FILE__, __LINE__);
    die;
}
$q = new mysql();
$q->EXECUTE_SQL("set global net_buffer_length=1000000");
$q->EXECUTE_SQL("set global max_allowed_packet=1000000000");
$quarantine_dir = "/var/virusmails";
@mkdir("/var/log/artica-postfix/artica-meta-msgs", 666, true);
$files = DirList($quarantine_dir);
$count = 0;
Exemple #2
0
 echo "degree 0 right side of the equation simplification:\n                                                                 " . $first[0] . " = " . $first[1] . "\n";
 $first[1] = simplify($first[1], 1);
 echo "degree 1 right side of the equation simplification:\n                                                                 " . $first[0] . " = " . $first[1] . "\n";
 $first[1] = simplify($first[1], 2);
 echo "degree 2 right side of the equation simplification:\n                                                                 " . $first[0] . " = " . $first[1] . "\n";
 $first = transfert($first[0], $first[1], 0);
 if (!isset($first[1])) {
     $first[1] = "0";
 }
 echo "degree 0 transfert:\n                                                                 " . $first[0] . " = " . $first[1] . "\n";
 $first = transfert($first[0], $first[1], 1);
 if (!isset($first[1])) {
     $first[1] = "0";
 }
 echo "degree 1 transfert:\n                                                                 " . $first[0] . " = " . $first[1] . "\n";
 $first = transfert($first[0], $first[1], 2);
 if (!isset($first[1]) || !empty($first[1])) {
     $first[1] = "0";
 }
 echo "degree 2 transfert:\n                                                                 " . $first[0] . " = " . $first[1] . "\n";
 echo "\n\nreduced form:                                                    " . $first[0] . " = " . $first[1] . "\n\n";
 if (preg_match_all("/[X]\\^([3-9])/", $argv[1], $check2)) {
     echo "Polynomial degree: " . $check2[1][0] . "\nThe polynomial degree is stricly greater than 2, I can't solve.\n";
     exit;
 }
 $elems = getReady($first);
 if ($elems["a"]) {
     echo "Polynomial degree: 2\n";
     $delta = getDeltaSecondDegree($elems);
     echo "Discriminant: " . $delta . "\n";
     getSolutionsSecondDegree($elems, $delta);