"err",
"caption" => "データベースエラー",
"icon" => $erroricon,
"body" => "データベースの接続に失敗しました。
指定のデータベース「 $dbname 」を作成しますか?",
"buttons" => "戻る|history.back();,閉じる|window.close();"
);
}
if (count($Samplings) == 1) {
$_REQUEST['group'] = "all";
}
if ($_REQUEST['cmd'] == "limit_edit" && $_REQUEST['pw'] &&
($_REQUEST['pw'] == $root || $_REQUEST['pw'] == $admin)) {
$init = file_get_contents($inifile);
$init = str_replace("\n", "
", $init);
$limit = $_REQUEST['limit'];
$init = preg_replace("/(sampling.*\"$_REQUEST[key]\".*$_REQUEST[name]:)($_REQUEST[old])([\"\,\s]+)/", "$1!$limit$3", $init);
$init = str_replace(":!", ":", $init);
$init = str_replace("
", "\n", $init);
file_put_contents($inifile, $init);
header("Location:". $_SERVER['SCRIPT_NAME']. "?pw=$_REQUEST[pw]&group=$_REQUEST[group]&id=$_REQUEST[id]");
exit;
}
!$template && $template = $saucefile;
$text = "";
$Html = file($template);
$cgimode = false;
foreach ($Html as $line) {
if (preg_match("//", $line, $m)) {
$cgimode = false;
list($left, $right) = split($m[0], $line);
$line = "
$right";
} elseif (preg_match("//", $line, $m)) {
$cgimode = true;
list($left, $right) = split($m[0], $line);
$text .= "$left