Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *
- * @ This file is created by deZender.Net
- * @ deZender (PHP5 Decoder for ionCube Loader)
- *
- * @ Version : 2.0.0.4
- * @ Author : DeZender
- * @ Release on : 21.10.2015
- * @ Official site : http://DeZender.Net
- *
- */
- function FormattedTimeRemaining($seconds, $precision = 1) {
- global $pwd;
- if (86400 < $seconds)
- {
- return number_format($seconds / 86400, $precision) . " days";
- }
- if (3600 < $seconds)
- {
- return number_format($seconds / 3600, $precision) . " hours";
- }
- if (60 < $seconds)
- {
- return number_format($seconds / 60, $precision) . " minutes";
- }
- return number_format($seconds, $precision) . " seconds";
- }
- function FileSizeNiceDisplay($filesize, $precision = 2) {
- global $pwd;
- if ($filesize < 1000)
- {
- $sizeunit = "bytes";
- $precision = 0;
- }
- else
- {
- $filesize /= 1024;
- $sizeunit = "kB";
- }
- if (1000 <= $filesize)
- {
- $filesize /= 1024;
- $sizeunit = "MB";
- }
- if (1000 <= $filesize)
- {
- $filesize /= 1024;
- $sizeunit = "GB";
- }
- return number_format($filesize, $precision) . " " . $sizeunit;
- }
- function OutputInformation($id, $dhtml, $text = "") {
- global $DHTMLenabled;
- global $pwd;
- if ($DHTMLenabled)
- {
- if (!is_null($dhtml))
- {
- if ($id)
- {
- echo "<script>if (document.getElementById(\"" . $id . "\")) document.getElementById(\"" . $id . "\").innerHTML=\"" . $dhtml . "\"</script>";
- }
- else
- {
- echo $dhtml;
- }
- flush();
- }
- }
- else
- {
- if ($text)
- {
- echo $text;
- flush();
- }
- }
- return true;
- }
- function EmailAttachment($from, $to, $subject, $textbody, &$attachmentdata, $attachmentfilename) {
- global $pwd;
- $boundary = "_NextPart_" . time() . "_" . md5($attachmentdata) . "_";
- $textheaders = "--" . $boundary . "\n";
- $textheaders .= "Content-Type: text/plain; format=flowed; charset=\"iso-8859-1\"" . "\n";
- $textheaders .= "Content-Transfer-Encoding: 7bit" . "\n\n";
- $attachmentheaders = "--" . $boundary . "\n";
- $attachmentheaders .= "Content-Type: application/octet-stream; name=\"" . $attachmentfilename . "\"" . "\n";
- $attachmentheaders .= "Content-Transfer-Encoding: base64" . "\n";
- $attachmentheaders .= "Content-Disposition: attachment; filename=\"" . $attachmentfilename . "\"" . "\n\n";
- $headers[] = "From: " . $from;
- ...............................................................
- ..........................
- ............
Advertisement
Add Comment
Please, Sign In to add comment