Revision history for GmBowenAdminPageControlTool


Revision [19364]

Last edited on 2008-01-28 00:15:26 by GmBowen [Modified links pointing to docs server]

No Differences

Revision [17576]

Edited on 2007-10-01 17:13:02 by GmBowen [link update]
Additions:
http://gmbtst.msvu.ca/wikitest/adminpanel.jpg
<P> </P>
<P>Page Name</P>
<P>Page Owner</P>
<P>Time Hidden</P>
<P>Un-Hide??</P>
Deletions:
http://gmbowen.educ.unb.ca/wikitest/adminpanel.jpg
<P> </P>
<P>Page Name</P>
<P>Page Owner</P>
<P>Time Hidden</P>
<P>Un-Hide??</P>


Revision [9604]

Edited on 2005-06-25 00:08:57 by CharlotteFischer [link update]
Additions:
~& I had to fix this - probably written for a version that did not have an actions folder. Here is my fix: - CharlotteFischer
include($this->config['action_path']."/hidepage.php");
include($this->config['action_path']."/adminerasehistory.php");


Revision [6708]

Edited on 2005-03-14 22:03:56 by PivWan [typo]
Additions:
----
====Simple Admin Control Panel====
For various reasons, administrators might need to remove content from the wiki in a (semi)permanent fashion (this is more and more true as legal culpability for offensive statements, etc. is extended....and because of this an administrator may not want to completely remove the content (so the "owner" is still identifiable), but make it so that it at least appears to no longer exist). Below is code for what is essentially a //simple// administrator control panel (appearing under the footer) that allows the administrator to **"Hide a page"** (it changes the "Y" to an "H" in the _pages database table (if the ACLS table for "Read" is set to //null// then only the administrator can re-create the page....at least that's how it tested out on my server), **"Erase the History"** of a page, or **"Delete a Page"**. It provides a small table under the footer with these features in it at the bottom of the page. An action is included at the bottom of this page that will allow the admin to list the hidden pages and restore them if desired.
http://gmbowen.educ.unb.ca/wikitest/adminpanel.jpg
All the changes must be implemented for the features to work.

====Hide Page Code====

Whenever the "Hide Page" button is clicked it changes the field "latest" for that page from "Y" to "H" and it therefore does not appear. If the ACLS permissions are set to //null// before "Hide Page" is clicked then only the admin can re-create the page.

1. The following code must be saved as ##hidepage.php## and the file placed in the actions directory
%%(php)
<? // code developed by GMBowen to "hide" a given page (by changing "latest" to "H" in _pages table)
if ($this->IsAdmin())
{
echo '<table><tr><td><form action="" method="post">
<input type="submit" name="hidepage" value="Hide Page"></td></table></form>';
echo "<small>* To <strong>hide</strong> page, <strong>set</strong> ACLS ''Read'' to <strong><i>null</i></strong> & click on Hide button above...</small><BR>";
echo "<small>* Note that unless the ACLS is set to null, then anybody with Read permission can re-create the page.</small>";
}
if ($_POST['hidepage'] && $this->IsAdmin())
{
$thispage=$this->GetPageTag();
//$sql = "DELETE FROM ".$this->config["table_prefix"]."pages WHERE tag='$thispage' AND latest='N'";
$sql = "UPDATE ".$this->config['table_prefix']."pages SET latest='H' WHERE tag='$thispage' AND latest='Y'";
mysql_query($sql) or die("Unable to process query: " . mysql_error());
$url = $this->config['base_url'];
$this->redirect($url."HomePage");
} ?>
%%
2. The database table (wakka?)_pages must be changed. The field "latest" must be edited so that rather than being ##enum('Y', 'N')## it now reads ##enum('Y', 'N', 'H')##

====Erase History Code====
Sometimes it can be useful for the administrator to erase the history of a page.

''Perhaps add code so there is one history page that shows "Previous history of this page removed by Administrator"??'' --Mike

The following code must be saved as ##adminerasehistory.php## and the file placed in the actions directory....
%%(php)
<?
// code developed by GMBowen & JGoguen to allow admins to erase history on a given page
if ($this->IsAdmin())
{
echo '<table><tr><td><form action="" method="post">
<input type="submit" name="erasehistory" value="Erase History"></td></table> <br /></form>';
}
if ($_POST['erasehistory'] && $this->IsAdmin())
{
$thispage=$this->GetPageTag();
$sql = "DELETE FROM ".$this->config["table_prefix"]."pages WHERE tag='$thispage' AND latest='N'";
mysql_query($sql) or die("Unable to process query: " . mysql_error());
}
elseif ($_POST['erasehistory'] && !$this->IsAdmin())
{
echo "<i>History can only be erased by an administrator.</i>";
}
?>
%%
====Modification of footer.php code====
The following code was added at the end of the footer.php file (just after the last "?>")......it includes code to "delete" a page. (And I know this is easy to do just on the URL line....but I use frames (Ya, I know, bad idea) and so sometimes the URL bar isn't visible....and that's deliberate eh?....so this addition solves the problem for me.)

%%(php)
<? if ($this->IsAdmin())
{
echo "<table border=1><tr><td width=250>";
include("hidepage.php");
echo "</p></td><td valign=top>";
include("adminerasehistory.php");
?>
</td><td valign=top>
[<A HREF="<? echo $this->GetConfigValue("base_url").$this->GetPageTag()."/delete"; ?>"><strong>Delete Page</strong></A>]</td></tr></table>
<? } ?>
%%

====View Hidden Pages Action====
This action is designed to work in conjunction with the Simple Admin Control Panel. It allows an administrator to view a list of pages which have been hidden, and restore them if desired. Use it by placing ""{{hiddenpages.php}}"" on a page.

save this code as the file ##hiddenpages.php## in the actions directory...
%%(php)
<?
// code developed by GMBowen for administrators to view a list of hidden pages and restore them if desired

if ($this->IsAdmin())
{
$unhide=$_REQUEST['unhide'];
$unhidename=$_REQUEST['unhidename'];

$this->query("UPDATE ".$this->config['table_prefix']."pages SET latest = 'Y' WHERE tag='$unhidename' AND latest = 'H' ");

$thislink = $this->config["base_url"].$this->MiniHref($method, $tag);

$counta = "0";
$query = "SELECT tag,owner,latest,time FROM ".$this->config['table_prefix']."pages WHERE latest = 'H' ORDER BY id asc";
$result = mysql_query($query);

echo "<BR><TABLE width='650' border='1'>";
echo "<TH COLSPAN=5>The current hidden pages are.....</TH>";
?>
<TR>
<TD>
<P> </P>
</TD>
<TD>
<P>Page Name</P>
</TD>
<TD>
<P>Page Owner</P>
</TD>
<TD>
<P>Time Hidden</P>
</TD>
<TD>
<P>Un-Hide??</P>
</TD>
</TR>
<?
while($row=mysql_fetch_array($result)) {
$count = ($count + 1);
echo "<TR BGCOLOR='#DDDDDD'><TD valign='top' ALIGN='center'> ".$count." </TD>";
echo "<TD valign='top' ALIGN='left'> ".$row['tag']." </TD>";
echo "<TD valign='top' ALIGN='left'> ".$row['owner']." </TD>";
echo "<TD ALIGN='left'> ".$row['time']." </TD>";
$unhidepagelnk = $thislink.'&unhide=yes'.'&unhidename='.$row['tag'];
echo "<TD ALIGN='left'><a href=\"$unhidepagelnk\">&nbsp Restore?</a></TD></TR>";
}
echo "</table>";
}
else
{
echo "<em>In order to list hidden pages you need to be a designated administrator.</em>";
}
?>
%%
----
CategoryUserContributions
Deletions:
----
====Simple Admin Control Panel====
For various reasons, administrators might need to remove content from the wiki in a (semi)permanent fashion (this is more and more true as legal culpability for offensive statements, etc. is extended....and because of this an administrator may not want to completely remove the content (so the "owner" is still identifiable), but make it so that it at least appears to no longer exist). Below is code for what is essentially a //simple// administrator control panel (appearing under the footer) that allows the administrator to **"Hide a page"** (it changes the "Y" to an "H" in the _pages database table (if the ACLS table for "Read" is set to //null// then only the administrator can re-create the page....at least that's how it tested out on my server), **"Erase the History"** of a page, or **"Delete a Page"**. It provides a small table under the footer with these features in it at the bottom of the page. An action is included at the bottom of this page that will allow the admin to list the hidden pages and restore them if desired.
http://gmbowen.educ.unb.ca/wikitest/adminpanel.jpg
All the changes must be implemented for the features to work.

====Hide Page Code====

Whenever the "Hide Page" button is clicked it changes the field "latest" for that page from "Y" to "H" and it therefore does not appear. If the ACLS permissions are set to //null// before "Hide Page" is clicked then only the admin can re-create the page.

1. The following code must be saved as ##hidepage.php## and the file placed in the actions directory
%%(php)
<? // code developed by GMBowen to "hide" a given page (by changing "latest" to "H" in _pages table)
if ($this->IsAdmin())
{
echo '<table><tr><td><form action="" method="post">
<input type="submit" name="hidepage" value="Hide Page"></td></table></form>';
echo "<small>* To <strong>hide</strong> page, <strong>set</strong> ACLS ''Read'' to <strong><i>null</i></strong> & click on Hide button above...</small><BR>";
echo "<small>* Note that unless the ACLS is set to null, then anybody with Read permission can re-create the page.</small>";
}
if ($_POST['hidepage'] && $this->IsAdmin())
{
$thispage=$this->GetPageTag();
//$sql = "DELETE FROM ".$this->config["table_prefix"]."pages WHERE tag='$thispage' AND latest='N'";
$sql = "UPDATE ".$this->config['table_prefix']."pages SET latest='H' WHERE tag='$thispage' AND latest='Y'";
mysql_query($sql) or die("Unable to process query: " . mysql_error());
$url = $this->config['base_url'];
$this->redirect($url."HomePage");
} ?>
%%
2. The database table (wakka?)_pages must be changed. The field "latest" must be edited so that rather than being ##enum('Y', 'N')## it now reads ##enum('Y', 'N', 'H')##

====Erase History Code====
Sometimes it can be useful for the administrator to erase the history of a page.

''Perhaps add code so there is one history page that shows "Previous history of this page removed by Administrator"??'' --Mike

The following code must be saved as ##adminerasehistory.php## and the file placed in the actions directory....
%%(php)
<?
// code developed by GMBowen & JGoguen to allow admins to erase history on a given page
if ($this->IsAdmin())
{
echo '<table><tr><td><form action="" method="post">
<input type="submit" name="erasehistory" value="Erase History"></td></table> <br /></form>';
}
if ($_POST['erasehistory'] && $this->IsAdmin())
{
$thispage=$this->GetPageTag();
$sql = "DELETE FROM ".$this->config["table_prefix"]."pages WHERE tag='$thispage' AND latest='N'";
mysql_query($sql) or die("Unable to process query: " . mysql_error());
}
elseif ($_POST['erasehistory'] && !$this->IsAdmin())
{
echo "<i>History can only be erased by an administrator.</i>";
}
?>
%%
====Modification of footer.php code====
The following code was added at the end of the footer.php file (just after the last "?>")......it includes code to "delete" a page. (And I know this is easy to do just on the URL line....but I use frames (Ya, I know, bad idea) and so sometimes the URL bar isn't visible....and that's deliberate eh?....so this addition solves the problem for me.)

%%(php)
<? if ($this->IsAdmin())
{
echo "<table border=1><tr><td width=250>";
include("hidepage.php");
echo "</p></td><td valign=top>";
include("adminerasehistory.php");
?>
</td><td valign=top>
[<A HREF="<? echo $this->GetConfigValue("base_url").$this->GetPageTag()."/delete"; ?>"><strong>Delete Page</strong></A>]</td></tr></table>
<? } ?>
%%

====View Hidden Pages Action====
This action is designed to work in conjunction with the Simple Admin Control Panel. It allows an administrator to view a list of pages which have been hidden, and restore them if desired. Use it by placing ""{{hiddenpages.php}}"" on a page.

save this code as the file ##hiddenpages.php## in the actions directory...
%%(php)
<?
// code developed by GMBowen for administrators to view a list of hidden pages and restore them if desired

if ($this->IsAdmin())
{
$unhide=$_REQUEST['unhide'];
$unhidename=$_REQUEST['unhidename'];

$this->query("UPDATE ".$this->config['table_prefix']."pages SET latest = 'Y' WHERE tag='$unhidename' AND latest = 'H' ");

$thislink = $this->config["base_url"].$this->MiniHref($method, $tag);

$counta = "0";
$query = "SELECT tag,owner,latest,time FROM ".$this->config['table_prefix']."pages WHERE latest = 'H' ORDER BY id asc";
$result = mysql_query($query);

echo "<BR><TABLE width='650' border='1'>";
echo "<TH COLSPAN=5>The current hidden pages are.....</TH>";
?>
<TR>
<TD>
<P> </P>
</TD>
<TD>
<P>Page Name</P>
</TD>
<TD>
<P>Page Owner</P>
</TD>
<TD>
<P>Time Hidden</P>
</TD>
<TD>
<P>Un-Hide??</P>
</TD>
</TR>
<?
while($row=mysql_fetch_array($result)) {
$count = ($count + 1);
echo "<TR BGCOLOR='#DDDDDD'><TD valign='top' ALIGN='center'> ".$count." </TD>";
echo "<TD valign='top' ALIGN='left'> ".$row['tag']." </TD>";
echo "<TD valign='top' ALIGN='left'> ".$row['owner']." </TD>";
echo "<TD ALIGN='left'> ".$row['time']." </TD>";
$unhidepagelnk = $thislink.'&unhide=yes'.'&unhidename='.$row['tag'];
echo "<TD ALIGN='left'><a href=\"$unhidepagelnk\">&nbsp Restore?</a></TD></TR>";
}
echo "</table>";
}
else
{
echo "<em>In order to list hidden pages you need to be a designated administrator.</em>";
}
?>
%%
----
CategoryUSerContributions


Revision [4753]

Edited on 2005-01-17 14:47:25 by NilsLindenberg [cat. changed]
Additions:
CategoryUSerContributions
Deletions:
CategoryDevelopment


Revision [2862]

Edited on 2004-12-05 20:15:24 by GmBowen [added a view/restore hidden pages action for admins]
Additions:
For various reasons, administrators might need to remove content from the wiki in a (semi)permanent fashion (this is more and more true as legal culpability for offensive statements, etc. is extended....and because of this an administrator may not want to completely remove the content (so the "owner" is still identifiable), but make it so that it at least appears to no longer exist). Below is code for what is essentially a //simple// administrator control panel (appearing under the footer) that allows the administrator to **"Hide a page"** (it changes the "Y" to an "H" in the _pages database table (if the ACLS table for "Read" is set to //null// then only the administrator can re-create the page....at least that's how it tested out on my server), **"Erase the History"** of a page, or **"Delete a Page"**. It provides a small table under the footer with these features in it at the bottom of the page. An action is included at the bottom of this page that will allow the admin to list the hidden pages and restore them if desired.
Deletions:
For various reasons, administrators might need to remove content from the wiki in a (semi)permanent fashion (this is more and more true as legal culpability for offensive statements, etc. is extended....and because of this an administrator may not want to completely remove the content (so the "owner" is still identifiable), but make it so that it at least appears to no longer exist). Below is code for what is essentially a //simple// administrator control panel (appearing under the footer) that allows the administrator to **"Hide a page"** (it changes the "Y" to an "H" in the _pages database table (if the ACLS table for "Read" is set to //null// then only the administrator can re-create the page....at least that's how it tested out on my server), **"Erase the History"** of a page, or **"Delete a Page"**. It provides a small table under the footer with these features in it at the bottom of the page.


Revision [2861]

Edited on 2004-12-05 20:10:48 by GmBowen [added a view/restore hidden pages action for admins]
Additions:
This action is designed to work in conjunction with the Simple Admin Control Panel. It allows an administrator to view a list of pages which have been hidden, and restore them if desired. Use it by placing ""{{hiddenpages.php}}"" on a page.
Deletions:
This action is designed to work in conjunction with the Mod002AdminControlPanel. It allows an administrator to view a list of pages which have been hidden, and restore them if desired. Use it by placing ""{{hiddenpages.php}}"" on a page.


Revision [2860]

Edited on 2004-12-05 20:07:15 by GmBowen [added view hidden pages/restore action]
Additions:
====Hide Page Code====
1. The following code must be saved as ##hidepage.php## and the file placed in the actions directory
====Erase History Code====
====Modification of footer.php code====
====View Hidden Pages Action====
This action is designed to work in conjunction with the Mod002AdminControlPanel. It allows an administrator to view a list of pages which have been hidden, and restore them if desired. Use it by placing ""{{hiddenpages.php}}"" on a page.
save this code as the file ##hiddenpages.php## in the actions directory...
// code developed by GMBowen for administrators to view a list of hidden pages and restore them if desired
$unhide=$_REQUEST['unhide'];
$unhidename=$_REQUEST['unhidename'];
$this->query("UPDATE ".$this->config['table_prefix']."pages SET latest = 'Y' WHERE tag='$unhidename' AND latest = 'H' ");
$thislink = $this->config["base_url"].$this->MiniHref($method, $tag);
$counta = "0";
$query = "SELECT tag,owner,latest,time FROM ".$this->config['table_prefix']."pages WHERE latest = 'H' ORDER BY id asc";
$result = mysql_query($query);
echo "<BR><TABLE width='650' border='1'>";
echo "<TH COLSPAN=5>The current hidden pages are.....</TH>";
<TR>
<TD>
<P> </P>
</TD>
<TD>
<P>Page Name</P>
</TD>
<TD>
<P>Page Owner</P>
</TD>
<TD>
<P>Time Hidden</P>
</TD>
<TD>
<P>Un-Hide??</P>
</TD>
</TR>
while($row=mysql_fetch_array($result)) {
$count = ($count + 1);
echo "<TR BGCOLOR='#DDDDDD'><TD valign='top' ALIGN='center'> ".$count." </TD>";
echo "<TD valign='top' ALIGN='left'> ".$row['tag']." </TD>";
echo "<TD valign='top' ALIGN='left'> ".$row['owner']." </TD>";
echo "<TD ALIGN='left'> ".$row['time']." </TD>";
$unhidepagelnk = $thislink.'&unhide=yes'.'&unhidename='.$row['tag'];
echo "<TD ALIGN='left'><a href=\"$unhidepagelnk\">&nbsp Restore?</a></TD></TR>";
}
echo "</table>";
else
echo "<em>In order to list hidden pages you need to be a designated administrator.</em>";
Deletions:
====Hide Page Action====
1. The following code must be saved as hidepage.php and the file placed in the actions directory
====Erase History Action====
====Modification of Footer.php Code====


Revision [2841]

Edited on 2004-12-04 15:02:14 by NilsLindenberg [cat. added]
Additions:
----
----
CategoryDevelopment
Deletions:
%%


Revision [2833]

Edited on 2004-12-04 04:35:14 by GmBowen [erase history, hide page (imperfectly), delete page]
Additions:
http://gmbowen.educ.unb.ca/wikitest/adminpanel.jpg
Deletions:
http://gmbowen.educ.unb.ca/wikitest/adminpage.jpg


Revision [2832]

Edited on 2004-12-04 04:34:34 by GmBowen [erase history, hide page, delete page]
Additions:
http://gmbowen.educ.unb.ca/wikitest/adminpage.jpg


Revision [2826]

Edited on 2004-12-04 03:02:09 by GmBowen [erase history, hide page (imperfectly), delete page]
Additions:
Sometimes it can be useful for the administrator to erase the history of a page.
The following code was added at the end of the footer.php file (just after the last "?>")......it includes code to "delete" a page. (And I know this is easy to do just on the URL line....but I use frames (Ya, I know, bad idea) and so sometimes the URL bar isn't visible....and that's deliberate eh?....so this addition solves the problem for me.)
Deletions:
Sometimes it can be useful for the administrator to erase the history of a page. (And I know this is easy to do just on the URL line....but I use frames (Ya, I know, bad idea) and so sometimes the URL bar isn't visible....and that's deliberate eh?....so this addition solves the problem for me.)
The following code was added at the end of the footer.php file (just after the last "?>")......it includes code to "delete" a page


Revision [2825]

Edited on 2004-12-04 03:00:41 by GmBowen [erase history, hide page (imperfectly), delete page]
Additions:
For various reasons, administrators might need to remove content from the wiki in a (semi)permanent fashion (this is more and more true as legal culpability for offensive statements, etc. is extended....and because of this an administrator may not want to completely remove the content (so the "owner" is still identifiable), but make it so that it at least appears to no longer exist). Below is code for what is essentially a //simple// administrator control panel (appearing under the footer) that allows the administrator to **"Hide a page"** (it changes the "Y" to an "H" in the _pages database table (if the ACLS table for "Read" is set to //null// then only the administrator can re-create the page....at least that's how it tested out on my server), **"Erase the History"** of a page, or **"Delete a Page"**. It provides a small table under the footer with these features in it at the bottom of the page.
Whenever the "Hide Page" button is clicked it changes the field "latest" for that page from "Y" to "H" and it therefore does not appear. If the ACLS permissions are set to //null// before "Hide Page" is clicked then only the admin can re-create the page.
<? // code developed by GMBowen to "hide" a given page (by changing "latest" to "H" in _pages table)
echo "<small>* To <strong>hide</strong> page, <strong>set</strong> ACLS ''Read'' to <strong><i>null</i></strong> & click on Hide button above...</small><BR>";
echo "<small>* Note that unless the ACLS is set to null, then anybody with Read permission can re-create the page.</small>";
} ?>
Deletions:
For various reasons, administrators might need to remove content from the wiki in a (semi)permanent fashion (this is more and more true as legal culpability for offensive statements, etc. is extended....and because of this an administrator may not want to completely remove the content (so the "owner" is still identifiable), but make it so that it at least appears to no longer exist). Below is code for what is essentially a //simple// administrator control panel (appearing under the footer) that allows the administrator to **"Hide a page"** (it changes the "Y" to an "H" in the _pages database table (if the ACLS table is set to !* then only the page owner can re-create the page....if I could figure out how to get it so that a pagename that was in the database with an "H" couldn't be "re-created" then it'd be perfect...so that rather than giving the message "This page doesn't exist yet. Maybe you want to create it?" it would say "Creation of a page with this name is now blocked by the administrator"....''Ideas or hints anyone??''), **"Erase the History"** of a page, or **"Delete a Page"**. It provides a small table under the footer with these features in it at the bottom of the page.
Whenever the "Hide Page" button is clicked it changes the field "latest" for that page from "Y" to "H" and it therefore does not appear as a page. However, the original page owner can re-create the page (in the various ways possible)....and even then only if the ACLS permissions are set to "Read" equalling "!*" before it is clicked on, otherwise anyone could. If I can figure out how to (perhaps by getting it so "edit"/create page only happens if NOT in the database as a pagename) then I'll make it so that nobody can recreate the page (except for the administrator-only using a "show hidden page" action which will allow recovery by changing latest="H" to latest="Y"....I'll develop this action later).
// code developed by GMBowen to "hide" a given page (by changing "latest" to "H" in _pages table)
echo "<small>* To <b>hide</b> page, <b>set</b> ACLS Read to <b>!*</b> & click on Hide button above...</small><BR>";
echo "<small>* Note that the original owner can still re-create the page...unless you don't set the ACLS, then anybody with Read permission can.</small>";


Revision [2821]

Edited on 2004-12-04 01:12:38 by GmBowen [erase history, hide page (imperfectly), delete page]
Additions:
For various reasons, administrators might need to remove content from the wiki in a (semi)permanent fashion (this is more and more true as legal culpability for offensive statements, etc. is extended....and because of this an administrator may not want to completely remove the content (so the "owner" is still identifiable), but make it so that it at least appears to no longer exist). Below is code for what is essentially a //simple// administrator control panel (appearing under the footer) that allows the administrator to **"Hide a page"** (it changes the "Y" to an "H" in the _pages database table (if the ACLS table is set to !* then only the page owner can re-create the page....if I could figure out how to get it so that a pagename that was in the database with an "H" couldn't be "re-created" then it'd be perfect...so that rather than giving the message "This page doesn't exist yet. Maybe you want to create it?" it would say "Creation of a page with this name is now blocked by the administrator"....''Ideas or hints anyone??''), **"Erase the History"** of a page, or **"Delete a Page"**. It provides a small table under the footer with these features in it at the bottom of the page.
Deletions:
For various reasons, administrators might need to remove content from the wiki in a (semi)permanent fashion (this is more and more true as legal culpability for offensive knowledge is extended....and because of this an administrator may not want to completely remove the content, but make it so that it at least appears to no longer exist). Below is code for what is essentially a //simple// administrator control panel (placed under the footer) that allows the administrator to **"Hide a page"** (it changes the "Y" to an "H" in the _pages database table (if the ACLS table is set to !* then only the page owner can re-create the page....if I could figure out how to get it so that a pagename that was in the database with an "H" couldn't be "re-created" then it'd be perfect...so that rather than giving the message "This page doesn't exist yet. Maybe you want to create it?" it would say "Creation of a page with this name is now blocked by the administrator"....''Ideas or hints anyone??''), **"Erase the History"** of a page, or **"Delete a Page"**. It provides a small table under the footer with these features in it at the bottom of the page.


Revision [2818]

Edited on 2004-12-04 00:59:11 by GmBowen [erase history, hide page (imperfectly), delete page]
Additions:
For various reasons, administrators might need to remove content from the wiki in a (semi)permanent fashion (this is more and more true as legal culpability for offensive knowledge is extended....and because of this an administrator may not want to completely remove the content, but make it so that it at least appears to no longer exist). Below is code for what is essentially a //simple// administrator control panel (placed under the footer) that allows the administrator to **"Hide a page"** (it changes the "Y" to an "H" in the _pages database table (if the ACLS table is set to !* then only the page owner can re-create the page....if I could figure out how to get it so that a pagename that was in the database with an "H" couldn't be "re-created" then it'd be perfect...so that rather than giving the message "This page doesn't exist yet. Maybe you want to create it?" it would say "Creation of a page with this name is now blocked by the administrator"....''Ideas or hints anyone??''), **"Erase the History"** of a page, or **"Delete a Page"**. It provides a small table under the footer with these features in it at the bottom of the page.
Deletions:
For various reasons, administrators might need to remove content from the wiki in a (semi)permanent fashion (this is more and more true as legal culpability for offensive knowledge is extended....and because of this an administrator may not want to completely remove the content, but make it so that it at least appears to no longer exist). Below is code for what is essentially a //simple// administrator control panel (placed under the footer) that allows the administrator to **"Hide a page"** (it changes the "Y" to an "H" in the _pages database table (if the ACLS table is set to !* then only the page owner can re-create the page....if I could figure out how to get it so that a pagename that was in the database with an "H" couldn't be "re-created" then it'd be perfect...so that rather than giving the message "This page doesn't exist yet. Maybe you want to create it?" it would say "Creation of a page with this name is now blocked by the administrator"....Ideas or hints anyone??), **"Erase the History"** of a page, or **"Delete a Page"**. It provides a small table under the footer with these features in it at the bottom of the page.


Revision [2817]

The oldest known version of this page was created on 2004-12-04 00:57:30 by GmBowen [erase history, hide page (imperfectly), delete page]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki