Exemple #1
0
            $to = '*****@*****.**';
            $subject = 'Concierge address request from ' . $user->name;
            $message = $user->name . ' (' . $user->email . ') would like a search performed for ' . trim($_REQUEST['conciergeaddy']);
            $result = profilef::send_email_plain($to, $subject, $message);
            profilef::profileexpireconciergesearch();
            header("Location: " . JURI::base() . '?concr=1');
        } else {
            header("Location: " . JURI::base() . '?concr=0');
        }
    } else {
        header("Location: " . JURI::base() . '?concr=0');
    }
} else {
    if (intval($_REQUEST['pgmm']) > 0 && $userstate) {
        include dirname(__FILE__) . '/profilef.php';
        $searchid = profilef::profilesavesearch();
        header("Location: " . JURI::base() . '?sr=' . intval($searchid));
    } else {
        if ($_REQUEST['pto'] == 'pdf' && intval($_REQUEST['sr']) > 0 && $userstate) {
            include dirname(__FILE__) . '/profilef.php';
            $ht = profilef::profilegetresults($_REQUEST['sr'], true);
            require_once dirname(__FILE__) . '/tcpdf/tcpdf_import.php';
            $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
            $pdf->SetCreator(PDF_CREATOR);
            $pdf->SetAuthor(PDF_AUTHOR);
            $pdf->SetTitle('PropertEASE PDF Report');
            $pdf->setPrintHeader(false);
            $pdf->setPrintFooter(false);
            $pdf->SetDefaultMonospacedFont(PDF_FONT_MONOSPACED);
            $pdf->SetMargins(PDF_MARGIN_LEFT, 15, PDF_MARGIN_RIGHT);
            $pdf->SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM);