This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // load variables | |
| require('dotenv').config(); | |
| // load dependencies | |
| const crypto = require('crypto'); | |
| 'use strict'; | |
| const APP_KEY = process.env.APP_KEY; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| function extract_zip_subdir($zipfile, $subpath, $destination, $temp_cache, $traverse_first_subdir=true){ | |
| $zip = new ZipArchive; | |
| echo "extracting $zipfile... "; | |
| if(substr($temp_cache, -1) !== DIRECTORY_SEPARATOR) { | |
| $temp_cache .= DIRECTORY_SEPARATOR; | |
| } | |
| $res = $zip->open($zipfile); | |
| if ($res === TRUE) { | |
| if ($traverse_first_subdir==true){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Excel 2003 XML-Parser | |
| * | |
| * PHP library for parsing Microsoft Excel 2003 XML Spreadsheet | |
| * http://gist.github.com/862741 | |
| * | |
| * Copyright (c) 2011 Faisalman <movedpixel@gmail.com> | |
| * |