-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdefaults.php
34 lines (26 loc) · 1.43 KB
/
defaults.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
<?php
// A simple helper script that will setup initial module
// settings in case one of these settings is missing.
// ----------------------------------------------------------------------
// THIS FILE IS NOT MEANT FOR CHANGING MODULE SETTINGS.
// USE THE MODULE SETTINGS IN THE PHORUM ADMIN FOR THAT,
// UNLESS YOU KNOW WHAT YOU ARE DOING.
// ----------------------------------------------------------------------
if(!defined("PHORUM") && !defined("PHORUM_ADMIN")) return;
if (! isset($GLOBALS["PHORUM"]["mod_google_maps"]))
$GLOBALS["PHORUM"]["mod_google_maps"] = array();
if (! isset($GLOBALS["PHORUM"]["mod_google_maps"]["latitude"]) ||
$GLOBALS["PHORUM"]["mod_google_maps"]["latitude"] === '')
$GLOBALS["PHORUM"]["mod_google_maps"]["latitude"] = 40;
if (! isset($GLOBALS["PHORUM"]["mod_google_maps"]["longitude"]) ||
$GLOBALS["PHORUM"]["mod_google_maps"]["longitude"] === '')
$GLOBALS["PHORUM"]["mod_google_maps"]["longitude"] = -20;
if (! isset($GLOBALS["PHORUM"]["mod_google_maps"]["zoom"]) ||
$GLOBALS["PHORUM"]["mod_google_maps"]["zoom"] == '')
$GLOBALS["PHORUM"]["mod_google_maps"]["zoom"] = 1;
if (! isset($GLOBALS["PHORUM"]["mod_google_maps"]["type"]) ||
$GLOBALS["PHORUM"]["mod_google_maps"]["type"] == '')
$GLOBALS["PHORUM"]["mod_google_maps"]["type"] = "roadmap";
if (! isset($GLOBALS["PHORUM"]["mod_google_maps"]["profile_auto_show"]))
$GLOBALS["PHORUM"]["mod_google_maps"]["profile_auto_show"] = 1;
?>