Exemplo n.º 1
0
<?php

$download = (int) $_GET['download'];
if ($_GET['download'] != '') {
    $data = DB::getById('ahm_files', $_GET[download]);
    ?>
<style>
*{
    font-family: tahoma;
    letter-spacing: 0.5px;
}

input,form,p{
    font-size:9pt;    
}
form{text-align:center;}
</style>
<?php 
    if ($data) {
        echo "<h3><nobr>{$data['title']}</nobr></h3><p style='height:100px;overflow:auto;'>{$data['description']}</p>";
        /*
        if($_POST&&$data[password]==''){
        echo "<script>
                    window.opener.location.href='$_SERVER[HTTP_REFERER]'; self.close();</script>"; die(); }
        */
        ?>
        
        <form method="post">
            <?php 
        global $wpdb;
        $did = uniqid();
Exemplo n.º 2
0
 /**
  * RSS endpoint
  */
 protected function rss()
 {
     $feed = new DB();
     if ($this->method == 'GET') {
         //print_r($this->args);
         switch ($this->verb) {
             case 'faculty':
             case 'department':
                 $events = $feed->getByDept($this->args);
                 return $feed->RSSify($events);
                 break;
             case 'id':
                 $events = $feed->getById($this->args);
                 return $feed->RSSify($events);
                 break;
             default:
                 $events = $feed->getAll();
                 return $feed->RSSify($events);
                 break;
         }
     } else {
         return "Only accepts GET requests";
     }
 }