A program to download the management Program (IV)
Last Update:2017-02-28
Source: Internet
Author: User
The management program chang.php the source code as follows:
? Session_Start ()?>
? if ($session _power== "" | | $session _power<1)
{
Header ("Location:.") /message.php?redirect=default.php&message= you are not a manager ");
Break
}?>
<?require (".. /opendata.php ");? >
?
if ($step = = "1")
{
if (!) ( $rs =mysql_fetch_array (mysql_query ("select * from download where id= '". $id. "", $CN)))
echo "Error extracting data";
Else
{
?>
<title> Modification Information </title>
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<table width= "100%" border= "0" cellspacing= "0" cellpadding= "0" >
<tr>
<TD height= "><font" size= "2" > Your location: <a href= ". /default.php "> Home </a>->><a href=" download.php?action=show "> Download base </a>->> Modify Information </ Font></td>
</tr>
</table>
<table width= "100%" border= "0" cellspacing= "0" cellpadding= "0" height= "446" >
<tr>
<TD height= "335" width= "77%" bgcolor= "#99cc00" >
<table width= "100%" border= "0" cellspacing= "0" cellpadding= "0" height= "335" >
<tr>
<TD colspan= "2" height= "a" > </td>
</tr>
<form method= "POST" action= "chang.php?step=2&id=<?= $id?>" >
<tr>
<TD height= "width=" 19% ><font size= "2" > Software name </font></td>
<TD height= "width=" "81%" >
<input name= "title" value= "<?= $rs [" title "];? > ">
</td>
</tr>
<tr>
<TD height= "width=" 19% "><font size=" 2 "> Software address </font></td>
<TD height= "width=" "81%" >
<input name= "url" size= "value=" <?= $rs ["url"];? > "
>
</td>
</tr>
<tr>
<TD height= "width=" 19% "><font size=" 2 "> Size </font></td>
<TD height= "width=" 81% "> <font size=" 2 ">
<input type= "text" name= "size" size= "value=" <?= $rs ["Size"]?> ">
</font></td>
</tr>
<tr>
<TD height= "width=" "19%" >
<div align= "left" ><font size= "2" > Classification </font></div>
</td>
<TD height= "width=" 81% "><font size=" 2 ">
<select name= "Type" >
<option <?if ($rs ["type"]==1) echo "selected"?> value= "1" > Password cracking </option>
<option <?if ($rs ["type"]==2) echo "selected"?> value= "2" > Remote control </option>
<option <?if ($rs ["type"]==3) echo "selected"?> value= "3" > Port scan </option>
<option <?if ($rs ["type"]==4) echo "selected";?> value= "4" > Dictionary tools </option>
<option <?if ($rs ["type"]==5) echo "selected"?> value= "5" > System security </option>
<option <?if ($rs ["type"]==6) echo "selected"?> value= "6" > various bombs </option>
<option <?if ($rs ["type"]==7) echo "selected";?> value= "7" > Encryption software </option>
<option <?if ($rs ["type"]==8) echo "selected"?> value= "8" > Source code </option>
<option <?if ($rs ["type"]==9) echo "selected";?> value= "9" > Other software </option>
</select>
</font> </td>
</tr>
<tr>
<TD height= "width=" 19% "><font size=" 2 "> Profile:</font></td>
<TD height= "to" width= "81%" >
<textarea name= "Say" cols= "rows=" ><?= $rs ["say"]; ></textarea>
</td>
</tr>
<tr>
<TD height= "Panax Notoginseng" colspan= "2" >
<div align= "center" >
<input type= "Submit" value= "fix" name= "Submit" >
</div>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</body>
?
}
}
if ($step = = "2")
{
mysql_query ("Update download Set title=". $title. "', say= '". $say "', Url= '". $url. "', size= '". $size. "', Type= '". $type. "' Where id= ". $id, $CN);
Header ("location:download.php?action=show&type= $type");
}
?>