• R/O
  • HTTP
  • SSH
  • HTTPS

openlab: Commit

一般公開のマテリアル保存のためのリポジトリ


Commit MetaInfo

Revision72b15b35380f5b6698facce4d63a0da678b62f66 (tree)
Zeit2021-03-25 11:39:44
AutorMitsuaki Kawamura <kawamitsuaki@gmai...>
CommiterMitsuaki Kawamura

Log Message

Backup

Ändern Zusammenfassung

Diff

--- a/http/bbs/index.php
+++ b/http/bbs/index.php
@@ -8,23 +8,25 @@
88 $uploadfile = $submitid . "_" . $_FILES['avatar']['name'];
99 $thisurl = (empty($_SERVER["HTTPS"]) ? "http://" : "https://") . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
1010
11- $rssxml = fopen('rss.xml', 'w');
12- fwrite($rssxml, "<?xml version='1.0' encoding='UTF-8'?>\n");
13- fwrite($rssxml, "<rss version='2.0'>\n");
14- fwrite($rssxml, " <channel>\n");
15- fwrite($rssxml, " <title>結晶とシミュレーションなんでも掲示板</title>\n");
16- fwrite($rssxml, " <link>" . $thisurl . "</link>\n");
17- fwrite($rssxml, " <description></description>\n");
18- fwrite($rssxml, " <item>\n");
19- fwrite($rssxml, " <title>" . $_POST['name'] . " がコメントしました。</title>\n");
20- fwrite($rssxml, " <link>" . $thisurl . "</link>\n");
21- fwrite($rssxml, " <guid>" . $thisurl . "#". $submitid . "</guid>\n");
22- fwrite($rssxml, " <description></description>\n");
23- fwrite($rssxml, " <pubDate>" . $submittime . "</pubDate>\n");
24- fwrite($rssxml, " </item>\n");
25- fwrite($rssxml, " </channel>\n");
26- fwrite($rssxml, "</rss>\n");
27- fclose($rssxml);
11+ if ($submittype === 'text' or $submittype === 'file' or $submittype === 'image' or $submittype === 'freehand'){
12+ $rssxml = fopen('rss.xml', 'w');
13+ fwrite($rssxml, "<?xml version='1.0' encoding='UTF-8'?>\n");
14+ fwrite($rssxml, "<rss version='2.0'>\n");
15+ fwrite($rssxml, " <channel>\n");
16+ fwrite($rssxml, " <title>結晶とシミュレーションなんでも掲示板</title>\n");
17+ fwrite($rssxml, " <link>" . $thisurl . "</link>\n");
18+ fwrite($rssxml, " <description></description>\n");
19+ fwrite($rssxml, " <item>\n");
20+ fwrite($rssxml, " <title>" . $_POST['name'] . " がコメントしました。</title>\n");
21+ fwrite($rssxml, " <link>" . $thisurl . "</link>\n");
22+ fwrite($rssxml, " <guid>" . $thisurl . "#". $submitid . "</guid>\n");
23+ fwrite($rssxml, " <description></description>\n");
24+ fwrite($rssxml, " <pubDate>" . $submittime . "</pubDate>\n");
25+ fwrite($rssxml, " </item>\n");
26+ fwrite($rssxml, " </channel>\n");
27+ fwrite($rssxml, "</rss>\n");
28+ fclose($rssxml);
29+ }
2830
2931 if ($_POST['submittype'] === 'text') {
3032 fputcsv($fp, [$_POST['name'], $_POST['comment'], $_POST['submittype'], $submittime, $submitid]);
--- a/http/fermi/index.html
+++ b/http/fermi/index.html
@@ -87,29 +87,7 @@
8787 画像をクリックするとFermiSurferというWebアプリ内でマウスやタッチパネルでグリグリ動かしたりできます。
8888 </h4>
8989 <h2>
90- <p><a href="x00.html">Ag - Al<sub>2</sub>Fe<sub>2</sub>Nd<sub>6</sub>S1<sub>4</sub></p>
91- <p><a href="x01.html">Al<sub>2</sub>Fe<sub>2</sub>Pr<sub>6</sub>S14 - As<sub>2</sub>Fe<sub>2</sub>Rb</p>
92- <p><a href="x02.html">As<sub>2</sub>Fe<sub>2</sub>Sr - Au<sub>7</sub>Rb<sub>3</sub></p>
93- <p><a href="x03.html">Au<sub>7</sub>Rb<sub>4</sub>Sn<sub>2</sub> - B<sub>6</sub>Cr<sub>2</sub>Sm</p>
94- <p><a href="x04.html">B<sub>6</sub>Cr<sub>3</sub>Ir<sub>6</sub>Ti<sub>3</sub> - Ba<sub>4</sub>S<sub>16</sub>Tm<sub>8</sub></p>
95- <p><a href="x05.html">Ba<sub>4</sub>S<sub>16</sub>Yb<sub>8</sub> - CEr<sub>2</sub>Fe<sub>2</sub>Si<sub>2</sub></p>
96- <p><a href="x06.html">CEr<sub>2</sub>N<sub>2</sub>O<sub>2</sub> - Ca<sub>2</sub>Ge<sub>4</sub>Ni<sub>2</sub>O<sub>12</sub></p>
97- <p><a href="x07.html">Ca<sub>2</sub>Ge<sub>4</sub>Pt<sub>4</sub> - Ce<sub>3</sub>Mn<sub>4</sub>Sn<sub>4</sub></p>
98- <p><a href="x08.html">Ce<sub>3</sub>Ni<sub>2</sub>Si<sub>8</sub> - CoV</p>
99- <p><a href="x09.html">CoW - Cr<sub>2</sub>Ge<sub>2</sub>Te<sub>6</sub></p>
100- <p><a href="x10.html">Cr<sub>2</sub>Ge<sub>4</sub>Li<sub>2</sub>O<sub>2</sub> - Cu<sub>2</sub>Hf<sub>10</sub>Pb<sub>6</sub></p>
101- <p><a href="x11.html">Cu<sub>2</sub>Hf<sub>10</sub>Sb<sub>6</sub> - Dy<sub>8</sub>S<sub>16</sub>Sr<sub>4</sub></p>
102- <p><a href="x12.html">Dy<sub>8</sub>S<sub>16</sub>Zn<sub>4</sub> - Fe<sub>2</sub>O<sub>16</sub></p>
103- <p><a href="x13.html">Fe<sub>2</sub>O<sub>16</sub> - GaRhTi</p>
104- <p><a href="x14.html">GaRhZr<sub>2</sub> - Ge<sub>3</sub>NiSr</p>
105- <p><a href="x15.html">Ge<sub>3</sub>Os<sub>3</sub>Sc<sub>3</sub> - Hg<sub>6</sub>Ho<sub>2</sub></p>
106- <p><a href="x16.html">Hg<sub>6</sub>La<sub>2</sub> - KNdTe<sub>2</sub></p>
107- <p><a href="x17.html">KNiO<sub>9</sub>P<sub>3</sub> - Mg<sub>2</sub>S<sub>8</sub>Yb<sub>4</sub></p>
108- <p><a href="x18.html">Mg<sub>2</sub>Sb<sub>2</sub>Yb - NaNdSe<sub>2</sub></p>
109- <p><a href="x19.html">NaNiO<sub>2</sub> - O<sub>2</sub>Rh<sub>4</sub>Tb<sub>4</sub></p>
110- <p><a href="x20.html">O<sub>2</sub>Rh<sub>8</sub> - Pt<sub>3</sub>V</p>
111- <p><a href="x21.html">Pt<sub>3</sub>V - W</p>
112- <p><a href="x22.html">W<sub>10</sub>Zr<sub>6</sub> - Zr<sub>3</sub></p>
90+ <p><a href="fermi.html">フェルミ面図鑑</p>
11391 </h2>
11492 </body>
11593 </html>
Show on old repository browser