Completed
Push — master ( 9d3fbd...af269e )
by Michael
09:48
created

config.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
0 ignored issues
show
Coding Style Compatibility introduced by
For compatibility and reusability of your code, PSR1 recommends that a file should introduce either new symbols (like classes, functions, etc.) or have side-effects (like outputting something, or including other files), but not both at the same time. The first symbol is defined on line 30 and the first side effect is on line 24.

The PSR-1: Basic Coding Standard recommends that a file should either introduce new symbols, that is classes, functions, constants or similar, or have side effects. Side effects are anything that executes logic, like for example printing output, changing ini settings or writing to a file.

The idea behind this recommendation is that merely auto-loading a class should not change the state of an application. It also promotes a cleaner style of programming and makes your code less prone to errors, because the logic is not spread out all over the place.

To learn more about the PSR-1, please see the PHP-FIG site on the PSR-1.

Loading history...
2
/*
3
 You may not change or alter any portion of this comment or credits
4
 of supporting developers from this source code or any supporting source code
5
 which is considered copyrighted (c) material of the original comment or credit authors.
6
7
 This program is distributed in the hope that it will be useful,
8
 but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
*/
11
12
/**
13
 * oledrion
14
 *
15
 * @copyright   {@link https://xoops.org/ XOOPS Project}
16
 * @license     {@link http://www.fsf.org/copyleft/gpl.html GNU public license}
17
 * @author      Hervé Thouzard (http://www.herve-thouzard.com/)
18
 */
19
20
/**
21
 * Various parameters for the module
22
 */
23
24
$moduleDirName = basename(__DIR__);
25
26
// Location of attached files (url and physical path on your disk)
27
if (!defined('OLEDRION_ATTACHED_FILES_URL')) {
28
29
    // Define oledrion dirname
30
    define('OLEDRION_DIRNAME', $moduleDirName);
31
32
    // Define oledrion URL and PATH
33
    define('OLEDRION_URL', XOOPS_URL . '/modules/' . OLEDRION_DIRNAME . '/');
34
    define('OLEDRION_PATH', XOOPS_ROOT_PATH . '/modules/' . OLEDRION_DIRNAME . '/');
35
36
    // Set class path
37
    define('OLEDRION_CLASS_PATH', OLEDRION_PATH . 'class/');
38
39
    // Set image , js and css url
40
    define('OLEDRION_IMAGES_URL', OLEDRION_URL . 'assets/images/');
41
    define('OLEDRION_JS_URL', OLEDRION_URL . 'assets/js/');
42
    define('OLEDRION_CSS_URL', OLEDRION_URL . 'assets/css/');
43
44
    // Set admin URL and PATH
45
    define('OLEDRION_ADMIN_URL', OLEDRION_URL . 'admin/');
46
    define('OLEDRION_ADMIN_PATH', OLEDRION_PATH . 'admin' . '/');
47
48
    // Set gateways path
49
    define('OLEDRION_GATEWAY_PATH', OLEDRION_ADMIN_PATH . 'gateways' . '/');
50
51
    // Set plugin URL and PATH
52
    define('OLEDRION_PLUGINS_PATH', OLEDRION_PATH . 'plugins/');
53
    define('OLEDRION_PLUGINS_URL', OLEDRION_URL . 'plugins/');
54
55
    // Set text path
56
    define('OLEDRION_TEXT_PATH', XOOPS_UPLOAD_PATH . '/' . OLEDRION_DIRNAME . '/' . 'text/');
57
58
    // Set cache path
59
    define('OLEDRION_CACHE_PATH', XOOPS_UPLOAD_PATH . '/' . OLEDRION_DIRNAME . '/' . 'cache/');
60
61
    // Define here the place where main upload path
62
    define('OLEDRION_UPLOAD_URL', XOOPS_UPLOAD_URL . '/oledrion'); // WITHOUT Trailing slash
63
    define('OLEDRION_UPLOAD_PATH', XOOPS_UPLOAD_PATH . '/oledrion'); // WITHOUT Trailing slash
64
65
    // Define here the place where files attached to products are saved
66
    define('OLEDRION_ATTACHED_FILES_URL', XOOPS_UPLOAD_URL . '/oledrion/attached'); // WITHOUT Trailing slash
67
    define('OLEDRION_ATTACHED_FILES_PATH', XOOPS_UPLOAD_PATH . '/oledrion/attached'); // WITHOUT Trailing slash
68
69
    // Define here where pictures are saved
70
    define('OLEDRION_PICTURES_URL', XOOPS_UPLOAD_URL . '/oledrion/images'); // WITHOUT Trailing slash
71
    define('OLEDRION_PICTURES_PATH', XOOPS_UPLOAD_PATH . '/oledrion/images'); // WITHOUT Trailing slash
72
73
    // Maximum length of product's summary for pages (in characters)
74
    define('OLEDRION_SUMMARY_MAXLENGTH', 150);
75
76
    // Used in checkout to select a default country
77
    define('OLEDRION_DEFAULT_COUNTRY', 'US');
78
79
    // RSS Feed cache duration (in minutes)
80
    define('OLEDRION_RSS_CACHE', 3600);
81
82
    // Dimensions of the popup used to select product(s) when there are a lot of products
83
    define('OLEDRION_MAX_PRODUCTS_POPUP_WIDTH', 800);
84
    define('OLEDRION_MAX_PRODUCTS_POPUP_HEIGHT', 600);
85
86
    // Newsletter URL and PATH (the folder must be writable)
87
    define('OLEDRION_NEWSLETTER_URL', XOOPS_URL . '/uploads/oledrion/oledrion_newsletter.txt');
88
    define('OLEDRION_NEWSLETTER_PATH', XOOPS_ROOT_PATH . '/uploads/oledrion/oledrion_newsletter.txt');
89
90
    // CSV URL and path (the folder must be writable) and Separator
91
    define('OLEDRION_CSV_PATH', XOOPS_UPLOAD_PATH . '/oledrion/cvs');
92
    define('OLEDRION_CSV_URL', XOOPS_UPLOAD_URL . '/oledrion/cvs');
93
    define('OLEDRION_CSV_SEP', ';');
94
95
    // Gateway log's path (must be writable)
96
    // B.R. define('OLEDRION_GATEWAY_LOG_PATH', XOOPS_UPLOAD_PATH . '/oledrion/loggateway_oledrion.php');
97
    define('OLEDRION_GATEWAY_LOG_PATH', XOOPS_UPLOAD_PATH . '/oledrion/gateway_log.php');
98
99
    // B.R New: Filename of serialized confirmation email parameters
100
    define('OLEDRION_CONFIRMATION_EMAIL_FILENAME_SUFFIX', '_conf_email.parms');
101
102
    // Do you want to show the list of main categories on the category page when user is on category.php (without specifying a category to see)
103
    define('OLEDRION_SHOW_MAIN_CATEGORIES', true);
104
    // Do you want to sho the list of sub categories of the current category on the category page (when viewing a specific category)
105
    define('OLEDRION_SHOW_SUB_CATEGORIES', true);
106
107
    // String to use to join the list of manufacturers of each product
108
    define('OLEDRION_STRING_TO_JOIN_MANUFACTURERS', ', ');
109
110
    // Thumbs prefix (when thumbs are automatically created)
111
    define('OLEDRION_THUMBS_PREFIX', 'thumb_');
112
113
    // Popup width and height (used in the product.php page to show the media.php page)
114
    define('OLEDRION_POPUP_MEDIA_WIDTH', 640);
115
    define('OLEDRION_POPUP_MEDIA_HEIGHT', 480);
116
117
    // Maximum attached files count to display on the product page
118
    define('OLEDRION_MAX_ATTACHMENTS', 20);
119
120
    // Define the MP3 player's dimensions (dewplayer)
121
    define('OLEDRION_DEWPLAYER_WIDTH', 240); // I do not recommend to go lower than 240 pixels !!!!
122
    define('OLEDRION_DEWPLAYER_HEIGHT', 20);
123
124
    // Place for the "duplicated" text inside the product's title
125
    define('OLEDRION_DUPLICATED_PLACE', 'right'); // or 'left'
126
127
    // Define the excluded tabs in the module's administration
128
    // '' = don't remove anything
129
    // To remove the first, third and fourth tabs only, type : '0,2,4'
130
    define('OLEDRION_EXCLUDED_TABS', '');
131
132
    // When this option is set to false, if Product A has Product B as a related product but Product A is not noted as related to Product B then the display of product A will display Product B as a related product.
133
    // But Product B will not show Product A as a related product.
134
    // When this option is set to true, Product A and Product B display each other as two related products even if Product A was not set as a related product to Product A.
135
    define('OLEDRION_RELATED_BOTH', true);
136
137
    // Do we resize pictures when they are smaller than defined dimensions  ?
138
    define('OLEDRION_DONT_RESIZE_IF_SMALLER', true);
139
140
    // Do you want to automatically fill the manual date when you create a new product ?
141
    define('OLEDRION_AUTO_FILL_MANUAL_DATE', true);
142
143
    // Set this option to true if you can't see the products when you add them to your cart
144
    define('OLEDRION_CART_BUG', false);
145
146
    // Set this option to true if your theme uses jQuery, else, set it to false
147
    define('OLEDRION_MY_THEME_USES_JQUERY', true);
148
149
    // Set Text file names
150
    define('OLEDRION_TEXTFILE1', 'oledrion_index.txt');
151
    define('OLEDRION_TEXTFILE2', 'oledrion_cgv.txt');
152
    define('OLEDRION_TEXTFILE3', 'oledrion_recomm.txt');
153
    define('OLEDRION_TEXTFILE4', 'oledrion_offlinepayment.txt');
154
    define('OLEDRION_TEXTFILE5', 'oledrion_restrictorders.txt');
155
    define('OLEDRION_TEXTFILE6', 'oledrion_checkout1.txt');
156
    define('OLEDRION_TEXTFILE7', 'oledrion_checkout2.txt');
157
158
    // Set SMS gateway
159
    define('OLEDRION_SMS_GATEWAY', 'example');
160
}
161