1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-12-05 11:22:03 +03:00

- replaced tabs with spaces in fetchmail.php and fetchmail.tpl

- whitespace changes only, no other difference


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@164 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
Christian Boltz
2007-10-25 23:12:51 +00:00
parent 2f25e8bd42
commit 8fa1a46a2f
2 changed files with 141 additions and 140 deletions

View File

@@ -76,21 +76,22 @@ if ($new || $edit) $display_status = 0;
$fm_struct=array( // list($editible,$view,$type,$title,$comment) $fm_struct=array( // list($editible,$view,$type,$title,$comment)
# first column: allow editing? # first column: allow editing?
# second column: display field? # second column: display field?
"id" =>array(0,0,'id', 'ID','Record ID'), # the others: type title help text (in edit form)
"mailbox" =>array(1,1,'enum', 'Mailbox','Local mailbox'), "id" => array(0,0,'id', 'ID', 'Record ID'),
"src_server" =>array(1,1,'text', 'Server','Remote Server'), "mailbox" => array(1,1,'enum', 'Mailbox', 'Local mailbox'),
"src_auth" =>array(1,1,'enum', 'Auth Type','Mostly password'), "src_server" => array(1,1,'text', 'Server', 'Remote Server'),
"src_user" =>array(1,1,'text', 'User','Remote User'), "src_auth" => array(1,1,'enum', 'Auth Type','Mostly password'),
"src_password" =>array(1,0,'password', 'Password','Remote Password'), "src_user" => array(1,1,'text', 'User', 'Remote User'),
"src_folder" =>array(1,1,'text', 'Folder','Remote Folder'), "src_password" => array(1,0,'password', 'Password', 'Remote Password'),
"poll_time" =>array(1,1,'num', 'Poll','Poll Time (min)'), "src_folder" => array(1,1,'text', 'Folder', 'Remote Folder'),
"fetchall" =>array(1,1,'bool', 'Fetch All','Retrieve both old (seen) and new messages'), "poll_time" => array(1,1,'num', 'Poll', 'Poll Time (min)'),
"keep" =>array(1,1,'bool', 'Keep','Keep retrieved messages on the remote mailserver'), "fetchall" => array(1,1,'bool', 'Fetch All','Retrieve both old (seen) and new messages'),
"protocol" =>array(1,1,'enum', 'Protocol','Protocol to use'), "keep" => array(1,1,'bool', 'Keep', 'Keep retrieved messages on the remote mailserver'),
"extra_options" =>array($extra_options,$extra_options,'longtext', 'Extra Options','Extra fetchmail Options'), "protocol" => array(1,1,'enum', 'Protocol', 'Protocol to use'),
"mda" =>array($extra_options,$extra_options,'longtext', 'MDA','Mail Delivery Agent'), "extra_options" => array($extra_options,$extra_options,'longtext', 'Extra Options','Extra fetchmail Options'),
"date" => array(0,$display_status,'text', 'Date','Date of last polling/configuration change'), "mda" => array($extra_options,$extra_options,'longtext', 'MDA', 'Mail Delivery Agent'),
"returned_text" => array(0,$display_status,'longtext', 'Returned Text','Text message from last polling'), "date" => array(0,$display_status, 'text', 'Date', 'Date of last polling/configuration change'),
"returned_text" => array(0,$display_status, 'longtext', 'Returned Text','Text message from last polling'),
); );
$SESSID_USERNAME = authentication_get_username(); $SESSID_USERNAME = authentication_get_username();
@@ -245,10 +246,10 @@ function _inp_password($val){
return base64_encode($val); return base64_encode($val);
} }
include ("./templates/header.tpl"); include ("./templates/header.tpl");
include ("./templates/menu.tpl"); include ("./templates/menu.tpl");
include ("./templates/fetchmail.tpl"); include ("./templates/fetchmail.tpl");
include ("./templates/footer.tpl"); include ("./templates/footer.tpl");
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */ /* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
?> ?>

View File

@@ -1,12 +1,12 @@
<?php <?php
$headers=array(); $headers=array();
foreach($fm_struct as $row){ foreach($fm_struct as $row){
list($editible,$view,$type,$title,$comment)=$row; list($editible,$view,$type,$title,$comment)=$row;
if ($view){ if ($view){
$headers[]=$row; $headers[]=$row;
} }
} }
if ($edit || $new) { # edit mode if ($edit || $new) { # edit mode
echo '<div id="edit_form">'; echo '<div id="edit_form">';