svn: /pear/pearweb/trunk/public_html/channels/ edit.php index.php

From: Date: Sat, 09 Apr 2011 15:13:45 +0000
Subject: svn: /pear/pearweb/trunk/public_html/channels/ edit.php index.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9860@lists.php.net to get a copy of this message
clockwerx Sat, 09 Apr 2011 15:13:45 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=310101 Log: PEAR admin get edit links, render form on success Changed paths: U pear/pearweb/trunk/public_html/channels/edit.php U pear/pearweb/trunk/public_html/channels/index.php Modified: pear/pearweb/trunk/public_html/channels/edit.php =================================================================== --- pear/pearweb/trunk/public_html/channels/edit.php 2011-04-09 15:07:53 UTC (rev 310100) +++ pear/pearweb/trunk/public_html/channels/edit.php 2011-04-09 15:13:45 UTC (rev 310101) @@ -138,6 +138,7 @@ echo "<div class=\"success\">Changes saved</div>\n"; + echo $form; } catch (Exception $exception) { echo '<div class="errors">'; Modified: pear/pearweb/trunk/public_html/channels/index.php =================================================================== --- pear/pearweb/trunk/public_html/channels/index.php 2011-04-09 15:07:53 UTC (rev 310100) +++ pear/pearweb/trunk/public_html/channels/index.php 2011-04-09 15:13:45 UTC (rev 310101) @@ -20,7 +20,10 @@ require_once 'pear-database-channel.php'; $channels = channel::listActive(); - +$inactive_channels = array(); +if (auth_check('pear.admin')) { + $inactive_channels = channel::listInactive(); +} response_header("Channels"); $tabs = array("List" => array("url" => "/channels/index.php", @@ -45,7 +48,10 @@ <dl> <?php foreach ($channels as $channel) { ?> - <dt><a href="<?php print $channel['project_link']; ?>"><?php print $channel['project_label']; ?></a></dt> + <dt> + <a href="<?php print $channel['project_link']; ?>"><?php print $channel['project_label']; ?></a> + <?php if (auth_check('pear.admin')) { ?><a href="edit.php?channel=<?php print $channel['name']; ?>">edit</a><?php } ?> + </dt> <dl><kbd>$ pear channel-discover <?php print $channel['name']; ?></kbd></dl> <?php } ?> </dl> @@ -82,6 +88,19 @@ <li><a href="http://pear.indeyets.pp.ru">Alexey Zakhlestin's PEAR channel</a></li> </ul> +<?php if (auth_check('pear.admin')) { ?> + <h2>Sites to be Approved</h2> + <dl> + <?php foreach ($inactive_channels as $channel) { ?> + <dt> + <a href="<?php print $channel['project_link']; ?>"><?php print $channel['project_label']; ?></a> + <a href="edit.php?channel=<?php print $channel['name']; ?>">edit</a> + </dt> + <dl><kbd>$ pear channel-discover <?php print $channel['name']; ?></kbd></dl> + <?php } ?> + </dl> +<?php } ?> + <p><a href="/channels/add.php">Add your site</a></p> <h2>Channel server software</h2>

« previous php.pear.core (#9860) next »