diff options
author | thomascube <thomas@roundcube.net> | 2008-09-21 12:04:43 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2008-09-21 12:04:43 +0000 |
commit | 8992cad86fbcf664b3444a4790aa74be499e3a1b (patch) | |
tree | 96f4f5f8d512338608d0345b9e0358c82e7deac8 /bin | |
parent | ae2fe663889a87fe594d82a1789dc98e9cb01904 (diff) |
Update docs and version strings + remove development scriptsv0.2-beta@1877
Diffstat (limited to 'bin')
-rw-r--r-- | bin/dumpschema.php | 65 | ||||
-rwxr-xr-x | bin/makedoc.sh | 18 |
2 files changed, 0 insertions, 83 deletions
diff --git a/bin/dumpschema.php b/bin/dumpschema.php deleted file mode 100644 index 683e2719e..000000000 --- a/bin/dumpschema.php +++ /dev/null @@ -1,65 +0,0 @@ -<?php - -define('INSTALL_PATH', realpath('./../') . '/'); -require INSTALL_PATH.'program/include/iniset.php'; - -/** callback function for schema dump **/ -function print_schema($dump) -{ - foreach ((array)$dump as $part) - echo $dump . "\n"; -} - -$config = new rcube_config(); - -// don't allow public access if not in devel_mode -if (!$config->get('devel_mode') && $_SERVER['REMOTE_ADDR']) { - header("HTTP/1.0 401 Access denied"); - die("Access denied!"); -} - -$options = array( - 'use_transactions' => false, - 'log_line_break' => "\n", - 'idxname_format' => '%s', - 'debug' => false, - 'quote_identifier' => true, - 'force_defaults' => false, - 'portability' => false -); - -$schema =& MDB2_Schema::factory($config->get('db_dsnw'), $options); -$schema->db->supported['transactions'] = false; - -// send as text/xml when opened in browser -if ($_SERVER['REMOTE_ADDR']) - header('Content-Type: text/xml'); - - -if (PEAR::isError($schema)) { - $error = $schema->getMessage() . ' ' . $schema->getUserInfo(); -} -else { - $dump_config = array( - // 'output_mode' => 'file', - 'output' => 'print_schema', - ); - - $definition = $schema->getDefinitionFromDatabase(); - if (PEAR::isError($definition)) { - $error = $definition->getMessage() . ' ' . $definition->getUserInfo(); - } - else { - $operation = $schema->dumpDatabase($definition, $dump_config, MDB2_SCHEMA_DUMP_STRUCTURE); - if (PEAR::isError($operation)) { - $error = $operation->getMessage() . ' ' . $operation->getUserInfo(); - } - } -} - -$schema->disconnect(); - -//if ($error) -// fputs(STDERR, $error); - -?> diff --git a/bin/makedoc.sh b/bin/makedoc.sh deleted file mode 100755 index 5925d0a3f..000000000 --- a/bin/makedoc.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -TITLE="RoundCube Classes" -PACKAGES="Core" - -PATH_PROJECT=$PWD/program/include -PATH_DOCS=$PWD/doc/phpdoc -PATH_PHPDOC=/usr/local/php5/bin/phpdoc - -OUTPUTFORMAT=HTML -CONVERTER=frames -TEMPLATE=earthli -PRIVATE=off - -# make documentation -$PATH_PHPDOC -d $PATH_PROJECT -t $PATH_DOCS -ti "$TITLE" -dn $PACKAGES \ --o $OUTPUTFORMAT:$CONVERTER:$TEMPLATE -pp $PRIVATE - |