From: <var...@us...> - 2008-09-07 11:10:44
|
Revision: 6241 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6241&view=rev Author: vargenau Date: 2008-09-07 11:10:55 +0000 (Sun, 07 Sep 2008) Log Message: ----------- Removed history Modified Paths: -------------- trunk/lib/plugin/WikiAdminRemove.php Modified: trunk/lib/plugin/WikiAdminRemove.php =================================================================== --- trunk/lib/plugin/WikiAdminRemove.php 2008-09-07 11:06:43 UTC (rev 6240) +++ trunk/lib/plugin/WikiAdminRemove.php 2008-09-07 11:10:55 UTC (rev 6241) @@ -234,148 +234,6 @@ } }; - -// $Log: not supported by cvs2svn $ -// Revision 1.29 2004/11/09 17:11:17 rurban -// * revert to the wikidb ref passing. there's no memory abuse there. -// * use new wikidb->_cache->_id_cache[] instead of wikidb->_iwpcache, to effectively -// store page ids with getPageLinks (GleanDescription) of all existing pages, which -// are also needed at the rendering for linkExistingWikiWord(). -// pass options to pageiterator. -// use this cache also for _get_pageid() -// This saves about 8 SELECT count per page (num all pagelinks). -// * fix passing of all page fields to the pageiterator. -// * fix overlarge session data which got broken with the latest ACCESS_LOG_SQL changes -// -// Revision 1.28 2004/11/01 10:43:59 rurban -// seperate PassUser methods into seperate dir (memory usage) -// fix WikiUser (old) overlarge data session -// remove wikidb arg from various page class methods, use global ->_dbi instead -// ... -// -// Revision 1.27 2004/06/16 10:38:59 rurban -// Disallow refernces in calls if the declaration is a reference -// ("allow_call_time_pass_reference clean"). -// PhpWiki is now allow_call_time_pass_reference = Off clean, -// but several external libraries may not. -// In detail these libs look to be affected (not tested): -// * Pear_DB odbc -// * adodb oracle -// -// Revision 1.26 2004/06/14 11:31:39 rurban -// renamed global $Theme to $WikiTheme (gforge nameclash) -// inherit PageList default options from PageList -// default sortby=pagename -// use options in PageList_Selectable (limit, sortby, ...) -// added action revert, with button at action=diff -// added option regex to WikiAdminSearchReplace -// -// Revision 1.25 2004/06/13 15:33:20 rurban -// new support for arguments owner, author, creator in most relevant -// PageList plugins. in WikiAdmin* via preSelectS() -// -// Revision 1.24 2004/06/08 10:05:11 rurban -// simplified admin action shortcuts -// -// Revision 1.23 2004/06/03 22:24:48 rurban -// reenable admin check on !ENABLE_PAGEPERM, honor s=Wildcard arg, fix warning after Remove -// -// Revision 1.22 2004/05/16 22:07:35 rurban -// check more config-default and predefined constants -// various PagePerm fixes: -// fix default PagePerms, esp. edit and view for Bogo and Password users -// implemented Creator and Owner -// BOGOUSERS renamed to BOGOUSER -// fixed syntax errors in signin.tmpl -// -// Revision 1.21 2004/05/04 16:34:22 rurban -// prvent hidden p overwrite checked p -// -// Revision 1.20 2004/05/03 11:02:30 rurban -// fix passing args from WikiAdminSelect to WikiAdminRemove -// -// Revision 1.19 2004/04/12 09:12:23 rurban -// fix syntax errors -// -// Revision 1.18 2004/04/07 23:13:19 rurban -// fixed pear/File_Passwd for Windows -// fixed FilePassUser sessions (filehandle revive) and password update -// -// Revision 1.17 2004/03/17 20:23:44 rurban -// fixed p[] pagehash passing from WikiAdminSelect, fixed problem removing pages with [] in the pagename -// -// Revision 1.16 2004/03/12 13:31:43 rurban -// enforce PagePermissions, errormsg if not Admin -// -// Revision 1.15 2004/03/01 13:48:46 rurban -// rename fix -// p[] consistency fix -// -// Revision 1.14 2004/02/22 23:20:33 rurban -// fixed DumpHtmlToDir, -// enhanced sortby handling in PageList -// new button_heading th style (enabled), -// added sortby and limit support to the db backends and plugins -// for paging support (<<prev, next>> links on long lists) -// -// Revision 1.13 2004/02/17 12:11:36 rurban -// added missing 4th basepage arg at plugin->run() to almost all plugins. This caused no harm so far, because it was silently dropped on normal usage. However on plugin internal ->run invocations it failed. (InterWikiSearch, IncludeSiteMap, ...) -// -// Revision 1.12 2004/02/15 21:34:37 rurban -// PageList enhanced and improved. -// fixed new WikiAdmin... plugins -// editpage, Theme with exp. htmlarea framework -// (htmlarea yet committed, this is really questionable) -// WikiUser... code with better session handling for prefs -// enhanced UserPreferences (again) -// RecentChanges for show_deleted: how should pages be deleted then? -// -// Revision 1.11 2004/02/11 20:00:16 rurban -// WikiAdmin... series overhaul. Rename misses the db backend methods yet. Chmod + Chwon still missing. -// -// Revision 1.9 2003/02/26 22:27:22 dairiki -// Fix and refactor FrameInclude plugin (more or less). -// -// (This should now generate valid HTML. Woohoo!) -// -// The output when using the Sidebar theme is ugly enough that it should -// be considered broken. (But the Sidebar theme appears pretty broken in -// general right now.) -// -// (Personal comment (not to be taken personally): I must say that I -// remain unconvinced of the usefulness of this plugin.) -// -// Revision 1.8 2003/02/17 17:23:59 dairiki -// Disable plugin unless action='browse'. -// -// Add a header to the output, and adjust the HTML formatting a bit. -// -// Revision 1.7 2003/02/17 06:06:33 dairiki -// Refactor & code cleanup. -// -// Added two new plugin arguments: -// -// min_age - only display pages which have been "deleted" for at -// least this many days. (Use min_age=none to get all -// pages, even non-deleted ones listed.) -// -// max_age - automatically check the checkboxes of pages which -// have been "deleted" this many days or more. -// -// ("Deleted" means the current version of the page is empty. -// For the most part, PhpWiki treats these "deleted" pages as -// if they didn't exist --- but, of course, the PageHistory is -// still available, allowing old versions of the page to be restored.) -// -// Revision 1.6 2003/02/16 19:47:17 dairiki -// Update WikiDB timestamp when editing or deleting pages. -// -// Revision 1.5 2003/01/18 22:14:28 carstenklapp -// Code cleanup: -// Reformatting & tabs to spaces; -// Added copyleft, getVersion, getDescription, rcs_id. -// - // Local Variables: // mode: php // tab-width: 8 This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2009-06-22 14:29:33
|
Revision: 6950 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=6950&view=rev Author: vargenau Date: 2009-06-22 14:29:21 +0000 (Mon, 22 Jun 2009) Log Message: ----------- Spelling Modified Paths: -------------- trunk/lib/plugin/WikiAdminRemove.php Modified: trunk/lib/plugin/WikiAdminRemove.php =================================================================== --- trunk/lib/plugin/WikiAdminRemove.php 2009-06-22 12:17:29 UTC (rev 6949) +++ trunk/lib/plugin/WikiAdminRemove.php 2009-06-22 14:29:21 UTC (rev 6950) @@ -117,7 +117,7 @@ $ul->pushContent(HTML::li(fmt("Removed page '%s' successfully.", $name))); $count++; } else { - $ul->pushContent(HTML::li(fmt("Didn't removed page '%s'. Access denied.", $name))); + $ul->pushContent(HTML::li(fmt("Didn't remove page '%s'. Access denied.", $name))); } } if ($count) $dbi->touch(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2021-12-09 13:48:01
|
Revision: 10754 http://sourceforge.net/p/phpwiki/code/10754 Author: vargenau Date: 2021-12-09 13:47:59 +0000 (Thu, 09 Dec 2021) Log Message: ----------- WikiAdminRemove plugin: factor code Modified Paths: -------------- trunk/lib/plugin/WikiAdminRemove.php Modified: trunk/lib/plugin/WikiAdminRemove.php =================================================================== --- trunk/lib/plugin/WikiAdminRemove.php 2021-12-09 13:44:25 UTC (rev 10753) +++ trunk/lib/plugin/WikiAdminRemove.php 2021-12-09 13:47:59 UTC (rev 10754) @@ -100,7 +100,7 @@ return $list; } - private function removePages(&$request, $pages) + private function removePages($request, $pages) { $result = HTML::div(); $ul = HTML::ul(); @@ -198,22 +198,17 @@ } $header = HTML::fieldset(); + $pagelist = new PageList_Selectable($args['info'], $args['exclude'], + array('types' => + array('remove' + => new _PageList_Column_remove('remove', _("Remove"))))); + $pagelist->addPageList($pages); if ($next_action == 'verify') { - $pagelist = new PageList_Selectable($args['info'], $args['exclude'], - array('types' => - array('remove' - => new _PageList_Column_remove('remove', _("Remove"))))); - $pagelist->addPageList($pages); $button_label = _("Yes"); $header->pushContent(HTML::legend(_("Confirm removal"))); $header->pushContent(HTML::p(HTML::strong( _("Are you sure you want to remove the selected pages?")))); } else { - $pagelist = new PageList_Selectable($args['info'], $args['exclude'], - array('types' => - array('remove' - => new _PageList_Column_remove('remove', _("Remove"))))); - $pagelist->addPageList($pages); $button_label = _("Remove selected pages"); $header->pushContent(HTML::legend(_("Select the pages to remove"))); if ($args['min_age'] > 0) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <var...@us...> - 2022-01-06 09:18:32
|
Revision: 10841 http://sourceforge.net/p/phpwiki/code/10841 Author: vargenau Date: 2022-01-06 09:18:29 +0000 (Thu, 06 Jan 2022) Log Message: ----------- lib/plugin/WikiAdminRemove.php: do not display checkbox when confirming Modified Paths: -------------- trunk/lib/plugin/WikiAdminRemove.php Modified: trunk/lib/plugin/WikiAdminRemove.php =================================================================== --- trunk/lib/plugin/WikiAdminRemove.php 2022-01-06 09:18:03 UTC (rev 10840) +++ trunk/lib/plugin/WikiAdminRemove.php 2022-01-06 09:18:29 UTC (rev 10841) @@ -112,9 +112,10 @@ $this->preSelectS($args, $request); $p = $request->getArg('p'); - if (!$p) $p = $this->_list; + if (!$p) { + $p = $this->_list; + } $post_args = $request->getArg('admin_remove'); - $next_action = 'select'; $pages = array(); if ($p && $request->isPost() && @@ -150,17 +151,22 @@ } $header = HTML::fieldset(); - $pagelist = new PageList_Selectable($args['info'], $args['exclude'], - array('types' => - array('remove' - => new PageList_Column_remove('remove', _("Remove"))))); - $pagelist->addPageList($pages); if ($next_action == 'verify') { + $pagelist = new PageList_Unselectable($args['info'], $args['exclude'], + array('types' => + array('remove' + => new PageList_Column_remove('remove', _("Remove"))))); + $pagelist->addPageList($pages); $button_label = _("Yes"); $header->pushContent(HTML::legend(_("Confirm removal"))); $header->pushContent(HTML::p(HTML::strong( _("Are you sure you want to remove the following pages?")))); } else { + $pagelist = new PageList_Selectable($args['info'], $args['exclude'], + array('types' => + array('remove' + => new PageList_Column_remove('remove', _("Remove"))))); + $pagelist->addPageList($pages); $button_label = _("Remove selected pages"); $header->pushContent(HTML::legend(_("Select the pages to remove"))); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |