aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLAN-TW <lantw44@gmail.com>2013-04-03 23:47:29 +0800
committerLAN-TW <lantw44@gmail.com>2013-04-03 23:47:29 +0800
commitb5bd15cb6c8310adecbc4ca88aa68571128375e6 (patch)
treea40c628fc98fd4bd2d39be5d237aa61829cf3587
parent89552867ba657aea62a199e42e36e4366bebc429 (diff)
downloadtaiwan-online-judge-lantw44-b5bd15cb6c8310adecbc4ca88aa68571128375e6.tar.gz
taiwan-online-judge-lantw44-b5bd15cb6c8310adecbc4ca88aa68571128375e6.tar.zst
taiwan-online-judge-lantw44-b5bd15cb6c8310adecbc4ca88aa68571128375e6.zip
Move judgk and web pages
-rw-r--r--toj/center/src/hyperio/Makefile13
-rw-r--r--toj/center/src/hyperio/hyperio_mod.c58
-rw-r--r--toj/center/src/hyperio/hyperio_mod.h21
-rw-r--r--toj/center/src/hyperio/test.cpp173
-rw-r--r--toj/include/judge_def.h (renamed from toj/center/src/judge_def.h)0
-rw-r--r--toj/judgk/Makefile15
-rw-r--r--toj/judgk/judgk.h (renamed from toj/center/src/judgk.h)0
-rw-r--r--toj/judgk/judgk_com.h (renamed from toj/center/src/judgk_com.h)0
-rw-r--r--toj/judgk/judgk_hyperio.c (renamed from toj/center/src/judgk_hyperio.c)0
-rw-r--r--toj/judgk/judgk_hyperio.h (renamed from toj/center/src/judgk_hyperio.h)0
-rw-r--r--toj/judgk/judgk_mod.c (renamed from toj/center/src/judgk_mod.c)0
-rw-r--r--toj/judgk/judgk_mod.h (renamed from toj/center/src/judgk_mod.h)0
-rw-r--r--toj/judgk/judgk_proc.c (renamed from toj/center/src/judgk_proc.c)2
-rw-r--r--toj/judgk/judgk_proc.h (renamed from toj/center/src/judgk_proc.h)0
-rw-r--r--toj/judgk/judgk_security.c (renamed from toj/center/src/judgk_security.c)0
-rw-r--r--toj/judgk/judgk_security.h (renamed from toj/center/src/judgk_security.h)0
-rw-r--r--toj/judgk/judgk_syscall.c (renamed from toj/center/src/judgk_syscall.c)0
-rw-r--r--toj/judgk/judgk_syscall.h (renamed from toj/center/src/judgk_syscall.h)0
-rw-r--r--toj/judgk/judgk_syscall_asm.S (renamed from toj/center/src/judgk_syscall_asm.S)0
-rw-r--r--toj/web/jcs/common.css (renamed from toj/jcs/common.css)0
-rw-r--r--toj/web/jcs/common.js (renamed from toj/jcs/common.js)0
-rw-r--r--toj/web/jcs/home.css (renamed from toj/jcs/home.css)0
-rw-r--r--toj/web/jcs/home.js (renamed from toj/jcs/home.js)0
-rw-r--r--toj/web/jcs/index.css (renamed from toj/jcs/index.css)0
-rw-r--r--toj/web/jcs/index.js (renamed from toj/jcs/index.js)0
-rw-r--r--toj/web/jcs/notice.css (renamed from toj/jcs/notice.css)0
-rw-r--r--toj/web/jcs/notice.js (renamed from toj/jcs/notice.js)0
-rw-r--r--toj/web/jcs/pro.css (renamed from toj/jcs/pro.css)0
-rw-r--r--toj/web/jcs/pro.js (renamed from toj/jcs/pro.js)0
-rw-r--r--toj/web/jcs/sq.css (renamed from toj/jcs/sq.css)0
-rw-r--r--toj/web/jcs/sq.js (renamed from toj/jcs/sq.js)0
-rw-r--r--toj/web/jcs/stat.css (renamed from toj/jcs/stat.css)0
-rw-r--r--toj/web/jcs/stat.js (renamed from toj/jcs/stat.js)0
-rw-r--r--toj/web/jcs/user.css (renamed from toj/jcs/user.css)0
-rw-r--r--toj/web/jcs/user.js (renamed from toj/jcs/user.js)0
-rw-r--r--toj/web/php/_json.php (renamed from toj/php/_json.php)0
-rw-r--r--toj/web/php/_pzread_update.php (renamed from toj/php/_pzread_update.php)0
-rw-r--r--toj/web/php/_test.php (renamed from toj/php/_test.php)0
-rw-r--r--toj/web/php/common.inc.php (renamed from toj/php/common.inc.php)0
-rw-r--r--toj/web/php/connect.inc.php (renamed from toj/php/connect.inc.php)0
-rw-r--r--toj/web/php/event.inc.php (renamed from toj/php/event.inc.php)0
-rw-r--r--toj/web/php/event.php (renamed from toj/php/event.php)0
-rw-r--r--toj/web/php/notice.inc.php (renamed from toj/php/notice.inc.php)0
-rw-r--r--toj/web/php/notice.php (renamed from toj/php/notice.php)0
-rw-r--r--toj/web/php/problem.inc.php (renamed from toj/php/problem.inc.php)0
-rw-r--r--toj/web/php/problem.php (renamed from toj/php/problem.php)0
-rw-r--r--toj/web/php/pzreadtest.php (renamed from toj/php/pzreadtest.php)0
-rw-r--r--toj/web/php/sqlib.inc.php (renamed from toj/php/sqlib.inc.php)0
-rw-r--r--toj/web/php/sqlib_scoreboard.inc.php (renamed from toj/php/sqlib_scoreboard.inc.php)0
-rw-r--r--toj/web/php/square.inc.php (renamed from toj/php/square.inc.php)0
-rw-r--r--toj/web/php/square.php (renamed from toj/php/square.php)0
-rw-r--r--toj/web/php/status.inc.php (renamed from toj/php/status.inc.php)0
-rw-r--r--toj/web/php/status.php (renamed from toj/php/status.php)0
-rw-r--r--toj/web/php/step.inc.php (renamed from toj/php/step.inc.php)0
-rw-r--r--toj/web/php/step.php (renamed from toj/php/step.php)0
-rw-r--r--toj/web/php/teamt.php (renamed from toj/php/teamt.php)0
-rw-r--r--toj/web/php/test.php (renamed from toj/php/test.php)0
-rw-r--r--toj/web/php/user.inc.php (renamed from toj/php/user.inc.php)0
-rw-r--r--toj/web/php/user.php (renamed from toj/php/user.php)0
-rw-r--r--toj/web/pmod/pmod_multisub/pmod_multisub.css (renamed from toj/pmod/pmod_multisub/pmod_multisub.css)0
-rw-r--r--toj/web/pmod/pmod_multisub/pmod_multisub.html (renamed from toj/pmod/pmod_multisub/pmod_multisub.html)0
-rw-r--r--toj/web/pmod/pmod_multisub/pmod_multisub.js (renamed from toj/pmod/pmod_multisub/pmod_multisub.js)0
-rw-r--r--toj/web/pmod/pmod_multisub/pmod_multisub.php (renamed from toj/pmod/pmod_multisub/pmod_multisub.php)0
-rw-r--r--toj/web/pmod/pmod_test/pmod_test.css (renamed from toj/pmod/pmod_test/pmod_test.css)0
-rw-r--r--toj/web/pmod/pmod_test/pmod_test.html (renamed from toj/pmod/pmod_test/pmod_test.html)0
-rw-r--r--toj/web/pmod/pmod_test/pmod_test.js (renamed from toj/pmod/pmod_test/pmod_test.js)0
-rw-r--r--toj/web/pmod/pmod_test/pmod_test.php (renamed from toj/pmod/pmod_test/pmod_test.php)0
-rw-r--r--toj/web/smod/smod_test/smod_test.css (renamed from toj/smod/smod_test/smod_test.css)0
-rw-r--r--toj/web/smod/smod_test/smod_test.html (renamed from toj/smod/smod_test/smod_test.html)0
-rw-r--r--toj/web/smod/smod_test/smod_test.js (renamed from toj/smod/smod_test/smod_test.js)0
-rw-r--r--toj/web/smod/smod_test/smod_test.php (renamed from toj/smod/smod_test/smod_test.php)0
-rw-r--r--toj/web/sqmod/sqmod_test/sqmod_test.css (renamed from toj/sqmod/sqmod_test/sqmod_test.css)0
-rw-r--r--toj/web/sqmod/sqmod_test/sqmod_test.html (renamed from toj/sqmod/sqmod_test/sqmod_test.html)0
-rw-r--r--toj/web/sqmod/sqmod_test/sqmod_test.inc.php (renamed from toj/sqmod/sqmod_test/sqmod_test.inc.php)0
-rw-r--r--toj/web/sqmod/sqmod_test/sqmod_test.js (renamed from toj/sqmod/sqmod_test/sqmod_test.js)0
-rw-r--r--toj/web/sqmod/sqmod_test/sqmod_test.php (renamed from toj/sqmod/sqmod_test/sqmod_test.php)0
-rw-r--r--toj/web/sqmod/sqmod_test/sqmod_test_man.php (renamed from toj/sqmod/sqmod_test/sqmod_test_man.php)0
-rw-r--r--toj/web/sqmod/sqmod_test/team.inc.php (renamed from toj/sqmod/sqmod_test/team.inc.php)0
78 files changed, 16 insertions, 266 deletions
diff --git a/toj/center/src/hyperio/Makefile b/toj/center/src/hyperio/Makefile
deleted file mode 100644
index 655e473..0000000
--- a/toj/center/src/hyperio/Makefile
+++ /dev/null
@@ -1,13 +0,0 @@
-ifneq ($(KERNELRELEASE),)
- hyperio-objs := hyperio_mod.o judgk_hyperio.o
- obj-m := hyperio.o
-else
- KERNEL_SOURCE := /usr/lib/modules/$(shell uname -r)/build
- PWD := $(shell pwd)
-default:
- ${MAKE} -C ${KERNEL_SOURCE} SUBDIRS=${PWD} modules
-
- g++ -O2 test.cpp -o test
-clean:
- ${MAKE} -C ${KERNEL_SOURCE} SUBDIRS=${PWD} clean
-endif
diff --git a/toj/center/src/hyperio/hyperio_mod.c b/toj/center/src/hyperio/hyperio_mod.c
deleted file mode 100644
index a188b14..0000000
--- a/toj/center/src/hyperio/hyperio_mod.c
+++ /dev/null
@@ -1,58 +0,0 @@
-#include<linux/module.h>
-#include<linux/kernel.h>
-#include<linux/kdev_t.h>
-#include<linux/device.h>
-#include<linux/cdev.h>
-#include<linux/fs.h>
-
-#include"../judgk.h"
-#include"../judgk_com.h"
-#include"hyperio_mod.h"
-
-static int __init mod_init(){
- alloc_chrdev_region(&mod_dev,0,1,"hyperio");
- mod_class = class_create(THIS_MODULE,"chardev");
- device_create(mod_class,NULL,mod_dev,NULL,"hyperio");
- cdev_init(&mod_cdev,&mod_fops);
- cdev_add(&mod_cdev,mod_dev,1);
-
- judgk_hyperio_init();
-
- pr_alert("hyperio:Init\n");
- return 0;
-}
-static void __exit mod_exit(){
- judgk_hyperio_exit();
-
- cdev_del(&mod_cdev);
- device_destroy(mod_class,mod_dev);
- class_destroy(mod_class);
- unregister_chrdev_region(mod_dev,1);
-
- pr_alert("hyperio:Exit\n");
-}
-module_init(mod_init);
-module_exit(mod_exit);
-MODULE_LICENSE("Dual BSD/GPL");
-
-static long mod_ioctl(struct file *filp,unsigned int cmd,unsigned long arg){
- long ret;
-
- ret = 0;
- switch(cmd){
- case IOCTL_HYPERIO_ADD:
- ret = judgk_hyperio_add(filp);
- break;
- case IOCTL_HYPERIO_READ:
- ret = judgk_hyperio_read(filp,arg);
- break;
- case IOCTL_HYPERIO_WRITE:
- ret = judgk_hyperio_write(filp,arg);
- break;
- case IOCTL_HYPERIO_DEL:
- ret = judgk_hyperio_del(filp);
- break;
- }
-
- return ret;
-}
diff --git a/toj/center/src/hyperio/hyperio_mod.h b/toj/center/src/hyperio/hyperio_mod.h
deleted file mode 100644
index 3d75b68..0000000
--- a/toj/center/src/hyperio/hyperio_mod.h
+++ /dev/null
@@ -1,21 +0,0 @@
-static int __init mod_init(void);
-static void __exit mod_exit(void);
-
-static long mod_ioctl(struct file *filp,unsigned int cmd,unsigned long arg);
-
-static dev_t mod_dev;
-static struct cdev mod_cdev;
-static struct class *mod_class;
-extern int judgk_hyperio_mmap(struct file *filp,struct vm_area_struct *vma);
-static struct file_operations mod_fops = {
- .owner = THIS_MODULE,
- .unlocked_ioctl = mod_ioctl,
- .mmap = judgk_hyperio_mmap
-};
-
-extern int judgk_hyperio_init(void);
-extern int judgk_hyperio_exit(void);
-extern int judgk_hyperio_add(struct file *filp);
-extern int judgk_hyperio_read(struct file *filp,size_t len);
-extern int judgk_hyperio_write(struct file *filp,size_t len);
-extern int judgk_hyperio_del(struct file *filp);
diff --git a/toj/center/src/hyperio/test.cpp b/toj/center/src/hyperio/test.cpp
deleted file mode 100644
index 18e536b..0000000
--- a/toj/center/src/hyperio/test.cpp
+++ /dev/null
@@ -1,173 +0,0 @@
-#include<stdio.h>
-#include<stdlib.h>
-#include<string.h>
-#include<unistd.h>
-#include<fcntl.h>
-#include<time.h>
-#include<limits.h>
-#include<math.h>
-#include<termios.h>
-#include<sys/ioctl.h>
-#include<sys/types.h>
-#include<sys/mman.h>
-#include<sys/wait.h>
-
-#include"../judge_def.h"
-#include"../judgm_lib.h"
-
-int fd;
-/*char *rbuf;
-off_t roff = 0;
-
-int judgm_hyperio_compare(char *buf,size_t len){
- int flag;
- size_t remain;
- off_t off;
- size_t data_len;
- size_t cmp_len;
-
- flag = 0;
- remain = len;
- off = 0;
- data_len = 0;
- cmp_len = 0;
- while(remain > 0 && flag == 0){
- if(data_len == 0){
- if((data_len = ioctl(fd,IOCTL_READ,cmp_len)) <= 0){
- return -1;
- }
- }
- if(remain < data_len){
- cmp_len = remain;
- }else{
- cmp_len = data_len;
- }
-
- if((roff + cmp_len) < BUF_SIZE){
- flag |= memcmp(rbuf + roff,buf + off,cmp_len);
- roff += cmp_len;
- }else{
- flag |= memcmp(rbuf + roff,buf + off,BUF_SIZE - roff);
- flag |= memcmp(rbuf,buf + off + (BUF_SIZE - roff),(cmp_len + roff) - BUF_SIZE);
- roff = (cmp_len + roff) - BUF_SIZE;
- }
- remain -= cmp_len;
- off += cmp_len;
- }
- if(cmp_len > 0){
- ioctl(fd,IOCTL_READ,-(long)cmp_len);
- }
-
- if(flag == 0){
- return 0;
- }else{
- return -1;
- }
-}*/
-
-int main(){
- int i,j;
- char *buf;
- int idx;
- int pid;
- char str[4096];
- int a,b;
- int l;
-
- judgm_hyperio *hyperio;
-
- fd = open("/dev/judgk",O_RDWR);
- hyperio = new judgm_hyperio(fd);
-
- printf("%d\n",hyperio->tty_idx);
-
- if((pid = fork()) == 0){
- int outfd;
-
- outfd = judgm_hyperio::get_ttyfd(0);
-
- //dup2(fd,0);
- dup2(outfd,1);
-
- printf("Hello World\n");
- char *argv[] = {NULL,NULL};
- char *envp[] = {NULL};
-
- execve("/srv/http/toj/center/judge/tmp/run/1/test",argv,envp);
- exit(0);
- }
-
- printf("%d\n",hyperio->compare("Hello World\n",12));
-
- waitpid(pid,NULL,0);
-
- getchar();
- delete hyperio;
- close(fd);
-
- /*flag = 0;
- roff = 0;
- woff = 0;
- srand(23);
- for(i = 0;i < 1000000;i++){
- a = rand() % 65536;
- b = rand() % 65536;
-
- snprintf(str,sizeof(str),"%d %d\n",a,b);
- l = strlen(str);
- j = l;
- len = 0;
- while(j > 0){
- len = ioctl(fd,IOCTL_WRITE,len);
- if(j < len){
- len = j;
- }
-
- if((len + woff) < BUF_SIZE){
- memcpy(wbuf + woff,str + (l - j),len);
- woff += len;
- }else{
- memcpy(wbuf + woff,str + (l - j),BUF_SIZE - woff);
- memcpy(wbuf,str + (l - j) + (BUF_SIZE - woff),(len + woff) - BUF_SIZE);
- woff = (len + woff) - BUF_SIZE;
- }
-
- j -= len;
- }
- ioctl(fd,IOCTL_WRITE,-len);
-
- snprintf(str,sizeof(str),"%d\n",a + b);
- l = strlen(str);
- j = l;
- len = 0;
- while(j > 0){
- len = ioctl(fd,IOCTL_READ,len);
- if(len <= 0){
- flag = 1;
- break;
- }
- if(j < len){
- len = j;
- }
-
- if((roff + len) < BUF_SIZE){
- flag |= memcmp(rbuf + roff,str + (l - j),len);
- roff += len;
- }else{
- flag |= memcmp(rbuf + roff,str + (l - j),BUF_SIZE - roff);
- flag |= memcmp(rbuf,str + (l - j) + (BUF_SIZE - roff),(len + roff) - BUF_SIZE);
- roff = (len + roff) - BUF_SIZE;
- }
-
- j -= len;
- }
- ioctl(fd,IOCTL_READ,-len);
-
- if(flag != 0){
- printf("WA\n");
- break;
- }
- }*/
-
- return 0;
-}
diff --git a/toj/center/src/judge_def.h b/toj/include/judge_def.h
index f0722d0..f0722d0 100644
--- a/toj/center/src/judge_def.h
+++ b/toj/include/judge_def.h
diff --git a/toj/judgk/Makefile b/toj/judgk/Makefile
new file mode 100644
index 0000000..f9ddd46
--- /dev/null
+++ b/toj/judgk/Makefile
@@ -0,0 +1,15 @@
+ifneq ($(KERNELRELEASE),)
+ judgk-objs := judgk_mod.o judgk_proc.o judgk_syscall.o judgk_syscall_asm.o judgk_security.o judgk_hyperio.o
+ obj-m := judgk.o
+else
+ judgk_source=$(shell pwd)
+ judgk_include=-I$(judgk_source)/../include
+ linux_version=$(shell uname -r)
+ linux_source=/lib/modules/$(linux_version)/build
+
+all:
+ ${MAKE} -C ${linux_source} M=${judgk_source} EXTRA_CFLAGS=$(judgk_include) modules
+clean:
+ ${MAKE} -C ${linux_source} SUBDIRS=${judgk_source} clean
+
+endif
diff --git a/toj/center/src/judgk.h b/toj/judgk/judgk.h
index 18f9a6c..18f9a6c 100644
--- a/toj/center/src/judgk.h
+++ b/toj/judgk/judgk.h
diff --git a/toj/center/src/judgk_com.h b/toj/judgk/judgk_com.h
index 842c69c..842c69c 100644
--- a/toj/center/src/judgk_com.h
+++ b/toj/judgk/judgk_com.h
diff --git a/toj/center/src/judgk_hyperio.c b/toj/judgk/judgk_hyperio.c
index 67b0ef6..67b0ef6 100644
--- a/toj/center/src/judgk_hyperio.c
+++ b/toj/judgk/judgk_hyperio.c
diff --git a/toj/center/src/judgk_hyperio.h b/toj/judgk/judgk_hyperio.h
index ccc1449..ccc1449 100644
--- a/toj/center/src/judgk_hyperio.h
+++ b/toj/judgk/judgk_hyperio.h
diff --git a/toj/center/src/judgk_mod.c b/toj/judgk/judgk_mod.c
index 3f56d90..3f56d90 100644
--- a/toj/center/src/judgk_mod.c
+++ b/toj/judgk/judgk_mod.c
diff --git a/toj/center/src/judgk_mod.h b/toj/judgk/judgk_mod.h
index 58bc76b..58bc76b 100644
--- a/toj/center/src/judgk_mod.h
+++ b/toj/judgk/judgk_mod.h
diff --git a/toj/center/src/judgk_proc.c b/toj/judgk/judgk_proc.c
index 9780498..505892a 100644
--- a/toj/center/src/judgk_proc.c
+++ b/toj/judgk/judgk_proc.c
@@ -5,7 +5,7 @@
#include<linux/kthread.h>
#include<asm/uaccess.h>
-#include"judge_def.h"
+#include<judge_def.h>
#include"judgk.h"
#include"judgk_com.h"
#include"judgk_proc.h"
diff --git a/toj/center/src/judgk_proc.h b/toj/judgk/judgk_proc.h
index fd60d30..fd60d30 100644
--- a/toj/center/src/judgk_proc.h
+++ b/toj/judgk/judgk_proc.h
diff --git a/toj/center/src/judgk_security.c b/toj/judgk/judgk_security.c
index 4f0612a..4f0612a 100644
--- a/toj/center/src/judgk_security.c
+++ b/toj/judgk/judgk_security.c
diff --git a/toj/center/src/judgk_security.h b/toj/judgk/judgk_security.h
index 16d2534..16d2534 100644
--- a/toj/center/src/judgk_security.h
+++ b/toj/judgk/judgk_security.h
diff --git a/toj/center/src/judgk_syscall.c b/toj/judgk/judgk_syscall.c
index 370a3fe..370a3fe 100644
--- a/toj/center/src/judgk_syscall.c
+++ b/toj/judgk/judgk_syscall.c
diff --git a/toj/center/src/judgk_syscall.h b/toj/judgk/judgk_syscall.h
index 2ee6afb..2ee6afb 100644
--- a/toj/center/src/judgk_syscall.h
+++ b/toj/judgk/judgk_syscall.h
diff --git a/toj/center/src/judgk_syscall_asm.S b/toj/judgk/judgk_syscall_asm.S
index dfc5bc6..dfc5bc6 100644
--- a/toj/center/src/judgk_syscall_asm.S
+++ b/toj/judgk/judgk_syscall_asm.S
diff --git a/toj/jcs/common.css b/toj/web/jcs/common.css
index f05adea..f05adea 100644
--- a/toj/jcs/common.css
+++ b/toj/web/jcs/common.css
diff --git a/toj/jcs/common.js b/toj/web/jcs/common.js
index e1b1d82..e1b1d82 100644
--- a/toj/jcs/common.js
+++ b/toj/web/jcs/common.js
diff --git a/toj/jcs/home.css b/toj/web/jcs/home.css
index e69de29..e69de29 100644
--- a/toj/jcs/home.css
+++ b/toj/web/jcs/home.css
diff --git a/toj/jcs/home.js b/toj/web/jcs/home.js
index d84d7ec..d84d7ec 100644
--- a/toj/jcs/home.js
+++ b/toj/web/jcs/home.js
diff --git a/toj/jcs/index.css b/toj/web/jcs/index.css
index 16da330..16da330 100644
--- a/toj/jcs/index.css
+++ b/toj/web/jcs/index.css
diff --git a/toj/jcs/index.js b/toj/web/jcs/index.js
index 102d067..102d067 100644
--- a/toj/jcs/index.js
+++ b/toj/web/jcs/index.js
diff --git a/toj/jcs/notice.css b/toj/web/jcs/notice.css
index 2d9e8b8..2d9e8b8 100644
--- a/toj/jcs/notice.css
+++ b/toj/web/jcs/notice.css
diff --git a/toj/jcs/notice.js b/toj/web/jcs/notice.js
index 0f027fd..0f027fd 100644
--- a/toj/jcs/notice.js
+++ b/toj/web/jcs/notice.js
diff --git a/toj/jcs/pro.css b/toj/web/jcs/pro.css
index 0629ee1..0629ee1 100644
--- a/toj/jcs/pro.css
+++ b/toj/web/jcs/pro.css
diff --git a/toj/jcs/pro.js b/toj/web/jcs/pro.js
index ee28217..ee28217 100644
--- a/toj/jcs/pro.js
+++ b/toj/web/jcs/pro.js
diff --git a/toj/jcs/sq.css b/toj/web/jcs/sq.css
index e69de29..e69de29 100644
--- a/toj/jcs/sq.css
+++ b/toj/web/jcs/sq.css
diff --git a/toj/jcs/sq.js b/toj/web/jcs/sq.js
index 17c07c0..17c07c0 100644
--- a/toj/jcs/sq.js
+++ b/toj/web/jcs/sq.js
diff --git a/toj/jcs/stat.css b/toj/web/jcs/stat.css
index 6036a0f..6036a0f 100644
--- a/toj/jcs/stat.css
+++ b/toj/web/jcs/stat.css
diff --git a/toj/jcs/stat.js b/toj/web/jcs/stat.js
index 41a2796..41a2796 100644
--- a/toj/jcs/stat.js
+++ b/toj/web/jcs/stat.js
diff --git a/toj/jcs/user.css b/toj/web/jcs/user.css
index d1c1b73..d1c1b73 100644
--- a/toj/jcs/user.css
+++ b/toj/web/jcs/user.css
diff --git a/toj/jcs/user.js b/toj/web/jcs/user.js
index 51859c1..51859c1 100644
--- a/toj/jcs/user.js
+++ b/toj/web/jcs/user.js
diff --git a/toj/php/_json.php b/toj/web/php/_json.php
index b3c443e..b3c443e 100644
--- a/toj/php/_json.php
+++ b/toj/web/php/_json.php
diff --git a/toj/php/_pzread_update.php b/toj/web/php/_pzread_update.php
index 674f15b..674f15b 100644
--- a/toj/php/_pzread_update.php
+++ b/toj/web/php/_pzread_update.php
diff --git a/toj/php/_test.php b/toj/web/php/_test.php
index 5ce8271..5ce8271 100644
--- a/toj/php/_test.php
+++ b/toj/web/php/_test.php
diff --git a/toj/php/common.inc.php b/toj/web/php/common.inc.php
index 0922c91..0922c91 100644
--- a/toj/php/common.inc.php
+++ b/toj/web/php/common.inc.php
diff --git a/toj/php/connect.inc.php b/toj/web/php/connect.inc.php
index 3eebe89..3eebe89 100644
--- a/toj/php/connect.inc.php
+++ b/toj/web/php/connect.inc.php
diff --git a/toj/php/event.inc.php b/toj/web/php/event.inc.php
index acc2f14..acc2f14 100644
--- a/toj/php/event.inc.php
+++ b/toj/web/php/event.inc.php
diff --git a/toj/php/event.php b/toj/web/php/event.php
index e121287..e121287 100644
--- a/toj/php/event.php
+++ b/toj/web/php/event.php
diff --git a/toj/php/notice.inc.php b/toj/web/php/notice.inc.php
index dbf47cc..dbf47cc 100644
--- a/toj/php/notice.inc.php
+++ b/toj/web/php/notice.inc.php
diff --git a/toj/php/notice.php b/toj/web/php/notice.php
index a0f984a..a0f984a 100644
--- a/toj/php/notice.php
+++ b/toj/web/php/notice.php
diff --git a/toj/php/problem.inc.php b/toj/web/php/problem.inc.php
index a7a717e..a7a717e 100644
--- a/toj/php/problem.inc.php
+++ b/toj/web/php/problem.inc.php
diff --git a/toj/php/problem.php b/toj/web/php/problem.php
index 1d6a2ba..1d6a2ba 100644
--- a/toj/php/problem.php
+++ b/toj/web/php/problem.php
diff --git a/toj/php/pzreadtest.php b/toj/web/php/pzreadtest.php
index b67ae9e..b67ae9e 100644
--- a/toj/php/pzreadtest.php
+++ b/toj/web/php/pzreadtest.php
diff --git a/toj/php/sqlib.inc.php b/toj/web/php/sqlib.inc.php
index 154bcbd..154bcbd 100644
--- a/toj/php/sqlib.inc.php
+++ b/toj/web/php/sqlib.inc.php
diff --git a/toj/php/sqlib_scoreboard.inc.php b/toj/web/php/sqlib_scoreboard.inc.php
index e5e7d66..e5e7d66 100644
--- a/toj/php/sqlib_scoreboard.inc.php
+++ b/toj/web/php/sqlib_scoreboard.inc.php
diff --git a/toj/php/square.inc.php b/toj/web/php/square.inc.php
index 784490d..784490d 100644
--- a/toj/php/square.inc.php
+++ b/toj/web/php/square.inc.php
diff --git a/toj/php/square.php b/toj/web/php/square.php
index ca57994..ca57994 100644
--- a/toj/php/square.php
+++ b/toj/web/php/square.php
diff --git a/toj/php/status.inc.php b/toj/web/php/status.inc.php
index 33765b0..33765b0 100644
--- a/toj/php/status.inc.php
+++ b/toj/web/php/status.inc.php
diff --git a/toj/php/status.php b/toj/web/php/status.php
index 8f0074f..8f0074f 100644
--- a/toj/php/status.php
+++ b/toj/web/php/status.php
diff --git a/toj/php/step.inc.php b/toj/web/php/step.inc.php
index a116a64..a116a64 100644
--- a/toj/php/step.inc.php
+++ b/toj/web/php/step.inc.php
diff --git a/toj/php/step.php b/toj/web/php/step.php
index 6425ae1..6425ae1 100644
--- a/toj/php/step.php
+++ b/toj/web/php/step.php
diff --git a/toj/php/teamt.php b/toj/web/php/teamt.php
index 13c7bad..13c7bad 100644
--- a/toj/php/teamt.php
+++ b/toj/web/php/teamt.php
diff --git a/toj/php/test.php b/toj/web/php/test.php
index 4d39e6e..4d39e6e 100644
--- a/toj/php/test.php
+++ b/toj/web/php/test.php
diff --git a/toj/php/user.inc.php b/toj/web/php/user.inc.php
index 8b3bb61..8b3bb61 100644
--- a/toj/php/user.inc.php
+++ b/toj/web/php/user.inc.php
diff --git a/toj/php/user.php b/toj/web/php/user.php
index 4570700..4570700 100644
--- a/toj/php/user.php
+++ b/toj/web/php/user.php
diff --git a/toj/pmod/pmod_multisub/pmod_multisub.css b/toj/web/pmod/pmod_multisub/pmod_multisub.css
index eb73770..eb73770 100644
--- a/toj/pmod/pmod_multisub/pmod_multisub.css
+++ b/toj/web/pmod/pmod_multisub/pmod_multisub.css
diff --git a/toj/pmod/pmod_multisub/pmod_multisub.html b/toj/web/pmod/pmod_multisub/pmod_multisub.html
index 07b19a9..07b19a9 100644
--- a/toj/pmod/pmod_multisub/pmod_multisub.html
+++ b/toj/web/pmod/pmod_multisub/pmod_multisub.html
diff --git a/toj/pmod/pmod_multisub/pmod_multisub.js b/toj/web/pmod/pmod_multisub/pmod_multisub.js
index 33402d0..33402d0 100644
--- a/toj/pmod/pmod_multisub/pmod_multisub.js
+++ b/toj/web/pmod/pmod_multisub/pmod_multisub.js
diff --git a/toj/pmod/pmod_multisub/pmod_multisub.php b/toj/web/pmod/pmod_multisub/pmod_multisub.php
index 342ff41..342ff41 100644
--- a/toj/pmod/pmod_multisub/pmod_multisub.php
+++ b/toj/web/pmod/pmod_multisub/pmod_multisub.php
diff --git a/toj/pmod/pmod_test/pmod_test.css b/toj/web/pmod/pmod_test/pmod_test.css
index f8a48a6..f8a48a6 100644
--- a/toj/pmod/pmod_test/pmod_test.css
+++ b/toj/web/pmod/pmod_test/pmod_test.css
diff --git a/toj/pmod/pmod_test/pmod_test.html b/toj/web/pmod/pmod_test/pmod_test.html
index 7f1a1b8..7f1a1b8 100644
--- a/toj/pmod/pmod_test/pmod_test.html
+++ b/toj/web/pmod/pmod_test/pmod_test.html
diff --git a/toj/pmod/pmod_test/pmod_test.js b/toj/web/pmod/pmod_test/pmod_test.js
index 3f1e577..3f1e577 100644
--- a/toj/pmod/pmod_test/pmod_test.js
+++ b/toj/web/pmod/pmod_test/pmod_test.js
diff --git a/toj/pmod/pmod_test/pmod_test.php b/toj/web/pmod/pmod_test/pmod_test.php
index 27eecf2..27eecf2 100644
--- a/toj/pmod/pmod_test/pmod_test.php
+++ b/toj/web/pmod/pmod_test/pmod_test.php
diff --git a/toj/smod/smod_test/smod_test.css b/toj/web/smod/smod_test/smod_test.css
index 117c427..117c427 100644
--- a/toj/smod/smod_test/smod_test.css
+++ b/toj/web/smod/smod_test/smod_test.css
diff --git a/toj/smod/smod_test/smod_test.html b/toj/web/smod/smod_test/smod_test.html
index 5d1547d..5d1547d 100644
--- a/toj/smod/smod_test/smod_test.html
+++ b/toj/web/smod/smod_test/smod_test.html
diff --git a/toj/smod/smod_test/smod_test.js b/toj/web/smod/smod_test/smod_test.js
index 90780d6..90780d6 100644
--- a/toj/smod/smod_test/smod_test.js
+++ b/toj/web/smod/smod_test/smod_test.js
diff --git a/toj/smod/smod_test/smod_test.php b/toj/web/smod/smod_test/smod_test.php
index b458ead..b458ead 100644
--- a/toj/smod/smod_test/smod_test.php
+++ b/toj/web/smod/smod_test/smod_test.php
diff --git a/toj/sqmod/sqmod_test/sqmod_test.css b/toj/web/sqmod/sqmod_test/sqmod_test.css
index 4680479..4680479 100644
--- a/toj/sqmod/sqmod_test/sqmod_test.css
+++ b/toj/web/sqmod/sqmod_test/sqmod_test.css
diff --git a/toj/sqmod/sqmod_test/sqmod_test.html b/toj/web/sqmod/sqmod_test/sqmod_test.html
index 14f44dd..14f44dd 100644
--- a/toj/sqmod/sqmod_test/sqmod_test.html
+++ b/toj/web/sqmod/sqmod_test/sqmod_test.html
diff --git a/toj/sqmod/sqmod_test/sqmod_test.inc.php b/toj/web/sqmod/sqmod_test/sqmod_test.inc.php
index f7e5dca..f7e5dca 100644
--- a/toj/sqmod/sqmod_test/sqmod_test.inc.php
+++ b/toj/web/sqmod/sqmod_test/sqmod_test.inc.php
diff --git a/toj/sqmod/sqmod_test/sqmod_test.js b/toj/web/sqmod/sqmod_test/sqmod_test.js
index 1792b77..1792b77 100644
--- a/toj/sqmod/sqmod_test/sqmod_test.js
+++ b/toj/web/sqmod/sqmod_test/sqmod_test.js
diff --git a/toj/sqmod/sqmod_test/sqmod_test.php b/toj/web/sqmod/sqmod_test/sqmod_test.php
index 3665dbd..3665dbd 100644
--- a/toj/sqmod/sqmod_test/sqmod_test.php
+++ b/toj/web/sqmod/sqmod_test/sqmod_test.php
diff --git a/toj/sqmod/sqmod_test/sqmod_test_man.php b/toj/web/sqmod/sqmod_test/sqmod_test_man.php
index b65804c..b65804c 100644
--- a/toj/sqmod/sqmod_test/sqmod_test_man.php
+++ b/toj/web/sqmod/sqmod_test/sqmod_test_man.php
diff --git a/toj/sqmod/sqmod_test/team.inc.php b/toj/web/sqmod/sqmod_test/team.inc.php
index 3effc0e..3effc0e 100644
--- a/toj/sqmod/sqmod_test/team.inc.php
+++ b/toj/web/sqmod/sqmod_test/team.inc.php