From 0b02a6d123b2014705998c94ddf3d460948d3eac Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 10 May 2016 17:26:44 -0700 Subject: initial sabre upgrade (needs lots of work - to wit: authentication, redo the browser interface, and rework event export/import) --- vendor/sabre/vobject/bin/vobjectvalidate.php | 139 --------------------------- 1 file changed, 139 deletions(-) delete mode 100755 vendor/sabre/vobject/bin/vobjectvalidate.php (limited to 'vendor/sabre/vobject/bin/vobjectvalidate.php') diff --git a/vendor/sabre/vobject/bin/vobjectvalidate.php b/vendor/sabre/vobject/bin/vobjectvalidate.php deleted file mode 100755 index e0b2a479f..000000000 --- a/vendor/sabre/vobject/bin/vobjectvalidate.php +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/bin/env php -$v) { - - if ($k===0) { - continue; - } - if (substr($v,0,2)==='--') { - switch($v) { - case '--repair' : - $repair = true; - break; - default : - throw new InvalidArgumentException('Unknown option: ' . $v); - break; - } - continue; - } - $posArgs[] = $v; - -} - -function help() { - - global $argv; - - fwrite(STDERR, <<children(); - -foreach($objects as $child) { - - switch($child->name) { - case 'VCALENDAR' : - fwrite(STDERR, "iCalendar: " . (string)$child->VERSION . "\n"); - break; - case 'VCARD' : - fwrite(STDERR, "vCard: " . (string)$child->VERSION . "\n"); - break; - default : - fwrite(STDERR, "This was an unknown object, but it did parse. It's likely that validation will give you unexpected results.\n"); - break; - } - - $options = 0; - if ($repair) $options |= Node::REPAIR; - - $warnings = $child->validate($options); - - if (!count($warnings)) { - fwrite(STDERR, "[GOOD NEWS] No warnings!\n"); - } else { - foreach($warnings as $warn) { - - fwrite(STDERR, $warn['message'] . "\n"); - - } - - } - - if ($repair) { - fwrite($output, $child->serialize()); - } - -} - -- cgit v1.2.3