From: <var...@us...> - 2012-11-14 16:44:17
|
Revision: 8453 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8453&view=rev Author: vargenau Date: 2012-11-14 16:44:11 +0000 (Wed, 14 Nov 2012) Log Message: ----------- elseif Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2012-11-14 16:42:43 UTC (rev 8452) +++ trunk/lib/loadsave.php 2012-11-14 16:44:11 UTC (rev 8453) @@ -936,7 +936,7 @@ if ($request->getArg('merge')) { $merging = true; - } else if ($request->getArg('overwrite')) { + } elseif ($request->getArg('overwrite')) { $overwrite = true; } @@ -1004,7 +1004,7 @@ } $skip = true; } - } else if ($current->getPackedContent() == $content) { + } elseif ($current->getPackedContent() == $content) { // The page content is the same, we don't need a new revision. $mesg->pushContent(' ', fmt("content is identical to current version %d - no new revision created", @@ -1305,7 +1305,7 @@ $request->setArg('overwrite', $overwrite); else unset($request->_args['overwrite']); - } else if (($pageinfo = ParseSerializedPage($text, $default_pagename, + } elseif (($pageinfo = ParseSerializedPage($text, $default_pagename, $request->getUser())) ) { SavePage($request, $pageinfo, sprintf(_("Serialized file %s"), @@ -1462,11 +1462,11 @@ if (!$type) { $request->finish(fmt("Empty or not existing source. Unable to load: %s", $file_or_dir)); - } else if ($type == 'dir') { + } elseif ($type == 'dir') { LoadDir($request, $file_or_dir, $files, $exclude); - } else if ($type != 'file' && !preg_match('/^(http|ftp):/', $file_or_dir)) { + } elseif ($type != 'file' && !preg_match('/^(http|ftp):/', $file_or_dir)) { $request->finish(fmt("Bad file type: %s", $type)); - } else if (IsZipFile($file_or_dir)) { + } elseif (IsZipFile($file_or_dir)) { LoadZip($request, $file_or_dir, $files, $exclude); } else /* if (!$files || in_array(basename($file_or_dir), $files)) */ { LoadFile($request, $file_or_dir); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-12-12 14:29:00
|
Revision: 8658 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8658&view=rev Author: vargenau Date: 2012-12-12 14:28:54 +0000 (Wed, 12 Dec 2012) Log Message: ----------- Less space: HTML::p --> HTML::span Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2012-12-12 10:38:49 UTC (rev 8657) +++ trunk/lib/loadsave.php 2012-12-12 14:28:54 UTC (rev 8658) @@ -966,10 +966,10 @@ $page->set($key, $value); } - $mesg = HTML::p(); - if ($source) + $mesg = HTML::span(); + if ($source) { $mesg->pushContent(' ', fmt("from “%s”", $source)); - + } if (!$current) { //FIXME: This should not happen! (empty vdata, corrupt cache or db) $current = $page->getCurrentRevision(); @@ -1060,7 +1060,7 @@ if (!isa($request, 'MockRequest')) { if ($skip) - PrintXML(HTML::p(HTML::em(WikiLink($pagename))), $mesg); + PrintXML(HTML::em(WikiLink($pagename)), $mesg); else PrintXML($mesg); flush(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-12-19 09:02:48
|
Revision: 8671 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8671&view=rev Author: vargenau Date: 2012-12-19 09:02:42 +0000 (Wed, 19 Dec 2012) Log Message: ----------- Less space: HTML::p --> HTML::span Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2012-12-17 15:58:29 UTC (rev 8670) +++ trunk/lib/loadsave.php 2012-12-19 09:02:42 UTC (rev 8671) @@ -1013,7 +1013,7 @@ if (!$skip) { // in case of failures print the culprit: if (!isa($request, 'MockRequest')) { - PrintXML(HTML::p(WikiLink($pagename))); + PrintXML(HTML::span(WikiLink($pagename))); flush(); } $new = $page->save($content, WIKIDB_FORCE_CREATE, $versiondata); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2012-12-19 12:40:53
|
Revision: 8682 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=8682&view=rev Author: vargenau Date: 2012-12-19 12:40:47 +0000 (Wed, 19 Dec 2012) Log Message: ----------- Add <br /> when creating wiki Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2012-12-19 12:22:00 UTC (rev 8681) +++ trunk/lib/loadsave.php 2012-12-19 12:40:47 UTC (rev 8682) @@ -1020,6 +1020,7 @@ $dbi->touch(); $mesg->pushContent(' ', fmt("- saved to database as version %d", $new->getVersion())); + $mesg->pushContent(HTML::br()); } if ($needs_merge) { $f = $source; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2013-06-12 16:00:19
|
Revision: 8794 http://sourceforge.net/p/phpwiki/code/8794 Author: vargenau Date: 2013-06-12 16:00:15 +0000 (Wed, 12 Jun 2013) Log Message: ----------- Reverting a wiki page should give the name of the user who did the revert Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2013-05-30 13:23:59 UTC (rev 8793) +++ trunk/lib/loadsave.php 2013-06-12 16:00:15 UTC (rev 8794) @@ -1122,6 +1122,7 @@ $versiondata = $rev->_data; $versiondata['summary'] = sprintf(_("revert to version %d"), $version); $versiondata['mtime'] = time(); + $versiondata['author'] = $request->getUser()->getId(); $new = $page->save($content, $currversion + 1, $versiondata); $dbi->touch(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2013-07-04 14:45:32
|
Revision: 8825 http://sourceforge.net/p/phpwiki/code/8825 Author: vargenau Date: 2013-07-04 14:45:29 +0000 (Thu, 04 Jul 2013) Log Message: ----------- Better handling of mandatory pages Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2013-07-04 14:43:33 UTC (rev 8824) +++ trunk/lib/loadsave.php 2013-07-04 14:45:29 UTC (rev 8825) @@ -1508,16 +1508,23 @@ // Ensure that all mandatory pages are loaded $finder = new FileFinder; - if (!(defined('FUSIONFORGE') and FUSIONFORGE)) { - $mandatory = explode(':', 'SandBox:Template/Category:Template/Talk:SpecialPages:CategoryCategory:CategoryActionPage:Help/OldTextFormattingRules:Help/TextFormattingRules:PhpWikiAdministration'); - } elseif (WIKI_NAME == "help") { - $mandatory = explode(':', 'SandBox:Template/Category:Template/Talk:SpecialPages:CategoryCategory:CategoryActionPage:Help/TextFormattingRules:PhpWikiAdministration'); - } else { - $mandatory = explode(':', 'SandBox:Template/UserPage:Template/Category:Template/Talk:SpecialPages:CategoryCategory:CategoryActionPage:TextFormattingRules:PhpWikiAdministration'); + $mandatory = array('SandBox', + 'Template/Category', + 'Template/Talk', + 'SpecialPages', + 'CategoryCategory', + 'CategoryActionPage', + 'Help/TextFormattingRules', + 'PhpWikiAdministration'); + + if ((defined('FUSIONFORGE') and FUSIONFORGE)) { + $mandatory[] = 'Template/UserPage'; } - foreach (array_merge($mandatory, - $GLOBALS['AllActionPages'], - array(constant('HOME_PAGE'))) as $f) { + + $mandatory = array_merge($mandatory, $GLOBALS['AllActionPages']); + $mandatory[] = constant('HOME_PAGE'); + + foreach ($mandatory as $f) { $page = gettext($f); $epage = urlencode($page); if (!$dbi->isWikiPage($page)) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-05-06 14:21:08
|
Revision: 8855 http://sourceforge.net/p/phpwiki/code/8855 Author: vargenau Date: 2014-05-06 14:21:05 +0000 (Tue, 06 May 2014) Log Message: ----------- </article> --> </main> Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2014-05-06 13:40:19 UTC (rev 8854) +++ trunk/lib/loadsave.php 2014-05-06 14:21:05 UTC (rev 8855) @@ -128,7 +128,7 @@ if (isa($WikiTheme, 'WikiTheme_fusionforge')) { echo "</div>\n"; echo "</div>\n"; - echo "</article>\n"; + echo "</main>\n"; echo "</div>\n"; } elseif (isa($WikiTheme, 'WikiTheme_Sidebar') or isa($WikiTheme, 'WikiTheme_MonoBook') This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-07-15 10:27:57
|
Revision: 8960 http://sourceforge.net/p/phpwiki/code/8960 Author: vargenau Date: 2014-07-15 10:27:49 +0000 (Tue, 15 Jul 2014) Log Message: ----------- Translate string; remove trigger_error when success Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2014-07-09 08:39:11 UTC (rev 8959) +++ trunk/lib/loadsave.php 2014-07-15 10:27:49 UTC (rev 8960) @@ -105,17 +105,15 @@ $all_users = array_unique(array_merge($all_users, $userids)); } $editedby = sprintf(_("Edited by: %s"), $request->_user->getId()); - $content = "Loaded the following pages:\n" . join("\n", $pages); - if (mail(join(',', $all_emails), "[" . WIKI_NAME . "] " . _("LoadDump"), + $content = _("Loaded the following pages:") . "\n" . join("\n", $pages); + if (!mail(join(',', $all_emails), "[" . WIKI_NAME . "] " . _("LoadDump"), _("LoadDump") . "\n" . $editedby . "\n\n" . $content) - ) - trigger_error(sprintf(_("PageChange Notification of %s sent to %s"), - join("\n", $pages), join(',', $all_users)), E_USER_NOTICE); - else + ) { trigger_error(sprintf(_("PageChange Notification Error: Couldn't send %s to %s"), join("\n", $pages), join(',', $all_users)), E_USER_WARNING); + } unset($pages); unset($all_emails); unset($all_users); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-10-09 13:36:41
|
Revision: 9228 http://sourceforge.net/p/phpwiki/code/9228 Author: vargenau Date: 2014-10-09 13:36:33 +0000 (Thu, 09 Oct 2014) Log Message: ----------- passthru is void Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2014-10-08 12:53:10 UTC (rev 9227) +++ trunk/lib/loadsave.php 2014-10-09 13:36:33 UTC (rev 9228) @@ -862,9 +862,8 @@ passthru($cmd); } else { $tmpdir = getUploadFilePath(); - $s = passthru($cmd . " > $tmpdir/$filename.pdf"); + passthru($cmd . " > $tmpdir/$filename.pdf"); $errormsg = "<br />\nGenerated <a href=\"" . getUploadDataPath() . "$filename.pdf\">Upload:$filename.pdf</a>\n"; - $errormsg .= $s; echo $errormsg; } if (!DEBUG) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2014-12-08 17:28:50
|
Revision: 9435 http://sourceforge.net/p/phpwiki/code/9435 Author: vargenau Date: 2014-12-08 17:28:47 +0000 (Mon, 08 Dec 2014) Log Message: ----------- Fix "Remove unused" Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2014-12-08 17:26:33 UTC (rev 9434) +++ trunk/lib/loadsave.php 2014-12-08 17:28:47 UTC (rev 9435) @@ -1268,7 +1268,7 @@ 'content' => preg_replace('/[ \t\r]*\n/', "\n", chop($text)) ); - SavePage($request, $pageinfo, sprintf(_("plain file %s"))); + SavePage($request, $pageinfo, sprintf(_("plain file %s"), $filename)); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-01-27 09:49:29
|
Revision: 9491 http://sourceforge.net/p/phpwiki/code/9491 Author: vargenau Date: 2015-01-27 09:49:26 +0000 (Tue, 27 Jan 2015) Log Message: ----------- Allow unlimited memory for ZIP dump Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2015-01-26 16:40:23 UTC (rev 9490) +++ trunk/lib/loadsave.php 2015-01-27 09:49:26 UTC (rev 9491) @@ -231,6 +231,8 @@ $include_empty = true; } + // We may need much memory for the dump + ini_set("memory_limit", -1); $zip = new ZipWriter("Created by PhpWiki " . PHPWIKI_VERSION, $zipname); /* ignore fatals in plugins */ @@ -488,7 +490,11 @@ } else { $zipname = "wikihtml.zip"; } + + // We may need much memory for the dump + ini_set("memory_limit", -1); $zip = new ZipWriter("Created by PhpWiki " . PHPWIKI_VERSION, $zipname); + $dbi =& $request->_dbi; $thispage = $request->getArg('pagename'); // for "Return to ..." if ($pages = $request->getArg('pages')) { // which pagenames This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-02-20 16:10:57
|
Revision: 9554 http://sourceforge.net/p/phpwiki/code/9554 Author: vargenau Date: 2015-02-20 16:10:50 +0000 (Fri, 20 Feb 2015) Log Message: ----------- Load theme pgsrc, if it exists Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2015-02-19 15:49:32 UTC (rev 9553) +++ trunk/lib/loadsave.php 2015-02-20 16:10:50 UTC (rev 9554) @@ -1479,9 +1479,6 @@ * HomePage was not found so first-time install is supposed to run. * - import all pgsrc pages. * - Todo: installer interface to edit config/config.ini settings - * - Todo: ask for existing old index.php to convert to config/config.ini - * - Todo: theme-specific pages: - * blog - HomePage, ADMIN_USER/Blogs */ function SetupWiki(&$request) { @@ -1501,13 +1498,19 @@ $pgsrc = FindLocalizedFile(WIKI_PGSRC); $default_pgsrc = FindFile(DEFAULT_WIKI_PGSRC); + $theme_pgsrc = FindFile("themes/".THEME."/".WIKI_PGSRC, true); $request->setArg('overwrite', true); + // Load theme pgsrc, if it exists + if ($theme_pgsrc) { + LoadAny($request, $theme_pgsrc); + } if ($default_pgsrc != $pgsrc) { LoadAny($request, $default_pgsrc, $GenericPages); } $request->setArg('overwrite', false); LoadAny($request, $pgsrc); + $dbi =& $request->_dbi; // Ensure that all mandatory pages are loaded This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2015-09-16 09:45:51
|
Revision: 9724 http://sourceforge.net/p/phpwiki/code/9724 Author: vargenau Date: 2015-09-16 09:45:49 +0000 (Wed, 16 Sep 2015) Log Message: ----------- Check that file to load exists Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2015-09-16 09:23:24 UTC (rev 9723) +++ trunk/lib/loadsave.php 2015-09-16 09:45:49 UTC (rev 9724) @@ -1443,6 +1443,10 @@ } } + if (!file_exists($file_or_dir)) { + $request->finish(fmt("Not existing source. Unable to load: %s", $file_or_dir)); + } + $type = filetype($file_or_dir); if ($type == 'link') { // For symbolic links, use stat() to determine This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2016-10-11 08:17:06
|
Revision: 9960 http://sourceforge.net/p/phpwiki/code/9960 Author: vargenau Date: 2016-10-11 08:17:04 +0000 (Tue, 11 Oct 2016) Log Message: ----------- Add InterWikiMap to list of mandatory pages Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2016-10-10 19:43:56 UTC (rev 9959) +++ trunk/lib/loadsave.php 2016-10-11 08:17:04 UTC (rev 9960) @@ -1521,7 +1521,8 @@ // Ensure that all mandatory pages are loaded $finder = new FileFinder(); - $mandatory = array('SandBox', + $mandatory = array('InterWikiMap', + 'SandBox', 'Template/Category', 'Template/Talk', 'SpecialPages', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2016-12-05 18:00:41
|
Revision: 9988 http://sourceforge.net/p/phpwiki/code/9988 Author: vargenau Date: 2016-12-05 18:00:38 +0000 (Mon, 05 Dec 2016) Log Message: ----------- Add HTML::p Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2016-12-05 17:48:38 UTC (rev 9987) +++ trunk/lib/loadsave.php 2016-12-05 18:00:38 UTC (rev 9988) @@ -1040,7 +1040,7 @@ } if ($skip) - PrintXML(HTML::em(WikiLink($pagename)), $mesg); + PrintXML(HTML::p(HTML::em(WikiLink($pagename)), $mesg)); else PrintXML($mesg); flush(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2017-01-18 15:49:43
|
Revision: 10003 http://sourceforge.net/p/phpwiki/code/10003 Author: vargenau Date: 2017-01-18 15:49:41 +0000 (Wed, 18 Jan 2017) Log Message: ----------- Make XHTML ZIP Snapshot work again (real fix) Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2017-01-11 15:34:42 UTC (rev 10002) +++ trunk/lib/loadsave.php 2017-01-18 15:49:41 UTC (rev 10003) @@ -754,7 +754,7 @@ } } else { $target = "images/" . basename($from); - $zip->addFile($target); + $zip->addFile($from, $target); } } elseif (!$silent) { _copyMsg($from, _("... not found")); @@ -789,7 +789,7 @@ } } else { $target = "images/buttons/" . basename($from); - $zip->addFile($target); + $zip->addFile($from, $target); } } elseif (!$silent) { _copyMsg($from, _("... not found")); @@ -819,7 +819,7 @@ } else { //$attrib = array('is_ascii' => 0); $target = basename($css_file); - $zip->addFile($target); + $zip->addFile($from, $target); } } elseif (!$silent) { _copyMsg($from, _("... not found")); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2020-03-23 12:01:45
|
Revision: 10156 http://sourceforge.net/p/phpwiki/code/10156 Author: vargenau Date: 2020-03-23 12:01:44 +0000 (Mon, 23 Mar 2020) Log Message: ----------- delete temporary file -- patches by Christof Meerwald Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2020-03-23 11:59:33 UTC (rev 10155) +++ trunk/lib/loadsave.php 2020-03-23 12:01:44 UTC (rev 10156) @@ -215,7 +215,7 @@ // We may need much memory for the dump ini_set("memory_limit", -1); $zip = new ZipArchive(); - $tmpfilename = "/tmp/" . $zipname; + $tmpfilename = TEMP_DIR . '/' . $zipname; if (file_exists($tmpfilename)) { unlink ($tmpfilename); } @@ -282,6 +282,7 @@ header('Content-Length: '.filesize($tmpfilename)); readfile($tmpfilename); + unlink($tmpfilename); exit; } @@ -837,6 +838,7 @@ header('Content-Length: '.filesize($tmpfilename)); readfile($tmpfilename); + unlink($tmpfilename); exit; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-08-03 15:47:10
|
Revision: 10415 http://sourceforge.net/p/phpwiki/code/10415 Author: vargenau Date: 2021-08-03 15:47:08 +0000 (Tue, 03 Aug 2021) Log Message: ----------- DumpToDir: better error handling Modified Paths: -------------- trunk/lib/loadsave.php Modified: trunk/lib/loadsave.php =================================================================== --- trunk/lib/loadsave.php 2021-08-03 11:11:27 UTC (rev 10414) +++ trunk/lib/loadsave.php 2021-08-03 15:47:08 UTC (rev 10415) @@ -292,18 +292,36 @@ function DumpToDir(&$request) { $directory = $request->getArg('directory'); - if (empty($directory)) - $directory = DEFAULT_DUMP_DIR; // See lib/plugin/WikiForm.php:87 - if (empty($directory)) - $request->finish(_("You must specify a directory to dump to")); + if (empty($directory)) { + $directory = DEFAULT_DUMP_DIR; + } + if (empty($directory)) { + $html = HTML::p(array('class' => 'error'), + _("You must specify a directory to dump to")); + StartLoadDump($request, _("Dumping Pages"), $html); + EndLoadDump($request); + return; + } // see if we can access the directory the user wants us to use if (!file_exists($directory)) { - if (!mkdir($directory, 0755)) - $request->finish(fmt("Cannot create directory “%s”", $directory)); - else + if (!mkdir_p($directory, 0755)) { + $html = HTML::p(array('class' => 'error'), + fmt("Cannot create directory “%s”", $directory)); + StartLoadDump($request, _("Dumping Pages"), $html); + EndLoadDump($request); + return; + } else { $html = HTML::p(fmt("Created directory “%s” for the page dump...", $directory)); + } + } elseif (!is_writable($directory)) { + $html = HTML::p(array('class' => 'error'), + fmt("Cannot use directory “%s”, it is not writable", + $directory)); + StartLoadDump($request, _("Dumping Pages"), $html); + EndLoadDump($request); + return; } else { $html = HTML::p(fmt("Using directory “%s”", $directory)); } @@ -389,15 +407,16 @@ return mkdir($pathname, $permission); } $s = array_shift($arr); - $ok = TRUE; + $ok = true; foreach ($arr as $p) { $curr = "$s/$p"; if (!is_dir($curr)) $ok = mkdir($curr, $permission); $s = $curr; - if (!$ok) return FALSE; + if (!$ok) + return false; } - return TRUE; + return true; } /** @@ -422,7 +441,7 @@ // See if we can access the directory the user wants us to use if (!file_exists($directory)) { - if (!mkdir($directory, 0755)) + if (!mkdir_p($directory, 0755)) $request->finish(fmt("Cannot create directory “%s”", $directory)); else $html = HTML::p(fmt("Created directory “%s” for the page dump...", This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |