Skip to content

Instantly share code, notes, and snippets.

@waqasraza123
Created January 27, 2016 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save waqasraza123/e6d1eb0b1c31aff1180c to your computer and use it in GitHub Desktop.
Save waqasraza123/e6d1eb0b1c31aff1180c to your computer and use it in GitHub Desktop.
<?php
$content = file_get_contents('http://www.exhibition-directory.com/expostars/index.php?'.http_build_query($_GET));
//$content = file_get_contents('http://www.exhibition-directory.com/expostars/index.php/');
$content = str_replace('</title>','</title><base href="http://www.exhibition-directory.com/expostars/" />', $content);
$content = str_replace('</head>','<link rel="stylesheet" href="http://www.informatixtech.com/expostars/wp-content/themes/hotstar-child/hotstar-child/custom.css" type="text/stylesheet" /></head>', $content);
$content = str_replace('<form name="searchForm" action="index.php" enctype="multipart/form-data" method="get">','<form name="searchForm" action="http://www.informatixtech.com/expostars/search-page.php" enctype="multipart/form-data" method="get">', $content);
echo $content;
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment