projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add pause test
[brisk.git]
/
web
/
Obj
/
sac-a-push.phh
diff --git
a/web/Obj/sac-a-push.phh
b/web/Obj/sac-a-push.phh
index
5d62a37
..
c6858b8
100644
(file)
--- a/
web/Obj/sac-a-push.phh
+++ b/
web/Obj/sac-a-push.phh
@@
-339,7
+339,7
@@
class Sac_a_push {
$thiz->rndstr = "";
for ($i = 0 ; $i < 4096 ; $i++) {
if (($i % 128) == 0)
$thiz->rndstr = "";
for ($i = 0 ; $i < 4096 ; $i++) {
if (($i % 128) == 0)
- $thiz->rndstr .= "
\n
";
+ $thiz->rndstr .= "
";
else
$thiz->rndstr .= chr(mt_rand(65, 90));
}
else
$thiz->rndstr .= chr(mt_rand(65, 90));
}
@@
-545,6
+545,14
@@
class Sac_a_push {
if ($line == "reload") {
require("$DOCUMENT_ROOT/Etc/".BRISK_CONF);
}
if ($line == "reload") {
require("$DOCUMENT_ROOT/Etc/".BRISK_CONF);
}
+ else if ($line == "shutdown") {
+ if ($this->app->dump_data()) {
+ exit(0);
+ }
+ else {
+ exit(1);
+ }
+ }
}
else {
$key = array_search("$sock", $this->socks);
}
else {
$key = array_search("$sock", $this->socks);