X-Git-Url: https://reisub.nsupdate.info/git/?a=blobdiff_plain;f=mailbox%2Fgetmail.php;fp=mailbox%2Fgetmail.php;h=f41e30fdc3216553fb910f18c0a5a6f15fbcd9e3;hb=aa35c1b421d8c57c9b81a1467ec6b90cda681232;hp=0000000000000000000000000000000000000000;hpb=a1232a2a92d7fe320aa358ea68de75706e35dcf0;p=saltmail.git%2F.git
diff --git a/mailbox/getmail.php b/mailbox/getmail.php
new file mode 100644
index 0000000..f41e30f
--- /dev/null
+++ b/mailbox/getmail.php
@@ -0,0 +1,42 @@
+init();?>
+
+
+
+
+
+
+ '.L::gmail_success.', '.L::gmail_return.'';}catch(Exception $e){echo ''.L::gmail_return.'';}
+ }
+ }
+ elseif(isset($_GET['id'])){
+ try{include preg_split('/@/',$_SESSION['m_user'])[0].'/'.$_GET['box'].'/'.$_GET['id'];echo ''.L::gmail_sender.': '.$sender.'
';echo ''.L::gmail_content.': '.$html;echo '
'.L::gmail_return.' or '.L::gmail_read.'';}catch (Exception $e){echo L::gmail_invalid_id;}
+ }
+ }
+ else{
+ if (isset($_GET['delthem'])){
+ if (strpos($_GET['delthem'],'/') or strpos($_GET['delthem'],'..') or strpos($_GET['delthem'],'\\')){}
+ else{
+ try{unlink(preg_split('/@/',$_SESSION['m_user'])[0].'/mails/'.$_GET['delthem']);echo ''.L::gmail_success.', '.L::gmail_return.'';}catch(Exception $e){echo ''.L::gmail_return.'';}
+ }
+ }
+ elseif(isset($_GET['id'])){
+ try{include preg_split('/@/',$_SESSION['m_user'])[0].'/mails/'.$_GET['id'];echo ''.L::gmail_sender.': '.$sender.'
';echo ''.L::gmail_content.': '.str_replace('\n','
',$html);echo '
'.L::gmail_return.' '.L::gmail_or.' '.L::gmail_read.'';}catch (Exception $e){echo L::gmail_invalid_id;}
+ }
+ }
+ }
+ else{
+ http_response_code(404);
+ }
+
+ ?>
+
+