• R/O
  • HTTP
  • SSH
  • HTTPS

sciencebbs: 提交

物理の議論用BBSのソースコード


Commit MetaInfo

修訂0887a5583f382793154e9879897417d31fe3f9e3 (tree)
時間2021-03-26 14:20:52
作者Mitsuaki Kawamura <kawamitsuaki@gmai...>
CommiterMitsuaki Kawamura

Log Message

Backup

Change Summary

差異

Binary files /dev/null and b/doc/fig/sciencebbs.png differ
--- /dev/null
+++ b/doc/index.html
@@ -0,0 +1,107 @@
1+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2+<html lang="ja">
3+ <head>
4+ <meta name="Content-Language" content="ja">
5+ <meta http-equiv="Content-Style-Type" content="text/css">
6+ <meta http-equiv="Content-Script-Type" content="text/javascript">
7+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
8+ <meta http-equiv="Pragma" content="no-cache">
9+ <meta http-equiv="Cache-Control" content="no-cache">
10+
11+ <title>ScienceBBS Web page</title>
12+ </head>
13+
14+ <body bgcolor="CCFFCC">
15+ <hr>
16+
17+ <h1>
18+ <img src="fig/sciencebbs.png" height="50" style="vertical-align: -moz-middle-with-baseline; ">
19+ <a href="https://osdn.net/projects/sciencebbs/">ScienceBBS</a></h1>
20+ <hr>
21+ <h4>
22+ BBS for scientific discussion. It has the following features:
23+
24+ <ul>
25+ <li>TeX formula</li>
26+ <li>Free-hand schematic illustration</li>
27+ <li>Display JPEG, PNG, GIF, MPEG, etc.</li>
28+ <li>Attach files such as PDF. </li>
29+ </ul>
30+ </h4>
31+ <hr>
32+ <h3><a href="https://osdn.net/projects/sciencebbs/scm/git/sciencebbs/">Git repository</a></h3>
33+
34+ <hr>
35+ <h2>Demo page</h2>
36+ There are two kind of BBS.
37+
38+ <h3><a href="noauth/index.php">Without auhentification</a></h3>
39+ We can comment freely as arbitrary handle-name.
40+
41+ <h3><a href="auth/index.php">With Basic auhentification</a></h3>
42+ We can login as the following two accounts:
43+ <ul>
44+ <li>Account : <code>user1</code>, Password : <code>pass1</code></li>
45+ <li>Account : <code>user2</code>, Password : <code>pass2</code></li>
46+ </ul>
47+ <hr>
48+ <h2>How to create your own ScienceBBS</h2>
49+
50+ <h3>Without authentification</h3>
51+
52+ The usage is just to copy
53+ <a href="https://osdn.net/projects/sciencebbs/scm/git/sciencebbs/blobs/master/src/noauth/index.php?export=raw">src/noauth/index.php</a>
54+ into any HTTP/HTTPS server.
55+
56+ <h3>With Basic authentification</h3>
57+
58+ The usage is as follows:
59+ <ol>
60+ <li>
61+ copy
62+ <a href="https://osdn.net/projects/sciencebbs/scm/git/sciencebbs/blobs/master/src/auth/index.php?export=raw">src/auth/index.php</a>
63+ into any HTTP/HTTPS server.
64+ </li>
65+ <li>
66+ Create <code>.htaccess</code> in the same directory. Its contents is as follows
67+ <pre style="border: 1px solid #000000;background-color: #ffffff;padding-left: 10px;"><code>
68+AuthUserFile DIRECTORY_NAME/.htpasswd
69+AuthName GROUP-NAME
70+AuthType Basic
71+&lt;Limit GET&gt;
72+require valid-user
73+&lt;/Limit&gt;
74+ </code></pre>
75+ where <it>DIRECTORY_NAME</it> is the full-path to the directory where <code>index.php</code> locates,
76+ <it>GROUP-NAME</it> is the appropriate owner group in that server.
77+ </li>
78+ <li>
79+ Create password file and add first user with the following command:
80+ <pre style="border: 1px solid #000000;background-color: #ffffff;padding-left: 10px;"><code>
81+htpasswd -cm DIRECTORY_NAME/.htpasswd USER_NAME1
82+chgrp GROUP-NAME DIRECTORY_NAME/.htpasswd
83+chmod o-w DIRECTORY_NAME/.htpasswd
84+ </code></pre>
85+ whrere <it>USER_NAME1</it> is the name of the first user.
86+ </li>
87+ <li>
88+ Add other users (<it>USER_NAME2</it>) as follws:
89+ <pre style="border: 1px solid #000000;background-color: #ffffff;padding-left: 10px;"><code>
90+htpasswd -m DIRECTORY_NAME/.htpasswd USER_NAME2
91+ </code></pre>
92+ </li>
93+ <li>
94+ The previous command is also used to change the password for any user (<it>USER_NAME</it>).
95+ <pre style="border: 1px solid #000000;background-color: #ffffff;padding-left: 10px;"><code>
96+htpasswd -m DIRECTORY_NAME/.htpasswd USER_NAME
97+ </code></pre>
98+ </li>
99+ <li>
100+ To remove authentification for any user (<it>USER_NAME</it>), please type
101+ <pre style="border: 1px solid #000000;background-color: #ffffff;padding-left: 10px;"><code>
102+htpasswd -D DIRECTORY_NAME/.htpasswd USER_NAME
103+ </code></pre>
104+ </li>
105+ </ol>
106+ </body>
107+</html>
--- a/readme.md
+++ b/readme.md
@@ -28,20 +28,20 @@ The usage is as follows:
2828 2. Create `.htaccess` in the same directory. Its contents is as follows
2929 ```
3030 AuthUserFile DIRECTORY_NAME/.htpasswd
31- AuthName projectname
31+ AuthName GROUP-NAME
3232 AuthType Basic
3333 <Limit GET>
3434 require valid-user
3535 </Limit>
3636 ```
37- where *DIRECTORY_NAME* is the full-path to the directory where `index.php` locates.
37+ where *DIRECTORY_NAME* is the full-path to the directory where `index.php` locates, *GROUP-NAME* is the appropriate owner group in that server.
3838 3. Create password file and add first user with the following command:
3939 ``` bash
4040 htpasswd -cm DIRECTORY_NAME/.htpasswd USER_NAME1
4141 chgrp GROUP-NAME DIRECTORY_NAME/.htpasswd
4242 chmod o-w DIRECTORY_NAME/.htpasswd
4343 ```
44- whrere *USER_NAME1* is the name of the first user, *GROUP-NAME* is the appropriate owner group in that server.
44+ whrere *USER_NAME1* is the name of the first user.
4545 4. Add other users (*USER_NAME2*) as follws:
4646 ``` bash
4747 htpasswd -m DIRECTORY_NAME/.htpasswd USER_NAME2
Show on old repository browser