-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.sample.php
More file actions
95 lines (74 loc) · 2.76 KB
/
config.sample.php
File metadata and controls
95 lines (74 loc) · 2.76 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<?php
error_reporting(E_ALL ^ E_NOTICE);
// Twitter's API URL.
define('API_URL','https://api.twitter.com/1/');
// Twitter's Search API URL.
define('APIS_URL','https://search.twitter.com/');
// Image Proxy URL
// Use http://src.sencha.io/ for regular connections
// Use https://tinysrc.appspot.com/ for SSL connections
define('IMAGE_PROXY_URL', 'https://tinysrc.appspot.com/');
// Netputweets Lite's Title
define('NETPUTWEETS_TITLE', 'Netputweets Lite!');
// Cookie encryption key. Max 52 characters
define('ENCRYPTION_KEY', 'Example Key - Change Me!');
// OAuth consumer and secret keys. Available from http://twitter.com/oauth_clients
define('OAUTH_CONSUMER_KEY', '');
define('OAUTH_CONSUMER_SECRET', '');
// Embedly Key
// Embed image previews in tweets
// Sign up at https://app.embed.ly/
define('EMBEDLY_KEY', '');
// API key for Read It Later - sign up at http://readitlaterlist.com/api/signup/
define('READ_IT_LATER_API_KEY', 'eWKA2m33d6768ksq40pdrq9NW5T1x1dk');
//set 'ON' to display Show Long URL opinion in settings page
define('LONG_URL', 'OFF');
// Optional: Enable to view page processing and API time
define('DEBUG_MODE', 'OFF');
// Base URL, should point to your website, including a trailing slash
define('BASE_URL', 'http://t.orzdream.com/');
// MySQL storage of OAuth login details for users
define('ACCESS_USERS', 'OFF'); // set 'MYSQL' for MySQL Mode or set 'FILE' for File Mode
// set the cache floder for File Mode
//define('CACHE_FLODER', 'cache/user');
// or set the mysql information for MySQL mode
/*
define('MYSQL_URL', 'localhost');
define('MYSQL_USER', 'username');
define('MYSQL_PASSWORD', 'password');
define('MYSQL_DB', 'dabr');
*/
/* The following table is needed to store user login details if you enable MySQL Mode:
CREATE TABLE IF NOT EXISTS `user` (
`username` varchar(64) NOT NULL,
`oauth_key` varchar(128) NOT NULL,
`oauth_secret` varchar(128) NOT NULL,
`password` varchar(32) NOT NULL,
PRIMARY KEY (`username`)
)
*/
// Google Analytics Mobile tracking code
// You need to download ga.php from the Google Analytics website for this to work
// Copyright 2009 Google Inc. All Rights Reserved.
$GA_ACCOUNT = "";
$GA_PIXEL = "ga.php";
function googleAnalyticsGetImageUrl() {
global $GA_ACCOUNT, $GA_PIXEL;
$url = "";
$url .= $GA_PIXEL . "?";
$url .= "utmac=" . $GA_ACCOUNT;
$url .= "&utmn=" . rand(0, 0x7fffffff);
$referer = $_SERVER["HTTP_REFERER"];
$query = $_SERVER["QUERY_STRING"];
$path = $_SERVER["REQUEST_URI"];
if (empty($referer)) {
$referer = "-";
}
$url .= "&utmr=" . urlencode($referer);
if (!empty($path)) {
$url .= "&utmp=" . urlencode($path);
}
$url .= "&guid=ON";
return str_replace("&", "&", $url);
}
?>