You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-12-03 23:11:12 +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:
@@ -76,21 +76,22 @@ if ($new || $edit) $display_status = 0;
|
||||
$fm_struct=array( // list($editible,$view,$type,$title,$comment)
|
||||
# first column: allow editing?
|
||||
# second column: display field?
|
||||
"id" =>array(0,0,'id', 'ID','Record ID'),
|
||||
"mailbox" =>array(1,1,'enum', 'Mailbox','Local mailbox'),
|
||||
"src_server" =>array(1,1,'text', 'Server','Remote Server'),
|
||||
"src_auth" =>array(1,1,'enum', 'Auth Type','Mostly password'),
|
||||
"src_user" =>array(1,1,'text', 'User','Remote User'),
|
||||
"src_password" =>array(1,0,'password', 'Password','Remote Password'),
|
||||
"src_folder" =>array(1,1,'text', 'Folder','Remote Folder'),
|
||||
"poll_time" =>array(1,1,'num', 'Poll','Poll Time (min)'),
|
||||
"fetchall" =>array(1,1,'bool', 'Fetch All','Retrieve both old (seen) and new messages'),
|
||||
"keep" =>array(1,1,'bool', 'Keep','Keep retrieved messages on the remote mailserver'),
|
||||
"protocol" =>array(1,1,'enum', 'Protocol','Protocol to use'),
|
||||
"extra_options" =>array($extra_options,$extra_options,'longtext', 'Extra Options','Extra fetchmail Options'),
|
||||
"mda" =>array($extra_options,$extra_options,'longtext', 'MDA','Mail Delivery Agent'),
|
||||
"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'),
|
||||
# the others: type title help text (in edit form)
|
||||
"id" => array(0,0,'id', 'ID', 'Record ID'),
|
||||
"mailbox" => array(1,1,'enum', 'Mailbox', 'Local mailbox'),
|
||||
"src_server" => array(1,1,'text', 'Server', 'Remote Server'),
|
||||
"src_auth" => array(1,1,'enum', 'Auth Type','Mostly password'),
|
||||
"src_user" => array(1,1,'text', 'User', 'Remote User'),
|
||||
"src_password" => array(1,0,'password', 'Password', 'Remote Password'),
|
||||
"src_folder" => array(1,1,'text', 'Folder', 'Remote Folder'),
|
||||
"poll_time" => array(1,1,'num', 'Poll', 'Poll Time (min)'),
|
||||
"fetchall" => array(1,1,'bool', 'Fetch All','Retrieve both old (seen) and new messages'),
|
||||
"keep" => array(1,1,'bool', 'Keep', 'Keep retrieved messages on the remote mailserver'),
|
||||
"protocol" => array(1,1,'enum', 'Protocol', 'Protocol to use'),
|
||||
"extra_options" => array($extra_options,$extra_options,'longtext', 'Extra Options','Extra fetchmail Options'),
|
||||
"mda" => array($extra_options,$extra_options,'longtext', 'MDA', 'Mail Delivery Agent'),
|
||||
"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();
|
||||
@@ -245,10 +246,10 @@ function _inp_password($val){
|
||||
return base64_encode($val);
|
||||
}
|
||||
|
||||
include ("./templates/header.tpl");
|
||||
include ("./templates/menu.tpl");
|
||||
include ("./templates/fetchmail.tpl");
|
||||
include ("./templates/footer.tpl");
|
||||
include ("./templates/header.tpl");
|
||||
include ("./templates/menu.tpl");
|
||||
include ("./templates/fetchmail.tpl");
|
||||
include ("./templates/footer.tpl");
|
||||
|
||||
/* vim: set expandtab softtabstop=3 tabstop=3 shiftwidth=3: */
|
||||
?>
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<?php
|
||||
|
||||
$headers=array();
|
||||
foreach($fm_struct as $row){
|
||||
$headers=array();
|
||||
foreach($fm_struct as $row){
|
||||
list($editible,$view,$type,$title,$comment)=$row;
|
||||
if ($view){
|
||||
$headers[]=$row;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($edit || $new) { # edit mode
|
||||
echo '<div id="edit_form">';
|
||||
|
||||
Reference in New Issue
Block a user