This repository has been archived by the owner on Oct 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
help.php
executable file
·99 lines (82 loc) · 3.42 KB
/
help.php
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
$config_file = 'config.php';
if (file_exists($config_file)) {
require($config_file);
} else {
header("Location: error.php?e=config");
die();
}
require("include/functions.php");
require("include/apply_config.php");
echo "<!DOCTYPE html>
<html lang=\"en\">
<head>";
require("include/get_css3.php");
require("include/get_jqueryui.php");
#Execute custom code for head, if set
if (is_file("$absolute_dir/customhead.php")) {
include("customhead.php");
}
?>
</head>
<body>
<div style="padding: 10px;">
<?php
$topic=filter_var($_GET["topic"], FILTER_SANITIZE_STRING);
if ($topic == "GoogleMaps3"){
$help_title = "Obtaining a Google Maps API key";
$help_text = "The new version of Pumilio uses the Google Maps v3 API. You will need a key to
use the maps. To obtain a key follow <a href=\"https://developers.google.com/maps/documentation/javascript/tutorial\">this tutorial</a> or these steps:
<ul>
<li>Go to https://code.google.com/apis/console
<li>Log in to your Google account, if you are not logged in already
<li>Click on Services
<li>Browse down to \"Google Maps API v3\" and turn ON
<li>Click on API Services
<li>Click on \"Create new Browser key...\"
<li>Add the URL of the webserver, in the following format: servername.com/*
<li>Copy the API Key that is generated to the corresponding field in the Pumilio Admin page
</ul>
<strong>Note</strong>: The Developers Console has been recently updated, follow these steps for the new version:
<ul>
<li>Go to https://code.google.com/apis/console
<li>Log in to your Google account, if you are not logged in already
<li>Click on \"APIs & Auth\" in the left-side menu
<li>Click on \"APIs\"
<li>Browse down to \"Google Maps JavaScript API v3\" and turn ON
<li>Click on \"Credentials\"
<li>Click on \"Create New Key\"
<li>Click on \"Browser key\"
<li>Add the URL of the webserver, in the following format: servername.com/*
<li>Copy the API Key that is generated to the corresponding field in the Pumilio Admin page
</ul>
";
}
elseif ($topic == "tempdir"){
$help_title = "Local directory for adding multiple files";
$help_text = "Users can add files to the archive that are stored in the server or a network location mounted in the server. Add the full system path
in this field. The path needs to exist and be readable by the Apache user (";
echo exec('whoami');
echo ")";
}
elseif ($topic == "R"){
$help_title = "Using R";
$help_text = "Pumilio can use several R packages to extract data and indices from sound files.
If you select this option, R needs to be installed.";
}
elseif ($topic == "GoogleAnalytics"){
$help_title = "Using Google Analytics";
$help_text = "<p>Pumilio can add the necessary code for tracking the visitors to the website using the Google Analytics system.
You will need to create an account on http://www.google.com/analytics/
<p>Once you have an account, then you can add a website to track as a \"Property\". This property will have under \"Property Settings\"
a Tracking ID code, which looks like this: UA-000000-01.
<p>For more details check this <a href=\"https://support.google.com/analytics/answer/1008080?hl=en\" target=_blank>help page (https://support.google.com/analytics/answer/1008080?hl=en)</a>.
";
}
echo "<h3>$help_title</h3>";
echo "<p>$help_text";
echo "<br><br><p><a href=\"#\" onClick=\"window.close();\">Close window</a>";
?>
</div>
</body>
</html>