Repository navigation
Expand file tree
/
Copy pathconfig_example.php
More file actions
79 lines (56 loc) · 2.18 KB
/
Copy pathconfig_example.php
File metadata and controls
79 lines (56 loc) · 2.18 KB
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
<?php
// Mysql Database
$mysqli = new mysqli('localhost','DBuser','DBpass','database');
// name der tabelle
$tbl = "abos";
// Website Titel
$WebsiteTitle = "Pogo Dein Stadtteil";
// index header
$header = "für den DEIN STADTTEIL Mon IV - Telegram Kanal (nur Innenstadt). Du wirst dem Kanal automatisch nach deiner Zahlung hinzugefügt!";
// use MAP
$urlMap= "https://YOURURL.COM/map/";
$use_map = "PMSF"; // settings --> "PMSF" or "Rocketmap" or "" for empty
$login_system = "native";
$access_level = "1";
// Mail Settings
$mailSend = '1'; // set value '0' to off
$mailSubject = "Welcome to PoGO MAP - here is your login data";
$mailSender = 'pogo@YOURURL.COM'; // sender mail || ReplyTo
$mailHost = 'domain.com'; // SMTP server
$smtpPort = 25; // default 25
$smtpUser = ''; // SMTP account username
$smtpPass = ''; // SMTP account password
$paypallogo = "http://YOURURL.COM/logo_example.jpg"; // PayPal Logo
//$paypallogo = ""; // kein Logo anzeigen
$PayPalMode = 'live'; // sandbox or live
$PayPalApiUsername = 'YOUR_API_USERNAME'; //PayPal API Username
$PayPalApiPassword = 'YOUR_API_PASSWORD'; //Paypal API password
$PayPalApiSignature = 'YOUR_API_SIGNATURE'; //Paypal API Signature
$PayPalCurrencyCode = 'EUR'; //Paypal Currency Code
$PayPalReturnURL = 'http://YOUR_DOMAIN/process.php'; //Point to process.php page
$PayPalCancelURL = 'http://YOUR_DOMAIN/index.php'; //Cancel URL if user clicks cancel
// DEBUGGING
class Logger
{
private static function addEntry($str)
{
$t = microtime(true);
$micro = sprintf("%06d",($t - floor($t)) * 1000000);
$handle = fopen(__DIR__.'/admin/log.txt', 'a');
fwrite($handle, sprintf("%s %s\n", "[".date("m-d H:i:s.".$micro,$t)."]", $str));
fclose($handle);
}
public static function warn($str)
{
self::addEntry("[\tWARNING] [\t\t". $_SERVER['SCRIPT_NAME'] ."] \t$str");
}
public static function error($str)
{
self::addEntry("[\tERROR] [\t\t". $_SERVER['SCRIPT_NAME'] ."] \t$str");
}
public static function info($str)
{
self::addEntry("[\tINFO] [\t\t". $_SERVER['SCRIPT_NAME'] ."] \t$str");
}
}
?>