Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions www/lighthouse_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
// found in the LICENSE.md file.
include 'common.inc';

$current_user = $request_context->getUser();
$is_paid = !is_null($current_user) ? $current_user->isPaid() : false;

$headless = false;
if (GetSetting('headless')) {
$headless = true;
Expand Down Expand Up @@ -113,6 +116,11 @@
?>
</select>
</div>
<?php if ($is_paid) : ?>
<div class="fieldrow">
<label class="full" for="private"><input type="checkbox" name="private" id="private" class="checkbox"> Make Test Private <small>Private tests are only visible to your account</small></label>
</div>
<?php endif; ?>
</div>
<div>
<input type="submit" name="submit" value="Start Test &#8594;" class="start_test">
Expand Down
12 changes: 8 additions & 4 deletions www/traceroute.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
// found in the LICENSE.md file.
include 'common.inc';

$current_user = $request_context->getUser();
$is_paid = !is_null($current_user) ? $current_user->isPaid() : false;

// load the secret key (if there is one)
$secret = GetServerSecret();
if (!isset($secret)) {
Expand Down Expand Up @@ -146,10 +149,11 @@
?>
</select>
</div>




<?php if ($is_paid) : ?>
<div class="fieldrow">
<label class="full" for="private"><input type="checkbox" name="private" id="private" class="checkbox"> Make Test Private <small>Private tests are only visible to your account</small></label>
</div>
<?php endif; ?>
</div>
<div>
<input type="submit" name="submit" value="Start Test &#8594;" class="start_test">
Expand Down
9 changes: 9 additions & 0 deletions www/video/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
// found in the LICENSE.md file.
chdir('..');
include 'common.inc';

$current_user = $request_context->getUser();
$is_paid = !is_null($current_user) ? $current_user->isPaid() : false;

$loc = GetDefaultLocation();
$tid = array_key_exists('tid', $_GET) ? $_GET['tid'] : 0;
$run = array_key_exists('run', $_GET) ? $_GET['run'] : 0;
Expand Down Expand Up @@ -112,6 +116,11 @@
?>


<?php if ($is_paid) : ?>
<div>
<label for="private"><input type="checkbox" name="private" id="private" class="checkbox"> Make Test Private <small>Private tests are only visible to your account</small></label>
</div>
<?php endif; ?>

</div>
<div>
Expand Down
8 changes: 8 additions & 0 deletions www/webvitals.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
//$REDIRECT_HTTPS = true;
include 'common.inc';

$current_user = $request_context->getUser();
$is_paid = !is_null($current_user) ? $current_user->isPaid() : false;

$headless = false;
if (GetSetting('headless')) {
$headless = true;
Expand Down Expand Up @@ -110,6 +113,11 @@
</select>
</div>
<div class="fieldrow" id="description"></div>
<?php if ($is_paid) : ?>
<div class="fieldrow">
<label class="full" for="private"><input type="checkbox" name="private" id="private" class="checkbox"> Make Test Private <small>Private tests are only visible to your account</small></label>
</div>
<?php endif; ?>
</div>
<div>
<input type="submit" name="submit" value="Start Test &#8594;" class="start_test">
Expand Down