// Load users
$content = array(
- 'userid' => array(),
- 'ref' => array(),
- 'cpoints' => array()
+ 'userid' => [],
+ 'ref' => [],
+ 'cpoints' => []
);
// Load all users
}
// Run this function only when a new member has confirmed his email address!
-function addUserToReferralRallye ($userid, $content = array()) {
+function addUserToReferralRallye ($userid, $content = []) {
$add = '';
// Updated extension?
// Init array
$count = '0';
- $users = array();
+ $users = [];
$content['start_time'] = generateDateTime($content['start_time'], 1);
$content['end_time'] = generateDateTime($content['end_time'] , 1);
$content['now_time'] = generateDateTime(time(), 1);
function getArrayFromReferralRallyePrices ($rallye) {
// Init multi array
$prices = array(
- 'level' => array(),
- 'points' => array(),
- 'info' => array()
+ 'level' => [],
+ 'points' => [],
+ 'info' => []
);
// Load prices
// Init multi array
$users = array(
- 'userid' => array(),
- 'ref' => array(),
- 'cpoints' => array(),
+ 'userid' => [],
+ 'ref' => [],
+ 'cpoints' => [],
);
/*
function addReferralRallyeTemplateSelection ($name = 'template', $default = '') {
// Init variables
$OUT = '';
- $ral = array();
+ $ral = [];
// Check templates directory
$basePath = sprintf('templates/%s/html/rallye/', getLanguage());
// Read the directory
- $templates = getArrayFromDirectory($basePath, 'rallye_', FALSE, TRUE, array(), '.tpl');
+ $templates = getArrayFromDirectory($basePath, 'rallye_', FALSE, TRUE, [], '.tpl');
// And walk through
foreach ($templates as $read) {