forked from serphacker/serposcope
-
Notifications
You must be signed in to change notification settings - Fork 0
/
website.php
54 lines (49 loc) · 1.5 KB
/
website.php
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
/**
* Serposcope - An open source rank checker for SEO
* http://serphacker.com/serposcope/
*
* @link http://serphacker.com/serposcope Serposcope
* @author SERP Hacker <[email protected]>
* @license http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode CC-BY-NC-SA
*
* Redistributions of files must retain the above notice.
*/
if(!file_exists('inc/config.php')){
header("Location: install/",TRUE,302);
die();
}
require('inc/config.php');
include('inc/define.php');
include('inc/common.php');
include("inc/header.php");
?>
<h2>Websites</h2>
<div>
<table class='table' >
<thead>
<tr><th>hostname</th><th>group</th><th>actions</th></tr>
</thead>
<tbody>
<?php
$q="SELECT `".SQL_PREFIX."target`.name tname,idTarget, ".
"`".SQL_PREFIX."group`.idGroup,`".SQL_PREFIX."group`.name gname ".
"FROM `".SQL_PREFIX."target` ".
"JOIN `".SQL_PREFIX."group` USING(idGroup) ";
$result = $db->query($q);
while($result && ($row=mysql_fetch_assoc($result))){
echo "<tr>" .
"<td>".h8($row['tname'])."</td>".
"<td>".h8($row['gname'])."</td>".
"<td> <a class='btn' href='view.php?idGroup=".$row['idGroup']."#".h8($row['tname'])."' >view</a> ".
" <a class='btn group-btn-info' data-id='".$row['idTarget']."' >info</a> ".
" <a class='btn' >calendar</a></td>".
"</tr>";
}
?>
</tbody>
</table>
</div>
<?php
include('inc/footer.php');
?>