1
2
3
4
5
6
7
8
9
10
11
<font size=
"2"
><font face=
"Verdana"
>PHP代码:</font><hr></font><code><font color=
"#000000"
>
<font color=
"#0000bb"
><br></font><font color=
"#007700"
>
if
(</font><font color=
"#0000bb"
>
$data
</font><font color=
"#007700"
>[</font><font color=
"#0000bb"
>
$i
</font><font color=
"#007700"
>][</font><font color=
"#dd0000"
>
'nickname'
</font><font color=
"#007700"
>])
<br>{
<br> </font><font color=
"#0000bb"
>
$nickname
</font><font color=
"#007700"
>= </font><font color=
"#0000bb"
>
$data
</font><font color=
"#007700"
>[</font><font color=
"#0000bb"
>
$i
</font><font color=
"#007700"
>][</font><font color=
"#dd0000"
>
'nickname'
</font><font color=
"#007700"
>];
<br>}
<br>
else
<br>{
<br> </font><font color=
"#0000bb"
>
$nickname
</font><font color=
"#007700"
>= </font><font color=
"#0000bb"
>
$data
</font><font color=
"#007700"
>[</font><font color=
"#0000bb"
>
$i
</font><font color=
"#007700"
>][</font><font color=
"#dd0000"
>
'ip'
</font><font color=
"#007700"
>];
<br>}<br></font><font color=
"#0000bb"
></font>
</font>
</code><hr>
Nach dem Login kopieren
1
2
3
4
<font size=
"2"
><font face=
"verdana,arial,helvetica"
>PHP代码:</font><hr></font><code><font color=
"#000000"
>
<font color=
"#0000bb"
><br>
$nickname
</font><font color=
"#007700"
>= </font><font color=
"#0000bb"
>
$data
</font><font color=
"#007700"
>[</font><font color=
"#0000bb"
>
$i
</font><font color=
"#007700"
>][</font><font color=
"#dd0000"
>
'nickname'
</font><font color=
"#007700"
>] ? </font><font color=
"#0000bb"
>
$data
</font><font color=
"#007700"
>[</font><font color=
"#0000bb"
>
$i
</font><font color=
"#007700"
>][</font><font color=
"#dd0000"
>
'nickname'
</font><font color=
"#007700"
>] : </font><font color=
"#0000bb"
>
$data
</font><font color=
"#007700"
>[</font><font color=
"#0000bb"
>
$i
</font><font color=
"#007700"
>][</font><font color=
"#dd0000"
>
'ip'
</font><font color=
"#007700"
>];<br></font><font color=
"#0000bb"
></font>
</font>
</code><hr>
Nach dem Login kopieren
1
2
3
4
5
6
7
8
9
10
11
12
<font size=
"2"
><font face=
"verdana,arial,helvetica"
>PHP代码:</font><hr></font><code><font color=
"#000000"
>
<font color=
"#0000bb"
><br>
$ext_name
</font><font color=
"#007700"
>= </font><font color=
"#0000bb"
>
strtolower
</font><font color=
"#007700"
>(</font><font color=
"#0000bb"
>
str_replace
</font><font color=
"#007700"
>(</font><font color=
"#dd0000"
>
"."
</font><font color=
"#007700"
>, </font><font color=
"#dd0000"
>
""
</font><font color=
"#007700"
>, </font><font color=
"#0000bb"
>
strrchr
</font><font color=
"#007700"
>(</font><font color=
"#0000bb"
>
$upfilename
</font><font color=
"#007700"
>, </font><font color=
"#dd0000"
>
"."
</font><font color=
"#007700"
>)));
<br>
if
(!
empty
(</font><font color=
"#0000bb"
>
$type
</font><font color=
"#007700"
>))
<br>{
<br>
if
(!</font><font color=
"#0000bb"
>
strpos
</font><font color=
"#007700"
>(</font><font color=
"#0000bb"
>
$type
</font><font color=
"#007700"
>, </font><font color=
"#0000bb"
>
$ext_name
</font><font color=
"#007700"
>))
<br> {
<br>
echo
</font><font color=
"#dd0000"
>
"Please upload the file of $type form."
</font><font color=
"#007700"
>;
<br>
exit
();
<br> }
<br>}<br></font><font color=
"#0000bb"
></font>
</font>
</code><hr>
Nach dem Login kopieren
1
2
3
4
5
6
7
8
9
<font size=
"2"
><font face=
"verdana,arial,helvetica"
>PHP代码:</font><hr></font><code><font color=
"#000000"
>
<font color=
"#0000bb"
><br>
$ext_name
</font><font color=
"#007700"
>= </font><font color=
"#0000bb"
>
strtolower
</font><font color=
"#007700"
>(</font><font color=
"#0000bb"
>
str_replace
</font><font color=
"#007700"
>(</font><font color=
"#dd0000"
>
"."
</font><font color=
"#007700"
>, </font><font color=
"#dd0000"
>
""
</font><font color=
"#007700"
>, </font><font color=
"#0000bb"
>
strrchr
</font><font color=
"#007700"
>(</font><font color=
"#0000bb"
>
$upfilename
</font><font color=
"#007700"
>, </font><font color=
"#dd0000"
>
"."
</font><font color=
"#007700"
>)));
<br>
if
(!(</font><font color=
"#0000bb"
>
$type
</font><font color=
"#007700"
>===</font><font color=
"#dd0000"
>
''
</font><font color=
"#007700"
>) && </font><font color=
"#0000bb"
>
strpos
</font><font color=
"#007700"
>(</font><font color=
"#0000bb"
>
$type
</font><font color=
"#007700"
>, </font><font color=
"#0000bb"
>
$ext_name
</font><font color=
"#007700"
>)===</font><font color=
"#0000bb"
>false</font><font color=
"#007700"
>)
<br>{
<br>
echo
</font><font color=
"#dd0000"
>
"Please upload the file of $type form."
</font><font color=
"#007700"
>;
<br>
exit
();
<br>}<br></font><font color=
"#0000bb"
></font>
</font>
</code><hr>
Nach dem Login kopieren
1
2
3
4
5
6
7
8
9
<font size=
"2"
><font face=
"verdana,arial,helvetica"
>PHP代码:</font><hr></font><code><font color=
"#000000"
>
<font color=
"#0000bb"
><br>
$foo
</font><font color=
"#007700"
>=</font><font color=
"#0000bb"
>
$_post
</font><font color=
"#007700"
>[</font><font color=
"#dd0000"
>
"foo"
</font><font color=
"#007700"
>];
<br> </font><font color=
"#0000bb"
>
$username
</font><font color=
"#007700"
>=</font><font color=
"#0000bb"
>
$_post
</font><font color=
"#007700"
>[</font><font color=
"#dd0000"
>
"user"
</font><font color=
"#007700"
>];
<br></font><font color=
"#0000bb"
>
$group
</font><font color=
"#007700"
>=</font><font color=
"#0000bb"
>
$_POST
</font><font color=
"#007700"
>[</font><font color=
"#dd0000"
>
"group"
</font><font color=
"#007700"
>];
<br>
if
(</font><font color=
"#0000bb"
>
$group
</font><font color=
"#007700"
>==</font><font color=
"#dd0000"
>
"wheel"
</font><font color=
"#007700"
>){
<br></font><font color=
"#0000bb"
>
$username
</font><font color=
"#007700"
>=</font><font color=
"#0000bb"
>
$username
</font><font color=
"#007700"
>.</font><font color=
"#dd0000"
>
"wheel"
</font><font color=
"#007700"
>;
<br>}<br></font><font color=
"#0000bb"
></font>
</font>
</code><hr>
Nach dem Login kopieren
1
2
3
4
5
6
7
8
9
10
<font size=
"2"
><font face=
"verdana,arial,helvetica"
>PHP代码:</font><hr></font><code><font color=
"#000000"
>
<font color=
"#0000bb"
><br>
$foo
</font><font color=
"#007700"
>= </font><font color=
"#0000bb"
>
$_post
</font><font color=
"#007700"
>[</font><font color=
"#dd0000"
>
"foo"
</font><font color=
"#007700"
>];
<br></font><font color=
"#0000bb"
>
$username
</font><font color=
"#007700"
>= </font><font color=
"#0000bb"
>
$_post
</font><font color=
"#007700"
>[</font><font color=
"#dd0000"
>
"username"
</font><font color=
"#007700"
>];
<br></font><font color=
"#0000bb"
>
$group
</font><font color=
"#007700"
>= </font><font color=
"#0000bb"
>
$_POST
</font><font color=
"#007700"
>[</font><font color=
"#dd0000"
>
"group"
</font><font color=
"#007700"
>];
<br>
if
(</font><font color=
"#0000bb"
>
$group
</font><font color=
"#007700"
>==</font><font color=
"#dd0000"
>
"wheel"
</font><font color=
"#007700"
>)
<br>{
<br> </font><font color=
"#0000bb"
>
$username
</font><font color=
"#007700"
>= </font><font color=
"#0000bb"
>
$username
</font><font color=
"#007700"
>.</font><font color=
"#dd0000"
>
"wheel"
</font><font color=
"#007700"
>;
<br>}<br></font><font color=
"#0000bb"
></font>
</font>
</code><hr>
Nach dem Login kopieren
1
2
3
4
5
<font size=
"2"
><font face=
"verdana,arial,helvetica"
>PHP代码:</font><hr></font><code><font color=
"#000000"
>
<font color=
"#0000bb"
><br>
$foo
</font><font color=
"#007700"
>= &</font><font color=
"#0000bb"
>
$_POST
</font><font color=
"#007700"
>[</font><font color=
"#dd0000"
>
'foo'
</font><font color=
"#007700"
>];
<br></font><font color=
"#0000bb"
>
$username
</font><font color=
"#007700"
>= </font><font color=
"#0000bb"
>
$_POST
</font><font color=
"#007700"
>[</font><font color=
"#dd0000"
>
"group"
</font><font color=
"#007700"
>]!=</font><font color=
"#dd0000"
>
'wheel'
</font><font color=
"#007700"
>? </font><font color=
"#0000bb"
>
$_POST
</font><font color=
"#007700"
>[</font><font color=
"#dd0000"
>
"username"
</font><font color=
"#007700"
>] : </font><font color=
"#0000bb"
>
$_POST
</font><font color=
"#007700"
>[</font><font color=
"#dd0000"
>
"username"
</font><font color=
"#007700"
>].</font><font color=
"#dd0000"
>
'wheel'
</font><font color=
"#007700"
>;<br></font><font color=
"#0000bb"
></font>
</font>
</code><hr>
Nach dem Login kopieren
1
2
3
4
<font size=
"2"
><font face=
"verdana,arial,helvetica"
>PHP代码:</font><hr></font><code><font color=
"#000000"
>
<font color=
"#0000bb"
><br>
$query
</font><font color=
"#007700"
>=</font><font color=
"#dd0000"
>
"select `flash_comment`.`content` , `flash_comment`.`nickname` , `flash_comment`.`date` , `flash_comment`.`ip` , `product`.`p_name` , `sgflash`.`fid` from `flash_comment` left join `product` on ( `flash_comment`.`p_no` = `product`.`p_no` ) left join `sgflash` on ( `product`.`p_name` = `sgflash`.`f_name` ) where `flash_comment`.`p_no` != '' order by `flash_comment`.`date`"
</font><font color=
"#007700"
>;<br></font><font color=
"#0000bb"
></font>
</font>
</code><hr>
Nach dem Login kopieren
1
2
3
4
5
6
7
8
9
<font size=
"2"
><font face=
"verdana,arial,helvetica"
>PHP代码:</font><hr></font><code><font color=
"#000000"
>
<font color=
"#0000bb"
><br>
$query
</font><font color=
"#007700"
>= </font><font color=
"#dd0000"
>"SELECT `flash_comment`.`content` , `flash_comment`.`nickname` , `flash_comment`.`
date
` , `flash_comment`.`ip` , `product`.`p_name` , `sgflash`.`fid`
<br> FROM `flash_comment`
<br> LEFT JOIN `product` ON ( `flash_comment`.`p_no` = `product`.`p_no` )
<br> LEFT JOIN `sgflash` ON ( `product`.`p_name` = `sgflash`.`f_name` )
<br> WHERE `flash_comment`.`p_no` !=
''
<br> ORDER BY `flash_comment`.`
date
`
"</font><font color="
#007700
">;<br></font><font color="
#0000bb"></font>
</font>
</code><hr>
Nach dem Login kopieren