-
Notifications
You must be signed in to change notification settings - Fork 1
/
Config.php
44 lines (37 loc) · 1.8 KB
/
Config.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
<?php
class Config
{
const BASEDIR = "/Library/WebServer/Documents/BUEvents";
const DEFAULT_TIMEZONE = "Europe/Istanbul";
/**
* DB Info
*/
const DB_HOST = "localhost";
const DB_PORT = 3306;
const DB_USER = "root";
const DB_PASS = "1233211";
const DB_NAME = "buevents";
const DB_TYPE = "mysql";
const DB_CHARSET = "utf8";
/**
* Facebook stuff
*/
// TODO: Implement auto access token generator
// For now, generate manually:
// https://developers.facebook.com/tools/explorer/232079303795149
// http://www.slickremix.com/facebook-60-day-user-access-token-generator/
const FB_APPID = "";
const FB_APPSECRET = "";
const FB_ACCESSTOKEN = "EAADTEyx2Yc0BALMon3Ntv8ZACYxYnPLaSAMj6bkBUQacfabDLbjMZA4e3TpNWSrGVgkgUjwJdnLBjpkUZCmxrQWUIKlmSvSZBoQzV4F8pMvk6iAZCQ9ttUZAWCDUG1KebE2AZBRXoqcRW6bN1UG1igwUa4ox7rqi2UZD";
const FB_EVENT_SEARCHQUERIES = ["bogazici universite", "bogazici universitesi guney kampus", "bogazici universitesi kuzey kampus", "ibrahim bodur oditoryumu bogazici", "bogazici universitesi garanti", "albert long hall", "bogazici universitesi demir demirgil", "bogazici universitesi kennedy", "bumed", "bogazici universitesi girisimcilik"];
/**
* Don't change if the app is OK
*/
const FB_GRAPHAPI = "https://graph.facebook.com/v2.5/%s?fields=events{name,description,start_time,end_time,place,timezone,cover,owner,ticket_uri,attending_count,id,category}&access_token=%s";
const FB_GRAPHAPI_SEARCH = "https://graph.facebook.com/search?q=%s&type=event&fields=name,description,start_time,end_time,place,timezone,cover,owner,ticket_uri,attending_count,id,category&access_token=%s";
public static function load($className)
{
include_once "./{$className}.php";
}
}
spl_autoload_register("Config::load");