phpdoc blocks and one more string
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 12 Apr 2004 07:15:29 +0000 (07:15 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 12 Apr 2004 07:15:29 +0000 (07:15 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7086 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/bug_report/bug_report.php
plugins/bug_report/index.php
plugins/bug_report/setup.php

index d7b9b24d6031d496d6bc0ab53707a7576ef3d6e8..2069d2e50e61d8cd8a915e9dfe63b14c1d63212d 100644 (file)
@@ -13,7 +13,7 @@
  *
  * This is a standard Squirrelmail-1.2 API for plugins.
  *
- * $Id$
+ * @version $Id$
  * @package plugins
  * @subpackage bug_report
  */
@@ -30,7 +30,13 @@ require_once(SM_PATH . 'functions/forms.php');
 
 displayPageHeader($color, 'None');
 
-
+/**
+ * converts array to string
+ *
+ * @param array $array array that has to be displayed
+ * @return string
+ * @access private
+ */
 function Show_Array($array) {
     $str = '';
     foreach ($array as $key => $value) {
index 2d2e576c4c4dd5d9f9b7146cbbb41ee3a477fe09..518cf6623492e6b36d166c683ad699223adeae79 100644 (file)
@@ -8,7 +8,7 @@
     **
     **  Redirects to the login page.
     **
-    * $Id$
+    * @version $Id$
     * @package plugins
     * @subpackage bug_report
     **/
index b80a97bb5784e31356e4ca3c4d35c40f368e2ace..cba0638588009b5d7cf11b5d551916da8116a71f 100644 (file)
@@ -8,7 +8,7 @@
  *
  * This is a standard Squirrelmail-1.2 API for plugins.
  *
- * $Id$
+ * @version $Id$
  * @package plugins
  * @subpackage bug_report
  */
@@ -20,6 +20,7 @@
 /**
  * Initialize the bug report plugin
  * @return void
+ * @access private
  */
 function squirrelmail_plugin_init_bug_report() {
     global $squirrelmail_plugin_hooks;
@@ -31,7 +32,10 @@ function squirrelmail_plugin_init_bug_report() {
 }
 
 
-/* Show the button in the main bar */
+/**
+ * Show the button in the main bar
+ * @access private
+ */
 function bug_report_button() {
     global $color, $bug_report_visible;
 
@@ -39,11 +43,14 @@ function bug_report_button() {
         return;
     }
 
-    displayInternalLink('plugins/bug_report/bug_report.php', 'Bug', '');
+    displayInternalLink('plugins/bug_report/bug_report.php', _("Bug"), '');
     echo "&nbsp;&nbsp;\n";
 }
 
-
+/**
+ * Saves bug report options
+ * @access private
+ */
 function bug_report_save() {
     global $username,$data_dir;
 
@@ -54,7 +61,10 @@ function bug_report_save() {
     }
 }
 
-
+/**
+ * Loads bug report options
+ * @access private
+ */
 function bug_report_load() {
     global $username, $data_dir;
     global $bug_report_visible;
@@ -62,16 +72,19 @@ function bug_report_load() {
     $bug_report_visible = getPref($data_dir, $username, 'bug_report_visible');
 }
 
-
+/**
+ * Adds bug report options to display page
+ * @access private
+ */
 function bug_report_options() {
     global $bug_report_visible;
 
     echo '<tr>' . html_tag('td',_("Bug Reports:"),'right','','nowrap') . "\n" .
-         '<td><input name="bug_report_bug_report_visible" type=CHECKBOX';
+         '<td><input name="bug_report_bug_report_visible" type=checkbox';
     if ($bug_report_visible) {
-        echo ' CHECKED';
+        echo ' checked';
     }
-    echo '> ' . _("Show button in toolbar") . "</td></tr>\n";
+    echo ' /> ' . _("Show button in toolbar") . "</td></tr>\n";
 }
 
-?>
+?>
\ No newline at end of file