コード例 #1
0
ファイル: smokereg.php プロジェクト: window98lsq/autoweb
<?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") {
コード例 #2
0
ファイル: minireg.php プロジェクト: window98lsq/autoweb
<?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") {