Management Program for downloading a program (4)

Source: Internet
Author: User

// The source code of the management program chang. php is 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 ");
}
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.