芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/avenida/vendor/ezyang/htmlpurifier/maintenance/old-extract-schema.php
#!/usr/bin/php open('w'); $multiline = false; foreach ($hash as $key => $value) { $multiline = $multiline || (strpos($value, "\n") !== false); if ($multiline) { $file->put("--$key--" . PHP_EOL); $file->put(str_replace("\n", PHP_EOL, $value) . PHP_EOL); } else { if ($key == 'ID') { $file->put("$value" . PHP_EOL); } else { $file->put("$key: $value" . PHP_EOL); } } } $file->close(); } $schema = HTMLPurifier_ConfigSchema::instance(); $adapter = new HTMLPurifier_ConfigSchema_StringHashReverseAdapter($schema); foreach ($schema->info as $ns => $ns_array) { saveHash($adapter->get($ns)); foreach ($ns_array as $dir => $x) { saveHash($adapter->get($ns, $dir)); } } // vim: et sw=4 sts=4