aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
Commit message (Collapse)AuthorAgeFilesLines
...
* Add some profiling pointsBrion Vibber2004-08-221-0/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4898
* Don't include SearchEngine.php when it's not used. Saves about 180k of ↵Brion Vibber2004-08-211-1/+2
| | | | | | | memory at runtime. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4876
* # Please don't move this line to includes/Defines.php. This line essentially ↵Arne Heizmann2004-08-141-3/+4
| | | | | | | | | | defines # a valid entry point. If you put it in includes/Defines.php, then any script that includes # it becomes an entry point, thereby defeating its purpose. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4771
* Reverting my previous change. CommentAntoine Musso2004-08-141-0/+4
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4755
* moving define(mediawiki, true) from index.php to includes/Defines.phpAntoine Musso2004-08-141-3/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4754
* Antiglobalization!Brion Vibber2004-08-131-2/+3
| | | | | | | | | * Remove some unused and some useless functions from GlobalSettings.php * wfEscapeHTML() replaced with PHP built-in htmlspecialchars(). * Moved some functions into Parser.php and Image.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4731
* Ahh, so that's what that doesTim Starling2004-08-121-0/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4703
* Apparently cvs forgot to commit this with the rest.Arne Heizmann2004-08-091-2/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4624
* Don't run power search in 'go' modeBrion Vibber2004-07-291-1/+3
| | | | | | | * [ 998393 ] Powersearch seriously broken Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4429
* don't redirect to the canonical title if other parameters have been passed ↵Tim Starling2004-07-251-1/+3
| | | | | | | in $_GET Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4393
* * Introducing bit field for database parametersTim Starling2004-07-241-9/+13
| | | | | | | | | | | | | | | | | | | | | ** Database constructor calling sequence, and Database::newFromParams() ** Including flags in the server initialisation structs ** Support for setting appropriate flags from legacy globals in Setup.php ** Moved some defines to Define.php so that they can be used in LocalSettings.php, most importantly the bit field constants * Changes related to post-parse link colouring ** Turn the link cache back on when using it for updating the links table ** No longer need to call preFill() on page view * Better synchronisation of slave servers ** Rearranged getConnection() ** System for beginning and committing transactions when multiple connections are open ** wfAbruptExit() commits transactions, wfErrorExit() does not. Various functions changed to use wfErrorAbort() * Allowed reporting of database errors during deferred updates by moving them above output() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4369
* Article validation code (as a tab now)Magnus Manske2004-07-201-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4343
* * Support for table name prefixes throughout the code. No support yet for ↵Tim Starling2004-07-181-4/+6
| | | | | | | | | | | | | converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them * DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE * Converted to use SQL wrapper functions instead of direct SQL in various places * Experimental method for preserving the chronological order of events when slave servers are used. Untested. * Fixes to the new post-parse existence test feature * Some.. other stuff Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4318
* OOP calling convention for database functions. DBMS abstraction implemented ↵Tim Starling2004-07-101-2/+3
| | | | | | | by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4261
* LinksUpdate uses SELECT FOR UPDATE, thus starting a new transaction. So we ↵Jens Frank2004-07-091-1/+5
| | | | | | | have to call COMMIT for it. The big BEGIN...COMMIT loop of the action=...-switch() doesn't catch the wgDeferredUpdateList. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4250
* I thought I committed this?Arne Heizmann2004-07-081-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4244
* Moved credits stuff from Skin.php to a separate module. Added a "credits"Evan Prodromou2004-06-281-0/+4
| | | | | | | | | | action, which shows credits on their own page. Some Language strings to support the separate credits page. TODO: link user pages in credits, limit credits. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4187
* fixing broken search links e.g. from prev/next links on results pageTim Starling2004-06-261-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4172
* recommiting specialpages loading fix as the BoardVote extension as now been ↵Antoine Musso2004-06-121-0/+3
| | | | | | | fixed Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4020
* Undo change that stopped Wikipedia from running at allBrion Vibber2004-06-111-3/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4012
* removing print_r *hidesAntoine Musso2004-06-111-1/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4009
* do not instant Special* objects if user is not requesting a special page ↵Antoine Musso2004-06-111-0/+4
| | | | | | | (save memory / cpu time) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4008
* update cur_touched on action=purgeTim Starling2004-06-061-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3901
* Fix bad title detection again; was dying with error on whitelist checkBrion Vibber2004-05-301-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3762
* Fix preg_quote usage in interwiki loop detectionBrion Vibber2004-05-291-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3731
* Introducing special page modular extensions, making the board vote special ↵Tim Starling2004-05-151-1/+1
| | | | | | | | | | | | | page the first of these. * Moving common special page handling to SpecialPage.php * Special page lists in the language classes are obsolete, replaced by the list in SpecialPage.php * Special:Specialpages uses the standard page titles wfMsg(pagename) instead of the description list previously contained in the $wgSpecialPagesEn arrays * Ability to add custom messages to the MessageCache. Overridable by the MediaWiki namespace. * Moving board vote functionality from includes/SpecialBoardvote.php to extensions/BoardVote.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3583
* New feature:Erik Moeller2004-05-121-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Automatic or manual collapsing and expanding of long pages. Pages can be collapsed automatically according to a size threshold set in the user preferences. Pages can be collapsed manually by clicking the "Collapse" link in the TOC. When a page is collapsed, only the intro & TOC are displayed. The individual TOC lines link to section views, which can be individually edited (classic section editing). Section editing/viewing behavior has also been improved. When a section with subsections is viewed or edited, all subsections are also loaded. Known issues: - After saving a section, we return to the full article view rather than the section view, even if we previously were in section view mode. - Should work with Standard and Monobook, not tested with Cologne Blue yet. - In Monobook, no backlink to the mother article is shown during section viewing (Gabriel, can you fix that?) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3550
* Whitelist and diff fixes:Brion Vibber2004-05-111-8/+7
| | | | | | | | | * Enforce whitelist on oldid and diff specifiers (bug 950911) * Show the titles given for oldid and diff if they differ (UI change related to bug 622636) * Use canonical text form in $wgWhitelistRead Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3545
* Allow installing and running the wiki on a server where ini_set has beenBrion Vibber2004-05-091-17/+10
| | | | | | | | | | | | | | | | disabled via disable_functions in php.ini (bug #928168) The PHPTal skin doesn't function unless the PEAR bits are in include_path, so it's disabled if ini_set can't be used. If the files are manually placed or a real PEAR installation is available with the right stuff, one can use $wgUsePHPTal = true; There are likely other things that need to be taken into account for restricted environments. Maintenance scripts haven't been tweaked for such an environment yet either. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3519
* include_once -> require_onceTim Starling2004-05-071-8/+8
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3502
* Interwiki redirects using prefixes in the URLTim Starling2004-05-041-1/+10
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3473
* New, simple method to retrieve the plain source of an articleGabriel Wicke2004-04-281-0/+5
| | | | | | | | | | | Syntax: * action=raw * ctype=text/plain (defaults to text/plain, used in the header) * charset=utf-8 (defaults to wgInputEncoding, used in header) * oldid=int (retrieves old version if set) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3392
* Fix for old-style search URLs to force the page to behave as searchBrion Vibber2004-04-241-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3308
* Add experimental MathML output option for math (only works with someBrion Vibber2004-04-221-0/+1
| | | | | | | | | | | browsers and requires use of an XML content type; try setting $wgMimeType = "application/xhtml+xml" and use Mozilla). Rearranged a couple things in prefs. Did some refactoring in Math.php to remove some duplicated code and figure out what is going on. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3268
* Un-break large number of actions. Timwi, please read http://www.php.net/switchBrion Vibber2004-04-091-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3047
* Make code infinitely more readable and understandable by seizing use of a ↵Arne Heizmann2004-04-091-4/+4
| | | | | | | | | pointless, confusing and error-prone feature of PHP. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3045
* Whitespace & coding standards adjustments to Evan's last commits.Brion Vibber2004-04-041-16/+16
| | | | | | | Metadata.php seems to be missing, so the new code doesn't work yet. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2970
* Added code to implement Dublin Core and Creative Commons RDF metadata.Evan Prodromou2004-04-041-0/+16
| | | | | | | | | | | | | | | If these features are turned on (with global flags), a metadata link tag is provided to the appropriate action ('dublincore' or 'creativecommons'). When the wiki script receives these actions, it creates RDF files on the fly. Also includes two valuable general functions: one to show an HTTP error (used when the flags are turned off), and one to do content negotiation (used to determine the MIME type for RDF files). A helper function is also added to page output to display metadata links. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2969
* Installation, compatibility, security fixlets:Brion Vibber2004-03-261-1/+1
| | | | | | | | | | | * Detect use of PHP as CGI and disable index.php/Title URLs * Try to auto-create math tmp & output directories if not present * Disable Asksql in default install ($wgAllowSysopQueries) Added skin names to LanguageEo Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2843
* added manual purge actionGabriel Wicke2004-03-131-0/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2710
* calls to setSquidMaxage for cacheable pagesGabriel Wicke2004-03-131-0/+7
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2706
* More globals and uninitialized variables fixes. Added WebRequest ($wgRequest)Brion Vibber2004-03-081-55/+13
| | | | | | | | | | | | | | | | | | | | | | | | | object to encapsulate the handling of get/post variables: The following grab something out of $_REQUEST. The first parameter is the variable name and is required. The second is an optional default value: $wgRequest->getVal() - any type, returns NULL if no default given $wgRequest->getInt() - forced integer, 0 default $wgRequest->getText() - runs through $wgLang->recodeInput() $wgRequest->getBool() - return true/false $wgRequest->getCheck() - returns true if the var is set, even if to "" $wgRequest strips slashes at initialization if necessary. Also in this fine object: $wgRequest->wasPosted() - returns false if this wasn't a real form post, so we can protect against faked submissions in get urls. There's still plenty of work to do, not everything uses the new functions yet. To test the strict mode, do define('DEBUG_GLOBALS', 1); Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2658
* More unitialized variable cleanup && 'pure' register_globals cleanup...Brion Vibber2004-03-081-6/+9
| | | | | | | | Added wfDebugDieBacktrace() function to help in pinpointing problems by showing a function call backtrace along with a friendly die message. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2657
* Imported the register_globals hack from REL1_2. Also starting work onBrion Vibber2004-03-081-7/+45
| | | | | | | | | | | | elimination of the use of import_request_variables (which gives us all the insecurity of register_globals). Uncomment the define of DEBUG_GLOBALS in index.php to turn on extra error reporting and trace down use of uninitialized variables and nassssty globals. Also rearranged the magic_quotes fixing, may not yet cover everything... Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2655
* Use PATH_INFO for prettier default URLs: index.php/Foo instead of ↵Brion Vibber2004-03-061-1/+5
| | | | | | | index.php?title=Foo Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2633
* * Fixed magic quotes in $_REQUEST, in Setup.phpTim Starling2004-03-061-8/+11
| | | | | | | | | | | | * Converted many instances of globals from the query to $_REQUEST * Renamed near-useless Title::getURL() to Title::getPartialURL() * Created new Title::getURL(), to replace wfLocalUrl, wfLocalUrlE, wfFullUrl and wfFullUrlE. Replaced most instances throughout the code * In Parser.php, generalised stripping of <nowiki>, <pre> and <math> to allow more general use such as nesting * Moved body of Article::preSaveTransform to Parser.php * Put lots of comments in Title.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2621
* Implemented '$wgWhitelistRead'.Nicholas Pisarro, Jr2004-03-051-0/+10
| | | | | | | | | | | | | | | | | $wgWhitelistRead is now defined to be an optional array of namespace:pages a user may see unless they login. For example: $wgWhitelistRead = array ( ":Main_Page", "Special:Userlogin", "Wikipedia:Help" ); will restrict an anonymous user to only those pages. They are alerted that they must login, if the try to go to another page. If 'false', the default, the anonymous user may see all pages, except Sysop pages, of course. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2618
* allow caching for permanent redirectsGabriel Wicke2004-03-011-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2594
* Experimental in-place installer.Brion Vibber2004-03-011-0/+3
| | | | | | | | | | | Doesn't yet do any database setup, but does produce a LocalSettings.php that can successfully operate the wiki in the distribution directory structure. Note that the maintenance scripts may not all be fully armored against web access, and aren't set up to be run from the web by an actual administrator either. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2589
* Double-check at runtime that sitename is set. Paranoia is good... if we ↵Brion Vibber2004-02-291-0/+4
| | | | | | | don't do this, manual installs that are sloppy may introduce subtle bugs. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2558