PATH:
home
/
centosnipponia
/
public_html
/
wh
/
2
<?php // include Imap.Class include_once('lib/class.imap.php'); $email = new Imap(); $connect = $email->connect( '{mail.bachors.com:123/notls}INBOX', //host 'hello@bachors.com', //username 'xxxxxxx' //password ); header('Content-Type: application/json'); header('Access-Control-Allow-Origin: *'); if($connect){ if(isset($_POST['inbox'])){ // inbox array $inbox = $email->getMessages('html'); echo json_encode($inbox, JSON_PRETTY_PRINT); }else if(!empty($_POST['uid']) && !empty($_POST['part']) && !empty($_POST['file']) && !empty($_POST['encoding'])){ // attachments $inbox = $email->getFiles($_POST); echo json_encode($inbox, JSON_PRETTY_PRINT); }else { echo json_encode(array("status" => "error", "message" => "Not connect."), JSON_PRETTY_PRINT); } }else{ echo json_encode(array("status" => "error", "message" => "Not connect."), JSON_PRETTY_PRINT); }
[+]
..
[-] error_log
[edit]
[+]
attachments
[-] README.md
[edit]
[-] json.php
[edit]
[+]
lib
[-] LICENSE
[edit]
[-] index.html
[edit]
[-] .htaccess.disabled
[edit]