Guest User

Untitled

a guest
Dec 23rd, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. <?php
  2. require('inc/functions.php');
  3. define('PHP_FIREWALL_REQUEST_URI', strip_tags( $_SERVER['REQUEST_URI'] ) );
  4. define('PHP_FIREWALL_ACTIVATION', false );
  5. if ( is_file( @dirname(__FILE__).'/php-firewall/firewall.php' ) )
  6. include_once( @dirname(__FILE__).'/php-firewall/firewall.php' );
  7. $mail='';
  8. $coins=0;
  9. $id=0;
  10. $logged= is_logged();
  11. $path=$_SERVER['REQUEST_URI'];
  12. if($path=='/')
  13. {
  14. header("Location: /home");
  15. }
  16. elseif(!verify($path))
  17. {
  18. echo "Se pare ca adresa introdusa de tine este incorecta... <br>
  19. Te rugam sa introduci adresa corecta si sa incerci din nou.";
  20. exit();
  21. }
  22. else{
  23. $ref=get_refs($path);
  24. if($ref[1]=="register" && $logged)
  25. header("Location: /home");
  26. if($ref[1]=="forum"){
  27. header("Location: /forum/index.php");
  28. }
  29. $title=array(
  30. 'home'=>'Noutati',
  31. 'download'=>'Download',
  32. 'ranking'=>"Clasament",
  33. 'buy_dragon_coins'=>"Cumpara monede dragon",
  34. 'lost_password'=>'Ti-ai uitat parola?',
  35. 'recover_password'=>'Ai un cod de resetare a parolei?',
  36. 'change_mail'=>'Schimbare adresa de e-mail',
  37. 'price_checker'=>'Verificare pret obiect',
  38. 'register'=>"Inregistrare"
  39. );
  40. include 'template/template.php';
  41. }
Advertisement
Add Comment
Please, Sign In to add comment