update
This commit is contained in:
@@ -2793,6 +2793,29 @@ $map_module_urls = array_map(function ($module) {
|
||||
<span class="dl-header-count" id="dlCountPenduduk">0</span>
|
||||
<span class="dl-chevron"><i data-lucide="chevron-down"></i></span>
|
||||
</div>
|
||||
<?php if ($is_admin || $is_op): ?>
|
||||
<div class="dl-filter-container" style="padding: 8px 12px; border-bottom: 1px solid var(--c-border); display: flex; flex-direction: column; gap: 8px;">
|
||||
<div class="dl-filter-row" style="display: flex; gap: 8px; flex-wrap: wrap;">
|
||||
<?php if ($is_admin || $is_op): ?>
|
||||
<label class="layer-chip" title="Sembunyikan warga terjangkau (hijau)">
|
||||
<input type="checkbox" id="chkTerjangkau" checked onchange="window._setPendudukSubLayerVisible && window._setPendudukSubLayerVisible('terjangkau', this.checked)"> Warga Terjangkau
|
||||
</label>
|
||||
<label class="layer-chip" title="Sembunyikan warga blank spot (merah)">
|
||||
<input type="checkbox" id="chkBlankspot" checked onchange="window._setPendudukSubLayerVisible && window._setPendudukSubLayerVisible('blankspot', this.checked)"> Blank Spot
|
||||
</label>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="dl-filter-row">
|
||||
<?php if ($is_admin || $is_op): ?>
|
||||
<select id="filterKeterjangkauan" class="dl-select-filter" style="width: 100%;" onchange="window._pendudukSetFilter && window._pendudukSetFilter()">
|
||||
<option value="">Semua Keterjangkauan</option>
|
||||
<option value="terjangkau">Terjangkau</option>
|
||||
<option value="blankspot">Blank Spot</option>
|
||||
</select>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="dl-list" id="dlListPenduduk">
|
||||
<div class="dl-empty">Belum ada data.</div>
|
||||
</div>
|
||||
|
||||
@@ -20,7 +20,9 @@ function check($label, $ok) {
|
||||
|
||||
check('cookie httponly enabled', strpos($helper, "'httponly' => true") !== false);
|
||||
check('cookie samesite strict enabled', strpos($helper, "'samesite' => 'Strict'") !== false);
|
||||
check('cookie secure detects HTTPS', strpos($helper, "'secure' => (!empty(\$_SERVER['HTTPS']) && \$_SERVER['HTTPS'] !== 'off')") !== false);
|
||||
$has_secure_detect = (strpos($helper, '\'secure\' => $is_https') !== false && strpos($helper, '$is_https =') !== false)
|
||||
|| strpos($helper, '\'secure\' => (!empty($_SERVER[\'HTTPS\']) && $_SERVER[\'HTTPS\'] !== \'off\')') !== false;
|
||||
check('cookie secure detects HTTPS', $has_secure_detect);
|
||||
|
||||
echo "\n--- {$pass} passed, {$fail} failed ---\n";
|
||||
exit($fail > 0 ? 1 : 0);
|
||||
|
||||
Reference in New Issue
Block a user