Exemple #1
0
					<a href="<?php 
    echo base_url();
    ?>
auth/logout"><span>LOGGA UT</span></a>
				<?php 
}
?>
	
			</li>
			
		</ul>
	</div><!--top_wishlist-->
	<div class="clear"></div><!--clear-->
	<div class="search">
            <?php 
$query_arr = parse_querystring();
?>
            
            <form method="get" id="city_form" name="city_form" action="<?php 
echo base_url();
?>
product/searchresult">
		<div class="search_bg">                    
			<input type="text" name="pro_name" id="pro_name" value="<?php 
if (isset($query_arr['pro_name']) and $query_arr['pro_name'] != '') {
    echo $query_arr['pro_name'];
}
?>
" placeholder="SÖK..." />
			<div class="dropdown_search">
                                <div class="search_loc" id="retailer_filter">
Exemple #2
0
    function youtube_embed($url, $width_px = NULL, $height_px = NULL, $silent_px = NULL)
    {
        if (strpos($url, 'youtu.be') == 7) {
            $id = substr($url, 16);
        } elseif (strpos($url, 'vimeo.com') == 7) {
            $vimeo_id = substr($url, 17);
        } else {
            $ar = explode('?', $url);
            $params = parse_querystring($ar[1]);
            $id = $params['v'];
        }
        if (!$width_px) {
            $width_px = 560;
        }
        if (!$height_px) {
            $height_px = $width_px * 9 / 16;
        }
        $width = 'width="' . $width_px . '"';
        $height = 'height="' . $height_px . '"';
        if ($id) {
            $ytqs = 'fs=1&rel=0&showinfo=0&color1=0xffffff&color2=0xffffff&hd=0&hl=en_US&wmode=transparent';
            $embed = '<object ' . $width . ' ' . $height . '>' . '<param name="movie" value="http://www.youtube.com/v/' . $id . '?' . $ytqs . '"></param>' . '<param name="allowFullScreen" value="true"></param>' . '<param name="wmode" value="transparent"></param>' . '<param name="allowscriptaccess" value="always"></param>' . '<embed src="http://www.youtube.com/v/' . $id . '?' . $ytqs . '" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" ' . $width . ' ' . $height . ' wmode="transparent"></embed></object>';
            if ($silent) {
                return $embed;
            } else {
                echo $embed;
            }
        } elseif ($vimeo_id) {
            $embed = '<iframe src="http://player.vimeo.com/video/' . $vimeo_id . '?byline=0&amp;badge=0&amp;color=ff000d" 
						width="' . $width_px . '"
						height="' . $height_px . '"
						frameborder="0"
						webkitAllowFullScreen
						mozallowfullscreen
						allowFullScreen>
					</iframe>';
            if ($silent) {
                return $embed;
            } else {
                echo $embed;
            }
        } else {
            return false;
        }
    }
// it is useful to verify these cookies' hashes so as to prevent
// requests masquerading as an incorrect user.
$user = 1240077;
param_post(array('appid' => $PARAM_INT, 'query' => $PARAM_RAW, 'type' => $PARAM_INT, 'url' => $PARAM_STRING, 'fb_mockajax_context' => $PARAM_STRING, 'fb_mockajax_context_hash' => $PARAM_STRING));
$app_id = $post_appid;
if (!$app_id) {
    error_log('No app_id specified in fbjs_ajax_proxy');
    exit;
}
if (is_array($post_query)) {
    // PARAM_RAW needs noslashes
    $post_query = $post_query ? noslashes_recursive($post_query) : array();
} else {
    if ($post_query) {
        // PARAM_RAW needs noslashes
        $post_query = parse_querystring(noslashes($post_query));
    } else {
        $post_query = array();
    }
}
$FBJS_TYPES = array('RAW' => 0, 'JSON' => 1, 'FBML' => 2);
function render_fbjs_ajax_fbml_recursive($impl, &$array)
{
    foreach ($array as $key => $value) {
        if (substr($key, 0, 5) == 'fbml_') {
            $array[$key] = fbml_sample_parse($value, $impl);
        } else {
            if (is_array($value)) {
                render_fbjs_ajax_fbml_recursive($impl, $array[$key]);
            }
        }