-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathonpub_conf.php
246 lines (212 loc) · 8.49 KB
/
onpub_conf.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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
<?php
/* Onpub (TM)
* Copyright (C) 2015 Onpub.com <http://onpub.com/>
* Author: Corey H.M. Taylor <[email protected]>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; version 2.
*/
/*
This is the Onpub website frontend configuration file.
See http://onpub.com/index.php?s=8&a=96 for more information.
*/
// Database Config
/*
MySQL server host where the Onpub database schema is installed. Change the
value of this variable to the hostname of your MySQL server if it's not running
on the same server as Onpub.
*/
if (!isset($onpub_db_host))
$onpub_db_host = 'localhost';
/*
MySQL database where Onpub schema is installed. Change the value of this
variable to the name of the MySQL database where you'd like to install the
Onpub schema the first time you login to the Onpub content management interface.
*/
if (!isset($onpub_db_name))
$onpub_db_name = '';
/*
MySQL username used to connect to Onpub database. Change the value of this
variable to the username that has at least read access to the database where
you installed the Onpub database schema.
*/
if (!isset($onpub_db_user))
$onpub_db_user = '';
/*
MySQL password used to connect to Onpub database. Change the value of this
variable to the password of the MySQL user defined by the variable above.
*/
if (!isset($onpub_db_pass))
$onpub_db_pass = '';
// Directories Config
/*
Path to the root Onpub directory. All files and directories below this variable
are included/referenced relative to the path defined here. For example if you
change the value of this variable to 'onpub/', all directories defined below
will be referenced by the frontend relative to this path, e.g.: onpub/yui/,
onpub/api/, onpub/frontend/, etc. This allows you to load the frontend
index.php and onpub_conf_*.php files from a location outside of the root onpub/
installation directory.
*/
if (!isset($onpub_dir_root))
$onpub_dir_root = '';
/*
Path to local include files. Please note that all path names defined in this
section must include a trailing slash ('/') character. Change the value of this
variable if you want to store your local include files in a directory other
than the default defined here. See the Local Files Include section below for a
list of file names that will automatically be included by the frontend if they
exist in this directory.
*/
if (!isset($onpub_dir_local))
$onpub_dir_local = $onpub_dir_root . 'local/';
/*
Path to OnpubAPI directory. It is recommended that you leave this value
unchanged.
*/
if (!isset($onpub_dir_api))
$onpub_dir_api = $onpub_dir_root . 'vendor/onpubcom/onpubapi/';
/*
Path to YUI directory. This directory contains the YUI 3 distribution. Rename
or delete this directory if you'd like to include the YUI files from Yahoo!'s
CDN instead. You can also set the value of this config variable to FALSE to
force the Onpub frontend to use the YUI CDN.
*/
if (!isset($onpub_dir_yui))
$onpub_dir_yui = $onpub_dir_root . 'bower_components/yui3/build/';
/*
Path to the phpThumb installation directory.
*/
if (!isset($onpub_dir_phpthumb))
$onpub_dir_phpthumb = $onpub_dir_root . 'vendor/james-heinrich/phpthumb/';
/*
Path to default Onpub frontend directory. This variable is useful for pointing
Onpub to a different frontend include path. For example, you could copy the
entire frontend/ directory to a new directory called frontend-custom/ and then
change the value of this variable to 'frontend-custom/'. Onpub would then
automatically include the frontend files from the frontend-custom/ directory.
This is one way to use the existing Onpub frontend code as a starting-point to
create a totally custom layout/design while still using the Onpub content
management interface to keep your site updated.
*/
if (!isset($onpub_dir_frontend))
$onpub_dir_frontend = $onpub_dir_root;
/*
Path to the Onpub management interface. It is recommended that you leave this
value unchanged.
*/
if (!isset($onpub_dir_manage))
$onpub_dir_manage = $onpub_dir_root . 'manage/';
// Frontend Display Config
/*
ID of Onpub Website to display. Change this value to the ID of the Onpub
website you want the frontend to display by default. Most people will not need
to modify this variable.
*/
if (!isset($onpub_disp_website))
$onpub_disp_website = 1;
/*
Number of articles to display on the home page. This also controls the number
of items generated within the RSS feed if $onpub_disp_rss is true.
*/
if (!isset($onpub_disp_updates_num))
$onpub_disp_updates_num = 5;
/*
Set this to flase to prevent the Onpub "Login" hyperlink from showing up
anywhere on the frontend interface.
*/
if (!isset($onpub_disp_login))
$onpub_disp_login = true;
/*
Set this to false to hide the Onpub horizontal navigation menu bar.
*/
if (!isset($onpub_disp_menu))
$onpub_disp_menu = true;
/*
Set this to false to disable the site's RSS feed.
*/
if (!isset($onpub_disp_rss))
$onpub_disp_rss = true;
/*
Set this to true to enable Onpub's SEO friendly URL support. You must also
un-comment the Apache URL rewriting rules within the included .htaccess (located
within the root of your onpub install directory).
*/
if (!isset($onpub_disp_friendly_urls))
$onpub_disp_friendly_urls = false;
// Local File Includes Config
/*
If this file exists in the $onpub_dir_local directory it will automatically be
included by the frontend right before the closing </body> tag on every page.
This file is recommended for pasting in Google Analytics and/or other dynamic
includes.
*/
if (!isset($onpub_inc_foot))
$onpub_inc_foot = $onpub_dir_local . 'onpub_foot.php';
/*
If this file exists in the $onpub_dir_local directory, it is included by the
frontend immediately before the opening <head> tag on every page. Suitable for
initializing JS variables and/or other dynamic PHP/JS code.
*/
if (!isset($onpub_inc_head))
$onpub_inc_head = $onpub_dir_local . 'onpub_head.php';
/*
If this file exists in the $onpub_dir_local directory, it is included by the
frontend immediately before the "onpub-header" <div> on every page. This file
is useful for including code that will display an ad banner or other page
header content that's separate from the site logo and navigation at the top of
every frontend page.
*/
if (!isset($onpub_inc_banner))
$onpub_inc_banner = $onpub_dir_local . 'onpub_banner.php';
/*
If this file exists in the $onpub_dir_local directory, it is included directly
after the "What's New" section on the home page. This file will only be included
on the page if $onpub_disp_updates = true.
*/
if (!isset($onpub_inc_article_updates))
$onpub_inc_article_updates = $onpub_dir_local . 'onpub_article_updates.php';
/*
If this file exists in the $onpub_dir_local directory, it is included in the
right-side column beside the published/updated dates <div> on article pages
only. We use this file to include our AddThis code for our articles and blog
posts.
*/
if (!isset($onpub_inc_article_info))
$onpub_inc_article_info = $onpub_dir_local . 'onpub_article_info.php';
/*
If this file exists in the $onpub_dir_local directory, it is included
immediately after the main content section on all frontend article pages. We
use this file to include our Disqus comment threading code.
*/
if (!isset($onpub_inc_article_foot))
$onpub_inc_article_foot = $onpub_dir_local . 'onpub_article_foot.php';
/*
If this file exists in the $onpub_dir_local directory, this file is included in
addition to the default Onpub frontend CSS file. This allows you to selectively
override the frontends default CSS classes. Tweaking this file allows you to
create your own custom-branded Onpub frontend design.
*/
if (!isset($onpub_inc_css))
$onpub_inc_css = $onpub_dir_local . 'onpub.css';
/*
If this file exists in the $onpub_dir_local directory, this file is included in
addition to the default Onpub frontend horizontal navigation menu CSS file.
This allows you to selectively override the frontends default CSS classes that
specifies the design of the navigation menu. Tweaking this file allows you to
create your own custom nav menu design.
*/
if (!isset($onpub_inc_css_menu))
$onpub_inc_css_menu = $onpub_dir_local . 'onpub-menu.css';
// YUI Config
/*
This variable is only used if the $onpub_dir_yui directory does not exist.
If that directory is missing this variable specified the version of YUI that is
to be automatically downloaded from Yahoo!'s CDN. The default value of this
variable will usually be set to whatever the most recent version of YUI 3 is at
the time new versions of Onpub are released.
*/
if (!isset($onpub_yui_version))
$onpub_yui_version = '3.18.1';
?>