Changeset 1073 in subversion
- Timestamp:
- Feb 13, 2008 3:10:29 PM (5 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/check.php-dist (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/check.php-dist
r1071 r1073 70 70 $create_files = array('config/db.inc.php', 'config/main.inc.php'); 71 71 72 $path = dirname(__FILE__) . '/'; 72 $path = dirname(__FILE__) . '/'; 73 $check = basename(__FILE__); 73 74 ?> 74 75 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd"> … … 217 218 ?> 218 219 <h3>Check email settings</h3> 219 <h4>SMTP Settings</h4> 220 <?php 221 echo 'Fetch config from config/main.inc.php: '; 220 <?php 221 echo 'Fetching config-settings from config/main.inc.php.<br /><br />'; 222 222 if (is_array($rcmail_config) && count($rcmail_config)) { 223 echo '<span class="success">OK</span><br />'; 223 ?> 224 <table border="0"> 225 <tr> 226 <th><h4>SMTP Settings</h4></th> 227 <th><h4>IMAP Settings</h4></th> 228 </tr> 229 <tr><td valign="top"> 230 <?php 231 echo 'SMTP: <span class="success">OK</span><br />'; 224 232 echo 'server: ' . $rcmail_config['smtp_server'] . '<br />'; 225 233 echo 'port: ' . $rcmail_config['smtp_port'] . '<br />'; … … 228 236 //var_dump($rcmail_config); 229 237 ?> 238 </td><td valign="top"> 239 <?php 240 echo 'IMAP: <span class="success">OK</span><br />'; 241 echo 'server: ' . $rcmail_config['default_host'] . '<br />'; 242 echo 'port: ' . $rcmail_config['default_port'] . '<br />'; 243 ?> 244 </td></tr> 245 </table> 230 246 <h3>Test SMTP settings - send an email</h3> 231 247 <p>Don't abuse this!</p> 232 <form action=" check.php" method="post">248 <form action="<?php echo $check; ?>" method="post"> 233 249 <?php 234 250 if ($rcmail_config['smtp_server'] != ''): … … 236 252 ?> 237 253 <label>Username:</label><input type="text" name="smtp_test[user]" /> 238 <label>Password:</label><input type=" text" name="smtp_test[pass]" /><br />254 <label>Password:</label><input type="password" name="smtp_test[pass]" /><br /> 239 255 <?php 240 256 endif; … … 291 307 } else { 292 308 ?> 293 <form action=" check.php" method="post">309 <form action="<?php echo $check; ?>" method="post"> 294 310 <label>Username:</label><input type="text" name="imap_test[user]" /> 295 <label>Password:</label><input type=" text" name="imap_test[pass]" /><br /><br />311 <label>Password:</label><input type="password" name="imap_test[pass]" /><br /><br /> 296 312 <input type="hidden" name="action" value="imap" /> 297 313 <input type="submit" value="check email" /> … … 313 329 if ($result != true) { 314 330 echo '<span class="fail">NOT OK</span>'; 315 echo '<br /> ' . $iil_error;331 echo '<br />Error return: ' . $iil_error; 316 332 } else { 317 333 echo '<span class="success">OK</span>';
Note: See TracChangeset
for help on using the changeset viewer.
