| Server IP : 172.67.178.83 / Your IP : 216.73.217.141 Web Server : Apache System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64 User : corbizre ( 1013) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/corbizre/nextgreathome.com/ |
Upload File : |
<?php
//echo "<pre>";
//print_r($_REQUEST);
//print_r($_SERVER);
//session_start();
//echo "</pre>";
include_once "config.php";
include_once "lib/common.lib.php";
require_once "lib/main.php";
require_once "lib/dbmysql.class.php";
require_once 'lib/awt_tpl.class.php';
$template_file = 'main-rss.tpl.html';
$error_message = '';
$content_type = '';
$where_house="";
$default_category = 'commercial-property-for-rent';
$category = array();
$not_found = 0;
$tpl = new AwtTpl();
$db2 = new DbMySQL(DB_HOST2, DB_NAME2, DB_USER2, DB_PWD2);
$db2->connect();
$sql = "SELECT ID,status_type,`type`,`status`,address,city,state,zip,last_update,created_date,source
FROM houses h WHERE h.created_date>CURDATE()-INTERVAL 1 DAY AND h.true_state is not null AND true_state!='' ORDER BY last_update DESC LIMIT 100";
$houses = $db2->select($sql);
if(!$houses){
$sql = "SELECT ID,status_type,`type`,`status`,address,city,state,zip,last_update,created_date,source
FROM houses h WHERE DATE(h.created_date)=DATE(h.last_update) AND h.true_state is not null AND true_state!='' ORDER BY last_update DESC LIMIT 100";
$houses = $db2->select($sql);
}
$tpl->assign("houses", $houses);
$tpl->display($template_file);
?>