Esempio n. 1
0
<?php

ini_set("memory_limit", "30M");
require_once 'config.php';
require_once 'common.php';
require_once 'functions.php';
dashboardInit();
$arrData = createDataForRegression_IAP("smoke");
writeRegCasesToFile($arrData, 'smoke');
if ($_GET[from] == "") {
    $from = 6;
} else {
    $from = $_GET[from];
}
if ($_GET[to] == "") {
    $to = -1;
} else {
    $to = $_GET[to];
}
// login user if required
$arr = loginUser($_POST);
$arr = logoutUser($_POST, $arr);
if (isset($_POST['Save'])) {
    foreach ($_POST as $name => $smoke) {
        if ($smoke == "Save") {
            continue;
        }
        ereg("([a-z]+)-([0-9]+)", $name, $regs);
        $type = $regs[1];
        $build = $regs[2];
        if ($type == "comment") {
Esempio n. 2
0
<?php

ini_set("memory_limit", "30M");
require_once 'config.php';
require_once 'common.php';
require_once 'functions.php';
dashboardInit();
$arrData = createDataForRegression_IAP("minireg");
writeRegCasesToFile($arrData, 'minireg');
if ($_GET[from] == "") {
    $from = 6;
} else {
    $from = $_GET[from];
}
if ($_GET[to] == "") {
    $to = -1;
} else {
    $to = $_GET[to];
}
// login user if required
$arr = loginUser($_POST);
$arr = logoutUser($_POST, $arr);
if (isset($_POST['Save'])) {
    foreach ($_POST as $name => $smoke) {
        if ($smoke == "Save") {
            continue;
        }
        ereg("([a-z]+)-([0-9]+)", $name, $regs);
        $type = $regs[1];
        $build = $regs[2];
        if ($type == "comment") {