Advertisement
Nikita051

Untitled

Nov 10th, 2022
983
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.79 KB | None | 0 0
  1. <?php
  2.     $url = $_SERVER["REQUEST_URI"];
  3.  
  4.     if(preg_match("#^/registration$#",$url)){
  5.         include 'registration.php';
  6.     }
  7.     if(preg_match("#^/$#",$url)){
  8.         include 'autorize.php';
  9.     }
  10.     if(preg_match("#/main#",$url)){
  11.         include 'main.php';
  12.     }
  13.     if(preg_match("#^/logout$#",$url)){
  14.         include "logout.php";
  15.     }
  16.     if(preg_match("#^/add_client$#",$url)){
  17.         include "add_client.php";
  18.     }
  19.     if(preg_match("#^\/delete?id=(\d+)+&operation=(\w+)$#",$url)){
  20.         include "delete.php";
  21.     }
  22.     if(preg_match("#/info_client#",$url)){
  23.         include "info_clients.php";
  24.     }
  25.     if(preg_match("#^/profile$#",$url)){
  26.         include "profile.php";
  27.     }
  28.     if(preg_match("#/clients#",$url)){
  29.         include "clients.php";
  30.     };
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement