当前位置: 首页>>代码示例>>PHP>>正文


PHP rcs_id函数代码示例

本文整理汇总了PHP中rcs_id函数的典型用法代码示例。如果您正苦于以下问题:PHP rcs_id函数的具体用法?PHP rcs_id怎么用?PHP rcs_id使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了rcs_id函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: rcs_id

<?php

// -*-php-*-
rcs_id('$Id: CategoryPage.php,v 1.2 2004/07/08 20:30:07 rurban Exp $');
/**
Copyright 1999, 2000, 2001, 2002 $ThePhpWikiProgrammingTeam

This file is part of PhpWiki.

PhpWiki is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

PhpWiki is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PhpWiki; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
#require_once('lib/InlineParser.php');
require_once 'lib/BlockParser.php';
/**
 * CategoryPage plugin.
 *
 * This puts boilerplate text on a category page to make it easily usable
 * by novices.
 *
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:CategoryPage.php

示例2: rcs_id

<?php

// -*-php-*-
rcs_id('$Id: RichTable.php,v 1.7 2005/05/06 17:44:24 rurban Exp $');
/**
  RichTablePlugin
  A PhpWiki plugin that allows insertion of tables using a richer syntax.
  Src: http://www.it.iitb.ac.in/~sameerds/phpwiki/index.php/RichTablePlugin
  Docs: http://phpwiki.org/RichTablePlugin
*/
/* 
 * Copyright (C) 2003 Sameer D. Sahasrabuddhe
 * Copyright (C) 2005 $ThePhpWikiProgrammingTeam
 *
 * This file is part of PhpWiki.
 *
 * PhpWiki is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * PhpWiki is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with PhpWiki; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
// error_reporting (E_ALL & ~E_NOTICE);
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:RichTable.php

示例3: rcs_id

<?php

rcs_id('PHP Fortune - Made by henrik@aasted.org. HP: http://www.aasted.org');
rcs_id('$Id: fortune.php,v 1.2 2004/11/21 11:59:20 rurban Exp $');
/* 
Main methods to use:
 quoteFromDir($dir):
   Quotes from any of the fortune-files in the dir.
 getRandomQuote($file):
   Quotes from the specific file.
   
 Written by Henrik Aasted Sorensen, henrik@aasted.org
 Read more at http://www.aasted.org/quote
*/
class Fortune
{
    function quoteFromDir($dir)
    {
        $amount = 0;
        $index = 0;
        if ($handle = opendir($dir)) {
            while (false !== ($file = readdir($handle))) {
                if (strpos($file, ".dat") != false) {
                    $len = strlen($file);
                    if (substr($file, $len - 4) == ".dat") {
                        $number = $this->getNumberOfQuotes($dir . "/" . $file);
                        $amount += $number;
                        $quotes[$index] = $amount;
                        $files[$index] = $file;
                        $index++;
                    }
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:fortune.php

示例4: rcs_id

<?php

rcs_id('$Id: themeinfo.php,v 1.3 2005/09/18 13:04:37 rurban Exp $');
/*
 * This file defines the default appearance ("theme") of PhpWiki.
 */
require_once 'lib/Theme.php';
$WikiTheme = new WikiTheme('Crao');
// CSS file defines fonts, colors and background images for this
// style.  The companion '*-heavy.css' file isn't defined, it's just
// expected to be in the same directory that the base style is in.
// This should result in phpwiki-printer.css being used when
// printing or print-previewing with style "PhpWiki" selected.
$WikiTheme->setDefaultCSS('Crao', array('' => 'crao.css', 'print' => ''));
// This allows one to manually select "Printer" style (when browsing page)
// to see what the printer style looks like.
//$WikiTheme->addAlternateCSS(_("Printer"), 'phpwiki-printer.css');
//$WikiTheme->addAlternateCSS(_("Top & bottom toolbars"), 'phpwiki-topbottombars.css');
//$WikiTheme->addAlternateCSS(_("Modern"), 'phpwiki-modern.css');
/**
 * The logo image appears on every page and links to the HomePage.
 */
//$WikiTheme->addImageAlias('logo', 'logo.png');
/**
 * The Signature image is shown after saving an edited page. If this
 * is not set, any signature defined in index.php will be used. If it
 * is not defined by index.php or in here then the "Thank you for
 * editing..." screen will be omitted.
 */
// Comment this next line out to enable signature.
$WikiTheme->addImageAlias('signature', false);
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:themeinfo.php

示例5: rcs_id

<?php

// -*-php-*-
rcs_id('$Id: WikiAdminChown.php,v 1.8 2005/01/29 19:48:14 rurban Exp $');
/*
Copyright 2004 $ThePhpWikiProgrammingTeam

This file is part of PhpWiki.

PhpWiki is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

PhpWiki is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PhpWiki; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
/**
 * Usage:   <?plugin WikiAdminChown s||=* ?> or called via WikiAdminSelect
 * @author:  Reini Urban <rurban@x-ray.at>
 *
 * KNOWN ISSUES:
 * Requires PHP 4.2 so far.
 */
require_once 'lib/PageList.php';
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:WikiAdminChown.php

示例6: rcs_id

<?php

// display.php: fetch page or get default content
rcs_id('$Id: display.php,v 1.65 2005/05/05 08:54:40 rurban Exp $');
require_once 'lib/Template.php';
require_once 'common/reference/CrossReferenceFactory.class.php';
/**
 * Extract keywords from Category* links on page. 
 */
function GleanKeywords($page)
{
    if (!defined('KEYWORDS')) {
        return '';
    }
    include_once "lib/TextSearchQuery.php";
    $search = new TextSearchQuery(KEYWORDS, true);
    $KeywordLinkRegexp = $search->asRegexp();
    // iterate over the pagelinks (could be a large number) [15ms on PluginManager]
    // or do a titleSearch and check the categories if they are linked?
    $links = $page->getPageLinks();
    $keywords[] = SplitPagename($page->getName());
    while ($link = $links->next()) {
        if (preg_match($KeywordLinkRegexp, $link->getName(), $m)) {
            $keywords[] = SplitPagename($m[0]);
        }
    }
    $keywords[] = WIKI_NAME;
    return join(', ', $keywords);
}
/** Make a link back to redirecting page.
 *
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:display.php

示例7: rcs_id

<?php

//-*-php-*-
rcs_id('$Id: WikiUserNew.php,v 1.137 2006/05/03 06:05:37 rurban Exp $');
/* Copyright (C) 2004,2005 $ThePhpWikiProgrammingTeam
 *
 * This file is part of PhpWiki.
 * 
 * PhpWiki is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * PhpWiki is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with PhpWiki; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
/**
 * This is a complete OOP rewrite of the old WikiUser code with various
 * configurable external authentication methods.
 *
 * There's only one entry point, the function WikiUser which returns 
 * a WikiUser object, which contains the name, authlevel and user's preferences.
 * This object might get upgraded during the login step and later also.
 * There exist three preferences storage methods: cookie, homepage and db,
 * and multiple password checking methods.
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:WikiUserNew.php

示例8: rcs_id

<?php

// -*-php-*-
rcs_id('$Id: UserPreferences.php,v 1.35 2004/10/13 14:13:55 rurban Exp $');
/**
Copyright (C) 2001,2002,2003,2004,2005 $ThePhpWikiProgrammingTeam

This file is part of PhpWiki.

PhpWiki is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

PhpWiki is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PhpWiki; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
/**
 * Plugin to allow any user to adjust his own preferences.
 * This must be used in the page "UserPreferences".
 * Prefs are stored in metadata in the current session, 
 *  within the user's home page or in a database.
 *
 * Theme extension: Themes are able to extend the predefined list 
 * of preferences.
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:UserPreferences.php

示例9: rcs_id

<?php

// -*-php-*-
rcs_id('$Id: PDO.php,v 1.7 2006/05/14 12:28:03 rurban Exp $');
/*
 Copyright 2005 $ThePhpWikiProgrammingTeam

 This file is part of PhpWiki.

 PhpWiki is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 PhpWiki is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with PhpWiki; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
/**
 * @author: Reini Urban
 */
require_once 'lib/WikiDB/backend.php';
class WikiDB_backend_PDO extends WikiDB_backend
{
    function WikiDB_backend_PDO($dbparams)
    {
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:PDO.php

示例10: rcs_id

<?php

// -*-php-*-
rcs_id('$Id: Transclude.php,v 1.9 2004/06/14 11:31:39 rurban Exp $');
/**
Copyright 1999, 2000, 2001, 2002 $ThePhpWikiProgrammingTeam

This file is part of PhpWiki.

PhpWiki is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

PhpWiki is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PhpWiki; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
/**
 * Transclude:  Include an external web page within the body of a wiki page.
 *
 * Usage:
 *  <?plugin Transclude
 *           src=http://www.internet-technology.de/fourwins_de.htm
 *  ?>
 *
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:Transclude.php

示例11: rcs_id

<?php

// -*-php-*-
rcs_id('$Id: SiteMap.php,v 1.13 2004/12/14 21:36:06 rurban Exp $');
/**
Copyright 1999,2000,2001,2002,2004 $ThePhpWikiProgrammingTeam

This file is part of PhpWiki.

PhpWiki is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

PhpWiki is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PhpWiki; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
/**
 * http://sourceforge.net/tracker/?func=detail&aid=537380&group_id=6121&atid=306121
 *
 * Submitted By: Cuthbert Cat (cuthbertcat)
 *
 * This is a quick mod of BackLinks to do the job recursively. If your
 * site is categorized correctly, and all the categories are listed in
 * CategoryCategory, then a RecBackLinks there will produce a contents
开发者ID:pombredanne,项目名称:tuleap,代码行数:31,代码来源:SiteMap.php

示例12: rcs_id

<?php

//-*-php-*-
rcs_id('$Id: RatingsUser.php,v 1.5 2004/11/15 16:00:02 rurban Exp $');
/* Copyright (C) 2004 Dan Frankowski
 *
 * This file is (not yet) part of PhpWiki.
 * 
 * PhpWiki is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * PhpWiki is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with PhpWiki; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 */
require_once "lib/wikilens/RatingsDb.php";
/**
 * Get a RatingsUser instance (possibly from a cache).
 */
class RatingsUserFactory
{
    function &getUser($userid)
    {
        //print "getUser($userid) ";
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:RatingsUser.php

示例13: rcs_id

<?php

// -*-php-*-
rcs_id('$Id: PageType.php,v 1.45 2005/05/06 16:48:41 rurban Exp $');
/*
Copyright 1999,2000,2001,2002,2003,2004,2005 $ThePhpWikiProgrammingTeam

This file is part of PhpWiki.

PhpWiki is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

PhpWiki is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PhpWiki; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
require_once 'lib/CachedMarkup.php';
/** A cacheable formatted wiki page.
 */
class TransformedText extends CacheableMarkup
{
    /** Constructor.
     *
     * @param WikiDB_Page $page
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:PageType.php

示例14: preg_replace

    ${$var} = preg_replace('/&PHPSESSID=.*/', '', $value);
}
// essential internal stuff -- skip it. Go down to Part One. There
// are four parts to this file that interest you, all labeled Part
// One, Two, Three and Four.
set_magic_quotes_runtime(0);
error_reporting(E_ALL ^ E_NOTICE);
if (!function_exists('rcs_id')) {
    function rcs_id($id)
    {
        // Gilles Casse (2003-01-21) for the Oralux website
        //
        //echo "<!-- $id -->\n";
    }
}
rcs_id('$Id: config.php,v 1.1 2004/09/28 21:48:45 gcasse Exp $');
// end essential internal stuff
/////////////////////////////////////////////////////////////////////
// Part One:
// Constants and settings. Edit the values below for your site.
/////////////////////////////////////////////////////////////////////
// Gilles Casse (2003-01-21) for the Oralux website.
$FrontPage = "German1";
$Menu = array("German" => array(1 => "German1", 2 => "German2"), "Spanish" => array(1 => "Spanish1", 2 => "Spanish2"));
$Translate = array("Translation" => array("en" => "Translation", "fr" => "Traduction"), "RecentChanges" => array("en" => "Recent changes", "fr" => "Changements récents"), "Diff" => array("en" => "Comparison to the archived version of ", "fr" => "Comparaison avec la version archivée de "), "German" => array("en" => "German Translations", "fr" => "Traductions en allemand"), "Spanish" => array("en" => "Spanish Translations", "fr" => "Traductions en espagnol"));
function GetFullName($theName)
{
    global $Translate;
    global $Menu;
    // Translate the filename in the relevant title
    // e.g. "German1" gets "Allemand (1)"
开发者ID:BackupTheBerlios,项目名称:oralux,代码行数:31,代码来源:config.php

示例15: rcs_id

<?php

//-*-php-*-
rcs_id('$Id: loadsave.php,v 1.137 2005/01/30 23:14:38 rurban Exp $');
/*
Copyright 1999,2000,2001,2002,2004,2005,2006 $ThePhpWikiProgrammingTeam

This file is part of PhpWiki.

PhpWiki is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

PhpWiki is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with PhpWiki; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
require_once "lib/ziplib.php";
require_once "lib/Template.php";
/**
 * ignore fatal errors during dump
 */
function _dump_error_handler(&$error)
{
    if ($error->isFatal()) {
开发者ID:neymanna,项目名称:fusionforge,代码行数:31,代码来源:loadsave.php


注:本文中的rcs_id函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。