-
Notifications
You must be signed in to change notification settings - Fork 1
/
dialog.php
executable file
·80 lines (69 loc) · 2.87 KB
/
dialog.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
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
70
71
72
73
74
75
76
77
78
79
80
<?php
/*
* Copyright (c) Codiad & daeks & Coulee Techlink, distributed
* as-is and without warranty under the MIT License. See
* [root]/license.txt for more. This information must remain intact.
*/
require_once('../../common.php');
//////////////////////////////////////////////////////////////////
// Verify Session or Key
//////////////////////////////////////////////////////////////////
checkSession();
switch($_GET['action']){
//////////////////////////////////////////////////////////////////////
// Pull Repo
//////////////////////////////////////////////////////////////////////
case 'pull':
$newproject = $_GET['newproject'];
?>
<form>
<label>Folder Name</label>
<input name="path" autofocus="autofocus" autocomplete="off">
<!-- Clone From svnHub -->
<div style="width: 500px;">
<table id="svn-clone">
<tr>
<td>
<label>Svn Repository</label>
<input name="svn_repo">
</td>
<td width="5%"> </td>
<td >
<label>Rev</label>
<input name="svn_branch" value="HEAD">
</td>
</tr>
<tr>
<td>
<label>Create Project</label>
<input name="svn_newproject" type="checkbox" <?php if($newproject == 'yes'){ echo " CHECKED "; } ?> >
</td>
<td width="5%"> </td>
<td >
<label>Project Name</label>
<input name="svn_projectname" />
</td>
</tr>
<tr>
<td>
<label>Username</label>
<input name="svn_username">
</td>
<td width="5%"> </td>
<td width="47%">
<label>Password</label>
<input type="password" name="svn_password" value="">
</td>
</tr>
<tr>
<td colspan="3" class="note">If your Codaid install is not over https AND you are using a password, DO NOT USE THIS, Anyone with a packet sniffer will easly be able to get your username and password</td>
</tr>
</table>
</div>
<!-- /Clone From svnHub -->
<button class="btn-left">Execute</button><button class="btn-right" onclick="codiad.modal.unload();return false;">Cancel</button>
<form>
<?php
break;
}
?>