summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-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