Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('inc/functions.php');
- define('PHP_FIREWALL_REQUEST_URI', strip_tags( $_SERVER['REQUEST_URI'] ) );
- define('PHP_FIREWALL_ACTIVATION', false );
- if ( is_file( @dirname(__FILE__).'/php-firewall/firewall.php' ) )
- include_once( @dirname(__FILE__).'/php-firewall/firewall.php' );
- $mail='';
- $coins=0;
- $id=0;
- $logged= is_logged();
- $path=$_SERVER['REQUEST_URI'];
- if($path=='/')
- {
- header("Location: /home");
- }
- elseif(!verify($path))
- {
- echo "Se pare ca adresa introdusa de tine este incorecta... <br>
- Te rugam sa introduci adresa corecta si sa incerci din nou.";
- exit();
- }
- else{
- $ref=get_refs($path);
- if($ref[1]=="register" && $logged)
- header("Location: /home");
- if($ref[1]=="forum"){
- header("Location: /forum/index.php");
- }
- $title=array(
- 'home'=>'Noutati',
- 'download'=>'Download',
- 'ranking'=>"Clasament",
- 'buy_dragon_coins'=>"Cumpara monede dragon",
- 'lost_password'=>'Ti-ai uitat parola?',
- 'recover_password'=>'Ai un cod de resetare a parolei?',
- 'change_mail'=>'Schimbare adresa de e-mail',
- 'price_checker'=>'Verificare pret obiect',
- 'register'=>"Inregistrare"
- );
- include 'template/template.php';
- }
Advertisement
Add Comment
Please, Sign In to add comment