13.07.2015 Aufrufe

Download - IP-Symcon

Download - IP-Symcon

Download - IP-Symcon

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

<strong>IP</strong>S_SetName($eventid, "Timer");<strong>IP</strong>S_SetEventScript($eventid, $_<strong>IP</strong>S['SELF']);<strong>IP</strong>S_SetEventCyclic($eventid, 0, 0, 0, 0, 3, 6);}$variableid = @<strong>IP</strong>S_GetVariableIDByName("Daytime", $_<strong>IP</strong>S['SELF']);if($variableid === false){$variableid = <strong>IP</strong>S_CreateVariable(1);<strong>IP</strong>S_SetName($variableid, "Daytime");<strong>IP</strong>S_SetParent($variableid, $_<strong>IP</strong>S['SELF']);}}SetValue(<strong>IP</strong>S_GetVariableIDByName("Daytime", $_<strong>IP</strong>S['SELF']), floor(date("H") / 6));... eine Datei aus dem Internet herunterladen?$remoteImage = "https://www.google.com/images/srpr/logo3w.png";$localImage = <strong>IP</strong>S_GetKernelDir()."\\media\\bild.jpg";//<strong>Download</strong>en$content = @file_get_contents($remoteImage);if((strpos($http_response_header[0], "200") === false)){return;}//Speichernfile_put_contents( $localImage, $content );... einen Ordner rekrusiv in die MediaPlayer Playlist laden?function WAC_PlayDir($id, $dir){function ReadRecursive($dir, $subdir = "") {$result = Array();$files = scandir($dir."/".$subdir);foreach($files as $file){if(($file != ".") && ($file != "..")) {if(is_dir($dir."/".$subdir."/".$file)) {$res = ReadRecursive($dir, $subdir."/".$file);$result = array_merge($res, $result);} else {$filedir = $subdir."/".$file;$filedir = substr($filedir, 1, strlen($filedir));$result[] = $filedir;}}}return $result;}$allowed = Array("mp3", "wma");$files = ReadRecursive($dir);//Den Zufallsgenerator von PHP verwenden//shuffle($files);

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!