/** * {{#gravatar: email_p1=John.Smith | email_p2=gmail.com [|optional parameters] }} */ public function mg_gravatar(&$parser) { $params = func_get_args(); $liste = StubManager::processArgList($params, true); $output = $this->renderEntry($liste); return array($output, 'noparse' => true, 'isHTML' => true); }
/** List of actions to remove from the current page. */ public function mg_removeactions(&$parser) { $params = StubManager::processArgList(func_get_args(), true); if (isset($params)) { foreach ($params as $actionToRemove) { $this->actionsToRemove[] = $actionToRemove; } } }
/** * {{#jskitpoll(: [optional parameters] }} */ public function mg_jskitpoll(&$parser) { $params = func_get_args(); $liste = StubManager::processArgList($params, true); $output = $this->renderEntry($liste); $output .= <<<EOT \t<script src="http://js-kit.com/polls.js"></script> EOT; return array($output, 'noparse' => true, 'isHTML' => true); }
/** * {{#quimble_poll: index=poll_index }} */ public function mg_quimble_poll(&$parser) { $params = func_get_args(); $liste = StubManager::processArgList($params, true); $code = $this->formatPoll($liste, $index, $output); if ($code !== true) { return $code; } return array($output, 'noparse' => true, 'isHTML' => true); }
/** {{#gcode: project=PROJECT NAME|file=FILENAME }} */ public function mg_gcode(&$parser) { $args = func_get_args(); $argv = StubManager::processArgList($args, true); $project = @$argv['project']; $file = @$argv['file']; $result = $this->validateParameters($project, $file); // don't bother going forward if we already have an error message if (!empty($result)) { return $result; } $code = $this->getCode($project, $file, $result); // don't bother going forward if we already have an error message if (!empty($result)) { return $result; } return $code; }
/** * {{#jskitnavigator: [optional parameters] }} */ public function mg_jskitcomments(&$parser) { $params = func_get_args(); $liste = StubManager::processArgList($params, true); // check for ''noscript'' parameter $noscript = false; if (isset($liste['noscript'])) { $r = strtolower($liste['noscript']); if ($r == '1' || $r == 'true') { $noscript = true; } } $output = $this->renderEntry($liste); if (!$noscript) { if (!$this->scriptIncluded) { $this->scriptIncluded = true; $output .= $this->getScript(); } } return array($output, 'noparse' => true, 'isHTML' => true); }
/** * {{#jskitrating: [optional parameters] }} */ public function mg_jskitrating(&$parser) { $params = func_get_args(); $liste = StubManager::processArgList($params, true); // check for ''noscript'' parameter $noscript = false; if (isset($liste['noscript'])) { $r = strtolower($liste['noscript']); if ($r == '1' || $r == 'true') { $noscript = true; } } $output = $this->renderEntry($liste); if (!$noscript) { if (!$this->scriptIncluded) { $this->scriptIncluded = true; $output .= <<<EOT \t<script src="http://js-kit.com/ratings.js"></script> EOT; } } return array($output, 'noparse' => true, 'isHTML' => true); }
<?php /** * @author Jean-Lou Dupont * @package JSKitNavigator * @version @@package-version@@ * @Id $Id$ */ //<source lang=php> if (!class_exists('StubManager')) { echo '[[Extension:JSKitNavigator]] <b>requires</b> [[Extension:StubManager]] version >= 1.1.0' . "\n"; } else { $wgExtensionCredits['other'][] = array('name' => 'JSKitNavigator', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:JSKitNavigator', 'description' => "Provides integration with JSKit Navigator tool."); StubManager::createStub2(array('class' => 'JSKitNavigator', 'classfilename' => dirname(__FILE__) . '/JSKitNavigator.body.php', 'mgs' => array('jskitnavigator'))); } //</source>
<?php /** * @author Jean-Lou Dupont * @package SecureTransclusion * @version @@package-version@@ * @Id $Id$ */ //<source lang=php> if (!class_exists('StubManager')) { echo '[[Extension:SecureTransclusion]] <b>requires</b> [[Extension:StubManager]]' . "\n"; } else { $wgExtensionCredits['other'][] = array('name' => 'SecureTransclusion', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:SecureTransclusion', 'description' => "Provides secure interwiki transclusion."); StubManager::createStub2(array('class' => 'SecureTransclusion', 'classfilename' => dirname(__FILE__) . '/SecureTransclusion.body.php', 'mgs' => array('strans'))); } //</source>
|name = AutoRedirect_stub |status = beta |type = parser |author = [[user:jldupont|Jean-Lou Dupont]] |image = |version = See SVN ($Id$) |update = |mediawiki = tested on 1.10 but probably works with a earlier versions |download = [http://bizzwiki.googlecode.com/svn/trunk/BizzWiki/extensions/XYZ/ SVN] |readme = |changelog = |description = |parameters = |rights = |example = }} <!--@@ == File Status == This section is only valid when viewing the page in a BizzWiki environment. <code>(($#extractmtime|@@mtime@@$)) (($#extractfile|@@file@@$))</code> Status: (($#comparemtime|<b>File system copy is newer - [{{fullurl:{{NAMESPACE}}:{{PAGENAME}}|action=reload}} Reload] </b>|Up to date$)) @@--> == Notes == See details about this extension on [[Extension:AutoRedirect]]. == Code == <!--</wikitext>--><source lang=php>*/ StubManager::createStub2(array('class' => 'AutoRedirect', 'classfilename' => dirname(__FILE__) . '/AutoRedirect.php', 'mgs' => array('autoredirect'))); //</source>
case 10: return $obj->$method( $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6], $args[7], $args[8], $args[9] ); case 11: return $obj->$method( $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6], $args[7], $args[8], $args[9], $args[10] ); case 12: return $obj->$method( $args[0], $args[1], $args[2], $args[3], $args[4], $args[5], $args[6], $args[7], $args[8], $args[9], $args[10], $args[11] ); } throw new MWException( __CLASS__.": too many arguments to method called in ".__METHOD__ ); */ return call_user_func_array(array($obj, $method), $args); } } // end class Stub // Perform auto-discovery of [[Extension:ExtensionManager]] // -------------------------------------------------------- StubManager::$edir = realpath(dirname(dirname(__FILE__))); if (file_exists(StubManager::$edir . '/ExtensionManager/ExtensionManager.php')) { include StubManager::$edir . '/ExtensionManager/ExtensionManager.php'; } // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% // ExtHelper Class // %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% /** * Some helper functions for extensions */ class ExtHelper { /** * Retrieves the specified list of parameters from the list. * Uses the ''l'' parameter from the reference list. */
<?php /** * @author Jean-Lou Dupont * @package ManageNamespaces * @version @@package-version@@ * @Id $Id$ */ // <source lang=php> if (class_exists('StubManager')) { $wgExtensionCredits['other'][] = array('name' => 'ManageNamespaces', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:ManageNamespaces', 'description' => "Provides a special page to add/remove namespaces. "); StubManager::createStub2(array('class' => 'ManageNamespaces', 'classfilename' => dirname(__FILE__) . '/ManageNamespaces.body.php', 'i18nfilename' => dirname(__FILE__) . '/ManageNamespaces.i18n.php', 'logging' => true, 'hooks' => array('ParserAfterTidy'), 'nss' => array(NS_MEDIAWIKI), 'mgs' => array('mns'))); } else { echo "Extension:ManageNamespaces <b>requires</b> Extension:StubManager\n"; } global $wgCanonicalNamespaceNames; global $wgExtraNamespaces; global $wgNamespacesWithSubpages; global $bwManagedNamespaces; global $bwManagedNamespacesDefines; // Now include the managed namespaces in question include dirname(__FILE__) . '/ManageNamespaces.namespaces.php'; // Is the Namespace class defined yet? if (!class_exists('Namespace') && !empty($bwManagedNamespaces)) { require $IP . '/includes/Namespace.php'; } // Go through all the managed namespaces if (!empty($bwManagedNamespaces)) { foreach ($bwManagedNamespaces as $index => $name) { // add the managed namespaces to the primary tables $wgCanonicalNamespaceNames[$index] = $name;
<?php /** * @author Jean-Lou Dupont * @package ParserExt * @subpackage SkinTools * @version @@package-version@@ * @Id $Id$ */ //<source lang=php> global $wgExtensionCredits; $wgExtensionCredits['other'][] = array('name' => 'SkinTools', 'version' => '1.1.0', 'author' => 'Jean-Lou Dupont', 'description' => 'Provides skin level functions', 'url' => 'http://mediawiki.org/wiki/Extension:SkinTools'); StubManager::createStub2(array('class' => 'SkinTools', 'classfilename' => dirname(__FILE__) . '/SkinTools.body.php', 'hooks' => array('SkinTemplateTabs'), 'mgs' => array('clearactions', 'removeactions', 'addaction'))); //</source>
<?php /** * @author Jean-Lou Dupont * @package PageSidebar * @version $Id$ */ //<source lang=php> if (!class_exists('StubManager')) { echo '[[Extension:PageSidebar]] <b>requires</b> [[Extension:StubManager]]' . "\n"; } else { global $wgExtensionCredits; $wgExtensionCredits['other'][] = array('name' => 'PageSidebar', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:PageSidebar', 'description' => "Provides per-page arbitrary wikitext for the sidebar."); StubManager::createStub2(array('class' => 'PageSidebar', 'classfilename' => dirname(__FILE__) . '/PageSidebar.body.php', 'hooks' => array('SkinTemplateOutputPageBeforeExec', 'OutputPageParserOutput', 'PageSidebar'), 'tags' => array('pagesidebar'))); } // </source>
* Download & Install [[Extension:PageFunctions]] extension * Download & Install [[Extension:ParserPhase2]] extension * Dowload all this extension's files and place in the desired directory * Apply the following changes to 'LocalSettings.php' after the statements of [[Extension:StubManager]]: <source lang=php> require('extensions/ScriptingTools/ScriptingTools_stub.php'); </source> == HISTORY == == See Also == This extension is part of the [[Extension:BizzWiki|BizzWiki Platform]]. == Code == <!--</wikitext>--><source lang=php>*/ $wgExtensionCredits[ScriptingTools::thisType][] = array('name' => ScriptingTools::thisName, 'version' => StubManager::getRevisionId('$Id$'), 'author' => 'Jean-Lou Dupont', 'description' => 'Provides an interface between MediaWiki scripting tools', 'url' => 'http://mediawiki.org/wiki/Extension:ScriptingTools'); class ScriptingTools { const thisName = 'ScriptingTools'; const thisType = 'other'; static $magicWord = '__jsminandstore__'; static $patterns = array('/<javascript(?:.*)\\>(.*)(?:\\<.?javascript>)/siU', '/<js(?:.*)\\>(.*)(?:\\<.?js>)/siU'); const open_js = '<script type= "text/javascript">/*<![CDATA[*/'; const close_js = '/*]]>*/</script>'; // relative directory from MediaWiki installation. static $base = 'BizzWiki/scripts/'; public function __construct() { // take on global setting, if present. global $bwScriptsDirectory; if (isset($bwScriptsDirectory)) {
<?php /** * @author Jean-Lou Dupont * @package SmartyAdaptor * @version @@package-version@@ * @Id $Id$ */ //<source lang=php> if (!class_exists('StubManager') || version_compare(StubManager::version(), '1.2.0', '<')) { echo "<a href='http://mediawiki.org/wiki/Extension:SmartyAdaptor'/> <b>requires</b> <a href='http://mediawiki.org/wiki/Extension:StubManager'/>"; } else { $wgExtensionCredits['other'][] = array('name' => 'SmartyAdaptor', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:SmartyAdaptor', 'description' => "Provides interface to Smarty [http://smarty.net Smarty Template Engine]. "); StubManager::createStub2(array('class' => 'SmartyAdaptor', 'classfilename' => dirname(__FILE__) . '/SmartyAdaptor.body.php', 'hooks' => array('smarty', 'smarty_direct', 'SpecialVersionExtensionTypes'))); } //</source>
<?php /** * @author Jean-Lou Dupont * @package HNP */ //<source lang=php> #require 'HNP.i18n.php'; global $IP; require_once $IP . '/includes/ObjectCache.php'; require_once $IP . '/includes/BagOStuff.php'; if (class_exists('StubManager')) { StubManager::createStub2(array('class' => 'HNP', 'classfilename' => dirname(__FILE__) . '/HNP.body.php', 'hooks' => array('userCan', 'UserIsAllowed', 'ArticleSave', 'SpecialVersionExtensionTypes', 'EditFormPreloadText'), 'mgs' => array('hnp', 'hnp_r', 'hnp_h'))); global $wgExtensionCredits; $wgExtensionCredits['other'][] = array('name' => 'HNP', 'version' => '1.0.1', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:HierarchicalNamespacePermissions2', 'description' => "Provides enhancements to the permission management sub-system."); } else { echo 'Extension:HNP <b>requires</b> [[Extension:StubManager]]' . "\n"; } //</source>
<code>(($#extractmtime|@@mtime@@$)) (($#extractfile|@@file@@$))</code> Status: (($#comparemtime|<b>File system copy is newer - [{{fullurl:{{NAMESPACE}}:{{PAGENAME}}|action=reload}} Reload] </b>|Up to date$)) @@--> == Purpose== == Features == == Dependancy == * [[Extension:StubManager|StubManager extension]] == Installation == To install independantly from BizzWiki: * Download 'StubManager' extension * Apply the following changes to 'LocalSettings.php' <source lang=php> require('extensions/StubManager.php'); require('extensions/DirectoryManager/DirectoryManager_stub.php'); </source> == History == == See Also == This extension is part of the [[Extension:BizzWiki|BizzWiki Platform]]. == Code == <!--</wikitext>--><source lang=php>*/ StubManager::createStub2(array('class' => 'DirectoryManager', 'classfilename' => dirname(__FILE__) . '/DirectoryManager.php', 'hooks' => array('ArticleFromTitle', 'CustomEditor'), 'nss' => array(NS_DIRECTORY), 'mgs' => array('directory'))); //</source>
<?php /** * @author Jean-Lou Dupont * @package NewUserEmailNotification.php * @version $Id$ */ //<source lang=php> global $wgExtensionCredits; $wgExtensionCredits['other'][] = array('name' => 'NewUserEmailNotification', 'version' => '1.0.0', 'author' => 'Jean-Lou Dupont', 'description' => 'Provides email notification of new user account creation', 'url' => 'http://mediawiki.org/wiki/Extension:NewUserEmailNotification'); StubManager::createStub('NewUserEmailNotification', dirname(__FILE__) . '/NewUserEmailNotification.body.php', dirname(__FILE__) . '/NewUserEmailNotification.i18n.php', array('AddNewAccount'), false); //</source>
<?php /** * @author Jean-Lou Dupont * @package ProgressBar * @version @@package-version@@ * @Id $Id$ */ //<source lang=php> if (!class_exists('StubManager')) { echo '[[Extension:ProgressBar]] <b>requires</b> [[Extension:StubManager]] version >= 1.1.0' . "\n"; } else { $wgExtensionCredits['other'][] = array('name' => 'ProgressBar', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:ProgressBar', 'description' => "Provides customizable progress bars."); StubManager::createStub2(array('class' => 'ProgressBar', 'classfilename' => dirname(__FILE__) . '/ProgressBar.body.php', 'mgs' => array('progressbar'))); } //</source>
<?php /** * @author Jean-Lou Dupont * @package ViewsourceRight * @version $Id$ */ //<source lang=php>*/ global $wgExtensionCredits; $wgExtensionCredits['other'][] = array('name' => 'ViewsourceRight', 'version' => '1.1.0', 'author' => 'Jean-Lou Dupont', 'description' => "Enforces 'viewsource' right. Status: ", 'url' => 'http://mediawiki.org/wiki/Extension:ViewsourceRight'); StubManager::createStub('ViewsourceRight', dirname(__FILE__) . '/ViewsourceRight.body.php', null, array('SpecialVersionExtensionTypes', 'AlternateEdit', 'SkinTemplateTabs', 'clearSkinTabActions'), false, null, null, null); //</source>
<?php /** * @author Jean-Lou Dupont * @package SecureHTML * @version @@package-version@@ * @Id $Id$ */ //<source lang=php>*/ if (class_exists('StubManager')) { $wgExtensionCredits['other'][] = array('name' => 'SecureHTML', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'description' => 'Enables secure HTML code on protected pages', 'url' => 'http://mediawiki.org/wiki/Extension:SecureHTML'); StubManager::createStub('SecureHTML', dirname(__FILE__) . '/SecureHTML.body.php', null, array('ArticleSave', 'ArticleViewHeader'), false, null, array('html', 'shtml'), null, null); } else { echo '[[Extension:SecureHTML]] requires [[Extension:StubManager]] and optionally [[Extension:ParserFunctionsHelper]].'; } //</source>
<source lang=php> SpecialPagesManager->singleton()->setSpecialPage('page name'); </source> == Dependancy == * [[Extension:StubManager]] extension == Installation == To install independantly from BizzWiki: * Download 'StubManager' extension * Apply the following changes to 'LocalSettings.php' <source lang=php> require('extensions/StubManager.php'); require('extensions/SpecialPagesManager/SpecialPagesManager.php'); </source> == Rights == The extension defines a new right 'siteupdate' required to access the update functionality. == History == * Removed dependency on ExtensionClass * Added 'stubbing' capability through StubManager == Code == </wikitext>*/ // Create the special page (the standard MW style one) global $wgSpecialPages, $wgAutoloadClasses; $wgSpecialPages['SpecialPagesManagerUpdater'] = 'SpecialPagesManagerUpdater'; $wgAutoloadClasses['SpecialPagesManagerUpdater'] = dirname(__FILE__) . "/SpecialPagesManagerUpdater.php"; StubManager::createStub('SpecialPagesManagerClass', dirname(__FILE__) . '/SpecialPagesManagerClass.php', null, array('SpecialPageExecuteAfterPage'), false, null, null, null);
<?php /** * @author Jean-Lou Dupont * @package EmbedObject * @version @@package-version@@ * @Id $Id$ */ //<source lang=php> if (class_exists('StubManager')) { $wgExtensionCredits['other'][] = array('name' => 'EmbedObject', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'description' => "Provides object embedding capability", 'url' => 'http://mediawiki.org/wiki/Extension:EmbedObject'); StubManager::createStub2(array('class' => 'EmbedObject', 'classfilename' => dirname(__FILE__) . '/EmbedObject.body.php', 'mgs' => array('embed'))); } else { echo 'Extension:EmbedObject requires Extension:StubManager'; } //</source>
<?php /** * @author Jean-Lou Dupont * @package MetaTags * @version @@package-version@@ * @Id $Id$ */ //<source lang=php> if (!class_exists('StubManager') || version_compare(StubManager::version(), '1.3.0', '<')) { echo "<a href='http://mediawiki.org/wiki/Extension:MetaTags'/> <b>requires</b> <a href='http://mediawiki.org/wiki/Extension:StubManager'/> of version >= 1.3.0"; } else { $wgExtensionCredits['other'][] = array('name' => 'MetaTags', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:MetaTags', 'description' => "Provides META and LINK tags to HEAD whilst integrating with parser caching."); StubManager::createStub2(array('class' => 'MetaTags', 'classfilename' => dirname(__FILE__) . '/MetaTags.body.php', 'mgs' => array('meta', 'link'))); // only available since StubManager v1.3.0 StubManager::registerState('MetaTags', StubManager::STATE_OK); } //</source>
<?php /** * @author Jean-Lou Dupont * @package TagToTemplate * @version @@package-version@@ * @Id $Id$ */ // <source lang=php> if (class_exists('StubManager')) { StubManager::createStub2(array('class' => 'TagToTemplate', 'classfilename' => dirname(__FILE__) . '/TagToTemplate.body.php', 'hooks' => array('ParserBeforeStrip'))); global $wgExtensionCredits; $wgExtensionCredits['hook'][] = array('name' => 'TagToTemplate', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'url' => 'http://www.mediawiki.org/wiki/Extension:TagToTemplate', 'description' => "Provides tag markup substitution for a configured template."); } else { echo 'Extension:TagToTemplate <b>requires</b> [[Extension:StubManager]]' . "\n"; } //</source>
public function hSpecialVersionExtensionTypes(&$sp, &$extensionTypes) { global $wgExtensionCredits; // Parser Caching in place? $result = "Parser Caching is "; $state = $this->verifyParserCache() ? StubManager::STATE_OK : StubManager::STATE_ATTENTION; $result .= $state == StubManager::STATE_OK ? "available." : "<b>not available</b>."; StubManager::registerState(__CLASS__, $state); foreach ($wgExtensionCredits[self::thisType] as $index => &$el) { if (isset($el['name'])) { if ($el['name'] == self::thisName) { $el['description'] .= $result . '<br/>'; } } } return true; // continue hook-chain. }
<?php /** * @author Jean-Lou Dupont * @package PageServer * @category ExtensionServices * @version @@package-version@@ * @Id $Id: SmartyAdaptor.php 922 2008-01-15 19:41:09Z jeanlou.dupont $ */ //<source lang=php> if (!class_exists('StubManager') || version_compare(StubManager::version(), '1.3.0', '<')) { echo "<a href='http://mediawiki.org/wiki/Extension:PageServer'/> <b>requires</b> <a href='http://mediawiki.org/wiki/Extension:StubManager'/> of version >= 1.3.0"; } else { $wgExtensionCredits['other'][] = array('name' => 'PageServer', 'version' => '@@package-version@@', 'author' => 'Jean-Lou Dupont', 'description' => "Provides functionality to load & parse wiki pages stored in the filesystem.", 'url' => 'http://mediawiki.org/wiki/Extension:PageServer'); $wgAutoloadClasses['PageServer_Remote'] = dirname(__FILE__) . '/PageServer.remote.php'; StubManager::createStub2(array('class' => 'PageServer', 'classfilename' => dirname(__FILE__) . '/PageServer.body.php', 'mgs' => array('mwmsg', 'mwmsgx', 'load_page'), 'hooks' => array('page_server', 'page_remote', 'SpecialVersionExtensionTypes'))); // Required PEAR class @(include_once "HTTP/Request.php"); // only available since StubManager v1.3.0 $state = class_exists('HTTP_Request') ? StubManager::STATE_OK : StubManager::STATE_ATTENTION; StubManager::registerState('PageServer', $state); } //</source>
<?php /** * @author Jean-Lou Dupont * @package FileManager * @version $Id$ */ //<source lang=php> global $wgExtensionCredits; $wgExtensionCredits['other'][] = array('name' => 'FileManager', 'version' => '1.0.0', 'author' => 'Jean-Lou Dupont', 'description' => 'Manages the files in a Mediawiki installation. Namespace for filesystem is ', 'url' => 'http://mediawiki.org/wiki/Extension:FileManager'); StubManager::createStub2(array('class' => 'FileManager', 'classfilename' => dirname(__FILE__) . '/FileManager.body.php', 'i18nfilename' => dirname(__FILE__) . '/FileManager.i18n.php', 'logging' => true, 'hooks' => array('ArticleSave', 'ArticleFromTitle', 'EditFormPreloadText', 'OutputPageBeforeHTML', 'SkinTemplateTabs', 'UnknownAction', 'SpecialVersionExtensionTypes'), 'nss' => array(NS_FILESYSTEM), 'mgs' => array('extractmtime', 'extractfile', 'comparemtime', 'currentmtime'))); //</source>
<code>(($#extractmtime|@@mtime@@$)) (($#extractfile|@@file@@$))</code> Status: (($#comparemtime|<b>File system copy is newer - [{{fullurl:{{NAMESPACE}}:{{PAGENAME}}|action=reload}} Reload] </b>|Up to date$)) @@--> == Purpose== This is the 'stub' file for the [[Extension:rsync]] extension. == History == == See Also == This extension is part of the [[Extension:BizzWiki|BizzWiki Platform]]. == Code == <!--</wikitext>--><source lang=php>*/ if (!class_exists('StubManager')) { echo 'Extension:rsync <b>requires</b> Extension:StubManager'; } elseif (!method_exists('StubManager', 'getVersion')) { echo "Extension:rsync <b>requires</b> Extension:StubManager of version > 757.\n"; echo "This warning could also be the result of an unsupported PHP version (requires at least PHP v5.1.x)."; } elseif (!StubManager::isExtensionRegistered('Backup')) { echo 'Extension:rsync <b>requires</b> Extension:Backup'; } else { StubManager::createStub2(array('class' => 'rsync', 'classfilename' => $bwExtPath . '/rsync/rsync.php', 'hooks' => array('Backup'))); if (defined('NS_FILESYSTEM')) { StubManager::configureExtension('rsync', 'enss', array(NS_FILESYSTEM)); } if (defined('NS_DIRECTORY')) { StubManager::configureExtension('rsync', 'enss', NS_DIRECTORY); } } //</source>