summaryrefslogtreecommitdiff
path: root/inc/io.php
Commit message (Collapse)AuthorAge
* avoid errors on trying to read corrupt gzip filesAndreas Gohr2015-07-24
|
* Rephrase description of io_replaceInFiles to be clarify use of regexPatrick Brown2015-05-29
|
* Abort io_replaceInLine when the search parameter is emptyPatrick Brown2015-05-29
|
* Minor RefactoringChristopher Smith2015-05-29
| | | | | - put test comments in more appropriate spot - move appending replacement line alongside its search/delete code
* add anchors when constructing pattern from a non-regex oldlineChristopher Smith2015-05-29
|
* Refactor code to make it simpler.Christopher Smith2015-05-28
| | | | | | | | The changes should also: - fix unlikely edge case when replacement line is the same as the old line (would have resulted in timeout) - reduce memory footprint - avoid applying string search beyond maxlines replacement limit
* Limit number of lines to replace.Patrick Brown2015-05-08
|
* Add io_replaceInFilePatrick Brown2015-05-07
|
* Deleting lines works with BZ2 files.Patrick Brown2015-05-06
|
* Append to BZip2 files. Unit tests for writing files.Patrick Brown2015-05-06
|
* correct error checking for bz2 file readingAndreas Gohr2015-03-18
| | | | | | | | | The code reading .bz2 compressed files did not correctly check for possible read errors. In case of a corrupted file this could have led to an infinite loop. Thanks to Filippo Cavallarin from www.segment.technology for dicovering this bug.
* Remove error supression for file_exists()Andreas Gohr2015-01-07
| | | | | | | In an older version of PHP a file_exists() call would issue a warning when the file did not exist. This was fixed in later PHP releases. Since we require PHP 5.3 now, there's no need to supress any error here anymore. This might even give a minor performance boost.
* Many PHPDocs, some unused and dyn declared varsGerrit Uitslag2014-10-01
| | | | | | many PHPDocs some unused variables some dynamically declared variables declared
* Removed unused vars, define undefined onesGerrit Uitslag2014-02-20
|
* check for false in readdirAndreas Gohr2014-01-19
|
* treat non-existing files as success on deleteAndreas Gohr2014-01-06
|
* added recursive delete function to io.phpAndreas Gohr2014-01-06
|
* replace boolean conditional checks on possibly uninitialized vars with ↵Christopher Smith2013-10-16
| | | | \!empty/empty/isset as appropriate
* removed a bunch of functions which were deprecated in 2005/2006Anika Henke2013-02-18
|
* don't use keep-alive with single shot HTTP clientsAndreas Gohr2013-02-16
|
* Correct and add some PHPDoc comments, initialize some variablesMichael Hamann2012-09-07
|
* replaced use of basename() with utf8_basename() FS#2015Andreas Gohr2012-07-28
|
* pass the correct clean parameter when reading wiki pagesAndreas Gohr2012-03-13
| | | | | | | DokuWiki's page loading is intended to be filesystem agnostic. DOS line endings in pages are supposed to be self healing. This behaviour was broken in a change in 2006. As long as you edited pages through DokuWiki only you never noticed the bug though.
* Merge branch 'master' into indexer_improvementsMichael Hamann2011-01-23
|\ | | | | | | | | | | | | Conflicts: inc/fulltext.php inc/indexer.php lib/exe/indexer.php
| * fixed indentAndreas Gohr2010-12-08
| |
* | Restore io_runcmd, use io_exec for exec with pipesTom N Harris2010-11-18
| |
* | Repurpose io_runcmd for pipesTom N Harris2010-11-16
|/
* first attempt to centralize all include loadingAndreas Gohr2010-01-31
| | | | | | | | Classes are loaded throug PHP5's class autoloader, all other includes are just loaded by default. This skips a lot of require_once calls. Parser and Plugin stuff isn't handled by the class loader yet.
* Coding Standard CleanupAndreas Gohr2009-10-20
| | | | | | Ignore-this: 259cb5773c3144c6c706d87298dcf674 darcs-hash:20091020212338-7ad00-6bf1c5c403491f136a1c02af5ecd9f84d7227107.gz
* FS#1517, obscure passwords in config filesChris Smith2009-01-19
| | | | | | This patch extends the config 'password' class to support a "_code" parameter darcs-hash:20090119164809-f07c6-c136b559772610539bccb9e9c0191f6a973216ad.gz
* removed some illogical path setupsAndreas Gohr2008-12-13
| | | | darcs-hash:20081213090400-7ad00-4e21cd75978bb07513f32f5d750658e8d777c59e.gz
* add slash in io_mktmdirAndreas Gohr2008-08-23
| | | | darcs-hash:20080823090003-7ad00-e3b2f2258bf794b62810f9fc51378bb9271441e3.gz
* update io_mktmpdir() to use $conf['tmpdir'] and mt_rand()Chris Smith2008-04-08
| | | | darcs-hash:20080408014339-f07c6-63870bfa4e45d05275cf46993bee62d61a6cc5a8.gz
* introducing io_mktmpdir()Michael Klier2008-02-27
| | | | darcs-hash:20080227221631-23886-1ce689e9616b6dd5d2cc55613b86ddff4e1808be.gz
* redirect to root namespace in mediamanager when namespace was deleted FS#1286Andreas Gohr2008-02-15
| | | | darcs-hash:20080215105251-7ad00-b7ac1bfc0e2d1eccf079f4ff2f0db8876896b79d.gz
* bzopen does not like 'b' open mode FS#1239Andreas Gohr2008-01-18
| | | | darcs-hash:20080118213300-7ad00-11a2b04c91c566ba2965bc548b94b8bf5b1bf5e5.gz
* don't use realpath() anymore (FS#1261 and others)Andreas Gohr2007-09-30
| | | | | | | | | | | The use of realpath() to clean up relative file names caused some trouble in certain setups relying on symlinks or having restricitve file structure setups. This patch replaces all realpath() calls with a PHP only replacement which should solve those problems. darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
* use file_get_contents to read filesAndreas Gohr2007-07-25
| | | | darcs-hash:20070725190021-7ad00-32ea2f7d76d6508dfeb9dfd90f94132c4020386c.gz
* unlock files if write failedAndreas Gohr2006-10-18
| | | | darcs-hash:20061018181931-7ad00-2778b83d25e8dcfad4b00710077e44bcef9af699.gz
* minor bugfix and boring error removalchris2006-09-23
| | | | darcs-hash:20060923203609-9b6ab-ecca679faa254a29772868508050fcf3206b0814.gz
* permission setting in io_rename fixed #912Andreas Gohr2006-09-16
| | | | darcs-hash:20060916145350-7ad00-cb78b531006e1f1875b2d8e8bc648740e5021736.gz
* suppress boring errorsBen Coburn2006-09-08
| | | | | | | | Suppress any errors from set_time_limit, unlink, and file_exists functions. see: http://www.freelists.org/archives/dokuwiki/09-2006/msg00004.html darcs-hash:20060908193433-05dcb-013617431870ab5bfb2ce8c6e99ba5af13493228.gz
* Added bz2 compression support for Atticmarcel2006-08-23
| | | | darcs-hash:20060823211149-9c1ae-569f295c33dc798a429a373f48cb09122334ea29.gz
* IO action eventsBen Coburn2006-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | Adds page and namespace events: IO_WIKIPAGE_READ IO_WIKIPAGE_WRITE IO_NAMESPACE_CREATED IO_NAMESPACE_DELETED The namespace events are purely advisory, while the wikipage events allow page content to be modified between DokuWiki and the disk. These events are primarily intended to simplify keeping other tools in sync with the semantic structure of a DokuWiki site. As an added benefit, the events allow plugins to conduct automated processing of raw wiki page content. The namespace events cover the separate namespace trees for both pages and media. The "name" of the tree that the event belongs to is included in the event data. darcs-hash:20060705105652-05dcb-f44024e852a2adf1a14b8a7d69c46db067e72307.gz
* $conf['fetchsize'] addedAndreas Gohr2006-06-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds an option to configure the maximum size for files the fetch.php will ever download. Setting this to 0 completely turns of the caching of external media files. Disadvantages of setting a low or zero fetchsize: * fetch.php needs to download images to be able to resize them. When the used fetchsize prevents the downloading the images can only be resized by the browser which means the browser will need to download the fullsized image first. * If the linked external media files vanishes it will no longer display in the wiki because it is not cached. Advantages of setting a low or zero fetchsize: * fetch.php may be used for a possible denial of service attack by requesting many big external files. * The created cache files may take a lot of space on the server I recommend to leave the setting at 2MB for internal and private wikis and lower the setting to about 200 to 500 Kb for bigger public Wikis. Note: the caching of files uploaded through the media manager is not affected by this setting. darcs-hash:20060615184847-7ad00-04fc39928f7d72e56f5c5e271013ef265436e6c9.gz
* avoid trolling in io_lock()Andreas Gohr2006-05-17
| | | | darcs-hash:20060517165023-7ad00-f3583cd929bf80721593f8fc77fb74bd6b864b03.gz
* more info is gathered on metaupdate in background indexerAndreas Gohr2006-05-11
| | | | | | | | | | The background indexer now gathers info on contributors and modification dates from the changelog when adding the missing meta info. A new io_grep function was added which might be useful for other parts in the Wiki as well. darcs-hash:20060511191450-7ad00-baba1b48ea03b823c88a480862c612316f159b5a.gz
* Automatic draft savingAndreas Gohr2006-03-11
| | | | | | | | DokuWiki now automatically creates a draft file of the currently edited page. In case of an editing interuption (eg. Browsercrash) the draftfile can be continued later. darcs-hash:20060311200148-7ad00-919337a51e001136178d175a1755cd26122e9726.gz
* clean media directories after medeia deletion FS#734Andreas Gohr2006-03-07
| | | | darcs-hash:20060307184706-7ad00-c57e9e6c54879afaf17858fe642478fcb91af983.gz
* simplified file permission handlingAndreas Gohr2006-03-04
| | | | | | | | | | This patch simpliefies the configuration of the file and directory creation modes. There is no need to set the umask anymore. Only the wanted permissions for files and directories are set. An init function compares the wanted modes with the ones that would be choosen by the system automatically (consulting the system's umask) and sets the modes for chmod when needed. darcs-hash:20060304154038-7ad00-5ef1db3a87e42563a602f9d050c681d2ea74682f.gz