Difference between revisions of "MediaWiki/archive/embedding/old/extract.php/v2"

from HTYP, the free directory anyone can edit if they can prove to me that they're not a spambot
Jump to navigation Jump to search
m
m (Woozle moved page MediaWiki/embedding/old/extract.php/v2 to MediaWiki/archive/embedding/old/extract.php/v2 without leaving a redirect: obsolete, keeps changing)
 
(10 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
'''This version is obsolete'''; it is being kept primarily for archival purposes.
 
'''This version is obsolete'''; it is being kept primarily for archival purposes.
  
The code is based on index.php from MediaWiki (I'm not sure which version, but probably later than 1.7.1 and earlier than 1.11). Some code may be <span class="plainlinks">[http://www.proposable.com <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">proposal software</span>] redundant, but I was trying to make the fewest possible <span class="plainlinks">[http://thebeginnerslens.com/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">iphone photography</span>] changes in order to avoid breaking anything.
+
The code is based on index.php from MediaWiki (I'm not sure which version, but probably later than 1.7.1 and earlier than 1.11). Some code may be redundant, but I <span class="plainlinks">[http://www.phuketproperty.com/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">Phuket property</span>] was trying to make the fewest possible <span class="plainlinks">[http://www.linkedin.com/company/bankers-life-and-casualty <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">bankers life and casualty company</span>] changes in order to avoid <span class="plainlinks">[http://www.culinarydepotinc.com/c-752-ice-machines.aspx <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">ice maker</span>] breaking anything.
  
As of 2011-03-12, it's in use <span class="plainlinks">[http://www.bestpills4weightloss.com/ <span style="color:black;font-weight:normal; text-decoration:none!important; background:none!important; text-decoration:none;">best pills 4 weight loss</span>] as the front page for [http://outside-life.com Outside Life], a [[webcomic]], which runs on MediaWiki 1.10.
+
As of 2011-03-12, it's in use as the front page for [http://outside-life.com Outside Life], a [[webcomic]], which runs on MediaWiki 1.10.
  
 
* [[/examples]] - also from Outside Life
 
* [[/examples]] - also from Outside Life
Line 24: Line 24:
 
require_once( './includes/WebStart.php' );
 
require_once( './includes/WebStart.php' );
  
# Initialize MediaWiki base class
+
# Initialize MediaWiki base class <span class="plainlinks">[http://www.linkedin.com/company/bankers-life-and-casualty
 +
 
 
require_once( "includes/Wiki.php" );
 
require_once( "includes/Wiki.php" );
 
$mediaWiki = new MediaWiki();
 
$mediaWiki = new MediaWiki();

Latest revision as of 00:08, 15 December 2017

About

This version is obsolete; it is being kept primarily for archival purposes.

The code is based on index.php from MediaWiki (I'm not sure which version, but probably later than 1.7.1 and earlier than 1.11). Some code may be redundant, but I Phuket property was trying to make the fewest possible bankers life and casualty company changes in order to avoid ice maker breaking anything.

As of 2011-03-12, it's in use as the front page for Outside Life, a webcomic, which runs on MediaWiki 1.10.

Contents

<php> <?php /*

This is essentially index.php with some minor tweaks
TWEAKS:

these lines commented out: $action = $wgRequest->getVal( 'action', 'view' ); $title = $wgRequest->getVal( 'title' ); this line commented out $wgTitle = $mediaWiki->checkInitialQueries( $title,$action,$wgOut, $wgRequest, $wgContLang ); this line inserted immediately after: $wgTitle = Title::newFromURL( $title );

  • /
  1. Initialise common code

require_once( './includes/WebStart.php' );

  1. Initialize MediaWiki base class [http://www.linkedin.com/company/bankers-life-and-casualty

require_once( "includes/Wiki.php" ); $mediaWiki = new MediaWiki();

wfProfileIn( 'main-misc-setup' ); OutputPage::setEncodings(); # Not really used yet

$maxLag = $wgRequest->getVal( 'maxlag' ); if ( !is_null( $maxLag ) ) { if ( !$mediaWiki->checkMaxLag( $maxLag ) ) { exit; } }

  1. Query string fields

//$action = $wgRequest->getVal( 'action', 'view' ); //$title = $wgRequest->getVal( 'title' );

//$wgTitle = $mediaWiki->checkInitialQueries( $title,$action,$wgOut, $wgRequest, $wgContLang ); $wgTitle = Title::newFromURL( $title ); if ($wgTitle == NULL) { unset( $wgTitle ); }

  1. Send Ajax requests to the Ajax dispatcher.

/* if ( $wgUseAjax && $action == 'ajax' ) { require_once( $IP . '/includes/AjaxDispatcher.php' );

$dispatcher = new AjaxDispatcher(); $dispatcher->performAction(); $mediaWiki->restInPeace( $wgLoadBalancer ); exit; }

  • /

wfProfileOut( 'main-misc-setup' );

  1. Setting global variables in mediaWiki

$mediaWiki->setVal( 'Server', $wgServer ); $mediaWiki->setVal( 'DisableInternalSearch', $wgDisableInternalSearch ); $mediaWiki->setVal( 'action', $action ); $mediaWiki->setVal( 'SquidMaxage', $wgSquidMaxage ); $mediaWiki->setVal( 'EnableDublinCoreRdf', $wgEnableDublinCoreRdf ); $mediaWiki->setVal( 'EnableCreativeCommonsRdf', $wgEnableCreativeCommonsRdf ); $mediaWiki->setVal( 'CommandLineMode', $wgCommandLineMode ); $mediaWiki->setVal( 'UseExternalEditor', $wgUseExternalEditor ); $mediaWiki->setVal( 'DisabledActions', $wgDisabledActions );

$wgArticle = $mediaWiki->initialize ( $wgTitle, $wgOut, $wgUser, $wgRequest ); $mediaWiki->finalCleanup ( $wgDeferredUpdateList, $wgLoadBalancer, $wgOut );

  1. Not sure when $wgPostCommitUpdateList gets set, so I keep this separate from finalCleanup

$mediaWiki->doUpdates( $wgPostCommitUpdateList );

$mediaWiki->restInPeace( $wgLoadBalancer ); ?> </php>