@@ 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 |
@@ 323-328 (lines=6) @@ | ||
320 | // Separate the name and group name |
|
321 | $name = preg_replace('/\\.[^.\\s]{3,4}$/', '', $tmpfile); |
|
322 | $group = ""; |
|
323 | if (substr($name, 0, 1) == "[") { |
|
324 | $end = strpos($name, ']'); |
|
325 | $group = substr($name, 1, $end - 1); |
|
326 | $name = substr($name, $end + 1, strlen($name) - $end + 1); |
|
327 | $name = trim($name); |
|
328 | } |
|
329 | // Set array for later checking |
|
330 | $filearr[] = $tmpfile; |
|
331 | // Check to see if the file is in the DB |