<commit_before><?php 
// Set $_GET['page'] if it's not set
if(empty($_GET['page'])) $_GET['page'] = '';

// check if it's a ajax call or the page is watchlist
if(empty($_GET['ajax']) && $_GET['page'] != "watchlist") { ?>
				<div style="float: left">
				<div class="filter" id="menu">
					<h4>Zoeken</h4>

					<form id="filterform" action="" onsubmit="return submitSearchForm(this)">
						<?php $search = array_merge(array('type' => 'Titel', 'text' => '', 'tree' => '', 'unfiltered' => ''), $search); ?>
						<input type="hidden" id="search-tree" class="" value="<?php echo $search['tree']; ?>">
						<table border="0" cellpadding="0" cellspacing="0" style="width: 214px;margin-left: 20px">
						  <tr> 
						    <td><input type="radio" name="search[type]" class="radio_type" value="Titel"<?php echo $search['type'] == "Titel" ? ' checked="checked"' : "" ?>>Titel</td>
						    <td><input type="radio" name="search[type]" class="radio_type" value="Poster"<?php echo $search['type'] == "Poster" ? ' checked="checked"' : "" ?>>Afzender</td>
							<td><input type="radio" name="search[type]" class="radio_type" value="Tag"<?php echo $search['type'] == "Tag" ? ' checked="checked"' : "" ?>>Tag</td>
						  </tr>
						  <tr>
						    <td colspan="3" id="search_box">
						      <input class="search_text" type="text" name="search[text]" value="<?php echo htmlspecialchars($search['text']); ?>">
						      <input type="submit" value="Zoek" class="submit">
						    </td>
						  </tr>
						  <tr>
						    <td colspan='3'><a onclick="clearTree()">Reset selectie</a></td>
						  </tr>
						</table>
						
						
						<div id="tree"> 
						  <ul>
						  </ul>
						</div>
						
						
					</form><br />
					
					<h4>QuickLinks</h4><br />
					
					<ul id="quicklinksmenu">
<?php
	foreach($quicklinks as $quicklink) {
		$strFilter = $tplHelper->getPageUrl('index') . $quicklink[2];
		if (stripos($quicklink[2], 'New:0') && $settings['count_newspots']) {
			$newQuickCount = $tplHelper->getFilteredSpotCount($strFilter, '');
		} else { $newQuickCount = 0; }
		if($quicklink[0] == 'Watchlist') {
?>
						<li><div><a class="quicklink spotlink" href="<?php echo $quicklink[2]; ?>">
						<img src='<?php echo $quicklink[1]; ?>'><?php echo $quicklink[0]; ?></a></div></li>
<?php } else { ?>
						<li><div><a class="quicklink <?php echo $quicklink[3]; ?>" onclick="$('#spots').load('<?php echo $quicklink[2];?>&ajax=1');clearTree();">
						<img src='<?php echo $quicklink[1]; ?>'><?php echo $quicklink[0]; if ($newQuickCount > 0) { echo " (" . $newQuickCount . ")"; } ?></a></div></li>
<?php
	  }
	}
?>
                    </ul><br /><br />

					<h4>Filters</h4><br />
                    
                    <ul id="filtermenu">
<?php
    foreach($filters as $filter) {
		$strFilter = $tplHelper->getPageUrl('index') . '&amp;search[tree]=' . $filter[2];
		if ($settings['count_newspots']) {
			$newCount = $tplHelper->getFilteredSpotCount($strFilter, 'new');
		} else { $newCount = 0; }
?>
						<li<?php if($filter[2]) { echo " class='". $tplHelper->filter2cat($filter[2]) ."'"; } ?>><div><a class="filter <?php echo $filter[3]; ?>" onclick="$('#spots').load('?search[tree]=<?php echo $filter[2];?>&ajax=1');clearTree();">
						<img src='<?php echo $filter[1]; ?>'><?php echo $filter[0]; if ($newCount > 0) { echo " (" . $newCount . ")"; } ?></a></div></li>
<?php
        if (!empty($filter[4])) {
			
            //echo "\t\t\t\t\t\t\t<ul class=''>\r\n";
			foreach($filter[4] as $subFilter) {
				$strFilter = $tplHelper->getPageUrl('index') . '&amp;search[tree]=' . $subFilter[2];
				if ($settings['count_newspots']) {
					$newSubCount = $tplHelper->getFilteredSpotCount($strFilter, 'new');
				} else { $newSubCount = 0; }
?>
            			<li><div><a class="subfilter <?php echo $subFilter[3];?>" onclick="$('#spots').load('<?php echo $strFilter;?>&ajax=1');clearTree();">
						<img src='<?php echo $subFilter[1]; ?>'><?php echo $subFilter[0]; if ($newSubCount > 0) { echo " (" . $newSubCount . ")"; } ?></a></div></li>
            			
<?php
				if (!empty($subFilter[4])) {
					//echo "\t\t\t\t\t\t\t<ul class=''>\r\n";
					foreach($subFilter[4] as $sub2Filter) {
						$strFilter = $tplHelper->getPageUrl('index') . '&amp;search[tree]=' . $sub2Filter[2];
						if ($settings['count_newspots']) {
							$newSub2Count = $tplHelper->getFilteredSpotCount($strFilter, 'new');
						} else { $newSub2Count = 0; }
						$strFilter = ''; // hoort deze regel hier?
		?>
							<li><div><a class="subsubfilter <?php echo $sub2Filter[3];?>" onclick="$('#spots').load('<?php echo $strFilter;?>&ajax=1');clearTree();">
							<img src='<?php echo $sub2Filter[1]; ?>'><?php echo $sub2Filter[0]; if ($newSubCount > 0) { echo " (" . $newSubCount . ")"; } if ($newSub2Count > 0) { echo " (" . $newSub2Count . ")"; } ?></a></div></li>
		<?php
					} # foreach 
					//echo "\t\t\t\t\t\t\t</ul>\r\n";
				} # is_array
			
			} # foreach 
            //echo "\t\t\t\t\t\t\t</ul>\r\n";
        } # is_array
    } # foreach
?>
                    </ul><br /><br />

					<h4>Maintenance</h4>
					<ul class="maintenancebox">
						<li class="info"> Laatste update: <?php echo $tplHelper->formatDate($lastupdate, 'lastupdate'); ?> </li>
<?php
	if ($settings['show_updatebutton']) {
?>
						<li> <a href="retrieve.php?output=xml" id="updatespotsbtn" class="big_button updatespotsbtn"><div>Update Spots</div></a></li>
<?php
	}
?>
<?php
	if ($settings['keep_downloadlist']) {
?><commit_msg>+Splendid<commit_after><?php 
// Set $_GET['page'] if it's not set
if(empty($_GET['page'])) $_GET['page'] = '';

// check if it's a ajax call or the page is watchlist
if(empty($_GET['ajax']) && $_GET['page'] != "watchlist") { ?>
				<div style="float: left">
				<div class="filter" id="menu">
					<h4>Zoeken</h4>

					<form id="filterform" action="" onsubmit="return submitSearchForm(this)">
						<?php $search = array_merge(array('type' => 'Titel', 'text' => '', 'tree' => '', 'unfiltered' => ''), $search); ?>
						<input type="hidden" id="search-tree" class="" value="<?php echo $search['tree']; ?>">
						<table border="0" cellpadding="0" cellspacing="0" style="width: 214px;margin-left: 20px">
						  <tr> 
						    <td><input type="radio" name="search[type]" class="radio_type" value="Titel"<?php echo $search['type'] == "Titel" ? ' checked="checked"' : "" ?>>Titel</td>
						    <td><input type="radio" name="search[type]" class="radio_type" value="Poster"<?php echo $search['type'] == "Poster" ? ' checked="checked"' : "" ?>>Afzender</td>
							<td><input type="radio" name="search[type]" class="radio_type" value="Tag"<?php echo $search['type'] == "Tag" ? ' checked="checked"' : "" ?>>Tag</td>
						  </tr>
						  <tr>
						    <td colspan="3" id="search_box">
						      <input class="search_text" type="text" name="search[text]" value="<?php echo htmlspecialchars($search['text']); ?>">
						      <input type="submit" value="Zoek" class="submit">
						    </td>
						  </tr>
						  <tr>
						    <td colspan='3'><a onclick="clearTree()">Reset selectie</a></td>
						  </tr>
						</table>
						
						
						<div id="tree"> 
						  <ul>
						  </ul>
						</div>
						
						
					</form><br />
					
					<h4>QuickLinks</h4><br />
					
					<ul id="quicklinksmenu">
<?php
	foreach($quicklinks as $quicklink) {
		$strFilter = $tplHelper->getPageUrl('index') . $quicklink[2];
		if($quicklink[0] == 'Watchlist') {
?>
						<li><div><a class="quicklink spotlink" href="<?php echo $quicklink[2]; ?>">
						<img src='<?php echo $quicklink[1]; ?>'><?php echo $quicklink[0]; ?></a></div></li>
<?php } else { ?>
						<li><div><a class="quicklink <?php echo $quicklink[3]; ?>" onclick="$('#spots').load('<?php echo $quicklink[2];?>&ajax=1');clearTree();">
						<img src='<?php echo $quicklink[1]; ?>'><?php echo $quicklink[0]; if (stripos($quicklink[2], 'New:0')) { echo $tplHelper->getNewCountForFilter($strFilter); } ?></a></div></li>
<?php
	  }
	}
?>
                    </ul><br /><br />

					<h4>Filters</h4><br />
                    
                    <ul id="filtermenu">
<?php
    foreach($filters as $filter) {
		$strFilter = $tplHelper->getPageUrl('index') . '&amp;search[tree]=' . $filter[2];
?>
						<li<?php if($filter[2]) { echo " class='". $tplHelper->filter2cat($filter[2]) ."'"; } ?>><div><a class="filter <?php echo $filter[3]; ?>" onclick="$('#spots').load('?search[tree]=<?php echo $filter[2];?>&ajax=1');clearTree();">
						<img src='<?php echo $filter[1]; ?>'><?php echo $filter[0]; echo $tplHelper->getNewCountForFilter($strFilter); ?></a></div></li>
<?php
        if (!empty($filter[4])) {
			
            //echo "\t\t\t\t\t\t\t<ul class=''>\r\n";
			foreach($filter[4] as $subFilter) {
				$strFilter = $tplHelper->getPageUrl('index') . '&amp;search[tree]=' . $subFilter[2];
?>
            			<li><div><a class="subfilter <?php echo $subFilter[3];?>" onclick="$('#spots').load('<?php echo $strFilter;?>&ajax=1');clearTree();">
						<img src='<?php echo $subFilter[1]; ?>'><?php echo $subFilter[0]; echo $tplHelper->getNewCountForFilter($strFilter); ?></a></div></li>
            			
<?php
				if (!empty($subFilter[4])) {
					//echo "\t\t\t\t\t\t\t<ul class=''>\r\n";
					foreach($subFilter[4] as $sub2Filter) {
						$strFilter = $tplHelper->getPageUrl('index') . '&amp;search[tree]=' . $sub2Filter[2];
		?>
							<li><div><a class="subsubfilter <?php echo $sub2Filter[3];?>" onclick="$('#spots').load('<?php echo $strFilter;?>&ajax=1');clearTree();">
							<img src='<?php echo $sub2Filter[1]; ?>'><?php echo $sub2Filter[0]; echo $tplHelper->getNewCountForFilter($strFilter); ?></a></div></li>
		<?php
					} # foreach 
					//echo "\t\t\t\t\t\t\t</ul>\r\n";
				} # is_array
			
			} # foreach 
            //echo "\t\t\t\t\t\t\t</ul>\r\n";
        } # is_array
    } # foreach
?>
                    </ul><br /><br />

					<h4>Maintenance</h4>
					<ul class="maintenancebox">
						<li class="info"> Laatste update: <?php echo $tplHelper->formatDate($lastupdate, 'lastupdate'); ?> </li>
<?php
	if ($settings['show_updatebutton']) {
?>
						<li> <a href="retrieve.php?output=xml" id="updatespotsbtn" class="big_button updatespotsbtn"><div>Update Spots</div></a></li>
<?php
	}
?>
<?php
	if ($settings['keep_downloadlist']) {
?>
{'fraction_non_alphanumeric': 0.24975732867404388, 'fraction_numerical': 0.012521840419336051, 'mean_word_length': 3.336279461279461, 'pattern_counts': {'":': 0, '<': 281, '<?xml version=': 0, '>': 314, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4606994', 'n_tokens_mistral': 4326, 'n_tokens_neox': 3642, 'n_words': 662}