XoopsModules25x /
smartpartner
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 | // |
||
| 4 | |||
| 5 | /** |
||
| 6 | * Extension to mimetype lookup table |
||
| 7 | * |
||
| 8 | * This file is provided as an helper for objects who need to perform filename to mimetype translations. |
||
| 9 | * Common types have been provided, but feel free to add your own one if you need it. |
||
| 10 | * <br><br> |
||
| 11 | * See the enclosed file LICENSE for licensing information. |
||
| 12 | * If you did not receive this file, get it at http://www.fsf.org/copyleft/gpl.html |
||
| 13 | * |
||
| 14 | * @copyright XOOPS Project (http://xoops.org) |
||
| 15 | * @license http://www.fsf.org/copyleft/gpl.html GNU public license |
||
| 16 | * @author Skalpa Keo <[email protected]> |
||
| 17 | * @since 2.0.9.3 |
||
| 18 | */ |
||
| 19 | |||
| 20 | return array( |
||
| 21 | |||
| 22 | 'hqx' => 'application/mac-binhex40', |
||
| 23 | |||
| 24 | 'doc' => 'application/msword', |
||
| 25 | |||
| 26 | 'dot' => 'application/msword', |
||
| 27 | |||
| 28 | 'bin' => 'application/octet-stream', |
||
| 29 | |||
| 30 | 'lha' => 'application/octet-stream', |
||
| 31 | |||
| 32 | 'lzh' => 'application/octet-stream', |
||
| 33 | |||
| 34 | 'exe' => 'application/octet-stream', |
||
| 35 | |||
| 36 | 'class' => 'application/octet-stream', |
||
| 37 | |||
| 38 | 'so' => 'application/octet-stream', |
||
| 39 | |||
| 40 | 'dll' => 'application/octet-stream', |
||
| 41 | |||
| 42 | 'pdf' => 'application/pdf', |
||
| 43 | |||
| 44 | 'ai' => 'application/postscript', |
||
| 45 | |||
| 46 | 'eps' => 'application/postscript', |
||
| 47 | |||
| 48 | 'ps' => 'application/postscript', |
||
| 49 | |||
| 50 | 'smi' => 'application/smil', |
||
| 51 | |||
| 52 | 'smil' => 'application/smil', |
||
| 53 | |||
| 54 | 'wbxml' => 'application/vnd.wap.wbxml', |
||
| 55 | |||
| 56 | 'wmlc' => 'application/vnd.wap.wmlc', |
||
| 57 | |||
| 58 | 'wmlsc' => 'application/vnd.wap.wmlscriptc', |
||
| 59 | |||
| 60 | 'xla' => 'application/vnd.ms-excel', |
||
| 61 | |||
| 62 | 'xls' => 'application/vnd.ms-excel', |
||
| 63 | |||
| 64 | 'xlt' => 'application/vnd.ms-excel', |
||
| 65 | |||
| 66 | 'ppt' => 'application/vnd.ms-powerpoint', |
||
| 67 | |||
| 68 | 'csh' => 'application/x-csh', |
||
| 69 | |||
| 70 | 'dcr' => 'application/x-director', |
||
| 71 | |||
| 72 | 'dir' => 'application/x-director', |
||
| 73 | |||
| 74 | 'dxr' => 'application/x-director', |
||
| 75 | |||
| 76 | 'spl' => 'application/x-futuresplash', |
||
| 77 | |||
| 78 | 'gtar' => 'application/x-gtar', |
||
| 79 | |||
| 80 | 'php' => 'application/x-httpd-php', |
||
| 81 | |||
| 82 | 'php3' => 'application/x-httpd-php', |
||
| 83 | |||
| 84 | 'php5' => 'application/x-httpd-php', |
||
| 85 | |||
| 86 | 'phtml' => 'application/x-httpd-php', |
||
| 87 | |||
| 88 | 'js' => 'application/x-javascript', |
||
| 89 | |||
| 90 | 'sh' => 'application/x-sh', |
||
| 91 | |||
| 92 | 'swf' => 'application/x-shockwave-flash', |
||
| 93 | |||
| 94 | 'sit' => 'application/x-stuffit', |
||
| 95 | |||
| 96 | 'tar' => 'application/x-tar', |
||
| 97 | |||
| 98 | 'tcl' => 'application/x-tcl', |
||
| 99 | |||
| 100 | 'xhtml' => 'application/xhtml+xml', |
||
| 101 | |||
| 102 | 'xht' => 'application/xhtml+xml', |
||
| 103 | |||
| 104 | // 'xhtml' => 'application/xml', |
||
|
0 ignored issues
–
show
|
|||
| 105 | |||
| 106 | 'ent' => 'application/xml-external-parsed-entity', |
||
| 107 | |||
| 108 | 'dtd' => 'application/xml-dtd', |
||
| 109 | |||
| 110 | 'mod' => 'application/xml-dtd', |
||
| 111 | |||
| 112 | 'gz' => 'application/x-gzip', |
||
| 113 | |||
| 114 | 'zip' => 'application/zip', |
||
| 115 | |||
| 116 | 'au' => 'audio/basic', |
||
| 117 | |||
| 118 | 'snd' => 'audio/basic', |
||
| 119 | |||
| 120 | 'mid' => 'audio/midi', |
||
| 121 | |||
| 122 | 'midi' => 'audio/midi', |
||
| 123 | |||
| 124 | 'kar' => 'audio/midi', |
||
| 125 | |||
| 126 | 'mp1' => 'audio/mpeg', |
||
| 127 | |||
| 128 | 'mp2' => 'audio/mpeg', |
||
| 129 | |||
| 130 | 'mp3' => 'audio/mpeg', |
||
| 131 | |||
| 132 | 'aif' => 'audio/x-aiff', |
||
| 133 | |||
| 134 | 'aiff' => 'audio/x-aiff', |
||
| 135 | |||
| 136 | 'm3u' => 'audio/x-mpegurl', |
||
| 137 | |||
| 138 | 'ram' => 'audio/x-pn-realaudio', |
||
| 139 | |||
| 140 | 'rm' => 'audio/x-pn-realaudio', |
||
| 141 | |||
| 142 | 'rpm' => 'audio/x-pn-realaudio-plugin', |
||
| 143 | |||
| 144 | 'ra' => 'audio/x-realaudio', |
||
| 145 | |||
| 146 | 'wav' => 'audio/x-wav', |
||
| 147 | |||
| 148 | 'bmp' => 'image/bmp', |
||
| 149 | |||
| 150 | 'gif' => 'image/gif', |
||
| 151 | |||
| 152 | 'jpeg' => 'image/jpeg', |
||
| 153 | |||
| 154 | 'jpg' => 'image/jpeg', |
||
| 155 | |||
| 156 | 'jpe' => 'image/jpeg', |
||
| 157 | |||
| 158 | 'png' => 'image/png', |
||
| 159 | |||
| 160 | 'tiff' => 'image/tiff', |
||
| 161 | |||
| 162 | 'tif' => 'image/tif', |
||
| 163 | |||
| 164 | 'wbmp' => 'image/vnd.wap.wbmp', |
||
| 165 | |||
| 166 | 'pnm' => 'image/x-portable-anymap', |
||
| 167 | |||
| 168 | 'pbm' => 'image/x-portable-bitmap', |
||
| 169 | |||
| 170 | 'pgm' => 'image/x-portable-graymap', |
||
| 171 | |||
| 172 | 'ppm' => 'image/x-portable-pixmap', |
||
| 173 | |||
| 174 | 'xbm' => 'image/x-xbitmap', |
||
| 175 | |||
| 176 | 'xpm' => 'image/x-xpixmap', |
||
| 177 | |||
| 178 | 'ics' => 'text/calendar', |
||
| 179 | |||
| 180 | 'ifb' => 'text/calendar', |
||
| 181 | |||
| 182 | 'css' => 'text/css', |
||
| 183 | |||
| 184 | 'html' => 'text/html', |
||
| 185 | |||
| 186 | 'htm' => 'text/html', |
||
| 187 | |||
| 188 | 'asc' => 'text/plain', |
||
| 189 | |||
| 190 | 'txt' => 'text/plain', |
||
| 191 | |||
| 192 | 'rtf' => 'text/rtf', |
||
| 193 | |||
| 194 | 'sgml' => 'text/x-sgml', |
||
| 195 | |||
| 196 | 'sgm' => 'text/x-sgml', |
||
| 197 | |||
| 198 | 'tsv' => 'text/tab-seperated-values', |
||
| 199 | |||
| 200 | 'wml' => 'text/vnd.wap.wml', |
||
| 201 | |||
| 202 | 'wmls' => 'text/vnd.wap.wmlscript', |
||
| 203 | |||
| 204 | 'xsl' => 'text/xml', |
||
| 205 | |||
| 206 | 'mpeg' => 'video/mpeg', |
||
| 207 | |||
| 208 | 'mpg' => 'video/mpeg', |
||
| 209 | |||
| 210 | 'mpe' => 'video/mpeg', |
||
| 211 | |||
| 212 | 'qt' => 'video/quicktime', |
||
| 213 | |||
| 214 | 'mov' => 'video/quicktime', |
||
| 215 | |||
| 216 | 'avi' => 'video/x-msvideo', |
||
| 217 | |||
| 218 | 'csv' => 'text/csv' |
||
| 219 | ); |
||
| 220 |
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.