What is more specifically this script doing:
We have a user upload a file, share link, an visitor comes and press the download, after reading the description file which user can put. you click download button an Js frame is starting and you need to completed one questionnaires (questionnaires what are retrieved by API from [url removed, login to view], [url removed, login to view], [url removed, login to view], etc..) when the visitor completes a questionnaire the Js window is off and start downloading file. In my account are displayed on [url removed, login to view] 12 $ from from the download and I want to display in user panel $ 10 ($ 2 my commission), money that user can withdraw at the end of the month. The user account has access to graphics on the number of downloads, of visits, pages source / reference, the average discharge and revenues total amount won, management of uploaded files, detailed statistics with revenue / file separately, a top income of all users per month / day referral program.
Is an website like [url removed, login to view] or [url removed, login to view] check it for more information about the functionality.