Welcome to mirror list, hosted at ThFree Co, Russian Federation.

admin.php « settings « templates - github.com/sualko/cloud_piwik.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 023834fa2feaba9d6609610aaa22945d6888d00c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?php
script('piwik', 'settings/admin');
style('piwik', 'settings');
?>

<div id="piwikSettings" class="section">
	<h2>Piwik/Matomo Tracking</h2>
	<p class="settings-hint">If you have no Piwik/Matomo instance, go to <a href="https://matomo.org" target="_blank">matomo.org</a> for further instructions.</p>
	<p id="piwikAdblockerWarning" style="border-left:2px red solid;padding-left:1em">It seems that you use a content blocker plugin in your browser to stop trackers like Matomo. Unfortunately, your plugin also breaks this settings form, so you might want to disable the content blocker for your NextCloud.</p>

	<form>
		<table>
			<tr>
				<td><label for="piwikSiteId">Site ID </label></td>
				<td><input type="number" name="siteId" id="piwikSiteId" pattern="[0-9]+" value="<?php p($_['siteId']);?>" /></td>
			</tr>
			<tr>
				<td><label for="piwikUrl">Piwik/Matomo Url </label></td>
				<td><input type="text" name="url" id="piwikUrl" value="<?php p($_['url']);?>" /></td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="checkbox" name="trackDir" id="piwikTrackDir" class="checkbox" <?php if ($_['trackDir']): ?> checked="checked"<?php endif; ?> />
					<label for="piwikTrackDir">Track file browsing</label>
				</td>
			</tr>
			<tr>
				<td colspan="2">
					<input type="checkbox" name="trackUser" id="piwikTrackUser" class="checkbox" <?php if ($_['trackUser']): ?> checked="checked"<?php endif; ?> />
					<label for="piwikTrackUser">Track user id</label>
				</td>
			</tr>
		</table>
	</form>
</div>