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);
}
?>