|
@@ -1,6 +1,6 @@ discard block |
|
|
block discarded – undo |
|
1
|
1
|
<select name="folder" style="width:215px" onChange="xmlhttpPost('result.php', 'Classify', 'Result', '<img src=\'/include/pleasewait.gif\'>', true); return false;"> |
|
2
|
2
|
<?php |
|
3
|
|
-$path='/var/www/html/RBL/'; |
|
|
3
|
+$path = '/var/www/html/RBL/'; |
|
4
|
4
|
require_once($path.'function.php'); |
|
5
|
5
|
require_once($path.'config.php'); |
|
6
|
6
|
require_once('function.php'); |
|
@@ -11,10 +11,10 @@ discard block |
|
|
block discarded – undo |
|
11
|
11
|
openlog($tag, LOG_PID, $fac); |
|
12
|
12
|
|
|
13
|
13
|
$conf['imap']['user'] = username(); |
|
14
|
|
-$folders=imapFolder($conf['imap'], $_POST['username']); |
|
|
14
|
+$folders = imapFolder($conf['imap'], $_POST['username']); |
|
15
|
15
|
if (is_array($folders)) { |
|
16
|
16
|
print '<option value="" selected disabled>Choose a folder</option>'; |
|
17
|
|
- foreach ( $folders as $folder ) |
|
|
17
|
+ foreach ($folders as $folder) |
|
18
|
18
|
printf('<option value="%s">%s</option>', |
|
19
|
19
|
$folder, |
|
20
|
20
|
htmlspecialchars(mb_convert_encoding($folder, "UTF-8", "UTF7-IMAP"))); |
Please login to merge, or discard this patch.