-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
41 lines (26 loc) · 891 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/*
Plugin Name: Spiderman
Plugin URI: http://catn.com
Description: WordPress plugin for importing a static website to WordPress.
Version: 1.0
Author: Carlos Merino, Ray Viljoen
Author URI: http://fubra.com
*/
?>
<?php add_action('admin_menu', 'spiderman_admin_auth' ); ?>
<?php function spiderman_admin_auth(){ add_menu_page( "Spiderman", "Spiderman", "manage_options", "spiderman", "spiderman_admin" ); } ?>
<?php function spiderman_admin(){ ?>
<div id="icon-options-general" class="icon32"><br></div>
<h2>Spiderman WP Importer</h2>
<br/><br/>
<form action="" method="post">
<input style="width:200px;" type="text" name="spider_site" placeholder="http://www.exmple.com"/>
<input type="submit" name="Spider" value="Start Spiderman" />
</form>
<?php if (isset($_POST['Spider'])){
$websiteUrl = $_POST['spider_site']; // TARGET URL
require 'Spiderman.php';
}
}
?>