浏览代码

phpdoc blocks

tokul 21 年之前
父节点
当前提交
83b745a92c
共有 4 个文件被更改,包括 48 次插入44 次删除
  1. 11 13
      plugins/spamcop/index.php
  2. 10 10
      plugins/spamcop/options.php
  3. 17 11
      plugins/spamcop/setup.php
  4. 10 10
      plugins/spamcop/spamcop.php

+ 11 - 13
plugins/spamcop/index.php

@@ -1,17 +1,15 @@
 <?php
-
-   /**
-    **  index.php -- Displays the main frameset
-    **
-    **  Copyright (c) 1999-2004 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  Redirects to the login page.
-    **
-    **  $Id$
-    * @package plugins
-    * @subpackage spamcop
-    **/
+/**
+ *  index.php -- Displays the main frameset
+ *
+ * Redirects to the login page.
+ *
+ * @copyright (c) 1999-2004 The SquirrelMail development team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package plugins
+ * @subpackage spamcop
+ */
 
    header("Location:../../src/login.php\n\n");
    exit();

+ 10 - 10
plugins/spamcop/options.php

@@ -1,15 +1,14 @@
 <?php
 
-   /**
-    **  options.php -- SpamCop options page
-    **
-    **  Copyright (c) 1999-2004 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **
-    **  $Id$
-    * @package plugins
-    * @subpackage spamcop
-    **/
+/**
+ *  options.php -- SpamCop options page
+ *
+ * @copyright (c) 1999-2004 The SquirrelMail development team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package plugins
+ * @subpackage spamcop
+ */
 
 /** @ignore */
 define('SM_PATH','../../');
@@ -19,6 +18,7 @@ require_once(SM_PATH . 'include/validate.php');
  * Internal spamcop plugin function.
  *
  * It is used to display similar action links.
+ * @access private
  */
 function spamcop_enable_disable($option,$disable_action,$enable_action) {
     if ($option) { 

+ 17 - 11
plugins/spamcop/setup.php

@@ -1,14 +1,13 @@
 <?php
-   /** 
-    **  setup.php -- SpamCop plugin           
-    **
-    **  Copyright (c) 1999-2004 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **  
-    **  $Id$
-    * @package plugins
-    * @subpackage spamcop
-    **/
+/** 
+ * setup.php -- SpamCop plugin - setup script
+ *
+ * @copyright (c) 1999-2004 The SquirrelMail development team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package plugins
+ * @subpackage spamcop
+ */
 
 /** @ignore */
 require_once(SM_PATH . 'functions/global.php');
@@ -16,7 +15,10 @@ require_once(SM_PATH . 'functions/global.php');
 /** Disable Quick Reporting by default */
 $spamcop_quick_report = false;
 
-/** Initialize the plugin */
+/**
+ * Initialize the plugin 
+ * @access private
+ */
 function squirrelmail_plugin_init_spamcop() {
    global $squirrelmail_plugin_hooks, $data_dir, $username,
       $spamcop_is_composing;
@@ -39,6 +41,7 @@ function squirrelmail_plugin_init_spamcop() {
 
 /**
  * Loads spamcop settings and validates some of values (make '' into 'default', etc.)
+ * @access private
  */
 function spamcop_load() {
    global $username, $data_dir, $spamcop_enabled, $spamcop_delete,
@@ -69,6 +72,7 @@ function spamcop_load() {
 
 /**
  * Shows spamcop link on the read-a-message screen
+ * @access private
  */
 function spamcop_show_link() {
    global $spamcop_enabled, $spamcop_method, $spamcop_quick_report,$javascript_on;
@@ -116,6 +120,7 @@ document.write("</a>");
 
 /**
  * Show spamcop options block
+ * @access private
  */
 function spamcop_options()
 {
@@ -132,6 +137,7 @@ function spamcop_options()
 
 /**
  * When we send the email, we optionally trash it then too
+ * @access private
  */
 function spamcop_while_sending()
 {

+ 10 - 10
plugins/spamcop/spamcop.php

@@ -1,14 +1,13 @@
 <?php
-   /** 
-    **  spamcop.php -- SpamCop plugin           
-    **
-    **  Copyright (c) 1999-2004 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **  
-    **  $Id$
-    * @package plugins
-    * @subpackage spamcop
-    **/
+/** 
+ * spamcop.php -- SpamCop plugin -- main page
+ *
+ * @copyright (c) 1999-2004 The SquirrelMail development team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package plugins
+ * @subpackage spamcop
+ */
 
 /** @ignore */
 define('SM_PATH','../../');
@@ -19,6 +18,7 @@ require_once(SM_PATH . 'functions/imap.php');
 
 /**
  * Stores message in attachment directory, when email based reports are used
+ * @access private
  */
 function getMessage_RFC822_Attachment($message, $composeMessage, $passed_id, 
                                       $passed_ent_id='', $imapConnection) {