Create index.php that loads another website and replaces select text
$30-100 USD
Завершено
Опублікований almost 12 years ago
$30-100 USD
Оплачується при отриманні
Create code to load a parent website on a page of another website so it looks like parent domain was loaded. This would mean you create an [login to view URL] page that loads an distant website, replaces page content based on the config file, then displays the modified page so it looks like the distant site is being displayed.
Here is what is required:
1. load the default parent site and if a command line is passed use that command line as the rest of the url when a link is clicked.
2. replace text as defined in the config file.
For example, say I have the domain [login to view URL] and I want it to show all of the pages and content for a company I am an affiliate for named [login to view URL] but it want it to look like it is all on my [login to view URL] website.
A configuration file might look like:
Site to load: [login to view URL]
TextToReplace0: a href=[login to view URL]
ReplacementText0: a href=[login to view URL]
TextToReplace1: big boat
ReplacementText1: huge boat
TextToReplace2: <script>....full script here</script>
ReplacementText2: "" Null so the script is removed
TextToReplace3: <[login to view URL]>
ReplacementText3: <[login to view URL]>
The first replacement would then turn links like
<http://www.parentsite.com/search/terms=specialdeal+new>
into
<[login to view URL]>
which would then reload the childsite and display the correct subpage and pass any command line arguments to the script which then loads the original page and redisplays it on the childsite.
The replacement would also replace the words "big boat" with "huge boat"
Needs 15 text replacement definitions so I can replace up to 15 text or links.