controller/acp/cat.php 1 location
|
@@ 1011-1019 (lines=9) @@
|
1008 |
|
{ |
1009 |
|
$link_ids[] = $row['link_id']; |
1010 |
|
|
1011 |
|
if ($row['link_banner'] && !preg_match('/^(http:\/\/|https:\/\/|ftp:\/\/|ftps:\/\/|www\.).+/si', $row['link_banner'])) |
1012 |
|
{ |
1013 |
|
$banner_img = $this->get_banner_path(basename($row['link_banner'])); |
1014 |
|
|
1015 |
|
if (file_exists($banner_img)) |
1016 |
|
{ |
1017 |
|
@unlink($banner_img); |
1018 |
|
} |
1019 |
|
} |
1020 |
|
} |
1021 |
|
$this->db->sql_freeresult($result); |
1022 |
|
|
controller/acp/validation.php 1 location
|
@@ 354-362 (lines=9) @@
|
351 |
|
{ |
352 |
|
foreach ($this->links_data as $row) |
353 |
|
{ |
354 |
|
if ($row['link_banner'] && !preg_match('/^(http:\/\/|https:\/\/|ftp:\/\/|ftps:\/\/|www\.).+/si', $row['link_banner'])) |
355 |
|
{ |
356 |
|
$banner_img = $this->get_banner_path(basename($row['link_banner'])); |
357 |
|
|
358 |
|
if (file_exists($banner_img)) |
359 |
|
{ |
360 |
|
@unlink($banner_img); |
361 |
|
} |
362 |
|
} |
363 |
|
|
364 |
|
$sql = 'DELETE FROM ' . $this->links_table . ' WHERE link_id = ' . (int) $row['link_id']; |
365 |
|
$this->db->sql_query($sql); |
core/link.php 1 location
|
@@ 230-238 (lines=9) @@
|
227 |
|
|
228 |
|
while ($row = $this->db->sql_fetchrow($result)) |
229 |
|
{ |
230 |
|
if ($row['link_banner'] && !preg_match('/^(http:\/\/|https:\/\/|ftp:\/\/|ftps:\/\/|www\.).+/si', $row['link_banner'])) |
231 |
|
{ |
232 |
|
$banner_img = $this->root_path . $this->get_banner_path(basename($row['link_banner'])); |
233 |
|
|
234 |
|
if (file_exists($banner_img)) |
235 |
|
{ |
236 |
|
@unlink($banner_img); |
237 |
|
} |
238 |
|
} |
239 |
|
} |
240 |
|
|
241 |
|
foreach ($link_datas_ary as $table => $field) |