Skip to content

Commit

Permalink
Report uses site list from Google Search Console
Browse files Browse the repository at this point in the history
Report page now pulls site list from Google Search Console instead of
settings table in DB.
  • Loading branch information
PromInc committed Sep 2, 2015
1 parent 50e315f commit cf1ef38
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions report.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
<p>
<label>Domain: </label><br>
<?php
$domains = $mysql->getSettings("sites_google", "1");
foreach( $domains as $domain => $values ) {
echo '<input type="radio" name="domain" id="'.$domain.'" value="'.$domain.'"><label for="'.$domain.'">'.$domain.'</label><br>';
$sitesList = $dataCapture->getSitesGoogleSearchConsole();
foreach( $sitesList as $key => $site ) {
echo '<input type="radio" name="domain" id="'.$site['url'].'" value="'.$site['url'].'"><label for="'.$site['url'].'">'.$site['url'].'</label><br>';
}
?>
</p>
<p>
<label for="query">Query: </label><input type="text" name="query" id="query" value="">
</p>

<?php
$now = time();
$queryDateRange = "SELECT max(date) as 'max', min(date) as 'min' FROM `".$mysql::DB_TABLE_SEARCH_ANALYTICS."` WHERE 1";
Expand Down

0 comments on commit cf1ef38

Please sign in to comment.