Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. `$url_request = $_SERVER['REQUEST_URI'];
  2.  
  3.  
  4. $mas_urls = array("/ulr_1","/ulr_2");
  5.  
  6. if(isset($mas_urls->$url_request)){
  7. $this_url = true;
  8. }
  9. else{
  10. $this_url = false;
  11. }
  12. switch ($url_request) {
  13. default:
  14. if($this_url){
  15. echo $vibor_url;
  16. }
  17. else{
  18. echo $default_url;
  19. }
  20. }`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement