<?php require_once "NativeFS.php"; require_once "PathUtil.php"; require_once "Permission.php"; require_once "SFile.php"; require_once "AuthInfo.php"; require_once "../ErrorHandler.php"; $class = "classA"; $user = "******"; $ap = new Permission(new AuthInfo($class, $user)); $ap = null; $fs = new NativeFS("../../fs/", $ap); $fs->mv("/kesunayo/", "/kesitemoii/"); echo join(", ", $fs->ls("/")); /*$root=new SFile($fs,"/"); $home=$root->rel("home/")->rel($class)->rel($user); $txt=$home->rel("myprj/test.txt"); $txt->text("tesutou!!"); print "Wrote to ".$txt->path()." Actual: ".$fs->resolve($txt->path()); $otherHome=$home->rel("../userA2/"); print $otherHome->rel("topsecret.txt")->text();*/ //$otherHome->text("hack!!"); //echo "txtpath= ".$txt->path()."<BR>"; /*if (isset($_POST["con"])) { $txt->setText($_POST["con"]); }*/ ?> <form action="test.php" method="POST"> <textarea name="con" rows=10 cols=40><?php //echo $txt->getText();
echo "<script>alert('study more!');</script>"; exit(0); } date_default_timezone_set("Asia/Tokyo"); $min = date('Y-m-d\\TH:i:s', strtotime("-4 week")); $max = date('Y-m-d\\TH:i:s'); if (isset($_GET["min"])) { $min = $_GET["min"]; } if (isset($_GET["max"])) { $max = $_GET["max"]; } $class = Auth::curClass(); echo "<script>setRange('{$min}','{$max}');\n</script>"; $fs = new NativeFS("./log/"); foreach ($fs->ls("/") as $n) { $n = "/{$n}"; if (strpos($n, $class) != FALSE) { if (preg_match("/-data-time/", $n)) { $er = preg_replace("/-data-time/", "-data-error", $n); if ($fs->exists($er)) { readLog($n, $er); } } else { if (preg_match("/-data.log/", $n)) { readJSONLog($n); } } } } function readLog($time, $error)