| @@ 344-348 (lines=5) @@ | ||
| 341 | } |
|
| 342 | break; |
|
| 343 | ||
| 344 | case 'cancel': |
|
| 345 | $photos_dir = XOOPS_UPLOAD_PATH . '/' . $xoopsModule->getVar('dirname'); |
|
| 346 | $nb_removed_tmp = XfguestbookUtil::clear_tmp_files($photos_dir); |
|
| 347 | redirect_header('index.php', 0); |
|
| 348 | break; |
|
| 349 | } |
|
| 350 | $sql = $xoopsDB->query('SELECT * FROM ' . $xoopsDB->prefix('xfguestbook_country') . ' ORDER BY country_name ASC'); |
|
| 351 | ||
| @@ 60-64 (lines=5) @@ | ||
| 57 | $badip = in_array($_SERVER['REMOTE_ADDR'], XfguestbookUtil::get_badips()) ? true : false; |
|
| 58 | ||
| 59 | switch ($op) { |
|
| 60 | case 'cancel': |
|
| 61 | $photos_dir = XOOPS_UPLOAD_PATH . '/' . $xoopsModule->getVar('dirname'); |
|
| 62 | $nb_removed_tmp = XfguestbookUtil::clear_tmp_files($photos_dir); |
|
| 63 | redirect_header('index.php', 0); |
|
| 64 | break; |
|
| 65 | ||
| 66 | case 'preview': |
|
| 67 | $ts = MyTextSanitizer::getInstance(); |
|