Example #1
0
<?php

ini_set('display_errors', 1);
require_once ".././include/initialize.php";
//if (!$session->is_logged_in()) {
//	redirect_to("login.php");
//}
//$url="http://cauta-imobiliare.ro/feed_sims.php";
//$ch = curl_init($url);
//$content = curl_exec( $ch );
//$err     = curl_errno( $ch );
//$errmsg  = curl_error( $ch );
//$header  = curl_getinfo( $ch );
//curl_close( $ch );
//echo $content; ionut github
echo SyncSite::modalitate("Imobiliare");
echo SyncSite::modalitate("Imopedia");
echo SyncSite::modalitate("SimsParkman");
?>
 
Example #2
0
            }
        }
    }
    $oferta = Oferta::find_by_id($idOferta);
    $syncList = array('ExportPitagora', 'ExportImobiliare', 'ExportCI', 'ExportRoImobile', 'ExportRomimo', 'ExportNorc', 'ExportMC');
    foreach ($syncList as $sync) {
        if ($oferta->{$sync} == 4) {
            $oferta->{$sync} = 2;
        }
    }
    if ($oferta->OfertaWeb == 4) {
        $oferta->OfertaWeb = 2;
    }
    $oferta->save();
    // sincronizare site
    if ($oferta->OfertaWeb > 0 && SyncSite::modalitate("SimsParkman") == "automat") {
        $conexiune2 = mysql_connect(NEW_SITE_SERVER, NEW_SITE_USER, NEW_SITE_PASSWORD, TRUE);
        $dbselect2 = mysql_select_db(NEW_SITE_DB, $conexiune2);
        sync_Agenti();
        sync_Oferta($oferta->id);
    }
    if ($message == "") {
        redirect_to("foto_update2.php?id={$idApartament}&idOferta={$idOferta}");
    }
    echo $message;
}
function randuri_upload($nr, $start)
{
    for ($i = 1; $i <= $nr; $i++) {
        $class = $i % 2 ? "row odd" : "row even";
        echo "<tr class=\"{$class}\">";
Example #3
0
    $postlist = array_keys($_POST);
    foreach ($postlist as $variable) {
        if (substr($variable, 0, 3) == "Mod") {
            $id = substr($variable, 3, 10);
            $Mod[$id] = $_POST[$variable];
        }
    }
    foreach ($Mod as $id => $value) {
        $syncSite = SyncSite::find_by_id($id);
        //$syncSite->Site = $value;
        $syncSite->Modalitate = $value;
        $syncSite->save();
    }
    redirect_to("index.php");
} else {
    $syncSiteArr = SyncSite::find_all();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html version="-//W3C//DTD HTML 4.01 Transitional//EN" lang="ro">
<head>
    <title>Imobiliare - Configurare sincronizari</title>
   	<link rel="stylesheet" type="text/css" href=".././styles/main.css" />   
    <?php 
require_once ".././include/jquery.php";
?>
	<script>
	
	$(function(){
		$("form").form();
	});