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 [login to view URL], [login to view URL], [login to view URL], etc..) when the visitor completes a questionnaire the Js window is off and start downloading file. In my account are displayed on [login to view URL] 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 [login to view URL] or [login to view URL] check it for more information about the functionality.