Completed
Push — master ( 8ca430...3024c9 )
by Michael
03:12
created

include/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 29 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
 * Module: XoopsTube
4
 *
5
 * You may not change or alter any portion of this comment or credits
6
 * of supporting developers from this source code or any supporting source code
7
 * which is considered copyrighted (c) material of the original comment or credit authors.
8
 *
9
 * PHP version 5
10
 *
11
 * @category        Module
12
 * @package         Xoopstube
13
 * @author          XOOPS Development Team
14
 * @copyright       2001-2013 The XOOPS Project
15
 * @license         GNU GPL 2 or later (http://www.gnu.org/licenses/gpl-2.0.html)
16
 * @version         $Id$
17
 * @link            http://sourceforge.net/projects/xoops/
18
 * @since           1.0.6
19
 */
20
21
// WARNING: ONCE SET DO NOT CHANGE! Improper use will render this module useless and unworkable.
22
// Only Change if you know what you are doing.
23
24
$mydirname = basename(dirname(__DIR__));
25
26
//These are names of the current tables
27
28
if (!defined('xoopstube_broken')) {
29
    define('xoopstube_broken', 'xoopstube_broken');
30
}
31
if (!defined('xoopstube_cat')) {
32
    define('xoopstube_cat', 'xoopstube_cat');
33
}
34
if (!defined('xoopstube_videos')) {
35
    define('xoopstube_videos', 'xoopstube_videos');
36
}
37
if (!defined('xoopstube_mod')) {
38
    define('xoopstube_mod', 'xoopstube_mod');
39
}
40
if (!defined('xoopstube_votedata')) {
41
    define('xoopstube_votedata', 'xoopstube_votedata');
42
}
43
if (!defined('xoopstube_indexpage')) {
44
    define('xoopstube_indexpage', 'xoopstube_indexpage');
45
}
46
if (!defined('xoopstube_altcat')) {
47
    define('xoopstube_altcat', 'xoopstube_altcat');
48
}
49
if (!defined('xoopstube_url')) {
50
    define('xoopstube_url', XOOPS_URL . '/modules/' . $mydirname . '/');
51
}
52