视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.

源代码在线查看: pecl.php

软件大小: 62625 K
上传用户: qqwoshi
关键词: ddns 视频监控 网络
下载地址: 免注册下载 普通下载 VIP

相关代码

								/**				 * Channel Validator for the pecl.php.net channel				 *				 * PHP 4 and PHP 5				 *				 * @category   pear				 * @package    PEAR				 * @author     Greg Beaver 				 * @copyright  1997-2006 The PHP Group				 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0				 * @version    CVS: $Id: PECL.php,v 1.8 2006/05/12 02:38:58 cellog Exp $				 * @link       http://pear.php.net/package/PEAR				 * @since      File available since Release 1.4.0a5				 */				/**				 * This is the parent class for all validators				 */				require_once 'PEAR/Validate.php';				/**				 * Channel Validator for the pecl.php.net channel				 * @category   pear				 * @package    PEAR				 * @author     Greg Beaver 				 * @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 1.4.0a5				 */				class PEAR_Validator_PECL extends PEAR_Validate				{				    function validateVersion()				    {				        if ($this->_state == PEAR_VALIDATE_PACKAGING) {				            $version = $this->_packagexml->getVersion();				            $versioncomponents = explode('.', $version);				            $last = array_pop($versioncomponents);				            if (substr($last, 1, 2) == 'rc') {				                $this->_addFailure('version', 'Release Candidate versions must have ' .				                'upper-case RC, not lower-case rc');				                return false;				            }				        }				        return true;				    }								    function validatePackageName()				    {				        $ret = parent::validatePackageName();				        if ($this->_packagexml->getPackageType() == 'extsrc' ||				              $this->_packagexml->getPackageType() == 'zendextsrc') {				            if (strtolower($this->_packagexml->getPackage()) !=				                  strtolower($this->_packagexml->getProvidesExtension())) {				                $this->_addWarning('providesextension', 'package name "' .				                    $this->_packagexml->getPackage() . '" is different from extension name "' .				                    $this->_packagexml->getProvidesExtension() . '"');				            }				        }				        return $ret;				    }				}				?>			

相关资源