Advertisement
Bille

Language Select (index.php)

Apr 22nd, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. <?php
  2. /* >> */
  3. if (!isset($_COOKIE['language'])) {
  4.     header("Location: /select.php");
  5.     exit;
  6. } elseif ($_COOKIE['language'] == 'english') {
  7.     header("Location: /en");
  8.     exit;
  9. }
  10. /* << */
  11. /**
  12.  * Front to the WordPress application. This file doesn't do anything, but loads
  13.  * wp-blog-header.php which does and tells WordPress to load the theme.
  14.  *
  15.  * @package WordPress
  16.  */
  17.  
  18. /**
  19.  * Tells WordPress to load the WordPress theme and output it.
  20.  *
  21.  * @var bool
  22.  */
  23. define('WP_USE_THEMES', true);
  24.  
  25. /** Loads the WordPress Environment and Template */
  26. require('./wp-blog-header.php');
  27. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement