Professional Documents
Culture Documents
Make TRBFile
Make TRBFile
php
header("Content-type: text/plain");
date_default_timezone_set('UTC');
/* EDITABLE CODE */
$date = new DateTime('2020-03-20'); //input day
$plusHours = 0; //input hours
$neededRP = 300000; // input amount of RP you need to create
/* END EDITABLE CODE */
$fullString = str_replace("allRace",$abc,$fullString);
if($plusHours){
$file = 'trb'.$date->format('md').'_2.txt';
header("Content-Disposition: attachment; filename=$file");
// Write the contents back to the file
echo $fullString;
} else {
$file = 'trb'.$date->format('md').'.txt';
header("Content-Disposition: attachment; filename=$file");
// Write the contents back to the file
echo $fullString;
}
}
/*
How to use?
$date: MUST change to current date or future date, any date you want to create that
date of trb file
$plusHours: default 0, some day like Wednesday after Private Leaderboard reset you
may want to create file after that time in day then set this to 5 (or more) to make
it works. The day start new season, for example you got the last season Milestone
reward car at 12h AM GMT time, then you need to set $plusHours = 12 or more (later
than that time) to create trb file using for first date of new Season.
$neededRP: any amount of RP you need to create for this file. from 829 to 300000.
Have fun!
*/