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 | |||
3 | return [ |
||
4 | /* |
||
0 ignored issues
–
show
|
|||
5 | * The scheme information |
||
6 | * ------------------------------------------------------------------- |
||
7 | * |
||
8 | * The key-value paris: {name} => {value} |
||
9 | * |
||
10 | * Examples: |
||
11 | * 'Log' => '10 backup' |
||
12 | * 'SmsBao' => '100' |
||
13 | * 'CustomAgent' => [ |
||
14 | * '5 backup', |
||
15 | * 'agentClass' => '/Namespace/ClassName' |
||
16 | * ] |
||
17 | * |
||
18 | * Supported agents: |
||
19 | * 'Log', 'YunPian', 'YunTongXun', 'SubMail', 'Luosimao', |
||
20 | * 'Ucpaas', 'JuHe', 'Alidayu', 'SendCloud', 'SmsBao', |
||
21 | * 'Qcloud', 'Aliyun' |
||
22 | * |
||
23 | */ |
||
24 | 'scheme' => [ |
||
25 | 'Log', |
||
26 | ], |
||
27 | |||
28 | /* |
||
29 | * The configuration |
||
30 | * ------------------------------------------------------------------- |
||
31 | * |
||
32 | * Expected the name of agent to be a string. |
||
33 | * |
||
34 | */ |
||
35 | 'agents' => [ |
||
36 | /* |
||
37 | * ----------------------------------- |
||
38 | * YunPian |
||
39 | * 云片代理器 |
||
40 | * ----------------------------------- |
||
41 | * website:http://www.yunpian.com |
||
42 | * support content sms. |
||
43 | */ |
||
44 | 'YunPian' => [ |
||
45 | //用户唯一标识,必须 |
||
46 | 'apikey' => 'your_api_key', |
||
47 | ], |
||
48 | |||
49 | /* |
||
50 | * ----------------------------------- |
||
51 | * YunTongXun |
||
52 | * 云通讯代理器 |
||
53 | * ----------------------------------- |
||
54 | * website:http://www.yuntongxun.com/ |
||
55 | * support template sms. |
||
56 | */ |
||
57 | 'YunTongXun' => [ |
||
58 | //主帐号 |
||
59 | 'accountSid' => 'your_account_sid', |
||
60 | //主帐号令牌 |
||
61 | 'accountToken' => 'your_account_token', |
||
62 | //应用Id |
||
63 | 'appId' => 'your_app_id', |
||
64 | //请求地址(不加协议前缀) |
||
65 | 'serverIP' => 'app.cloopen.com', |
||
66 | //请求端口 |
||
67 | 'serverPort' => '8883', |
||
68 | //被叫号显 |
||
69 | 'displayNum' => null, |
||
70 | //语音验证码播放次数 |
||
71 | 'playTimes' => 3, |
||
72 | ], |
||
73 | |||
74 | /* |
||
75 | * ----------------------------------- |
||
76 | * SubMail |
||
77 | * ----------------------------------- |
||
78 | * website:http://submail.cn/ |
||
79 | * support template sms. |
||
80 | */ |
||
81 | 'SubMail' => [ |
||
82 | 'appid' => 'your_app_id', |
||
83 | 'signature' => 'your app key', |
||
84 | ], |
||
85 | |||
86 | /* |
||
87 | * ----------------------------------- |
||
88 | * luosimao |
||
89 | * ----------------------------------- |
||
90 | * website:http://luosimao.com |
||
91 | * support content sms. |
||
92 | */ |
||
93 | 'Luosimao' => [ |
||
94 | 'apikey' => 'your_api_key', |
||
95 | 'voiceApikey' => 'your_voice_api_key', |
||
96 | ], |
||
97 | |||
98 | /* |
||
99 | * ----------------------------------- |
||
100 | * ucpaas |
||
101 | * ----------------------------------- |
||
102 | * website:http://ucpaas.com |
||
103 | * support template sms. |
||
104 | */ |
||
105 | 'Ucpaas' => [ |
||
106 | //主帐号,对应开官网发者主账号下的 ACCOUNT SID |
||
107 | 'accountSid' => 'your_account_sid', |
||
108 | //主帐号令牌,对应官网开发者主账号下的 AUTH TOKEN |
||
109 | 'accountToken' => 'your_account_token', |
||
110 | //应用Id,在官网应用列表中点击应用,对应应用详情中的APP ID |
||
111 | //在开发调试的时候,可以使用官网自动为您分配的测试Demo的APP ID |
||
112 | 'appId' => 'your_app_id', |
||
113 | ], |
||
114 | |||
115 | /* |
||
116 | * ----------------------------------- |
||
117 | * JuHe |
||
118 | * 聚合数据 |
||
119 | * ----------------------------------- |
||
120 | * website:https://www.juhe.cn |
||
121 | * support template sms. |
||
122 | */ |
||
123 | 'JuHe' => [ |
||
124 | //应用App Key |
||
125 | 'key' => 'your_key', |
||
126 | //语音验证码播放次数 |
||
127 | 'times' => 3, |
||
128 | ], |
||
129 | |||
130 | /* |
||
131 | * ----------------------------------- |
||
132 | * Alidayu |
||
133 | * 阿里大鱼代理器 |
||
134 | * ----------------------------------- |
||
135 | * website:http://www.alidayu.com |
||
136 | * support template sms. |
||
137 | */ |
||
138 | 'Alidayu' => [ |
||
139 | //请求地址 |
||
140 | 'sendUrl' => 'http://gw.api.taobao.com/router/rest', |
||
141 | //淘宝开放平台中,对应阿里大鱼短信应用的App Key |
||
142 | 'appKey' => 'your_app_key', |
||
143 | //淘宝开放平台中,对应阿里大鱼短信应用的App Secret |
||
144 | 'secretKey' => 'your_secret_key', |
||
145 | //短信签名,传入的短信签名必须是在阿里大鱼“管理中心-短信签名管理”中的可用签名 |
||
146 | 'smsFreeSignName' => 'your_sms_free_sign_name', |
||
147 | //被叫号显(用于语音通知),传入的显示号码必须是阿里大鱼“管理中心-号码管理”中申请或购买的号码 |
||
148 | 'calledShowNum' => null, |
||
149 | ], |
||
150 | |||
151 | /* |
||
152 | * ----------------------------------- |
||
153 | * SendCloud |
||
154 | * ----------------------------------- |
||
155 | * website: http://sendcloud.sohu.com/sms/ |
||
156 | * support template sms. |
||
157 | */ |
||
158 | 'SendCloud' => [ |
||
159 | 'smsUser' => 'your_SMS_USER', |
||
160 | 'smsKey' => 'your_SMS_KEY', |
||
161 | ], |
||
162 | |||
163 | /* |
||
164 | * ----------------------------------- |
||
165 | * SmsBao |
||
166 | * ----------------------------------- |
||
167 | * website: http://www.smsbao.com |
||
168 | * support content sms. |
||
169 | */ |
||
170 | 'SmsBao' => [ |
||
171 | //注册账号 |
||
172 | 'username' => 'your_username', |
||
173 | //账号密码(明文) |
||
174 | 'password' => 'your_password', |
||
175 | ], |
||
176 | |||
177 | /* |
||
178 | * ----------------------------------- |
||
179 | * Qcloud |
||
180 | * 腾讯云 |
||
181 | * ----------------------------------- |
||
182 | * website:http://www.qcloud.com |
||
183 | * support template sms. |
||
184 | */ |
||
185 | 'Qcloud' => [ |
||
186 | 'appId' => 'your_app_id', |
||
187 | 'appKey' => 'your_app_key', |
||
188 | ], |
||
189 | |||
190 | /* |
||
191 | * ----------------------------------- |
||
192 | * Aliyun |
||
193 | * 阿里云 |
||
194 | * ----------------------------------- |
||
195 | * website:https://www.aliyun.com/product/sms |
||
196 | * support template sms. |
||
197 | */ |
||
198 | 'Aliyun' => [ |
||
199 | 'accessKeyId' => 'your_access_key_id', |
||
200 | 'accessKeySecret' => 'your_access_key_secret', |
||
201 | 'signName' => 'your_sms_sign_name', |
||
202 | 'regionId' => 'cn-shenzhen', |
||
203 | ], |
||
204 | ], |
||
205 | ]; |
||
206 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.