This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | return array( |
||
3 | 'basePath'=>'/data/www/ced.nrcode', |
||
4 | 'name'=>'Carp-e Diem', |
||
5 | 'defaultController'=>'site', |
||
6 | |||
7 | // preloading 'log' component |
||
8 | 'preload'=>['log'], |
||
9 | |||
10 | 'aliases' => [ |
||
11 | 'lib' => realpath(__DIR__ . '/../lib/'), |
||
12 | 'vendor' => realpath(__DIR__ . '/../lib/vendor/') |
||
13 | ], |
||
14 | |||
15 | // autoloading model and component classes |
||
16 | 'import'=>array( |
||
17 | 'application.models.*', |
||
18 | 'application.components.*', |
||
19 | 'vendor.codemix.YiiRedis.*', |
||
20 | ), |
||
21 | |||
22 | 'sourceLanguage' => 'en_US', |
||
23 | 'language' => 'hu', |
||
24 | |||
25 | 'modules'=>[], |
||
26 | |||
27 | 'controllerMap'=>[ |
||
28 | 'min'=>[ |
||
29 | 'class'=>'vendor.limi7less.minscript.controllers.ExtMinScriptController', |
||
30 | ], |
||
31 | ], |
||
32 | |||
33 | // application components |
||
34 | 'components'=>array( |
||
35 | 'clientScript'=>[ |
||
36 | 'class'=>'vendor.limi7less.minscript.components.ExtMinScript', |
||
37 | ], |
||
38 | 'user'=>[ |
||
39 | 'allowAutoLogin'=>false, |
||
40 | ], |
||
41 | 'player' => [ |
||
42 | 'class'=> 'application.components.PlayerComponent', |
||
43 | ], |
||
44 | 'gameLogger' => [ |
||
45 | 'class'=> 'application.components.LoggerComponent', |
||
46 | ], |
||
47 | 'badge' => [ |
||
48 | 'class'=> 'application.components.BadgeComponent', |
||
49 | ], |
||
50 | 'session' => array ( |
||
51 | 'class' => 'system.web.CHttpSession', |
||
52 | 'autoStart' => false, |
||
53 | 'cookieMode' => 'only', |
||
54 | 'cookieParams' => array( |
||
55 | 'path' => '/', |
||
56 | 'domain' => '.wline.hu', |
||
57 | 'httpOnly' => true, |
||
58 | ), |
||
59 | ), |
||
60 | |||
61 | // uncomment the following to enable URLs in path-format |
||
62 | 'urlManager'=>array( |
||
63 | 'urlFormat'=>'path', |
||
64 | 'showScriptName'=>false, |
||
65 | 'caseSensitive'=>false, |
||
66 | 'rules'=>array( |
||
67 | '<controller:\w+>/<id:\d+>'=>'<controller>/view', |
||
68 | '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>', |
||
69 | '<controller:\w+>/<action:\w+>'=>'<controller>/<action>', |
||
70 | ), |
||
71 | ), |
||
72 | 'db'=>array( |
||
73 | 'connectionString' => 'mysql:host=localhost;dbname=ced', |
||
74 | 'emulatePrepare' => true, |
||
75 | 'username' => 'user', |
||
76 | 'password' => 'password', |
||
77 | 'charset' => 'utf8', |
||
78 | ), |
||
79 | 'dbWline'=>array( |
||
80 | 'class' => 'CDbConnection', |
||
81 | 'connectionString' => 'mysql:host=localhost;dbname=wline', |
||
82 | 'emulatePrepare' => true, |
||
83 | 'username' => 'user', |
||
84 | 'password' => 'password', |
||
85 | 'charset' => 'utf8', |
||
86 | ), |
||
87 | "redis" => array( |
||
0 ignored issues
–
show
|
|||
88 | "class" => "vendor.codemix.yiiredis.ARedisConnection", |
||
0 ignored issues
–
show
Coding Style
Comprehensibility
introduced
by
The string literal
class does not require double quotes, as per coding-style, please use single quotes.
PHP provides two ways to mark string literals. Either with single quotes String literals in single quotes on the other hand are evaluated very literally and the only two
characters that needs escaping in the literal are the single quote itself ( Double quoted string literals may contain other variables or more complex escape sequences. <?php
$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";
print $doubleQuoted;
will print an indented: If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear. For more information on PHP string literals and available escape sequences see the PHP core documentation. ![]() Coding Style
Comprehensibility
introduced
by
The string literal
vendor.codemix.yiiredis.ARedisConnection does not require double quotes, as per coding-style, please use single quotes.
PHP provides two ways to mark string literals. Either with single quotes String literals in single quotes on the other hand are evaluated very literally and the only two
characters that needs escaping in the literal are the single quote itself ( Double quoted string literals may contain other variables or more complex escape sequences. <?php
$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";
print $doubleQuoted;
will print an indented: If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear. For more information on PHP string literals and available escape sequences see the PHP core documentation. ![]() |
|||
89 | "hostname" => "localhost", |
||
0 ignored issues
–
show
Coding Style
Comprehensibility
introduced
by
The string literal
hostname does not require double quotes, as per coding-style, please use single quotes.
PHP provides two ways to mark string literals. Either with single quotes String literals in single quotes on the other hand are evaluated very literally and the only two
characters that needs escaping in the literal are the single quote itself ( Double quoted string literals may contain other variables or more complex escape sequences. <?php
$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";
print $doubleQuoted;
will print an indented: If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear. For more information on PHP string literals and available escape sequences see the PHP core documentation. ![]() Coding Style
Comprehensibility
introduced
by
The string literal
localhost does not require double quotes, as per coding-style, please use single quotes.
PHP provides two ways to mark string literals. Either with single quotes String literals in single quotes on the other hand are evaluated very literally and the only two
characters that needs escaping in the literal are the single quote itself ( Double quoted string literals may contain other variables or more complex escape sequences. <?php
$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";
print $doubleQuoted;
will print an indented: If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear. For more information on PHP string literals and available escape sequences see the PHP core documentation. ![]() |
|||
90 | "port" => 6379, |
||
0 ignored issues
–
show
Coding Style
Comprehensibility
introduced
by
The string literal
port does not require double quotes, as per coding-style, please use single quotes.
PHP provides two ways to mark string literals. Either with single quotes String literals in single quotes on the other hand are evaluated very literally and the only two
characters that needs escaping in the literal are the single quote itself ( Double quoted string literals may contain other variables or more complex escape sequences. <?php
$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";
print $doubleQuoted;
will print an indented: If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear. For more information on PHP string literals and available escape sequences see the PHP core documentation. ![]() |
|||
91 | "database" => 1, |
||
0 ignored issues
–
show
Coding Style
Comprehensibility
introduced
by
The string literal
database does not require double quotes, as per coding-style, please use single quotes.
PHP provides two ways to mark string literals. Either with single quotes String literals in single quotes on the other hand are evaluated very literally and the only two
characters that needs escaping in the literal are the single quote itself ( Double quoted string literals may contain other variables or more complex escape sequences. <?php
$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";
print $doubleQuoted;
will print an indented: If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear. For more information on PHP string literals and available escape sequences see the PHP core documentation. ![]() |
|||
92 | "prefix" => "fish:" |
||
0 ignored issues
–
show
Coding Style
Comprehensibility
introduced
by
The string literal
prefix does not require double quotes, as per coding-style, please use single quotes.
PHP provides two ways to mark string literals. Either with single quotes String literals in single quotes on the other hand are evaluated very literally and the only two
characters that needs escaping in the literal are the single quote itself ( Double quoted string literals may contain other variables or more complex escape sequences. <?php
$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";
print $doubleQuoted;
will print an indented: If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear. For more information on PHP string literals and available escape sequences see the PHP core documentation. ![]() Coding Style
Comprehensibility
introduced
by
The string literal
fish: does not require double quotes, as per coding-style, please use single quotes.
PHP provides two ways to mark string literals. Either with single quotes String literals in single quotes on the other hand are evaluated very literally and the only two
characters that needs escaping in the literal are the single quote itself ( Double quoted string literals may contain other variables or more complex escape sequences. <?php
$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";
print $doubleQuoted;
will print an indented: If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear. For more information on PHP string literals and available escape sequences see the PHP core documentation. ![]() |
|||
93 | ), |
||
94 | |||
95 | 'errorHandler'=>array( |
||
96 | // use 'site/error' action to display errors |
||
97 | 'errorAction'=>'/error', |
||
98 | ), |
||
99 | 'log'=>array( |
||
100 | 'class'=>'CLogRouter', |
||
101 | 'routes'=>array( |
||
102 | array( |
||
103 | 'class'=>'CFileLogRoute', |
||
104 | 'levels'=>'error, warning', |
||
105 | ), |
||
106 | ), |
||
107 | ), |
||
108 | 'cache'=>[ |
||
109 | 'class'=>'system.caching.CMemCache', |
||
110 | 'servers'=>[ |
||
111 | ['host'=>'localhost', 'port'=>11211], |
||
112 | ], |
||
113 | ], |
||
114 | 'smtpmail'=>array( |
||
115 | 'class'=>'vendor.smtpmail.PHPMailer', |
||
116 | 'Host'=>"mail.yourdomain.com", |
||
0 ignored issues
–
show
Coding Style
Comprehensibility
introduced
by
The string literal
mail.yourdomain.com does not require double quotes, as per coding-style, please use single quotes.
PHP provides two ways to mark string literals. Either with single quotes String literals in single quotes on the other hand are evaluated very literally and the only two
characters that needs escaping in the literal are the single quote itself ( Double quoted string literals may contain other variables or more complex escape sequences. <?php
$singleQuoted = 'Value';
$doubleQuoted = "\tSingle is $singleQuoted";
print $doubleQuoted;
will print an indented: If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear. For more information on PHP string literals and available escape sequences see the PHP core documentation. ![]() |
|||
117 | 'Username'=>'[email protected]', |
||
118 | 'Password'=>'test', |
||
119 | 'Mailer'=>'smtp', |
||
120 | 'Port'=>26, |
||
121 | 'SMTPAuth'=>true, |
||
122 | ), |
||
123 | ), |
||
124 | |||
125 | 'params'=>require('params.php'), |
||
126 | ); |
||
127 |
PHP provides two ways to mark string literals. Either with single quotes
'literal'
or with double quotes"literal"
. The difference between these is that string literals in double quotes may contain variables with are evaluated at run-time as well as escape sequences.String literals in single quotes on the other hand are evaluated very literally and the only two characters that needs escaping in the literal are the single quote itself (
\'
) and the backslash (\\
). Every other character is displayed as is.Double quoted string literals may contain other variables or more complex escape sequences.
will print an indented:
Single is Value
If your string literal does not contain variables or escape sequences, it should be defined using single quotes to make that fact clear.
For more information on PHP string literals and available escape sequences see the PHP core documentation.