Exemple #1
0
     break;
 case 'bugs':
     // Redirect to the bug database
     localRedirect("/bugs/search.php?cmd=display&package_name%5B%5D=" . urlencode($pkg['name']));
     break;
 case 'trackbacks':
     if (isset($auth_user)) {
         $karma =& new Damblan_Karma($dbh);
         $trackbackIsAdmin = isset($auth_user) && $karma->has($auth_user->handle, 'pear.dev');
         if ($trackbackIsAdmin) {
             include_once 'pear-database-package.php';
             if ($pkg['blocktrackbacks'] && $params['allowtrackbacks'] == 1) {
                 package::allowTrackbacks($pkg['name'], true);
                 localRedirect('/package/' . $pkg['name'] . '/trackbacks');
             } elseif ($params['allowtrackbacks'] == 2) {
                 package::allowTrackbacks($pkg['name'], false);
                 localRedirect('/package/' . $pkg['name'] . '/trackbacks');
             }
         }
     } else {
         if ($pkg['blocktrackbacks']) {
             localRedirect('/package/' . $pkg['name']);
         } else {
             $trackbackIsAdmin = false;
         }
     }
     $action = $params['action'];
     break;
 case 'doap':
     //throw out doap data
     include 'package-doap.php';