Esempio n. 1
0
# License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this file.  If not, see <http://www.gnu.org/licenses/>.
#
# }}}
#
include "pub_defs.php";
#
# Only known and logged in users.
#
$this_user = CheckLoginOrDie();
$uid_idx = $this_user->uid_idx();
$isadmin = ISADMIN();
$optargs = OptionalPageArguments("showdeleted", PAGEARG_BOOLEAN);
PAGEHEADER("Deleted Publications");
?>

<p>To undelete a publication simply edit it again and unclick "Mark As Deleted"</p>

<?php 
$where_clause = '';
$deleted_clause = '`deleted`';
if ($isadmin) {
    $where_clause = '1';
} else {
    $where_clause = "(`owner` = {$uid_idx} or `last_edit_by` = {$uid_idx})";
}
$query_result = GetPubs($where_clause, $deleted_clause);
echo MakeBibList($this_user, $isadmin, $query_result);
PAGEFOOTER();
Esempio n. 2
0
    PAGEHEADER("Bibliography");
    echo "<b><a href={$REQUEST_URI}?printable=1>\n          Printable version of this document</a></b><br>\n";
}
?>

<p>
This page summarizes publications about Emulab as well as publications
that used Emulab to validate research they present.  
<p>

If you have a publications that used Utah's Emulab to validate your
research please use <a href="submitpub.php">this form</a> to add it.
For other updates or corrections please email 
<a href="mailto:papers@emulab.net">papers@emulab.net</a>.

</p>

<?php 
$query_result = GetPubs("`visible`");
echo MakeBibList($this_user, $isadmin, $query_result);
if ($isadmin) {
    echo '<p><a href="deleted_pubs.php">Show Deleted Publications</a></p>';
}
#
# Standard Testbed Footer
#
if ($printable) {
    echo "</body>\n          </html>\n";
} else {
    PAGEFOOTER();
}