I need a script for the site.

Employer
[no-member:pro]Dmitry[/no-member:pro]
Project parameters
Type of cooperationOne-time project
SectionWeb development, Web programming
Prepaymentprepayment is possible
Payment methodsBank transfer, Electronic money
Acceptance of requestsfrom Mar 16, 2018 until Apr 4, 2018
Project description
A script is needed for a site with the following functionality - when a user visits the site, the script must check the user or the search engine.
If the search engine, then skip it to read the materials on the site, so that everything is well indexed and the site is promoted.
If this is a user, then it should be possible to close all the content of the site from him and show him a pop-up window that you need to pay 50 rubles to access the site for 1 day and 999 rubles to access the site for a whole month.
Payment must be accepted by any means. You can connect RoboKassa or InterCass (the second is preferable).
The script should not only hide information in JavaScript, but also not display text on PHP itself if access to the site is not paid, but if it is a search engine, then the text should be displayed without any problems.
To make such a fit will need to be for two sites - one on CMS DLE second on CMS Joomla. Therefore, this add-on should be both independent of the CMS and work equally well both there and there.
If the search engine, then skip it to read the materials on the site, so that everything is well indexed and the site is promoted.
If this is a user, then it should be possible to close all the content of the site from him and show him a pop-up window that you need to pay 50 rubles to access the site for 1 day and 999 rubles to access the site for a whole month.
Payment must be accepted by any means. You can connect RoboKassa or InterCass (the second is preferable).
The script should not only hide information in JavaScript, but also not display text on PHP itself if access to the site is not paid, but if it is a search engine, then the text should be displayed without any problems.
To make such a fit will need to be for two sites - one on CMS DLE second on CMS Joomla. Therefore, this add-on should be both independent of the CMS and work equally well both there and there.