[csw-devel] SF.net SVN: opencsw:[343] web/wordpresscsw/wp-content/plugins/opencsw/ opencsw.php

wbonnet at users.sourceforge.net wbonnet at users.sourceforge.net
Sun Feb 27 22:26:03 CET 2011


Revision: 343
          http://opencsw.svn.sourceforge.net/opencsw/?rev=343&view=rev
Author:   wbonnet
Date:     2011-02-27 21:26:03 +0000 (Sun, 27 Feb 2011)

Log Message:
-----------
Add uwatch statistics

Modified Paths:
--------------
    web/wordpresscsw/wp-content/plugins/opencsw/opencsw.php

Modified: web/wordpresscsw/wp-content/plugins/opencsw/opencsw.php
===================================================================
--- web/wordpresscsw/wp-content/plugins/opencsw/opencsw.php	2011-02-27 21:25:30 UTC (rev 342)
+++ web/wordpresscsw/wp-content/plugins/opencsw/opencsw.php	2011-02-27 21:26:03 UTC (rev 343)
@@ -67,21 +67,28 @@
                                    '^packages$'                 => 'index.php?packages=full' ,
                                    '^packages?/(.+)'            => 'index.php?packageName=' . $wp_rewrite->preg_index(1) ,
 
-                                   '^qa$'                       => 'index.php?qa=full' ,
-                                   '^qa/packages/orphaned'      => 'index.php?qaOrphanedPackages=full' ,
-                                   '^qa/packages/upgradable/stable$'       => 'index.php?qaPackageWaitingForStable=full' ,
-                                   '^qa/packages/upgradable/testing$'      => 'index.php?qaPackageWaitingForTesting=full' ,
-                                   '^qa/packages/upgradable/unstable$'     => 'index.php?qaPackageWaitingForUnstable=full' ,
-                                   '^qa/packages/upgradable/gar$'          => 'index.php?qaPackageWaitingForGar=full' ,
+                                   '^qa$'                               => 'index.php?qa=full' ,
+                                   '^qa/packages/orphaned'              => 'index.php?qaOrphanedPackages=full' ,
+                                   '^qa/packages/upgradable/stable$'    => 'index.php?qaPackageWaitingForStable=full' ,
+                                   '^qa/packages/upgradable/testing$'   => 'index.php?qaPackageWaitingForTesting=full' ,
+                                   '^qa/packages/upgradable/unstable$'  => 'index.php?qaPackageWaitingForUnstable=full' ,
+                                   '^qa/packages/upgradable/gar$'       => 'index.php?qaPackageWaitingForGar=full' ,
 
-                                   '^qa/packages/uwatch/errors?$'          => 'index.php?qaUwatchError=full' ,
-                                   '^qa/packages/uwatch/disabled$'         => 'index.php?qaUwatchDisabled=full' ,
-                                   '^qa/packages/gar/missing$'             => 'index.php?qaGarMissing=full' ,
-                                   '^qa/packages/gar/pending$'             => 'index.php?qaGarPending=full' ,
+                                   '^qa/packages/uwatch/errors?$'       => 'index.php?qaUwatchError=full' ,
+                                   '^qa/packages/uwatch/disabled$'      => 'index.php?qaUwatchDisabled=full' ,
+                                   '^qa/packages/gar/missing$'          => 'index.php?qaGarMissing=full' ,
+                                   '^qa/packages/gar/pending$'          => 'index.php?qaGarPending=full' ,
 
-                                   '^qa/maintainers/retired'    => 'index.php?qaRetiredMaintainers=full' ,
-                                   '^qa/maintainers/activity'   => 'index.php?qaMaintainersActivity=full' ,
+                                   '^qa/maintainers/retired'            => 'index.php?qaRetiredMaintainers=full' ,
+                                   '^qa/maintainers/activity'           => 'index.php?qaMaintainersActivity=full' ,
 
+                                   '^qa/statistics$'                    => 'index.php?qaStatistics=full' ,
+                                   '^qa/statistics/uwatch$'             => 'index.php?qaStatisticsUwatch=full' ,
+                                   '^qa/statistics/gar$'                => 'index.php?qaStatisticsGar=full' ,
+                                   '^qa/statistics/packages$'           => 'index.php?qaStatisticsPackages=full' ,
+                                   '^qa/statistics/upgrades$'           => 'index.php?qaStatisticsUpgrade=full' ,
+                                   '^qa/statistics/maintainers$'        => 'index.php?qaStatisticsMaintainers=full' ,
+
                                    '^qa/packages?/(.+)'         => 'index.php?qaPackageName=' . $wp_rewrite->preg_index(1) ,
                                    '^qa/maintainers?/(.+)'      => 'index.php?qaMaintainerName=' . $wp_rewrite->preg_index(1) ,
                                    '^qa/maintainers$'           => 'index.php?qaMaintainers=full' ,
@@ -107,13 +114,28 @@
                 $qvars[] = 'maintainers';
                 $qvars[] = 'displayMaintainerInfo';
                 $qvars[] = 'maintainerName';
+                $qvars[] = 'maintainerFullName';
+
                 $qvars[] = 'qa';
                 $qvars[] = 'qaMaintainerName';
                 $qvars[] = 'qaMaintainers';
                 $qvars[] = 'qaRetiredMaintainers';
                 $qvars[] = 'qaMaintainersActivity';
                 $qvars[] = 'qaOrphanedPackages';
-                $qvars[] = 'maintainerFullName';
+                $qvars[] = 'qaUwatchDisabled';
+                $qvars[] = 'qaUwatchError';
+                $qvars[] = 'qaGarMissing';
+                $qvars[] = 'qaGarPending';
+                $qvars[] = 'qaPackageWaitingForStable';
+                $qvars[] = 'qaPackageWaitingForTesting';
+                $qvars[] = 'qaPackageWaitingForUnstable';
+                $qvars[] = 'qaPackageWaitingForGar';
+                $qvars[] = 'qaStatistics';
+                $qvars[] = 'qaStatisticsUwatch';
+                $qvars[] = 'qaStatisticsGar';
+                $qvars[] = 'qaStatisticsPackages';
+                $qvars[] = 'qaStatisticsUpgrade';
+                $qvars[] = 'qaStatisticsMaintainers';
                 $qvars[] = 'composeEmail';
                 $qvars[] = 'requestPackage';
                 $qvars[] = 'sendEmail';
@@ -121,6 +143,7 @@
                 $qvars[] = 'emailSubject';
                 $qvars[] = 'emailAddress';
                 $qvars[] = 'emailBody';
+
                 $qvars[] = 'packageName';
                 $qvars[] = 'qaPackageName';
                 $qvars[] = 'softwareName';
@@ -133,14 +156,6 @@
                 $qvars[] = 'filesInPackage';
                 $qvars[] = 'searchFilesAndPackages';
                 $qvars[] = 'packagesContainingFile';
-                $qvars[] = 'qaUwatchDisabled';
-                $qvars[] = 'qaUwatchError';
-                $qvars[] = 'qaGarMissing';
-                $qvars[] = 'qaGarPending';
-                $qvars[] = 'qaPackageWaitingForStable';
-                $qvars[] = 'qaPackageWaitingForTesting';
-                $qvars[] = 'qaPackageWaitingForUnstable';
-                $qvars[] = 'qaPackageWaitingForGar';
                 return $qvars;
         }
 
@@ -175,7 +190,80 @@
                         }
                 }
 
+
                 // Test if the arg qaMaintainerName is in the query string
+                if ( $wp_query->get('qaStatistics') )
+                {
+                        // Yes, thus we are display a detailled maintainer page, not the full list
+                        if (file_exists( TEMPLATEPATH . '/qa-statistics.php' ))
+                        {
+                                // File exist, thus lets include the template
+                                include( TEMPLATEPATH . '/qa-statistics.php' );
+                                exit;
+                        }
+                }
+
+                // Test if the arg qaMaintainerName is in the query string
+                if ( $wp_query->get('qaStatisticsUwatch') )
+                {
+                        // Yes, thus we are display a detailled maintainer page, not the full list
+                        if (file_exists( TEMPLATEPATH . '/qa-statistics-uwatch.php' ))
+                        {
+                                // File exist, thus lets include the template
+                                include( TEMPLATEPATH . '/qa-statistics-uwatch.php' );
+                                exit;
+                        }
+                }
+
+                // Test if the arg qaMaintainerName is in the query string
+                if ( $wp_query->get('qaStatisticsGar') )
+                {
+                        // Yes, thus we are display a detailled maintainer page, not the full list
+                        if (file_exists( TEMPLATEPATH . '/qa-statistics-gar.php' ))
+                        {
+                                // File exist, thus lets include the template
+                                include( TEMPLATEPATH . '/qa-statistics-gar.php' );
+                                exit;
+                        }
+                }
+
+                // Test if the arg qaMaintainerName is in the query string
+                if ( $wp_query->get('qaStatisticsPackages') )
+                {
+                        // Yes, thus we are display a detailled maintainer page, not the full list
+                        if (file_exists( TEMPLATEPATH . '/qa-statistics-packages.php' ))
+                        {
+                                // File exist, thus lets include the template
+                                include( TEMPLATEPATH . '/qa-statistics-packages.php' );
+                                exit;
+                        }
+                }
+
+                // Test if the arg qaMaintainerName is in the query string
+                if ( $wp_query->get('qaStatisticsUpgrade') )
+                {
+                        // Yes, thus we are display a detailled maintainer page, not the full list
+                        if (file_exists( TEMPLATEPATH . '/qa-statistics-upgrade.php' ))
+                        {
+                                // File exist, thus lets include the template
+                                include( TEMPLATEPATH . '/qa-statistics-upgrade.php' );
+                                exit;
+                        }
+                }
+
+                // Test if the arg qaMaintainerName is in the query string
+                if ( $wp_query->get('qaStatisticsMaintainers') )
+                {
+                        // Yes, thus we are display a detailled maintainer page, not the full list
+                        if (file_exists( TEMPLATEPATH . '/qa-statistics-maintainers.php' ))
+                        {
+                                // File exist, thus lets include the template
+                                include( TEMPLATEPATH . '/qa-statistics-maintainers.php' );
+                                exit;
+                        }
+                }
+
+                // Test if the arg qaMaintainerName is in the query string
                 if ( $wp_query->get('qaMaintainerName') )
                 {
                         // Yes, thus we are display a detailled maintainer page, not the full list


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list