// Manage Program Chang. php Source code As follows:
<? Session_start ()?>
<? If ($ session_power = "" | $ session_power <1)
{
Header ("Location:.../message. php? Redirect = default. php & message = you are not an administrator ");
Break;
}?>
<? Require ("../opendata. php");?>
<?
If ($ step = "1 ")
{
If (! ($ Rs = mysql_fetch_array (mysql_query ("select * from download Where id = '". $ id. "'", $ CN ))))
Echo "Data Extraction error ";
Else
{
?>
<HTML>
<Head>
<Title> modify materials </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
</Head> <body>
<Table width = "100%" border = "0" cellspacing = "0" cellpadding = "0">
<Tr>
<TD Height = "29"> <font size = "2"> your location: <a href = ".. /default. PHP "> homepage </a>-> <a href =" download. PHP? Action = show "> download base </a>-> modify materials </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 = "42"> </TD>
</Tr>
<Form method = "Post" Action = "Chang. php? Step = 2 & id = <? = $ ID?> ">
<Tr>
<TD Height = "35" width = "19%"> <font size = "2"> Software name </font> </TD>
& Lt; TD Height = "35" width = "81%" & gt;
<Input name = "title" value = "<? = $ Rs ["title"];?> ">
</TD>
</Tr>
<Tr>
<TD Height = "36" width = "19%"> <font size = "2"> Software address </font> </TD>
& Lt; TD Height = "36" width = "81%" & gt;
<Input name = "url" size = "50" value = "<? = $ Rs ["url"];?> "
>
</TD>
</Tr>
<Tr>
<TD Height = "34" width = "19%"> <font size = "2"> size </font> </TD>
<TD Height = "34" width = "81%"> <font size = "2">
<Input type = "text" name = "size" size = "12" value = "<? = $ Rs ["size"]?> ">
</Font> </TD>
</Tr>
<Tr>
& Lt; TD Height = "42" width = "19%" & gt;
<Div align = "Left"> <font size = "2"> classification </font> </div>
</TD>
<TD Height = "42" 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 tool </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 = "31" width = "19%"> <font size = "2"> Introduction: </font> </TD>
& Lt; TD Height = "31" width = "81%" & gt;
<Textarea name = "say" Cols = "50" rows = "10"> <? = $ Rs ["say"];?> </Textarea>
</TD>
</Tr>
<Tr>
<TD Height = "37" colspan = "2">
<Div align = "center">
<Input type = "Submit" value = "handle" name = "Submit">
</Div>
</TD>
</Tr>
</Form>
</Table>
</TD>
</Tr>
</Table>
</Body>
</Html>
<?
}
}
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 ");
}
?>