Changeset 1073 in subversion


Ignore:
Timestamp:
Feb 13, 2008 3:10:29 PM (5 years ago)
Author:
till
Message:
  • a few additions (eyecandy)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/check.php-dist

    r1071 r1073  
    7070$create_files  = array('config/db.inc.php', 'config/main.inc.php'); 
    7171 
    72 $path = dirname(__FILE__) . '/'; 
     72$path  = dirname(__FILE__) . '/'; 
     73$check = basename(__FILE__); 
    7374?> 
    7475<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd"> 
     
    217218?> 
    218219<h3>Check email settings</h3> 
    219 <h4>SMTP Settings</h4> 
    220 <?php 
    221 echo 'Fetch config from config/main.inc.php: '; 
     220<?php 
     221echo 'Fetching config-settings from config/main.inc.php.<br /><br />'; 
    222222if (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 />'; 
    224232    echo 'server: ' . $rcmail_config['smtp_server'] . '<br />'; 
    225233    echo 'port: ' . $rcmail_config['smtp_port'] . '<br />'; 
     
    228236    //var_dump($rcmail_config); 
    229237?> 
     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> 
    230246<h3>Test SMTP settings - send an email</h3> 
    231247<p>Don't abuse this!</p> 
    232 <form action="check.php" method="post"> 
     248<form action="<?php echo $check; ?>" method="post"> 
    233249<?php 
    234250if ($rcmail_config['smtp_server'] != ''): 
     
    236252?> 
    237253<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 /> 
    239255<?php 
    240256    endif; 
     
    291307} else { 
    292308?> 
    293 <form action="check.php" method="post"> 
     309<form action="<?php echo $check; ?>" method="post"> 
    294310<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 /> 
    296312<input type="hidden" name="action" value="imap" /> 
    297313<input type="submit" value="check email" /> 
     
    313329        if ($result != true) { 
    314330            echo '<span class="fail">NOT OK</span>'; 
    315             echo '<br />' . $iil_error; 
     331            echo '<br />Error return: ' . $iil_error; 
    316332        } else { 
    317333            echo '<span class="success">OK</span>'; 
Note: See TracChangeset for help on using the changeset viewer.