Ejemplo n.º 1
0
                            echo "<span style='color:green;'>SET</span>";
                        } else {
                            echo "<span style='color:red;'>NOT SET</span>";
                        }
                    }
                    echo "<br><br>";
                }
                echo "<br><hr><br>";
            }
        }
    }
}
//New Place
$DLRA = new place("Disneyland Park");
$DCA = new place("Disney California Adventure Park");
//Address
$DLRA->addAddress($address1, $address2, $city, $state, $zip, $country, $latitude, $longitude);
$DCA->addAddress($address1, $address2, $city, $state, $zip, $country, $latitude2, $longitude2);
//Details
$DLRA->addDetails($phone, $type, $drivethru, $wifi, $plus18, $plus21, $alcohol, 1);
$DCA->addDetails($phone, $type, $drivethru, $wifi, $plus18, $plus21, $alcohol2, 7);
//Time Settings
$DLRA->timeSettings($timezone, $dlst);
$DCA->timeSettings($timezone, $dlst);
parseJSON($json);
if (!$DLRA->hoursSet() || !$DCA->hoursSet()) {
    echo "<h2>Loading 2nd</h2>";
    parseJSON($json2);
}
$DLRA->writeDB();
$DCA->writeDB();