". $cestina ." / ". $anglictina; $skutlink = $linken; break; default: // czech as default $l = "c"; include("./lang-cz.php"); $languageused = $cestina ." / ". $anglictina .""; $skutlink = $linkcz; } $skuturl = $eurlp.$skutlink.$prodslash; $query ="select n.* from nemo n, ucast u where u.nid=n.nid and n.platny=1 and u.uid=".intval($uid); if (!ifoexec($query)) { $uvodnistranka = 2; $chyba = "(URL je neplatné)"; } else { if (strtolower($l)=="e") { $nazev = stripslashes($values["nazeven"]); $popis = stripslashes($values["popisen"]); } else { $nazev = stripslashes($values["nazev"]); $popis = stripslashes($values["popis"]); } $nid = $values["nid"]; $aid = $values["aid"]; $query ="select o.* from online o where o.platny=1 and o.nid=".intval($nid); if (!ifoexec($query)) { $ostatus = $l_aukce_neni; } else { $ooid = $values["oid"]; $odzac = date_format_jb ($values["dzac"]); $odzach = sprintf("%02d", $values["dzach"]); $odzacm = sprintf("%02d", $values["dzacm"]); if ($odzac<>"") { $ozac = $odzac." ".$odzach.":".$odzacm; } $odkond = $values["dkon"]; $odkon = date_format_jb ($values["dkon"]); $odkonh = sprintf("%02d", $values["dkonh"]); $odkonm = sprintf("%02d", $values["dkonm"]); if ($odkon<>"") { $okon = $odkon." ".$odkonh.":".$odkonm; } $aubezi = 0; $refreshmain = 0; if (strtolower($l)=="e") { $titulek = stripslashes($values["popisen"]); } else { $titulek = stripslashes($values["popis"]); } //echo intval($odzach)."*".intval($odzacm)."*".intval(substr($values["dzac"],5,2))."*".intval(substr($values["dzac"],8,2))."*".intval(substr($values["dzac"],0,4))."
"; //echo mktime(intval($odzach), intval($odzacm), 0, intval(substr($values["dzac"],5,2)), intval(substr($values["dzac"],8,2)), intval(substr($values["dzac"],0,4)))."***".time()."
"; if (date("Y-m-d H:i:s") < $values["dzac"]." ".$odzach.":".$odzacm) { $ostatus = $l_aukce_pred; $status_bg_color = "bg-orange"; $refreshmain = mktime(intval($odzach), intval($odzacm), 0, intval(substr($values["dzac"],5,2)), intval(substr($values["dzac"],8,2)), intval(substr($values["dzac"],0,4))) - time(); //echo "*".$refreshmain."*
"; } else { if (date("Y-m-d H:i:s") > $values["dkon"]." ".$odkonh.":".$odkonm) { $aubezi = 2; $ostatus = $l_aukce_po; $status_bg_color = "bg-red"; } else { $aubezi = 1; $ostatus = $l_aukce_bezi; $status_bg_color = "bg-green"; } } $omena = $values["mena"]; $omena == "EUR" ? $omena = "€" : $omena = "Kč"; $oprodl = $values["prodl"]; $opredh = sprintf("%02d", $values["predh"]); $opredm = sprintf("%02d", $values["predm"]); $opridh = sprintf("%02d", $values["pridh"]); $opridm = sprintf("%02d", $values["pridm"]); $opcena = $values["pcena"]; $ominprih = $values["minprih"]; $otypauk = $values["typauk"]; $otypzob = $values["typzob"]; if ($l=="e") { $opopis = stripslashes($values["popisen"]); } else { $opopis = stripslashes($values["popis"]); } //echo date('Y-m-d H:i', mktime(date("H")+intval($opredh), date("i")+intval($opredm), 0, date("m"), date("d"), date("Y")))."*".$odkond." ".$odkonh.":".$odkonm."
"; $ndkon = $odkond; $ndkonh = $odkonh; $ndkonm = $odkonm; if (intval($oprodl)>0) { //echo (date("H")+intval($opredh)).":".(date("i")+intval($opredm))."*".$odkonh.":".$odkonm."
"; if (date('Y-m-d H:i', mktime(date("H")+intval($opredh), date("i")+intval($opredm), 0, date("m"), date("d"), date("Y"))) >= $odkond." ".$odkonh.":".$odkonm) { $ndkonm = ($odkonm+$opridm) % 60; $ndkonh = (($odkonh+$opridh+floor(($odkonm+$opridm-$ndkonm)/60)) % 24); $add_days = floor((($odkonh+$opridh+(($odkonm+$opridm-$ndkonm)/60))-$ndkonh)/24); $ndkon = date ("Y-m-d", strtotime ($odkond ."+".$add_days." days")); //echo $ndkonm."*".$ndkonh."*".$add_days."*".$ndkon."
"; } } } } } } include("./login.php"); ?>
=1) { include("./welcome.php"); } else { include("./eauction.php"); } ?>