| @@ 266-271 (lines=6) @@ | ||
| 263 | // Separate the name and group name |
|
| 264 | $name = preg_replace('/\\.[^.\\s]{3,4}$/', '', $tmpfile); |
|
| 265 | $group = ""; |
|
| 266 | if (substr($name, 0, 1) == "[") { |
|
| 267 | $end = strpos($name, ']'); |
|
| 268 | $group = substr($name, 1, $end - 1); |
|
| 269 | $name = substr($name, $end + 1, strlen($name) - $end + 1); |
|
| 270 | $name = trim($name); |
|
| 271 | } |
|
| 272 | // Set array for later checking |
|
| 273 | $filearr[] = $tmpfile; |
|
| 274 | // Check to see if the file is in the DB |
|
| @@ 320-325 (lines=6) @@ | ||
| 317 | // Separate the name and group name |
|
| 318 | $name = preg_replace('/\\.[^.\\s]{3,4}$/', '', $tmpfile); |
|
| 319 | $group = ""; |
|
| 320 | if (substr($name, 0, 1) == "[") { |
|
| 321 | $end = strpos($name, ']'); |
|
| 322 | $group = substr($name, 1, $end - 1); |
|
| 323 | $name = substr($name, $end + 1, strlen($name) - $end + 1); |
|
| 324 | $name = trim($name); |
|
| 325 | } |
|
| 326 | // Set array for later checking |
|
| 327 | $filearr[] = $tmpfile; |
|
| 328 | // Check to see if the file is in the DB |
|