| @@ 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 | ||
| @@ 76-80 (lines=5) @@ | ||
| 73 | $badip = in_array($_SERVER['REMOTE_ADDR'], XfguestbookUtil::get_badips()) ? true : false; |
|
| 74 | ||
| 75 | switch ($op) { |
|
| 76 | case 'cancel': |
|
| 77 | $photos_dir = XOOPS_UPLOAD_PATH . '/' . $xoopsModule->getVar('dirname'); |
|
| 78 | $nb_removed_tmp = XfguestbookUtil::clear_tmp_files($photos_dir); |
|
| 79 | redirect_header('index.php', 0); |
|
| 80 | break; |
|
| 81 | ||
| 82 | case 'preview': |
|
| 83 | $ts = MyTextSanitizer::getInstance(); |
|