Welcome!
Welcome to the UNL PEAR Channel. From here you can browse and search the packages we offer and download releases to install.
Using our Channel
To add this channel to your PEAR install, use:
pear channel-discover pear.unl.edu
Then you will be able to install our packages by using:
pear install unl/package_name
If you have a package you would like to distribute through this channel server, contact Brett Bieber.
BUGS!
Want to report a bug!? Go to the bug tracking system.
(Bug is brought to you by the UNL Entomology Department)
Latest Releases
- UNL_Templates 1.0.0RC5 (beta)
- July 1st 2009: Feature Release! Added support for...
- UNL_DWT 0.7.1 (beta)
- July 1st 2009: Declare debug method correctly as...
- UNL_Common_Building_Info 0.2.12 (beta)
- June 29th 2009: Add Business Services Complex...
- UNL_Auth 0.3.2 (alpha)
- May 12th 2009: * Increase SimpleCAS dependency of...
- UNL_LDAP 0.4.0 (beta)
- May 11th 2009: Feature release: Add backup LDAP...
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();

