Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if($web!=true) {
- $idioma = substr($_SERVER["HTTP_ACCEPT_LANGUAGE"],0,2);
- if($idioma=="es") { header('Location: http://www.miweb.com/es/'); } else { header( 'Location: http://www.miweb.com/en/' ); }
- } else {
- include("lang/{$lang}.php");
- echo $txt['mensaje'][0];
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement