main_page.php
3.55 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<div class="logo-container" style="padding: 50px 0px 10px 20px">
<a href="http://blogvault.net/" style="padding-right: 20px;"><img src="<?php echo esc_url(plugins_url($this->getPluginLogo(), __FILE__)); ?>" /></a>
</div>
<div id="wrapper toplevel_page_ptn-automated-migration">
<form id="ptn_migrate_form" dummy=">" action="<?php echo esc_url($this->bvinfo->appUrl()); ?>/home/migrate" onsubmit="document.getElementById('migratesubmit').disabled = true;" style="padding:0 2% 2em 1%;" method="post" name="signup">
<h1>Migrate Site to Pantheon</h1>
<p><font size="3">This plugin makes it very easy to migrate your site to Pantheon</font></p>
<input type="hidden" name="bvsrc" value="wpplugin" />
<input type="hidden" name="migrate" value="pantheon" />
<input type="hidden" name="type" value="sftp" />
<?php echo $this->siteInfoTags(); ?>
<p>No Pantheon site yet? Start by <a href="https://dashboard.pantheon.io/sites/migrate">migrating an existing site</a> on your Pantheon dashboard.</p>
<div class="row-fluid">
<div class="span5" style="border-right: 1px solid #EEE; padding-top:1%;">
<label class="control-label" for="input02">Pantheon Site Name</label>
<div class="control-group">
<div class="controls">
<input type="text" class="input-large" name="newurl">
</div>
</div>
<label class="control-label" for="input01">Machine Token</label>
<div class="control-group">
<div class="controls">
<input type="text" class="input-large" name="machine_token">
</div>
</div>
<?php if (array_key_exists('auth_required_source', $_REQUEST)) { ?>
<div id="source-auth">
<label class="control-label" for="input02" style="color:red">User <small>(for this site)</small></label>
<div class="control-group">
<div class="controls">
<input type="text" class="input-large" name="httpauth_src_user">
</div>
</div>
<label class="control-label" for="input02" style="color:red">Password <small>(for this site)</small></label>
<div class="control-group">
<div class="controls">
<input type="password" class="input-large" name="httpauth_src_password">
</div>
</div>
</div>
<?php } ?>
<?php if (array_key_exists('auth_required_dest', $_REQUEST)) { ?>
<label class="control-label" for="input02" style="color:red">Username <small>(for Pantheon Install)</small></label>
<div class="control-group">
<div class="controls">
<input type="text" class="input-large" name="httpauth_dest_user">
</div>
</div>
<label class="control-label" for="input02" style="color:red">Password <small>(for Pantheon Install)</small></label>
<div class="control-group">
<div class="controls">
<input type="password" class="input-large" name="httpauth_dest_password">
</div>
</div>
<?php } ?>
<div class="control-group">
<div class="controls">
<br><input type="checkbox" name="consent" onchange="document.getElementById('migratesubmit').disabled = !this.checked;" value="1"/>I agree to Blogvault <a href="https://blogvault.net/tos" target="_blank" rel="noopener noreferrer">Terms of Service</a> and <a href="https://blogvault.net/privacy" target="_blank" rel="noopener noreferrer">Privacy Policy</a>
</div>
</div>
</div>
</div>
</div>
<input type='submit' disabled id='migratesubmit' value='Migrate'>
</form>
</div> <!-- wrapper ends here -->