Example #1
0
                        $contributionController->update($poi);
                        Route::redirect($_SERVER['HTTP_REFERER']);
                        break;
                    case "r":
                        $poi->setStatus("R");
                        $contributionController->update($poi);
                        Route::redirect($_SERVER['HTTP_REFERER']);
                        break;
                    default:
                        Route::get404Error();
                        break;
                }
            } else {
                Route::get404Error();
            }
        } else {
            Route::get404Error();
        }
    } else {
        Route::get404Error();
    }
} else {
    Route::get404Error();
}
function test_input($data)
{
    $data = trim($data);
    $data = stripslashes($data);
    $data = htmlspecialchars($data);
    return $data;
}