-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
29 lines (29 loc) · 903 Bytes
/
index.php
File metadata and controls
29 lines (29 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<!DOCTYPE html>
<html>
<body>
<font size="20" color="black" style="position:absolute;left:50px;">Unstack the Stack !!!</font>
<img src ="stack-overflow.png"style="position:absolute;left:500px;top:10px;"/>
<form name="input" action="search.php" method="get" >
<input type="text" name="title" size="100" style="position:absolute;left:50px;top:100px;">
<input type="submit" value="Search" style="position:absolute;left:700px;top:100px;">
</form>
<div style="position:absolute;left:50px;top:200px;">
<?php
exec("python php_helper.py",$output);
foreach($output as $value){
$idpos =strpos($value,"Id") + 7;
$tpos = strpos($value,"Title") ;
$id = substr($value,$idpos,$tpos-4-$idpos);
$title = substr($value,$tpos+9);
#$bodypos = strpos($value,"Body") ;
#$body = substr($value,$bodypos+9);
?>
<a href="answers.php?id=<?php echo $id;?>"><?php echo $title;
?></a><br/>
<br/>
<?php
}
?>
</div>
</body>
</html>