Created
February 26, 2020 00:55
-
-
Save ChaosPower/946b9bfb5040cf6c0d9ea27c37da1009 to your computer and use it in GitHub Desktop.
This file contains 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 | |
$options = getopt('f:', ['file:']); | |
if ($options['file'] != '') { | |
require_once $options['file']; | |
$oracle = new oracle(); | |
if (!property_exists($oracle, 'fields')) { | |
} else { | |
if (count($oracle->fields) != 4) { | |
$type = substr($options['file'], 0, -11); | |
if ($type !== "\r\n") { | |
$type = str_replace('{absolute_path}', '', $type) . "\n"; | |
process($oracle->fields, $type); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment