# HG changeset patch # User Dan # Date 1232320248 18000 # Node ID 6f030150b1717ad2065a780e4723ad436ac5c623 # Parent 58fa63f7f23b0a5170c42fc8bda94c6fba80e711 Continuation of previous commit in admin CP; EditSidebar: updated strings to be more accurate (thanks again Vadi) diff -r 58fa63f7f23b -r 6f030150b171 plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Sun Jan 18 18:10:21 2009 -0500 +++ b/plugins/SpecialAdmin.php Sun Jan 18 18:10:48 2009 -0500 @@ -1431,6 +1431,7 @@ 'DELETE FROM '.table_prefix.'comments WHERE page_id=\'' . $db->escape($_POST['old_page_id']) . '\' AND namespace=\'' . $db->escape($_POST['old_namespace']) . '\';', 'DELETE FROM '.table_prefix.'logs WHERE page_id=\'' . $db->escape($_POST['old_page_id']) . '\' AND namespace=\'' . $db->escape($_POST['old_namespace']) . '\';', 'DELETE FROM '.table_prefix.'page_text WHERE page_id=\'' . $db->escape($_POST['old_page_id']) . '\' AND namespace=\'' . $db->escape($_POST['old_namespace']) . '\';', + 'DELETE FROM '.table_prefix.'acl WHERE page_id=\'' . $db->escape($_POST['old_page_id']) . '\' AND namespace=\'' . $db->escape($_POST['old_namespace']) . '\';', ); foreach($q as $cq) { @@ -2626,11 +2627,11 @@

@@ -2643,6 +2644,10 @@

+ This block type is for textual content. This could be information, a random fact, or some other blob of fully formatted text. Links show up inline, + not as a list. +

+

Wikitext:

@@ -2652,6 +2657,13 @@

+ This block type is for links. Use wikilinks (both internal and external are supported) to build a list of links. All links will be shown block-style, + or one link per line. You can use logic in these blocks as well: +

+
{if user_logged_in}
+  [[Special:Preferences|User control panel]]
+{/if}
+

Template code:

@@ -2661,6 +2673,10 @@

+ This block type is for textual content. HTML you use here will not be filtered or parsed at all - it will be displayed verbatim. This gives you + slightly more control over your content but you can't use wikilinks or other wikitext in here. +

+

HTML to place inside the sidebar:

@@ -2674,18 +2690,18 @@

WARNING: If you don't know what you're doing, or if you are not fluent in PHP, stop now and choose a different block type. You will brick your Enano installation if you are not careful here. - ALWAYS remember to write secure code! The Enano team is not responsible if someone drops all your tables because of an SQL injection vulnerability in your sidebar code. You are probably better off using the template-formatted block type. + ALWAYS remember to write secure code! The Enano team is not responsible if someone drops all your tables because of an SQL injection vulnerability in your sidebar code. You are probably better off using the links and logic block type.

- It is especially important to note that this code is NOT checked for errors! If there is a syntax error in your code here, it will prevent any pages from loading AT ALL. So you need to use an external PHP editor (like jEdit) to check your syntax before you hit save. + It is especially important to note that the syntax of your code is not validated here. If there is a syntax error in your code here, it might prevent Enano from working properly. It is recommended that you use an external PHP editor (like jEdit) to check your syntax before you hit save. You have been warned.

Also, you should avoid using output buffering functions (ob_[start|end|get_contents|clean]) here, because Enano uses those to track output from this script.

- The standard <?php and ?> tags work here. Don't use an initial "<?php" or it will cause a parse error. + The standard <?php and ?> tags work here, but don't use an initial "<?php" or it will cause a parse error.

PHP code: