Skip Navigation

University of Nebraska–Lincoln

pear.unl.edu

Open Source PHP Development at UNL

Search Packages

Search by Package Name
Package Name
Match
Search by Category
Category
Search by Maintainer
Maintainer

BUGS!

Arid Subterranean Termite brought to you by the UNL Entomology Department

Want to report a bug!? Go to the bug tracking system.

(Bug is brought to you by the UNL Entomology Department)

Latest Releases

UNL_Auth 0.4.0 (alpha)
November 18th 2009: * Fix E_STRICT warning about static...
UNL_Cache_Lite 0.1.0 (beta)
October 20th 2009: Port of cache lite, remove PEAR...
UNL_Templates 1.0.0RC9 (beta)
September 10th 2009: Feature Release! Added support for...
UNL_Common_Building_Info 0.2.13 (beta)
September 8th 2009: Update 501 Information.
UNL_Templates 1.0.0RC8 (beta)
August 12th 2009: Feature Release! Added support for...

Syndicate This

View Source+
<?php
/**
 * Extended Chiara_PEAR_Server_Web using the UNL Templates.
 */
require_once 'Chiara/PEAR/Server/Web.php';
require_once 
'config.inc.php';
class 
UNL_PEAR_Channel_Frontend extends Chiara_PEAR_Server_Web {
    
    public function 
welcome()
    {
        
parent::welcome();
        echo 
'<p>If you have a package you would like to distribute through this channel server, <a href="http://peoplefinder.unl.edu/?uid=bbieber2" onclick="window.open(this.href,\'peoplefindpop\',\'scrollbars=1,width=325,height=500,innerwidth=325,innerheight=500\'); return false;">contact Brett Bieber.</a></p>';
    }

    public function 
showMaintainerEmailForm()
    {
        echo 
'<h2>Email Maintainers</h2>';
        echo 
'<p>Contact information for package maintainers can be found using UNL Peoplefinder.</p>';
    }

    
/**
     * Show Package Extras (CVS/Doc/Bugs Links)
     *
     * @return void
     */
    
public function showPackageExtras()
    {
        
$package DB_DataObject::factory('package_extras');
        
$package->package $_GET['package'];
        if (!
$package->find(true)) {
            return;
        } else {
            if (
strlen($package->docs_uri) > 0) {
                echo 
"<li><a href='$package->docs_uri'>Documentation</a></li>";
            }
            if (
strlen($package->bugs_uri) > 0) {
                echo 
"<li><a href='".htmlentities($package->bugs_uri)."'>Bugs</a></li>";
            }
            if (
strlen($package->cvs_uri) > 0) {
                echo 
"<li><a href='$package->cvs_uri'>CVS</a></li>";
            }
        }
    }

}

$frontend = new UNL_PEAR_Channel_Frontend(    'pear.unl.edu',
                        array(
'database' => $dsn,
                        
'index' => 'index.php',
                        
'admin' => 'admin.php'));

require_once 
'UNL/Templates.php';
UNL_Templates::$options['templatedependentspath'] = '/srv/www/htdocs/';
$page UNL_Templates::factory('Fixed',array('sharedcodepath'=>'/srv/www/vhosts/www1.unl.edu/sharedcode/'));
UNL_Templates::$options['templatedependentspath'] = '/srv/www/htdocs/';
$page->doctitle        '<title>UNL | PEAR.UNL.EDU</title>';
$page->leftRandomPromo '';
$page->titlegraphic    '<h1 class="pagetitle"><a href="http://pear.unl.edu/">pear.unl.edu</a></h1>
                          <h2>Open Source PHP Development at UNL</h2>'
;
$page->breadcrumbs "<ul><li class='first'><a href='http://www.unl.edu/'>UNL</a></li>\n<li>pear.unl.edu</li></ul>";
$page->head        '<style type="text/css">
                        #releases h2{margin:0px;}
                        #releases {overflow:auto;}
                        #source {clear:both;display:none;overflow:auto;}
                      </style>'
;
$page->loadSharedcodeFiles();
$page->leftcollinks '<h3>Related Links</h3>
                    <ul>
                        <li><a href="http://www.unl.edu/webdevnet/">Web Developer Network</a></li>
                    </ul>'
;
ob_start();
echo 
'
<div class="two_col left">'
;
if (!
$frontend->run()) {
    
$frontend->welcome();
}
echo     
'
    <div style="clear:both">
        <h3>BUGS!</h3>
        <a href="http://pear.unl.edu/Chiara/Bugs/"><img src="http://pear.unl.edu/images/bug.png" alt="Arid Subterranean Termite brought to you by the UNL Entomology Department" /></a>
        <p>Want to report a bug!? <a href="http://pear.unl.edu/Chiara/Bugs/">Go to the bug tracking system.</a></p>
        <p>(Bug is brought to you by the <a href="http://entomology.unl.edu/">UNL Entomology Department</a>)</p>
    </div>
</div>
<div class="col right">
    <div id="releases" class="zenboxfeature">'
;
$frontend->showLatestReleases();
echo 
'
    </div>
</div>'
.PHP_EOL;
$page->maincontentarea ob_get_cleaner().viewSourceLink();
$frontend->showLinks();
$page->head    .= ob_get_cleaner();
$page->navlinks getNavMenu();

echo 
$page->toHtml();