File "index.php"

Full path: /www/waveheight/index.php
File size: 1.52 KiB (1552 bytes)
MIME-type: text/html
Charset: utf-8

Download   Open   Back

<HTML>
<HEAD>
<META Http-Equiv="Content-Type" Content="text/html;charset=UTF-8">
<TITLE>波高周期データ</TITLE>
</HEAD>

<BODY>
<CENTER>
<B>
<FONT SIZE=3>
波高周期データ<BR>
</FONT>
</B>
</CENTER>

<hr>
<?php

$title_path[0] = "/www/waveheight/title1.txt";
$title_path[1] = "/www/waveheight/title2.txt";

if($_POST['title1']) file_put_contents($title_path[0],$_POST['title1']);
if($_POST['title2']) file_put_contents($title_path[1],$_POST['title2']);

$value1 = file_get_contents($title_path[0]);
$value2 = file_get_contents($title_path[1]);

print "<TABLE BORDER='0'>";
print "<TR>";
print "<TD>";
print "<B><A HREF='./wave_data_view.php?id=4324' target='_BLANK'>地点C</A></B>";
print "</TD>";
print "<TD>";
print "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
print "</TD>";
print "<TD>";
print "<form action='' method='post'>";
print "<input type='text' size='40' name='title1' value='" .$value1 ."'>";
print "<button type='submit' name='exit'>タイトル更新</button>";
print "</TD>";
print "<TR>";
print "<TD>";
print "<B><A HREF='./wave_data_view.php?id=4325' target='_BLANK'>地点D</A></B>";
print "</TD>";
print "<TD>";
print "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
print "</TD>";
print "<TD>";
print "<form action='' method='post'>";
print "<input type='text'size='40'  name='title2' value='" .$value2 ."'>";
print "<button type='submit' name='exit'>タイトル更新</button>";
print "</TD>";
print "</TR>";

print "</TABLE>";

?>

<HR>
<FONT SIZE=5>
<CENTER><I><B>
penta-ocean<BR>
<BR></B></I>
</CENTER>
</FONT>

</BODY>
</HTML>

PHP File Manager