コード例 #1
0
function currentPage()
{
    $match = array();
    $path = getURLData('path');
    $page = preg_match('/[.]*[^\\/]*$/', $path, $match);
    $pageref = $match[0];
    return preg_replace('/.php/', '', $pageref);
}
コード例 #2
0
function getYoutubeGalleryShowOwner($url)
{
    if (strpos($url, '://www.youtube.com/show/') === false) {
        return 'wrong link format';
    }
    $a = getURLData($url);
    if ($a == '') {
        return 'cannot load show page';
    }
    $gdata = getValueOfParameter($a, '<link rel="alternate" type="application/rss+xml" title="RSS" href="');
    if (!$gdata) {
        return 'cannot find the owner';
    }
    $username = getValueOfParameter($a, 'http://gdata.youtube.com/feeds/base/users/', '/');
    if (!$gdata) {
        return 'cannot find username';
    }
    $arr = array('username' => $username);
    return json_encode($arr);
}
コード例 #3
0
ファイル: flugAendern.php プロジェクト: class142/proj
					<h2>Flug &auml;ndern</h2>
					<input type="text" placeholder="Flugnummer" name="flugnummer" required value="<?php 
echo $_GET['id'];
?>
"/>
					<br>
					<?php 
getFlughafenList();
?>
					<input type="text" placeholder="Von (zB YYZ)" name="von" list="flughafen" autocomplete="off" value="<?php 
echo getURLData('von');
?>
"/>
					<br>
					<input type="text" placeholder="Nach (zB FRA)" name="nach" list="flughafen" autocomplete="off" value="<?php 
echo getURLData('nach');
?>
"/>
					<br>
					<input type="datetime-local" placeholder="Abflug" name="ab" value="<?php 
echo $ab;
?>
"/>
					<br>
					<input type="datetime-local" placeholder="Ankunft" name="an" value="<?php 
echo $an;
?>
"/>
					<br>
					<?php 
getFlugzeugList();