A program to download the management Program (IV)

Source: Internet
Author: User
Tags header
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>
&LT;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>
&LT;TD height= "335" width= "77%" bgcolor= "#99cc00" >
<table width= "100%" border= "0" cellspacing= "0" cellpadding= "0" height= "335" >
<tr>
&LT;TD colspan= "2" height= "a" > </td>
</tr>
<form method= "POST" action= "chang.php?step=2&id=<?= $id?>" >
<tr>
&LT;TD height= "width=" 19% ><font size= "2" > Software name </font></td>
&LT;TD height= "width=" "81%" >
<input name= "title" value= "<?= $rs [" title "];? > ">
</td>
</tr>
<tr>
&LT;TD height= "width=" 19% "><font size=" 2 "> Software address </font></td>
&LT;TD height= "width=" "81%" >
<input name= "url" size= "value=" <?= $rs ["url"];? > "
>
</td>
</tr>
<tr>
&LT;TD height= "width=" 19% "><font size=" 2 "> Size </font></td>
&LT;TD height= "width=" 81% "> <font size=" 2 ">
<input type= "text" name= "size" size= "value=" <?= $rs ["Size"]?> ">
</font></td>
</tr>
<tr>
&LT;TD height= "width=" "19%" >
<div align= "left" ><font size= "2" > Classification </font></div>
</td>
&LT;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>
&LT;TD height= "width=" 19% "><font size=" 2 "> Profile:</font></td>
&LT;TD height= "to" width= "81%" >
<textarea name= "Say" cols= "rows=" ><?= $rs ["say"]; ></textarea>
</td>
</tr>
<tr>
&LT;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");
}
?>


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.