亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? cvs.php

?? PhpWiki是sourceforge的一個開源項目
?? PHP
?? 第 1 頁 / 共 3 頁
字號:
<?phprcs_id('$Id: cvs.php,v 1.24 2004/12/08 12:55:51 rurban Exp $');/** * Backend for handling CVS repository.  * * ASSUMES: that the shell commands 'cvs', 'grep', 'rm', are all located  * ASSUMES: in the path of the server calling this script. * * Author: Gerrit Riessen, gerrit.riessen@open-source-consultants.de */require_once('lib/WikiDB/backend.php');require_once('lib/ErrorManager.php');/**  * Constants used by the CVS backend  **/// these are the parameters defined in db_paramsdefine( 'CVS_DOC_DIR',              'doc_dir' );define( 'CVS_REPOSITORY',           'repository' );define( 'CVS_CHECK_FOR_REPOSITORY', 'check_for_repository' );define( 'CVS_DEBUG_FILE',           'debug_file' );define( 'CVS_PAGE_SOURCE',          'pgsrc' );define( 'CVS_MODULE_NAME',          'module_name' );// these are the things that are defined in the page hash// CMD == Cvs Meta Datadefine( 'CMD_LAST_MODIFIED', 'lastmodified' );define( 'CMD_CONTENT',       '%content');define( 'CMD_CREATED',       'created');define( 'CMD_VERSION',       'version');define( 'CMD_AUTHOR',        'author');define( 'CMD_LINK_ATT',      '_links_' );// file names used to store specific informationdefine( 'CVS_MP_FILE',              '.most_popular' );define( 'CVS_MR_FILE',              '.most_recent' );class WikiDB_backend_cvsextends WikiDB_backend{    var $_docDir;    var $_repository;    var $_module_name;    var $_debug_file;    /**     * In the following parameters should be defined in dbparam:     *   . wiki ==> directory where the pages should be stored     *              this is not the CVS repository location     *   . repository ==> local directory where the repository should be      *                    created. This can also be a :pserver: but then     *                    set check_for_repository to false and checkout     *                    the documents beforehand. (This is basically CVSROOT)     *   . check_for_repository ==> boolean flag to indicate whether the      *                              repository should be created, this only     *                              applies to local directories, for pserver     *                              set this to false and check out the      *                              document base beforehand     *   . debug_file ==> file name where debug information should be sent.     *                    If file doesn't exist then it's created, if this     *                    is empty, then debugging is turned off.     *   . pgsrc ==> directory name where the default wiki pages are stored.     *               This is only required if the backend is to create a     *               new CVS repository.     *     * The class also adds a parameter 'module_name' to indicate the name     * of the cvs module that is being used to version the documents. The     * module_name is assumed to be the base name of directory given in     * wiki, e.g. if wiki == '/some/path/to/documents' then module_name      * becomes 'documents' and this module will be created in the CVS      * repository or assumed to exist. If on the other hand the parameter     * already exists, then it is not overwritten.     */    function WikiDB_backend_cvs( $dbparam )     {        // setup all the instance values.        $this->_docDir = $dbparam{CVS_DOC_DIR};        $this->_repository = $dbparam{CVS_REPOSITORY};        if ( ! $dbparam{CVS_MODULE_NAME} ) {            $this->_module_name = basename( $this->_docDir );            $dbparam{CVS_MODULE_NAME} = $this->_module_name;        } else {            $this->_module_name = $dbparam{CVS_MODULE_NAME};        }        $this->_debug_file = $dbparam{CVS_DEBUG_FILE};        if ( $dbparam{CVS_CHECK_FOR_REPOSITORY}             && !( is_dir( $this->_repository )                   && is_dir( $this->_repository . "/CVSROOT" )                   && is_dir( $this->_repository . "/" . $this->_module_name ))) {            $this->_cvsDebug( sprintf("Creating new repository [%s]", $this->_repository) );            // doesn't exist, need to create it and the replace the wiki             // document directory.            $this->_mkdir( $this->_repository, 0775 );                // assume that the repository is a local directory, prefix :local:            if ( !ereg( "^:local:", $this->_repository ) ) {                $this->_repository = ":local:" . $this->_repository;            }                        $cmdLine = sprintf( "cvs -d \"%s\" init", $this->_repository);            $this->_execCommand( $cmdLine, $cmdOutput, true );            $this->_mkdir( $this->_docDir, 0775 );            $cmdLine = sprintf("cd %s; cvs -d \"%s\" import -m no_message "                               ."%s V R", $this->_docDir, $this->_repository,                               $this->_module_name );            $this->_execCommand( $cmdLine, $cmdOutput, true );                        // remove the wiki directory and check it out from the             // CVS repository            $cmdLine = sprintf( "rm -fr %s; cd %s; cvs -d \"%s\" co %s",                                $this->_docDir, dirname($this->_docDir),                                 $this->_repository, $this->_module_name);            $this->_execCommand( $cmdLine, $cmdOutput, true );                        // add the default pages using the update_pagedata            $metaData = array();            $metaData[$AUTHOR] = "PhpWiki -- CVS Backend";            if ( is_dir( $dbparam[CVS_PAGE_SOURCE] ) ) {                $d = opendir( $dbparam[CVS_PAGE_SOURCE] );                while ( $entry = readdir( $d ) ) {                    $filename = $dbparam[CVS_PAGE_SOURCE] . "/" . $entry;                    $this->_cvsDebug( sprintf("Found [%s] in [%s]", $entry, $dbparam[CVS_PAGE_SOURCE]) );                                        if ( is_file( $filename ) ) {                        $metaData[CMD_CONTENT] = join('',file($filename));                        $this->update_pagedata( $entry, $metaData );                    }                }                closedir( $d );            }                        // ensure that the results of the is_dir are cleared            clearstatcache();        }    }    /**     * Return: metadata about page     */    function get_pagedata($pagename)     {        // the metadata information about a page is stored in the         // CVS directory of the document root in serialized form. The        // file always has the name, i.e. '_$pagename'.        $metaFile = $this->_docDir . "/CVS/_" . $pagename;        if ( file_exists( $metaFile ) ) {                        $megaHash =                  unserialize(join( '',$this->_readFileWithPath($metaFile)));            $filename = $this->_docDir . "/" . $pagename;            if ( file_exists( $filename ) ) {                $megaHash[CMD_CONTENT] = $this->_readFileWithPath( $filename );            } else {                $megaHash[CMD_CONTENT] = "";            }            $this->_updateMostRecent( $pagename );            $this->_updateMostPopular( $pagename );            return $megaHash;        } else {            return false;        }    }    /**     * This will create a new page if page being requested does not     * exist.     */    function update_pagedata($pagename, $newdata = array() )     {        // check argument        if ( ! is_array( $newdata ) ) {            trigger_error("update_pagedata: Argument 'newdata' was not array",                           E_USER_WARNING);        }        // retrieve the meta data        $metaData = $this->get_pagedata( $pagename );        if ( ! $metaData ) {            $this->_cvsDebug("update_pagedata: no meta data found");            // this means that the page does not exist, we need to create            // it.            $metaData = array();            $metaData[CMD_CREATED] = time();            $metaData[CMD_VERSION] = "1";            if ( ! isset($newdata[CMD_CONTENT])) {                $metaData[CMD_CONTENT] = "";            } else {                $metaData[CMD_CONTENT] = $newdata[CMD_CONTENT];            }            // create an empty page ...            $this->_writePage( $pagename, $metaData[CMD_CONTENT] );            $this->_addPage( $pagename );            // make sure that the page is written and committed a second time            unset( $newdata[CMD_CONTENT] );            unset( $metaData[CMD_CONTENT] );        }        // change any meta data information        foreach ( $newdata as $key => $value ) {            if ( $value == false || empty( $value ) ) {                unset( $metaData[$key] );            } else {                $metaData[$key] = $value;            }        }        // update the page data, if required. Use newdata because it could        // be empty and thus unset($metaData[CMD_CONTENT]).        if ( isset( $newdata[CMD_CONTENT] ) ) {            $this->_writePage( $pagename, $newdata[CMD_CONTENT] );        }        // remove any content from the meta data before storing it        unset( $metaData[CMD_CONTENT] );        $metaData[CMD_LAST_MODIFIED] = time();        $metaData[CMD_VERSION] = $this->_commitPage( $pagename, $metaData );        $this->_writeMetaInfo( $pagename, $metaData );    }    function get_latest_version($pagename)     {        $metaData = $this->get_pagedata( $pagename );        if ( $metaData ) {            // the version number is everything after the '1.'            return $metaData[CMD_VERSION];        } else {            $this->_cvsDebug(sprintf("get_latest_versioned FAILED for [%s]", $pagename));            return 0;        }    }    function get_previous_version($pagename, $version)     {        // cvs increments the version numbers, so this is real easy ;-)        return ($version > 0 ? $version - 1 : 0);    }    /**     * the version parameter is assumed to be everything after the '1.'     * in the CVS versioning system.     */    function get_versiondata($pagename, $version, $want_content = false)     {        $this->_cvsDebug( "get_versiondata: [$pagename] [$version] [$want_content]" );              $filedata = "";        if ( $want_content ) {            // retrieve the version from the repository            $cmdLine = sprintf("cvs -d \"%s\" co -p -r 1.%d %s/%s 2>&1",                                $this->_repository, $version,                                $this->_module_name, $pagename );            $this->_execCommand( $cmdLine, $filedata, true );                    // TODO: DEBUG: 5 is a magic number here, depending on the            // TODO: DEBUG: version of cvs used here, 5 might have to            // TODO: DEBUG: change. Basically find a more reliable way of            // TODO: DEBUG: doing this.            // the first 5 lines contain various bits of             // administrative information that can be ignored.            for ( $i = 0; $i < 5; $i++ ) {                array_shift( $filedata );            }        }        /**         * Now obtain the rest of the pagehash information, this is contained         * in the log message for the revision in serialized form.         */        $cmdLine = sprintf("cd %s; cvs log -r1.%d %s", $this->_docDir,                           $version, $pagename );        $this->_execCommand( $cmdLine, $logdata, true );        // shift log data until we get to the 'revision X.X' line        // FIXME: ensure that we don't enter an endless loop here        while ( !ereg( "^revision 1.([0-9]+)$", $logdata[0], $revInfo ) ) {            array_shift( $logdata );        }        // serialized hash information now stored in position 2        $rVal = unserialize( _unescape( $logdata[2] ) );        // version information is incorrect        $rVal[CMD_VERSION] = $revInfo[1];        $rVal[CMD_CONTENT] = $filedata;        foreach ( $rVal as $key => $value ) {            $this->_cvsDebug( "$key == [$value]" );        }              return $rVal;    }    /**     * See ADODB for a better delete_page(), which can be undone and is seen in RecentChanges.     * See backend.php     */    //function delete_page($pagename) { $this->purge_page($pagename); }    /**     * This returns false if page was not deleted or could not be deleted     * else return true.     */    function purge_page($pagename)     {        $this->_cvsDebug( "delete_page [$pagename]") ;        $filename = $this->_docDir . "/" . $pagename;        $metaFile = $this->_docDir . "/CVS/_" . $pagename;                // obtain a write block before deleting the file        if ( $this->_deleteFile( $filename ) == false ) {            return false;        }                $this->_deleteFile( $metaFile );                $this->_removePage( $pagename );        return true;    }    /**     * For now delete and create a new one.     *     * This returns false if page was not renamed,     * else return true.     */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品在线一区二区三区| 久久se这里有精品| 久久人人超碰精品| 日韩一二在线观看| 宅男噜噜噜66一区二区66| 日本韩国欧美一区二区三区| 不卡的av电影| 99综合影院在线| av色综合久久天堂av综合| 不卡一区二区三区四区| www.久久精品| 91日韩精品一区| 色婷婷国产精品| 欧美视频在线一区二区三区| 欧美性色欧美a在线播放| 欧美色欧美亚洲另类二区| 一本久道久久综合中文字幕| 色94色欧美sute亚洲线路一久| 91视频在线观看| 在线视频国产一区| 欧美最猛性xxxxx直播| 欧美男生操女生| 337p亚洲精品色噜噜狠狠| 欧美一二三区在线观看| 欧美xxxxxxxxx| 国产日韩一级二级三级| 亚洲人成网站色在线观看| 一区二区三区中文字幕电影| 亚洲444eee在线观看| 日韩综合在线视频| 国产乱妇无码大片在线观看| 成人污污视频在线观看| 色婷婷国产精品| 欧美一级一级性生活免费录像| 2020国产成人综合网| 欧美国产综合色视频| 一区二区三区四区国产精品| 日韩成人精品在线| 国产成人综合视频| 91久久国产最好的精华液| 欧美一区二区啪啪| 中文字幕欧美国产| 亚洲6080在线| 成人一区二区三区| 欧美日韩亚洲另类| 国产精品午夜电影| 婷婷六月综合网| 国产露脸91国语对白| 欧美视频精品在线观看| 国产日韩高清在线| 亚洲第一精品在线| 国产成人精品免费| 欧美日韩和欧美的一区二区| 久久久美女毛片| 亚洲成av人影院| 成人av网在线| 亚洲精品一区在线观看| 亚洲狠狠爱一区二区三区| 国产精一品亚洲二区在线视频| 精品视频在线免费看| 中文字幕一区在线观看| 麻豆精品一区二区av白丝在线 | 欧美一级久久久久久久大片| 中文字幕+乱码+中文字幕一区| 亚洲成av人片在www色猫咪| 成人禁用看黄a在线| 日韩免费看网站| 亚洲小说欧美激情另类| 不卡区在线中文字幕| 精品福利在线导航| 免费人成在线不卡| 欧美日韩在线三区| 亚洲卡通动漫在线| 99riav久久精品riav| 欧美高清在线精品一区| 国产一区二区三区| 精品日韩一区二区| 美女在线一区二区| 4438成人网| 免费精品视频在线| 制服丝袜在线91| 日韩精品欧美精品| 制服视频三区第一页精品| 亚洲国产三级在线| 欧美日韩一区不卡| 亚洲午夜免费电影| 欧美日韩一区在线| 丝袜美腿亚洲色图| 久久久不卡网国产精品二区| 国产一区二区按摩在线观看| 2023国产一二三区日本精品2022| 久久99精品国产麻豆婷婷| 欧美成人免费网站| 国产精品中文字幕日韩精品| 久久久精品免费观看| 国产乱码精品一品二品| 欧美激情在线看| www.欧美日韩| 亚洲国产色一区| 日韩亚洲欧美综合| 韩国成人在线视频| 国产人成一区二区三区影院| 波多野结衣在线一区| 国产精品福利影院| 欧美性受极品xxxx喷水| 日韩不卡在线观看日韩不卡视频| 精品少妇一区二区| 国产精品亚洲专一区二区三区 | 中文在线一区二区| 91玉足脚交白嫩脚丫在线播放| 一区二区三区在线免费观看| 欧美日韩久久久一区| 久久精品国产99久久6| 国产欧美日韩另类视频免费观看| 色综合一区二区三区| 日韩精品1区2区3区| 国产嫩草影院久久久久| 欧美三日本三级三级在线播放| 免费成人在线影院| 国产精品日韩成人| 欧美丰满美乳xxx高潮www| 国产一区二区在线观看视频| 亚洲美女偷拍久久| 日韩欧美视频一区| 99re热这里只有精品免费视频| 日韩综合一区二区| 中文字幕一区三区| 精品久久久久久久久久久院品网 | 国产精品久久久久久久久免费丝袜 | 亚洲免费视频成人| 欧美mv日韩mv亚洲| 一本色道**综合亚洲精品蜜桃冫| 免费在线观看成人| 亚洲特黄一级片| 久久亚洲欧美国产精品乐播 | 91香蕉视频黄| 精品一区二区三区在线播放| 一区二区三区视频在线看| 国产偷国产偷精品高清尤物| 538在线一区二区精品国产| 成人免费观看视频| 韩日欧美一区二区三区| 日韩电影免费在线| 亚洲乱码国产乱码精品精可以看 | 韩国av一区二区三区四区| 亚洲二区在线观看| 中文字幕制服丝袜成人av | 青青国产91久久久久久 | 欧美在线观看视频在线| 懂色av一区二区三区蜜臀| 日本亚洲电影天堂| 亚洲va欧美va国产va天堂影院| 亚洲欧美日韩国产手机在线| 国产日韩欧美不卡在线| 欧美大片拔萝卜| 日韩免费成人网| 91精品国产免费| 91麻豆精品国产91久久久久| 欧美午夜精品久久久久久超碰| 97精品电影院| 色老头久久综合| 色偷偷成人一区二区三区91| 色综合视频一区二区三区高清| 99国产欧美久久久精品| 99国产麻豆精品| 91免费国产在线观看| 欧洲精品中文字幕| 欧美色中文字幕| 6080yy午夜一二三区久久| 欧美日本在线看| 在线播放日韩导航| 日韩欧美国产麻豆| 久久只精品国产| 欧美精彩视频一区二区三区| 国产精品麻豆视频| 亚洲精品免费在线| 一区二区三区中文字幕| 午夜免费久久看| 裸体在线国模精品偷拍| 国产精品亚洲第一区在线暖暖韩国| 国产经典欧美精品| 成人av在线资源网| 欧美在线观看一区二区| 欧美一区二区三区在线观看视频| 日韩三级伦理片妻子的秘密按摩| 精品国产成人在线影院| 国产精品区一区二区三区| 亚洲乱码日产精品bd| 日韩av高清在线观看| 国产一区二区三区蝌蚪| 97精品视频在线观看自产线路二| 在线观看日韩国产| 精品国产一区久久| 国产精品第一页第二页第三页| 亚洲成av人片在线| 高清av一区二区| 正在播放亚洲一区| 国产精品久久久久毛片软件| 调教+趴+乳夹+国产+精品| 经典三级视频一区|