예제 #1
0
function handle_view() {
    $uuid = $_GET["uu"];
    $outname = $_GET["fn"];

    if (!valid_uniqid($uuid))
        fail("invalid document id");

    $outfname="/tmp/pdf2upjob-".$uuid."-out.pdf";

    show_pdf($outfname,$outname);
}
예제 #2
0
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
**/
require_once dirname(dirname(__FILE__)) . '/includes/core.inc.php';
require_once dirname(dirname(__FILE__)) . '/includes/page_template.php';
if (!checkAuthorization('viewStatus')) {
    redirect('index.php');
}
if (isset($_REQUEST['action'])) {
    if ($_REQUEST['action'] == 'manage') {
        if (isset($_REQUEST['id'])) {
            show_manage($_REQUEST['id']);
        }
    }
    if ($_REQUEST['action'] == 'pdf') {
        if (isset($_REQUEST['id'])) {
            show_pdf($_REQUEST['id']);
        }
    }
}
show_default();
function show_default()
{
    $search_by_user = false;
    $search_by_time = false;
    $user = '';
    $t1 = time();
    $t0 = strtotime('-1 Month', $t1);
    $search_limit = $_SESSION['configuration']['max_items_per_page'];
    if (isset($_REQUEST['search_by']) && is_array($_REQUEST['search_by'])) {
        if (in_array('user', $_REQUEST['search_by'])) {
            $search_by_user = true;