اخواني ياليت المساعده انا ركبت ستايل مايدعم الجوال
وفكرت اني اركب ستايل ثاني يدعم الجوال
وعندي كود اذا احد دخل من الجوال يحوله على ستايل ثاني
بس ماعرف وش هو رابط التحويل يعني مثل المنتديات اختيار الستايل
ابي طريقة مثل المنتديات
هذا رابط الموقع
http://zzzfile.com
وهذا كود جافا سكربت
كود: تحديد الكل
[code][color=#000000][color=#0000BB]<?php
$mobile_browser [/color][color=#007700]= [/color][color=#DD0000]'0'[/color][color=#007700];
if([/color][color=#0000BB]preg_match[/color][color=#007700]([/color][color=#DD0000]'/(up.browser|up.link|mmp|symbian|smartphone|midp|wa p|phone)/i'[/color][color=#007700], [/color]
[color=#0000BB]strtolower[/color][color=#007700]([/color][color=#0000BB]$_SERVER[/color][color=#007700][[/color][color=#DD0000]'HTTP_USER_AGENT'[/color][color=#007700]]))){ [/color]
[color=#0000BB]$mobile_browser[/color][color=#007700]++;
}
if(([/color][color=#0000BB]strpos[/color][color=#007700]([/color][color=#0000BB]strtolower[/color][color=#007700]([/color][color=#0000BB]$_SERVER[/color][color=#007700][[/color][color=#DD0000]'HTTP_ACCEPT'[/color][color=#007700]]),[/color][color=#DD0000]'application/vnd.wap.xhtml+xml'[/color][color=#007700])>[/color][color=#0000BB]0[/color][color=#007700]) or
((isset([/color][color=#0000BB]$_SERVER[/color][color=#007700][[/color][color=#DD0000]'HTTP_X_WAP_PROFILE'[/color][color=#007700]]) or isset([/color][color=#0000BB]$_SERVER[/color][color=#007700][[/color][color=#DD0000]'HTTP_PROFILE'[/color][color=#007700]])))){ [/color]
[color=#0000BB]$mobile_browser[/color][color=#007700]++;
} [/color]
[color=#0000BB]$mobile_ua [/color][color=#007700]= [/color][color=#0000BB]strtolower[/color][color=#007700]([/color][color=#0000BB]substr[/color][color=#007700]([/color][color=#0000BB]$_SERVER[/color][color=#007700][[/color][color=#DD0000]'HTTP_USER_AGENT'[/color][color=#007700]],[/color][color=#0000BB]0[/color][color=#007700],[/color][color=#0000BB]4[/color][color=#007700])); [/color]
[color=#0000BB]$mobile_agents [/color][color=#007700]= array( [/color]
[color=#DD0000]'w3c '[/color][color=#007700],[/color][color=#DD0000]'acs-'[/color][color=#007700],[/color][color=#DD0000]'alav'[/color][color=#007700],[/color][color=#DD0000]'alca'[/color][color=#007700],[/color][color=#DD0000]'amoi'[/color][color=#007700],[/color][color=#DD0000]'audi'[/color][color=#007700],[/color][color=#DD0000]'avan'[/color][color=#007700],[/color][color=#DD0000]'benq'[/color][color=#007700],[/color][color=#DD0000]'bird' [/color][color=#007700],[/color][color=#DD0000]'blac'[/color][color=#007700], [/color]
[color=#DD0000]'blaz'[/color][color=#007700],[/color][color=#DD0000]'brew'[/color][color=#007700],[/color][color=#DD0000]'cell'[/color][color=#007700],[/color][color=#DD0000]'cldc'[/color][color=#007700],[/color][color=#DD0000]'cmd-'[/color][color=#007700],[/color][color=#DD0000]'dang'[/color][color=#007700],[/color][color=#DD0000]'doco'[/color][color=#007700],[/color][color=#DD0000]'eric'[/color][color=#007700],[/color][color=#DD0000]'hipt'[/color][color=#007700],[/color][color=#DD0000]'inno'[/color][color=#007700], [/color]
[color=#DD0000]'ipaq'[/color][color=#007700],[/color][color=#DD0000]'java'[/color][color=#007700],[/color][color=#DD0000]'jigs'[/color][color=#007700],[/color][color=#DD0000]'kddi'[/color][color=#007700],[/color][color=#DD0000]'keji'[/color][color=#007700],[/color][color=#DD0000]'leno'[/color][color=#007700],[/color][color=#DD0000]'lg-c'[/color][color=#007700],[/color][color=#DD0000]'lg-d'[/color][color=#007700],[/color][color=#DD0000]'lg-g'[/color][color=#007700],[/color][color=#DD0000]'lge-'[/color][color=#007700], [/color]
[color=#DD0000]'maui'[/color][color=#007700],[/color][color=#DD0000]'maxo'[/color][color=#007700],[/color][color=#DD0000]'midp'[/color][color=#007700],[/color][color=#DD0000]'mits'[/color][color=#007700],[/color][color=#DD0000]'mmef'[/color][color=#007700],[/color][color=#DD0000]'mobi'[/color][color=#007700],[/color][color=#DD0000]'mot-'[/color][color=#007700],[/color][color=#DD0000]'moto'[/color][color=#007700],[/color][color=#DD0000]'mwbp'[/color][color=#007700],[/color][color=#DD0000]'nec-'[/color][color=#007700], [/color]
[color=#DD0000]'newt'[/color][color=#007700],[/color][color=#DD0000]'noki'[/color][color=#007700],[/color][color=#DD0000]'oper'[/color][color=#007700],[/color][color=#DD0000]'palm'[/color][color=#007700],[/color][color=#DD0000]'pana'[/color][color=#007700],[/color][color=#DD0000]'pant'[/color][color=#007700],[/color][color=#DD0000]'phil'[/color][color=#007700],[/color][color=#DD0000]' play'[/color][color=#007700],[/color][color=#DD0000]'port'[/color][color=#007700],[/color][color=#DD0000]'prox'[/color][color=#007700], [/color]
[color=#DD0000]'qwap'[/color][color=#007700],[/color][color=#DD0000]'sage'[/color][color=#007700],[/color][color=#DD0000]'sams'[/color][color=#007700],[/color][color=#DD0000]'sany'[/color][color=#007700],[/color][color=#DD0000]'sch-'[/color][color=#007700],[/color][color=#DD0000]'sec-'[/color][color=#007700],[/color][color=#DD0000]'send'[/color][color=#007700],[/color][color=#DD0000]'seri'[/color][color=#007700],[/color][color=#DD0000]'sgh-'[/color][color=#007700],[/color][color=#DD0000]'shar'[/color][color=#007700], [/color]
[color=#DD0000]'sie-'[/color][color=#007700],[/color][color=#DD0000]'siem'[/color][color=#007700],[/color][color=#DD0000]'smal'[/color][color=#007700],[/color][color=#DD0000]'smar'[/color][color=#007700],[/color][color=#DD0000]'sony'[/color][color=#007700],[/color][color=#DD0000]'sph-'[/color][color=#007700],[/color][color=#DD0000]'symb'[/color][color=#007700],[/color][color=#DD0000]'t-mo'[/color][color=#007700],[/color][color=#DD0000]'teli'[/color][color=#007700],[/color][color=#DD0000]'tim-'[/color][color=#007700], [/color]
[color=#DD0000]'tosh'[/color][color=#007700],[/color][color=#DD0000]'tsm-'[/color][color=#007700],[/color][color=#DD0000]'upg1'[/color][color=#007700],[/color][color=#DD0000]'upsi'[/color][color=#007700],[/color][color=#DD0000]'vk-v'[/color][color=#007700],[/color][color=#DD0000]'voda'[/color][color=#007700],[/color][color=#DD0000]'wap-'[/color][color=#007700],[/color][color=#DD0000]'wapa'[/color][color=#007700],[/color][color=#DD0000]'wapi'[/color][color=#007700],[/color][color=#DD0000]'wapp'[/color][color=#007700], [/color]
[color=#DD0000]'wapr'[/color][color=#007700],[/color][color=#DD0000]'webc'[/color][color=#007700],[/color][color=#DD0000]'winw'[/color][color=#007700],[/color][color=#DD0000]'winw'[/color][color=#007700],[/color][color=#DD0000]'xda'[/color][color=#007700],[/color][color=#DD0000]'xda-'[/color][color=#007700]);
if([/color][color=#0000BB]in_array[/color][color=#007700]([/color][color=#0000BB]$mobile_ua[/color][color=#007700],[/color][color=#0000BB]$mobile_agents[/color][color=#007700])){ [/color]
[color=#0000BB]$mobile_browser[/color][color=#007700]++;
}
if ([/color][color=#0000BB]strpos[/color][color=#007700]([/color][color=#0000BB]strtolower[/color][color=#007700]([/color][color=#0000BB]$_SERVER[/color][color=#007700][[/color][color=#DD0000]'ALL_HTTP'[/color][color=#007700]]),[/color][color=#DD0000]'OperaMini'[/color][color=#007700])>[/color][color=#0000BB]0[/color][color=#007700]) { [/color]
[color=#0000BB]$mobile_browser[/color][color=#007700]++;
}
if ([/color][color=#0000BB]strpos[/color][color=#007700]([/color][color=#0000BB]strtolower[/color][color=#007700]([/color][color=#0000BB]$_SERVER[/color][color=#007700][[/color][color=#DD0000]'HTTP_USER_AGENT'[/color][color=#007700]]),[/color][color=#DD0000]'windows'[/color][color=#007700])>[/color][color=#0000BB]0[/color][color=#007700]) { [/color]
[color=#0000BB]$mobile_browser[/color][color=#007700]=[/color][color=#0000BB]0[/color][color=#007700];
}
if([/color][color=#0000BB]$mobile_browser[/color][color=#007700]>[/color][color=#0000BB]0[/color][color=#007700]){ [/color]
[color=#0000BB]header[/color][color=#007700]([/color][color=#DD0000]'Location: رابط استيل تصفح الموبيل'[/color][color=#007700]);
} else { [/color]
[color=#0000BB]header[/color][color=#007700]([/color][color=#DD0000]'Location: رابط تصفح الكمبيوتر'[/color][color=#007700]);
} [/color]
[color=#0000BB]?>[/color][/color]
ياليت المساعدة
[quote][/quote]