コード例 #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';
コード例 #2
0
ファイル: profilef.php プロジェクト: vstorm83/propertease
 public function profilegetoutput()
 {
     if (intval($_REQUEST['concr'])) {
         return '<p><strong>Your request has been sent.</strong></p>';
     } else {
         if (intval($_REQUEST['sr']) > 0) {
             return profilef::profilegetresults_new($_REQUEST['sr']) . profilef::profilegetpdfbutton($_REQUEST['sr']);
         } else {
             if (profilef::profilecansearch()) {
                 if (profilef::profileconcierge()) {
                     $ret = '';
                     $ret .= '<form action="" method="post" class="ptsearch">';
                     $conccont = true;
                     if (isset($_REQUEST['concr'])) {
                         if (intval($_REQUEST['concr'])) {
                             $ret .= '<h2>Concierge Search</h2>';
                             $ret .= '<p><strong>Your request has been sent.</strong></p>';
                             $conccont = false;
                         } else {
                             $ret .= '<p><strong>You need to enter an address.</strong></p>';
                         }
                     } else {
                         //$ret.='<p>What is the address of the property that you would like a report for?</p>';
                     }
                     if ($conccont) {
                         $ret .= '<div id="concierge-mainbody" class="container concierge-mainbody">';
                         $ret .= '<div class="row">' . '<div id="t3-content" class="t3-content col-xs-12">';
                         $ret .= '<div class="item-pageresource clearfix">' . '<article itemscope="" itemtype="http://schema.org/Article">';
                         $ret .= '<header class="text-center ">' . '<img src="Connect_files/images/concierge.png" class="img-responsive center-block">';
                         $ret .= '<h2 class="header-search">Concierge <span>Search</span></h2>' . '</header>';
                         $ret .= '<section><div class="row"><div class="col-lg-12"><div class="input-group">';
                         $ret .= '<input type="text" name="conciergeaddy" class="form-control" placeholder="What is the address of the property you would like a report for?">';
                         $ret .= '<span class="input-group-btn"><button class="btn btn-default" type="submit">Submit</button></span></div>';
                         $ret .= '</div></div>';
                         $ret .= '<p class="text-in-site">Within <strong class="bol-text-site">24 hours</strong>, our service expert will be back with your custom report. </p>';
                         $ret .= '</section></article></div></div></div></div>';
                     }
                     $ret .= '</form>';
                     return $ret;
                 }
                 return profilef::profilegetformhtml() . '<script type="text/javascript">' . profilef::profilegetformjs() . '</script><noscript><p>You need javascript enabled to use this form.</p></noscript>';
             } else {
                 return '<div class="alert alert-danger expiredPanel" role="alert">Your subscription is either pending or expired. ' . '<a href="index.php/plans.html">Click here to renew or upgrade your subscription.</a></div>' . '<script type="text/javascript">jQuery(document).ready(function($){$(".reportCreator").show();});</script>';
             }
         }
     }
 }
コード例 #3
0
 public function profilegetoutput()
 {
     if (intval($_REQUEST['concr'])) {
         return '<p><strong>Your request has been sent.</strong></p>';
     } else {
         if (intval($_REQUEST['sr']) > 0) {
             return profilef::profilegetresults($_REQUEST['sr']) . profilef::profilegetpdfbutton($_REQUEST['sr']);
         } else {
             if (profilef::profilecansearch()) {
                 if (profilef::profileconcierge()) {
                     $ret = '';
                     $ret .= '<form action="" method="post" class="ptsearch">';
                     $ret .= '<h2>Concierge Search</h2>';
                     $conccont = true;
                     if (isset($_REQUEST['concr'])) {
                         if (intval($_REQUEST['concr'])) {
                             $ret .= '<p><strong>Your request has been sent.</strong></p>';
                             $conccont = false;
                         } else {
                             $ret .= '<p><strong>You need to enter an address.</strong></p>';
                         }
                     } else {
                         $ret .= '<p>What is the address of the property that you would like a report for?</p>';
                     }
                     if ($conccont) {
                         $ret .= '<p id="refw"><label><strong>Address:</strong></label><input name="conciergeaddy" type="text"></p>';
                         $ret .= '<p id="submitw"><input type="submit" value="Submit"></p>';
                     }
                     $ret .= '</form>';
                     return $ret;
                 }
                 return profilef::profilegetformhtml() . '<script type="text/javascript">' . profilef::profilegetformjs() . '</script><noscript><p>You need javascript enabled to use this form.</p></noscript>';
             } else {
                 return '<p>Your subscription is either pending or expired. <a href="index.php/subscribe">Click here to renew or upgrade your subscription.</a></p>';
             }
         }
     }
 }