Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <style>
- div.upload {
- border-radius: 3px;
- background-color: #D23E3E;
- color: white;
- font-family: 'Roboto';
- text-align: center;
- }
- div.upload:hover {
- opacity: 1;
- }
- a {
- color: black;
- }
- a:hover {
- opacity: 0.5;
- }
- input[type=submit] {
- width: 12%;
- background-color: #4CAF50;
- color: white;
- padding: 14px 20px;
- margin: 8px 0;
- border: none;
- border-radius: 4px;
- cursor: pointer;
- }
- input[type=submit]:hover {
- background-color: #45a049;
- }
- body {
- background: url("http://1.bp.blogspot.com/-wCx3I_XW_Sg/UQ6ynBoEHPI/AAAAAAAAFKI/JqgBthHVukU/s1600/Fundo2.png");
- }
- img {
- opacity: 0.5;
- filter: alpha(opacity=50); /* For IE8 and earlier */
- }
- img:hover {
- opacity: 1.0;
- filter: alpha(opacity=100); /* For IE8 and earlier */
- }
- </style>
- <head>
- <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
- <title> Inserted successfully </title>
- </head>
- <div class="upload">
- <meta charset="UTF-8">
- <?php
- // Inserir Value
- if (isset($_POST['updatefilter'])) {
- $filter = mysqli_real_escape_string($_POST['filter']);
- $matheus = mysqli_real_escape_string($_POST['matheus']);
- $filter2 = mysqli_real_escape_string($_POST['filter2']);
- $filter3 = mysqli_real_escape_string($_POST['filter3']);
- } else {
- echo "It seems that you have not entered any value<br />";
- header("Location: ./index.php");
- }
- //Config Here
- $servername = "localhost";
- $username = "root";
- $password = "password000015004520";
- $dbname = "my";
- $conn = new mysqli($servername, $username, $password, $dbname);
- if ($conn->connect_error) {
- die("Conexao failed,Sorry: " . $conn->connect_error);
- }
- $sql = "INSERT INTO wordfilter (word, replacement, strict, addedby, bannable)
- VALUES ('$filter', 'Bobba', '1', 'Staff', '0'), ('$matheus', 'Bobba', '1', 'Staff', '0'),
- ('$filter2', 'Bobba', '1', 'Staff', '0'), ('$filter3', 'Bobba', '1', 'Staff', '0')";
- mysql_set_charset('utf8',$conn);
- if ($conn->query($sql) === TRUE) {
- echo "Added Successfully , yeaaah = )<BR />";
- echo "Type :update filter for it to work.<BR />";
- } else {
- echo "Error: " . $sql . "<br>" . $conn->error;
- }
- $conn->close();
- ?>
- <!-- Updated -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement