コード例 #1
0
ファイル: home_logged.php プロジェクト: vstorm83/propertease
<?php

defined('_JEXEC') or die;
$user = JFactory::getUser();
$userstate = intval($user->id) > 0 ? true : false;
if (isset($_REQUEST['conciergeaddy']) && $userstate) {
    include dirname(__FILE__) . '/profilef.php';
    if (profilef::profileconcierge()) {
        if (trim($_REQUEST['conciergeaddy']) != '') {
            $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';