Skip to content

Commit

Permalink
Allow usage of Teleporter and QueryAds backend only if a valid sessio…
Browse files Browse the repository at this point in the history
…n is detected (#415)
  • Loading branch information
DL6ER authored Feb 27, 2017
1 parent f328595 commit 276f2c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions scripts/pi-hole/php/queryads.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */

require "password.php";
if(!$auth) die("Not authorized");

ob_end_flush();
ini_set("output_buffering", "0");
ob_implicit_flush(true);
Expand Down
6 changes: 4 additions & 2 deletions scripts/pi-hole/php/teleporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL.
* Please see LICENSE file for your rights under this license. */ ?>
* Please see LICENSE file for your rights under this license. */

require "password.php";
if(!$auth) die("Not authorized");

<?php
require('func.php');
function process_zip($name)
{
Expand Down

0 comments on commit 276f2c1

Please sign in to comment.