auth($get);
}
if (isset($_GET['ads_source']) && $_GET['ads_source'] != 0) {
$ads_sourceSelected = array();
foreach ($_GET['ads_source'] as $v) {
$ads_sourceSelected[$v] = 1;
}
}
if($get['msg']) $msg = $get['msg'];
if($_POST['ok_auth2'])
{
$post=clearInputData($_POST);
$user = new User;
$msg2 = $user->check_sms($post);
}
if($_POST['ok_auth3'])
{
$post=clearInputData($_POST);
$user = new User;
$msg2 = $user->check_sms($post,1);
}
require($_SERVER['DOCUMENT_ROOT']."/templates/new-header.php");
?>
get($_SESSION['id']);
if (!isset($_SESSION['notes_bd_usl'])) {
$agencyId = User::getAgencyIdForUser($_SESSION['id']);
$usersIds = User::getAllAgencyUsers($agencyId);
$usersIds[] = $_SESSION['id'];
$usersIds = array_unique($usersIds);
$_SESSION['notes_bd_usl'] = "created_by IN (" . implode(",", $usersIds) . ")";
}
?>
Поиск объектов
region_rf_id
";
$rezForNeedNb = mysql_query($sqlForNeedNb);
// $needNewbuildings = false;
$showNewbuildings = false;
// while($userId=mysql_fetch_assoc($rezForAd)) {
// if ($userId['id'] == $_SESSION['id']) {
// $needNewbuildings = true;
// break;
// }
// }
$countResult = mysql_fetch_assoc($rezForNeedNb);
if ($countResult['count'] != '0') {
$showNewbuildings = true;
}
// while($userId=mysql_fetch_assoc($rezForNeedNb)) {
// if ($userId['id'] == $_SESSION['id']) {
// $showNewbuildings = false;
// break;
// }
// }
$_GET['operation_type'] = ($_GET['operation_type'])? $_GET['operation_type'] : 0;
?>