|
1 <!-- ========================================== |
|
2 #OPTIONS DIALOG --> |
|
3 <div id="div-render-blanket" style="display:none;"> |
|
4 <div id="dialog-options" title="<?php _e("Duplicator Options", 'wpduplicator') ?>"> |
|
5 <form id="form-duplicator-opts" method="post"> |
|
6 <input type="hidden" name="action" value="settings" /> |
|
7 <div id="dup-tabs-opts"> |
|
8 <ul> |
|
9 <li><a href="#dup-tabs-opts-1"><?php _e("Package", 'wpduplicator') ?></a></li> |
|
10 <li><a href="#dup-tabs-opts-2"><?php _e("Installer", 'wpduplicator') ?></a></li> |
|
11 <li><a href="#dup-tabs-opts-3"><?php _e("System", 'wpduplicator') ?></a></li> |
|
12 <!--li><a href="#dup-tabs-opts-4"><?php _e("FTP", 'wpduplicator') ?></a></li>--> |
|
13 </ul> |
|
14 |
|
15 <!-- ============================================================================= |
|
16 TAB 1 PACKAGE --> |
|
17 <div id="dup-tabs-opts-1"> |
|
18 <div style="text-align:left;"> |
|
19 |
|
20 <!-- PROCESSING --> |
|
21 <fieldset style="width:97%;"> |
|
22 <legend><b><?php _e("Processing", 'wpduplicator') ?></b></legend> |
|
23 |
|
24 <?php |
|
25 $safe_value = ini_get('safe_mode'); |
|
26 if( stristr($safe_value, 'on') ){ |
|
27 $max_time_val = ini_get('max_execution_time'); |
|
28 $max_read_only = "readonly='true'"; |
|
29 } else { |
|
30 $max_time_val = $GLOBALS['duplicator_opts']['max_time']; |
|
31 $max_read_only = ""; |
|
32 } |
|
33 ?> |
|
34 <table width="100%" border="0"> |
|
35 <tr> |
|
36 <td style="width:50%"><?php _e("Max Time", 'wpduplicator') ?>: <input type="text" name="max_time" id="max_time" value="<?php echo $max_time_val ?>" <?php echo $max_read_only ?> maxlength="4" style="width:75px" /> <?php _e("seconds", 'wpduplicator') ?></td> |
|
37 <td style="width:50%"><?php _e("Max Memory", 'wpduplicator') ?>: <input type="text" name="max_memory" id="max_memory" value="<?php echo preg_replace('/\D/', '', $GLOBALS['duplicator_opts']['max_memory'] ) ?>" maxlength="4" style="width:45px" /> MB</td> |
|
38 </tr> |
|
39 </table> |
|
40 <div style="display:inline-block; line-height:16px"> |
|
41 <input type="checkbox" name="email-me" id="email-me" <?php echo ($email_me_enabled) ? 'checked="checked"' : ''; ?> /> |
|
42 <label for="email-me"> |
|
43 <?php |
|
44 printf("%s: <i style='font-size:11px'>%s</i>", |
|
45 __("Email when completed", 'wpduplicator'), |
|
46 __("WP-Admin email is included. Add extra emails semicolon separated.", 'wpduplicator')); |
|
47 ?> |
|
48 </label><br/> |
|
49 <input type="text" name="email_others" id="email_others" value="<?php echo $GLOBALS['duplicator_opts']['email_others'] ?>" style="width:95%" /> <br/> |
|
50 </div> |
|
51 </fieldset><br/> |
|
52 |
|
53 <!-- FILTERS --> |
|
54 <fieldset style="width:97%; line-height: 17px"> |
|
55 <legend><b><?php _e("Exclusion Filters", 'wpduplicator') ?></b></legend> |
|
56 |
|
57 <label for="dir_bypass"><?php _e("Directories", 'wpduplicator') ?>: </label> |
|
58 <textarea name="dir_bypass" id="dir_bypass" style="width:625px;height:50px;font-size:11px" /><?php echo $GLOBALS['duplicator_opts']['dir_bypass'] ?></textarea><br/> |
|
59 <div style='font-size:11px; margin:-6px 0px 5px 0px'><i><?php printf("%s: %s",__("Root Path", 'wpduplicator'), rtrim(DUPLICATOR_WPROOTPATH, '/')); ?></i></div> |
|
60 |
|
61 <label class="no-select"><?php _e("File extensions", 'wpduplicator') ?>:</label><br/> |
|
62 <input type="text" name="skip_ext" id="skip_ext" value="<?php echo $GLOBALS['duplicator_opts']['skip_ext'] ?>" style="width:95%" /> <br/> |
|
63 |
|
64 <i style="font-size:11px;"><?php printf("%s (/path1;/path2 or exe;txt;)", __("Separate all filters by semicolon", 'wpduplicator')); ?></i> |
|
65 </fieldset><br/> |
|
66 |
|
67 <!-- ENCODEING OPTIONS --> |
|
68 <fieldset style="width:97%; line-height: 17px" class='no-select'> |
|
69 <legend><b><?php _e("Database Encoding", 'wpduplicator') ?></b></legend> |
|
70 |
|
71 <input type="checkbox" name="dbiconv" id="dbiconv" <?php echo ($duplicator_dbiconv) ? 'checked="checked"' : ''; ?> /> |
|
72 <label for="dbiconv"><?php _e("Enable character conversion encoding", 'wpduplicator') ?></label><br/> |
|
73 |
|
74 <i style='font-size:11px;'> |
|
75 <?php |
|
76 printf("%s %s %s %s <br/> %s", |
|
77 __("From", 'wpduplicator'), DUPLICATOR_DB_ICONV_IN, |
|
78 __("to", 'wpduplicator'), DUPLICATOR_DB_ICONV_OUT, |
|
79 __("Disable this option for extended or double byte character sets", 'wpduplicator')) ; |
|
80 |
|
81 ?> |
|
82 </i><br/><br/> |
|
83 |
|
84 </fieldset> |
|
85 <!--div style='position:absolute; bottom:5px'> |
|
86 <i style='font-size:10px'><?php _e("Having issues saving these options? Temporarily disable all 'Object Caches' (i.e. W3C Total Object Cache)", 'wpduplicator') ?>.</i> |
|
87 </div--> |
|
88 </div> |
|
89 </div> |
|
90 |
|
91 |
|
92 <!-- ============================================================================= |
|
93 TAB 2 INSTALLER --> |
|
94 <div id="dup-tabs-opts-2"> |
|
95 <fieldset style="height:70px"> |
|
96 <legend><b><?php _e("Settings Defaults", 'wpduplicator') ?></b></legend> |
|
97 <table width="100%" border="0" cellspacing="5" cellpadding="5"> |
|
98 <tr> |
|
99 <td style="width:130px"><?php _e("Install URL", 'wpduplicator') ?></td> |
|
100 <td><input type="text" name="nurl" id="nurl" class="txt-settings" value="<?php echo $GLOBALS['duplicator_opts']['nurl'] ?>" /></td> |
|
101 </tr> |
|
102 </table> |
|
103 </fieldset><br/> |
|
104 |
|
105 <fieldset style="height:165px"> |
|
106 <legend><b><?php _e("Database Defaults", 'wpduplicator') ?></b></legend> |
|
107 <table width="100%" border="0" cellspacing="5" cellpadding="5"> |
|
108 <tr> |
|
109 <td style="width:130px"><?php _e("Host", 'wpduplicator') ?></td> |
|
110 <td><input type="text" name="dbhost" id="dbhost" class="txt-settings" value="<?php echo $GLOBALS['duplicator_opts']['dbhost'] ?>" maxlength="2100"/></td> |
|
111 </tr> |
|
112 <tr> |
|
113 <td><?php _e("Name", 'wpduplicator') ?></td> |
|
114 <td><input type="text" name="dbname" id="dbname" class="txt-settings" value="<?php echo $GLOBALS['duplicator_opts']['dbname'] ?>" maxlength="100" /></td> |
|
115 </tr> |
|
116 <tr> |
|
117 <td><?php _e("User", 'wpduplicator') ?></td> |
|
118 <td><input type="text" name="dbuser" id="dbuser" class="txt-settings" value="<?php echo $GLOBALS['duplicator_opts']['dbuser'] ?>" maxlength="100" /></td> |
|
119 </tr> |
|
120 </table> |
|
121 </fieldset> |
|
122 <i style="font-size:11px"><?php _e("The installer can have these fields pre-filled at install time. These values are optional.", 'wpduplicator') ?></i> |
|
123 </div> |
|
124 |
|
125 <!-- ============================================================================= |
|
126 TAB 3 SYSTEM --> |
|
127 <div id="dup-tabs-opts-3"> |
|
128 <fieldset style="height:100px"> |
|
129 <legend><b><?php _e("Uninstall Options", 'wpduplicator') ?></b></legend> |
|
130 |
|
131 <input type="checkbox" name="rm_snapshot" id="rm_snapshot" <?php echo ($rm_snapshot) ? 'checked="checked"' : ''; ?> /> |
|
132 <label for="rm_snapshot"><?php _e("Delete entire snapshot directory when removing plugin", 'wpduplicator') ?></label><br/> |
|
133 <i style='font-size:11px'><?php _e("Snapshot Directory", 'wpduplicator'); ?>: <?php echo duplicator_safe_path(DUPLICATOR_SSDIR_PATH); ?></i><br/> |
|
134 |
|
135 </fieldset> |
|
136 </div> |
|
137 |
|
138 |
|
139 <!--div id="dup-tabs-opts-4"> |
|
140 FTP in Version 1.1 |
|
141 <table width="100%" border="0" cellspacing="5" cellpadding="5"> |
|
142 <tr> |
|
143 <td style="width:130px">Host</td> |
|
144 <td><input type="text" name="ftp-host" id="ftp-host" value="<?php //echo $GLOBALS['duplicator_opts']['ftp-host'] ?>" style="width:300px" /></td> |
|
145 <td>Port</td> |
|
146 <td><input type="text" name="ftp-port" id="ftp-port" value="<?php //echo $GLOBALS['duplicator_opts']['ftp-port'] ?>" style="width:60px" /></td> |
|
147 </tr> |
|
148 <tr> |
|
149 <td style="white-space:nowrap">User Name</td> |
|
150 <td colspan="3"><input type="text" name="ftp-user" id="ftp-user" value="<?php //echo $GLOBALS['duplicator_opts']['ftp-user'] ?>" class="txt-settings"/></td> |
|
151 </tr> |
|
152 <tr> |
|
153 <td style="white-space:nowrap">Password</td> |
|
154 <td colspan="3"><input type="password" name="ftp-pass" id="ftp-pass" value="<?php //echo $GLOBALS['duplicator_opts']['ftp-pass'] ?>" class="txt-settings"/></td> |
|
155 </tr> |
|
156 </table> |
|
157 </div>--> |
|
158 |
|
159 </div> |
|
160 |
|
161 <input type="button" id="opts-save-btn" class="btn-save-opts" value="<?php _e("Save", 'wpduplicator') ?>" style="position:absolute;bottom:20px; right:115px" onclick="Duplicator.saveSettings()" /> |
|
162 <input type="button" id="opts-close-btn" class="btn-save-opts" value="<?php _e("Close", 'wpduplicator') ?>" style="position:absolute;bottom:20px; right:30px" onclick="Duplicator.optionsClose()" /> |
|
163 </form> |
|
164 </div> |