install.php

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· PHP 代码 · 共 1,172 行 · 第 1/4 页

PHP
1,172
字号
<?php/** * PEAR_Command_Install (install, upgrade, upgrade-all, uninstall, bundle, run-scripts commands) * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt.  If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category   pear * @package    PEAR * @author     Stig Bakken <ssb@php.net> * @author     Greg Beaver <cellog@php.net> * @copyright  1997-2006 The PHP Group * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 * @version    CVS: $Id: Install.php,v 1.132 2007/06/11 05:32:14 cellog Exp $ * @link       http://pear.php.net/package/PEAR * @since      File available since Release 0.1 *//** * base class */require_once 'PEAR/Command/Common.php';/** * PEAR commands for installation or deinstallation/upgrading of * packages. * * @category   pear * @package    PEAR * @author     Stig Bakken <ssb@php.net> * @author     Greg Beaver <cellog@php.net> * @copyright  1997-2006 The PHP Group * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 * @version    Release: 1.6.1 * @link       http://pear.php.net/package/PEAR * @since      Class available since Release 0.1 */class PEAR_Command_Install extends PEAR_Command_Common{    // {{{ properties    var $commands = array(        'install' => array(            'summary' => 'Install Package',            'function' => 'doInstall',            'shortcut' => 'i',            'options' => array(                'force' => array(                    'shortopt' => 'f',                    'doc' => 'will overwrite newer installed packages',                    ),                'loose' => array(                    'shortopt' => 'l',                    'doc' => 'do not check for recommended dependency version',                    ),                'nodeps' => array(                    'shortopt' => 'n',                    'doc' => 'ignore dependencies, install anyway',                    ),                'register-only' => array(                    'shortopt' => 'r',                    'doc' => 'do not install files, only register the package as installed',                    ),                'soft' => array(                    'shortopt' => 's',                    'doc' => 'soft install, fail silently, or upgrade if already installed',                    ),                'nobuild' => array(                    'shortopt' => 'B',                    'doc' => 'don\'t build C extensions',                    ),                'nocompress' => array(                    'shortopt' => 'Z',                    'doc' => 'request uncompressed files when downloading',                    ),                'installroot' => array(                    'shortopt' => 'R',                    'arg' => 'DIR',                    'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT), use packagingroot for RPM',                    ),                'packagingroot' => array(                    'shortopt' => 'P',                    'arg' => 'DIR',                    'doc' => 'root directory used when packaging files, like RPM packaging',                    ),                'ignore-errors' => array(                    'doc' => 'force install even if there were errors',                    ),                'alldeps' => array(                    'shortopt' => 'a',                    'doc' => 'install all required and optional dependencies',                    ),                'onlyreqdeps' => array(                    'shortopt' => 'o',                    'doc' => 'install all required dependencies',                    ),                'offline' => array(                    'shortopt' => 'O',                    'doc' => 'do not attempt to download any urls or contact channels',                    ),                'pretend' => array(                    'shortopt' => 'p',                    'doc' => 'Only list the packages that would be downloaded',                    ),                ),            'doc' => '[channel/]<package> ...Installs one or more PEAR packages.  You can specify a package toinstall in four ways:"Package-1.0.tgz" : installs from a local file"http://example.com/Package-1.0.tgz" : installs fromanywhere on the net."package.xml" : installs the package described inpackage.xml.  Useful for testing, or for wrapping a PEAR package inanother package manager such as RPM."Package[-version/state][.tar]" : queries your default channel\'s server({config master_server}) and downloads the newest package withthe preferred quality/state ({config preferred_state}).To retrieve Package version 1.1, use "Package-1.1," to retrievePackage state beta, use "Package-beta."  To retrieve an uncompressedfile, append .tar (make sure there is no file by the same name first)To download a package from another channel, prefix with the channel name like"channel/Package"More than one package may be specified at once.  It is ok to mix thesefour ways of specifying packages.'),        'upgrade' => array(            'summary' => 'Upgrade Package',            'function' => 'doInstall',            'shortcut' => 'up',            'options' => array(                'force' => array(                    'shortopt' => 'f',                    'doc' => 'overwrite newer installed packages',                    ),                'loose' => array(                    'shortopt' => 'l',                    'doc' => 'do not check for recommended dependency version',                    ),                'nodeps' => array(                    'shortopt' => 'n',                    'doc' => 'ignore dependencies, upgrade anyway',                    ),                'register-only' => array(                    'shortopt' => 'r',                    'doc' => 'do not install files, only register the package as upgraded',                    ),                'nobuild' => array(                    'shortopt' => 'B',                    'doc' => 'don\'t build C extensions',                    ),                'nocompress' => array(                    'shortopt' => 'Z',                    'doc' => 'request uncompressed files when downloading',                    ),                'installroot' => array(                    'shortopt' => 'R',                    'arg' => 'DIR',                    'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)',                    ),                'ignore-errors' => array(                    'doc' => 'force install even if there were errors',                    ),                'alldeps' => array(                    'shortopt' => 'a',                    'doc' => 'install all required and optional dependencies',                    ),                'onlyreqdeps' => array(                    'shortopt' => 'o',                    'doc' => 'install all required dependencies',                    ),                'offline' => array(                    'shortopt' => 'O',                    'doc' => 'do not attempt to download any urls or contact channels',                    ),                'pretend' => array(                    'shortopt' => 'p',                    'doc' => 'Only list the packages that would be downloaded',                    ),                ),            'doc' => '<package> ...Upgrades one or more PEAR packages.  See documentation for the"install" command for ways to specify a package.When upgrading, your package will be updated if the provided newpackage has a higher version number (use the -f option if you need toupgrade anyway).More than one package may be specified at once.'),        'upgrade-all' => array(            'summary' => 'Upgrade All Packages',            'function' => 'doUpgradeAll',            'shortcut' => 'ua',            'options' => array(                'nodeps' => array(                    'shortopt' => 'n',                    'doc' => 'ignore dependencies, upgrade anyway',                    ),                'register-only' => array(                    'shortopt' => 'r',                    'doc' => 'do not install files, only register the package as upgraded',                    ),                'nobuild' => array(                    'shortopt' => 'B',                    'doc' => 'don\'t build C extensions',                    ),                'nocompress' => array(                    'shortopt' => 'Z',                    'doc' => 'request uncompressed files when downloading',                    ),                'installroot' => array(                    'shortopt' => 'R',                    'arg' => 'DIR',                    'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT), use packagingroot for RPM',                    ),                'ignore-errors' => array(                    'doc' => 'force install even if there were errors',                    ),                'loose' => array(                    'doc' => 'do not check for recommended dependency version',                    ),                ),            'doc' => 'Upgrades all packages that have a newer release available.  Upgrades aredone only if there is a release available of the state specified in"preferred_state" (currently {config preferred_state}), or a state consideredmore stable.'),        'uninstall' => array(            'summary' => 'Un-install Package',            'function' => 'doUninstall',            'shortcut' => 'un',            'options' => array(                'nodeps' => array(                    'shortopt' => 'n',                    'doc' => 'ignore dependencies, uninstall anyway',                    ),                'register-only' => array(                    'shortopt' => 'r',                    'doc' => 'do not remove files, only register the packages as not installed',                    ),                'installroot' => array(                    'shortopt' => 'R',                    'arg' => 'DIR',                    'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)',                    ),                'ignore-errors' => array(                    'doc' => 'force install even if there were errors',                    ),                'offline' => array(                    'shortopt' => 'O',                    'doc' => 'do not attempt to uninstall remotely',                    ),                ),            'doc' => '[channel/]<package> ...Uninstalls one or more PEAR packages.  More than one package may bespecified at once.  Prefix with channel name to uninstall from achannel not in your default channel ({config default_channel})'),        'bundle' => array(            'summary' => 'Unpacks a Pecl Package',            'function' => 'doBundle',            'shortcut' => 'bun',            'options' => array(                'destination' => array(                   'shortopt' => 'd',                    'arg' => 'DIR',                    'doc' => 'Optional destination directory for unpacking (defaults to current path or "ext" if exists)',                    ),                'force' => array(                    'shortopt' => 'f',                    'doc' => 'Force the unpacking even if there were errors in the package',                ),            ),            'doc' => '<package>Unpacks a Pecl Package into the selected location. It will download thepackage if needed.'),        'run-scripts' => array(            'summary' => 'Run Post-Install Scripts bundled with a package',            'function' => 'doRunScripts',

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?