This repository has been archived by the owner on Jul 4, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathconfig.php
134 lines (104 loc) · 4.76 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
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?php
// THIS SCRIPT USE CACHE TO REDUCE HIGH LOAD.
// SO IF THE CACHED FILE ALREADY EXIST - DELETE IT TO APPLY CHANGES!
$CONFIG = array(
// -------------------------------------------------------------
// Main settings
// -------------------------------------------------------------
// Primary Instagram login
'LOGIN' => 'fotokto_ru',
// Primary hashtags
// Separate hashtags by a comma. For example: girl, man
'HASHTAG' => '',
// -------------------------------------------------------------
// Authorization (NOT required)
// -------------------------------------------------------------
// Access token granted to your primary account by an Instagram app.
// If you use it, the widget will start sending requests through the official API (https://www.instagram.com/developer/)
'ACCESS_TOKEN' => '',
// Login and password of an Instagram account for authorization.
// Authorization is necessary for alternative methods of obtaining data and provides more stability when you using the undocumented API
'authLogin' => '',
'authPassword' => '',
// -------------------------------------------------------------
// Multi-account configuration
// -------------------------------------------------------------
// If you need to separete logins on diffent website pages, just add possible logins to the array below.
// After that you can send login to the widget by GET variable. It workds only with the undocumented API.
// Example: /inwidget/index.php?login=fotokto_ru
'loginAvailable' => [
#'fotokto_ru',
#'instagram',
],
// Same option for tagged media. Add possible tags to the array below.
// Then you can use GET variable for tags. Example: /inwidget/index.php?tag=photography
// You can mix this option with "loginAvailable" and "tagsFromAccountOnly"
'tagsAvailable' => [
#'girl',
#'photography',
],
// -------------------------------------------------------------
// Tags
// -------------------------------------------------------------
// Specify here list of banned logins.
// Photos of these users will not be display in the widget.
// Separate usernames by a comma. For example: mark18, kitty45
'tagsBannedLogins' => '',
// Search tagged media from your account only [ true / false ]
// To improve search, increase value of the "imgCount" option
'tagsFromAccountOnly' => false,
// -------------------------------------------------------------
// Images
// -------------------------------------------------------------
// Random order of pictures [ true / false ]
'imgRandom' => true,
// How many pictures the widget will get from Instagram?
'imgCount' => 30,
// -------------------------------------------------------------
// Cache
// -------------------------------------------------------------
// Cache expiration time (hours)
'cacheExpiration' => 6,
// Skip cache data [ true / false ]
// So mean, requests to Instagram API will be sending every time.
// Warning! Use true value only for debug
'cacheSkip' => false,
// Full path to the cache directory
'cachePath' => __DIR__ . '/cache/',
// -------------------------------------------------------------
// Skin
// -------------------------------------------------------------
// Default skin.
// Possible values: default, modern-blue, modern-green, modern-red, modern-orange, modern-grey, modern-black, modern-violet, modern-yellow
// This option may no effect if you set a skin by $_GET variable
'skinDefault' => 'default',
// Possible skin values.
// If you are using a custom skin, add the skin filename in this array without extension.
'skinAvailable' => [
'default',
'modern-blue',
'modern-green',
'modern-red',
'modern-orange',
'modern-grey',
'modern-black',
'modern-violet',
'modern-yellow'
],
// Path to the skins directory
'skinPath' => 'skins/',
// -------------------------------------------------------------
// Lang
// -------------------------------------------------------------
// Default language [ ru / en / ua ] or something else from the lang directory.
// This option may no effect if you set a lang by $_GET variable
'langDefault' => 'ru',
// Possible language values.
// If you are using another language, add the lang filename in this array without extension.
'langAvailable' => ['ru', 'en', 'ua'],
// Full path to the langs directory
'langPath' => __DIR__ . '/langs/',
// Language auto-detection [ true / false ]
// This option may no effect if you set a language by $_GET variable.
'langAuto' => false,
);