summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-31 14:41:03 +0800
committerptt <ptt@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-03-31 14:41:03 +0800
commit161219ea6d96bb9bfe7d559f2c8bba49ebb9192a (patch)
treec875a597595e168e8d6ba7be70c452d846ecd295
parent29d2582b1e2d07e8294011266961d378e0455c4e (diff)
downloadpttbbs-161219ea6d96bb9bfe7d559f2c8bba49ebb9192a.tar
pttbbs-161219ea6d96bb9bfe7d559f2c8bba49ebb9192a.tar.gz
pttbbs-161219ea6d96bb9bfe7d559f2c8bba49ebb9192a.tar.bz2
pttbbs-161219ea6d96bb9bfe7d559f2c8bba49ebb9192a.tar.lz
pttbbs-161219ea6d96bb9bfe7d559f2c8bba49ebb9192a.tar.xz
pttbbs-161219ea6d96bb9bfe7d559f2c8bba49ebb9192a.tar.zst
pttbbs-161219ea6d96bb9bfe7d559f2c8bba49ebb9192a.zip
*** empty log message ***
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@754 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rwxr-xr-xweb/l1
-rw-r--r--web/mod_ptt.c6
-rwxr-xr-xweb/r1
-rwxr-xr-xweb/s1
-rwxr-xr-xweb/t1
5 files changed, 9 insertions, 1 deletions
diff --git a/web/l b/web/l
new file mode 100755
index 00000000..2ceb6767
--- /dev/null
+++ b/web/l
@@ -0,0 +1 @@
+lynx -dump ptt.cc/test.ptt
diff --git a/web/mod_ptt.c b/web/mod_ptt.c
index ee32ede4..ecb77117 100644
--- a/web/mod_ptt.c
+++ b/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/web/r b/web/r
new file mode 100755
index 00000000..5e18e14c
--- /dev/null
+++ b/web/r
@@ -0,0 +1 @@
+sudo apachectl restart
diff --git a/web/s b/web/s
new file mode 100755
index 00000000..e1384f10
--- /dev/null
+++ b/web/s
@@ -0,0 +1 @@
+sudo apachectl stop
diff --git a/web/t b/web/t
new file mode 100755
index 00000000..6e8b84bc
--- /dev/null
+++ b/web/t
@@ -0,0 +1 @@
+tail /var/log/httpd-error.log