BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡

±Û¾´ÀÌ: °¡ ½ÉÇ® °¡°èºÎ Á¶È¸¼ö: 8404


<html>
<head>
<title>ÈÖ¸®¸®°¡°èºÎ</title>
</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">

<?
// ÆÄÀÏ ¸í: ga.php
// °¡°èºÎ ¸µÅ© http://selfserver/ga.php?mode=write


function box($message) {
echo ( " <script> window.alert('$message'); history.go(-1)</script>");
exit;
}

function gbox() {
echo ("<meta http-equiv='Refresh' content='0; URL=$PHP_SELF?mode=write'>");
exit;
}
$USER="stone; // mysql user¼¼ÆÃ
$PASS="stone"; // mysql password¼¼ÆÃ
$DB="stone"; // mysql db ¼¼ÆÃ
$connect=mysql_connect( "localhost", "$USER", "$PASS") or die( " SQL server¿¡
¿¬°áÇÒ ¼ö ¾ø½À´Ï´Ù.");
mysql_select_db("$DB",$connect);

if(!$mode) {
$query="select num,pum,won,daytime from ga order by num desc";
$result=mysql_query($query,$connect);
$row=mysql_fetch_array($result);
$total = mysql_affected_rows();
$tot=0;
for($i=0;$i<$total;$i++) {
mysql_data_seek($result,$i);
$row=mysql_fetch_array($result);
$tot=$tot+$row[won];
echo "
<table border='2' width='475' bordercolor='silver'>
<tr>
<td><font size=2 color=blue>$row[pum]</font></td>
<td><font size=2 color=red>$row[won]</font></td>
<td><font size=2 color=black>$row[daytime]</font></td>
<td><font size=2 color=red>$tot</font></td>
</tr>
</table> ";
}
}

if($mode=='write') {
$year=date("Y");
$mon=date("m");
$day=date("d");
$hour=date("H");
$min=date("i");
$a=$year."³â ".$mon."¿ù ".$day."ÀÏ ".$hour."½Ã ".$min."ºÐ";

echo "
<form method=post action=$PHP_SELF>
<input type=hidden name=mode value=write_ok>
<input type=hidden name=daytime value='$a'>
<table border='20' width='475' bordercolor='teal'>
<tr>
<td align=center><input type=text name='pum' ></td>
<td align=center><input type=text name='won' ></td>
</tr>
<tr>
<td align=center>$a</td>
<td align=center><input type='submit' value='µ·³Ö¾î'>
</td>
</tr>
</table>
</form>
";

$query="select num,pum,won,daytime from ga order by num desc";
$result=mysql_query($query,$connect);
$row=mysql_fetch_array($result);
$total = mysql_affected_rows();
$tot=0;
for($i=0;$i<$total;$i++) {
mysql_data_seek($result,$i);
$row=mysql_fetch_array($result);
$tot=$tot+$row[won];
echo "
<table border='2' width='475' bordercolor='silver'>
<tr>
<td><font size=2 color=blue>$row[pum]</font></td>
<td><font size=2 color=red>$row[won]</font></td>
<td><font size=2 color=black>$row[daytime]</font></td>
<td><font size=2 color=red>$tot</font></td>
</tr>
</table> ";
}
}

if($mode=='write_ok') {

$query="insert into ga values('','$pum','$won',now())";
$result= mysql_query($query, $connect);

if($result>0) {
gbox();
}
else {
$message="DB ERROR";
box($message);
}
}
?>
</body>
</html>

°ü·Ã±Û : ¾øÀ½ ±Û¾´½Ã°£ : 2006/02/02 11:02 from 218.38.148.205

  snmp¸¦ ÀÌ¿ëÇÑ cpu idle±¸Çϱ⠸ñ·Ïº¸±â »õ±Û ¾²±â Áö¿ì±â ÀÀ´ä±Û ¾²±â ±Û ¼öÁ¤ ±¸±Û Çѱ¹»çÀÌÆ® °Ë»ö â  
BACKRUSH  À¯´Ð½º¸í·É  ´ÙÀ½  ÀÚ·á½Ç  Ascii Table   ¿ø°ÝÁ¢¼Ó  ´Þ·Â,½Ã°£   ÇÁ·Î¼¼½º   ½©
ÁöÇÏö³ë¼±   RFC¹®¼­   SUN FAQ   SUN FAQ1   C¸Þ´º¾ó   PHP¸Þ´º¾ó   ³Ê±¸¸®   ¾Æ½ºÅ°¿ùµå ¾ÆÀÌÇǼ­Ä¡