diff options
author | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-03-31 14:41:03 +0800 |
---|---|---|
committer | ptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2003-03-31 14:41:03 +0800 |
commit | 552920db1528cc8ac2cc18d3df1266a023cde1f9 (patch) | |
tree | c3543a2cb8824a6801f74a136ec54d3ea49f4910 | |
parent | a9d417d906d58373591da22002094a94bb57f216 (diff) | |
download | pttbbs-552920db1528cc8ac2cc18d3df1266a023cde1f9.tar pttbbs-552920db1528cc8ac2cc18d3df1266a023cde1f9.tar.gz pttbbs-552920db1528cc8ac2cc18d3df1266a023cde1f9.tar.bz2 pttbbs-552920db1528cc8ac2cc18d3df1266a023cde1f9.tar.lz pttbbs-552920db1528cc8ac2cc18d3df1266a023cde1f9.tar.xz pttbbs-552920db1528cc8ac2cc18d3df1266a023cde1f9.tar.zst pttbbs-552920db1528cc8ac2cc18d3df1266a023cde1f9.zip |
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk@754 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-x | pttbbs/web/l | 1 | ||||
-rw-r--r-- | pttbbs/web/mod_ptt.c | 6 | ||||
-rwxr-xr-x | pttbbs/web/r | 1 | ||||
-rwxr-xr-x | pttbbs/web/s | 1 | ||||
-rwxr-xr-x | pttbbs/web/t | 1 |
5 files changed, 9 insertions, 1 deletions
diff --git a/pttbbs/web/l b/pttbbs/web/l new file mode 100755 index 00000000..2ceb6767 --- /dev/null +++ b/pttbbs/web/l @@ -0,0 +1 @@ +lynx -dump ptt.cc/test.ptt diff --git a/pttbbs/web/mod_ptt.c b/pttbbs/web/mod_ptt.c index ee32ede4..ecb77117 100644 --- a/pttbbs/web/mod_ptt.c +++ b/pttbbs/web/mod_ptt.c @@ -1,4 +1,7 @@ #include "mod_ptt.h" +extern SHM_t *SHM; +extern int *GLOBALVAR; + extern int numboards; extern boardheader_t *bcache; typedef struct excfg { @@ -74,7 +77,8 @@ static int ptt_handler(request_rec *r) ap_rprintf(r, " Server built: \"%s\"<br>", ap_get_server_built()); ap_rprintf(r, " numboards: \"%d\"<br>", numboards); - + ap_rprintf(r, " shm: \"%d\"<br>", SHM->loaded ); + ap_rprintf(r, " max_user:%d<br>", SHM->max_user ); for(i = 0; i < 10; i++) ap_rprintf(r,"%d. %s %s<br>",i,bcache[i].brdname,bcache[i].title); diff --git a/pttbbs/web/r b/pttbbs/web/r new file mode 100755 index 00000000..5e18e14c --- /dev/null +++ b/pttbbs/web/r @@ -0,0 +1 @@ +sudo apachectl restart diff --git a/pttbbs/web/s b/pttbbs/web/s new file mode 100755 index 00000000..e1384f10 --- /dev/null +++ b/pttbbs/web/s @@ -0,0 +1 @@ +sudo apachectl stop diff --git a/pttbbs/web/t b/pttbbs/web/t new file mode 100755 index 00000000..6e8b84bc --- /dev/null +++ b/pttbbs/web/t @@ -0,0 +1 @@ +tail /var/log/httpd-error.log |