Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
switch($_GET['do'])
{
case 'Test':
include ("http://www.trancebeats.com/tip/dir.php?pfad=Test");
break;
case 'Hallo':
include ("http://www.trancebeats.com/tip/dir.php?pfad=Hallo");
break;
default:
echo ('bla bla bla');
break;
}
if (in_array($_GET['do'],$files)) {
include ("http://www.trancebeats.com/tip/dir.php?pfad="
.$_GET['do']);
} else {
echo ('bla bla bla');
}
foreach($files as $file) {
if (in_array($_GET['do'],$file)) {
echo("http://www.trancebeats.com/tip/dir.php?pfad=".$_GET['do']);
}
else {
echo ('bla bla bla'); }
}
<?php
$uri = $_SERVER['REQUEST_URI'];
$dir = '/homepages/7/d101401614/htdocs/'.$uri;
$as = str_replace("home.php", "", "$dir");
$verz = opendir($as);
$files = array();
while($file = readdir($verz)) {
if($file != '.' and $file != '..' and $file != 'back.gif' and $file != 'copy.gif' and $file != 'dir.php' and $file != 'folder.gif' and $file != 'index.php' and $file != 'popup_pic.php' and $file != 'rahmen.gif' and $file!= 'table_01.gif' and $file!= 'table_02.gif' and $file!= 'table_03.gif' and $file!= 'table_04.gif' and $file!= 'table_05.gif' and $file!= 'bg.jpg' and $file!= 'index.html' and $file!= 'index1.jpg' and $file!= 'index2.jpg' and $file!= 'home.php' and $file!= 'rahmen2.gif' and $file!= 'Bilder' and $file!= 'home2.php') {
$files[] = $file;
}
}
closedir($verz);
sort($files, SORT_DATE);
foreach($files as $file) {
if (in_array($_GET['do'],$files)) {
include ("http://www.trancebeats.com/tip/dir.php?pfad="
.$_GET['do']);
} else {
echo ('bla bla bla');
}
}
?>
<?php
$pic_zeile = "9999";
$datei_end = array("gif", "jpg", "JPG");
$groesse = "146";
$name_anz = "ja";
$border = "0";
$gd_lib = "2.0";
$font = "<font face=verdana size=2>";
$datei_name = $_SERVER["PHP_SELF"];
$fileplace = ".";
if (isset($pfad) || empty($pfad)) echo "";
function createThumb($img_src, $img_width , $img_height, $des_src, $folder) {
if (!file_exists($folder. "/" .$des_src)) {
umask(0000);
if (!mkdir($folder. "/" .$des_src, 0777)) {
die("Konnte Ordner ".$folder. "/" .$des_src." nicht erstellen!");
}
}
$im = imagecreatefromjpeg($folder. "/" .$img_src);
list($src_width, $src_height) = getimagesize($folder. "/" .$img_src);
if($src_width >= $src_height) {
$new_image_width = $img_width;
$new_image_height = $src_height * $img_width / $src_width;
}
if($src_width < $src_height) {
$new_image_height = $img_width;
$new_image_width = $src_width * $img_height / $src_height;
}
if ($gd_lib == "1.6") {
$new_image = imagecreate($new_image_width, $new_image_height);
imagecopyresized($new_image, $im, 0, 0, 0, 0, $new_image_width,$new_image_height, $src_width, $src_height);
}
else {
$new_image = imagecreatetruecolor($new_image_width, $new_image_height);
imagecopyresampled($new_image, $im, 0, 0, 0, 0, $new_image_width,$new_image_height, $src_width, $src_height);
}
imagejpeg($new_image, $folder. "/" .$des_src. "/" .$img_src, 100);
}
function name_of_file($filename) {
$len = strlen(strrchr($filename,"."));
$ganz = strlen($filename) + 1;
$grafik = substr($filename,$ganz-$len);
return $grafik;
}
$i = 0;
$zaehler = 0;
if (!isset($pfad) ||
empty($pfad)) {
$verz = opendir ($fileplace);
while ($file = readdir ($verz)) {
if (name_of_file($file) == "" &&
$file != "." &&
$file != ".." ) {
$zaehler++;
}
}
closedir($verz);
}
else {
if (file_exists($pfad)) {
$verz = opendir ($pfad);
while ($file = readdir ($verz)) {
$filegrafik = strtolower(name_of_file($file));
if (in_array ($filegrafik, $datei_end)) {
$i++;
$zaehler++;
if ($i == $pic_zeile + 1) {
$i = 1;
}
if (!file_exists($pfad. "/thumbnails/" .$file))
createThumb($file, $groesse, $groesse, "thumbnails", $pfad);
$size = getimagesize($pfad. "/" .$file);
$picurl = rawurlencode ($pfad);
$picfile = rawurlencode ($file);
echo "<script type=text/javascript>
function popup_pic$i() {
bild =
window.open('popup_pic.php?src=$picurl&file=$picfile', 'bild', 'width=$size[0]h,height=$size[1]');
bild.focus();
}
</script>";
echo "<td background=".$picurl."/thumbnails/".$picfile."><a href=javascript:popup_pic$i() onmouseover=\"status='Folder $picurl Image $i';return true;\" onclick=\"status='Folder $picurl Image $i';return true;\"><img src=rahmen.gif border=0 width=88 height=70></a>";
echo "</td>";
if($zaehler==5){
echo('</tr><tr>');
$zaehler=0;
}
if ($i == $pic_zeile + 1) {
$i = 1;
}
}
}
closedir($verz);
}
}
?>
if (in_array($_GET['do'],$files)) {
$pfad=$_GET['do'];
include ("dir.php");
} else {
echo ('bla bla bla');
}