Developer Documentation
Developer Documentation
Important Files:
Controller/Cron.php => This file is very important as this is the door to run all the automated
processes. It updates total node count of member, generate ROI and payouts and updates member
hierarchical genealogy detail. However, this controller is set to run on completion of successful
registration, but it is never advisable to run after each signup in case of a huge database. It is always
advisable to run as a get/wget cron. Eg:
wget -q http://sitename.com/folder/cron
Model/Custom_income.php => This is another one important model. If you have a custom income
rather than normal, matching/level/reward/roi or diirect income or anything else .. you can program
here. One thing is to note that whatever method you want to call you have to initialize inside the
index method. Suppose you want to generate board income. See below the example.
We have our few functions that we use to ease our work, These may sometime save your few
seconds.
DATABASE:
COMMON:
To Send Email:
To Send SMS:
$this->common_model->sms(to_phoneno, text_msg);
Optionally you may post any post data to curl using below method:
$post = key=value&key2=value2&key3=value3;
$this->common_model->sms(to_phoneno, text_msg, $post);
$this->common_model->curl($url, $post);
Note: If Curl fails, it will fall to php file_get_contents() automatically.
$this->common_model->filter($_REQUEST[‘userid’]);
$this->common_model->filter($_REQUEST[‘data’], ‘decimal’);
CONFIGURATION VARIABLE:
Ans: If you are confused or want to stop all income and set your own income do the following
steps.
STEP 1: at config/global.php set $config['fix_income'] = "Yes";
STEP 2: program your income logic at Model/Custom_income.php as described at
top of the document.
STEP 3: run http://sitename.com/folder/cron as wget or curl at desired
interval. (cron is a controller and url route).
Ans: You cannot change existing binary, ROI or Other Income Logic, but you
may disable all of them and set your new binary and other custom income
logic as mentioned above.
Where key is Income name stores in database and value is income name display
in UI.
How to Show Configure Matching Income Ratio ?
As our software comes with nearly open source format (Other than few important files that is
encoded for security) you can rest customize it as per your need. Our software follows loose MVC
Pattern.
www.exolim.com