getUserField($_SESSION['username'], 'gpack', 1);
if($gpack_load== null || GP_ENABLE == false) {
$gpack= $separator.GP_LOCATE;
} else {
$gpack= $separator.$gpack_load;
}
//de bird
if($displayarray['protect'] > time()){
$secondsDiff = $displayarray['protect'] - time();
$remainingDay = floor($secondsDiff/(3600*24));
$left = \App\Utils\DateTime::getTimeFormat($secondsDiff);
$profiel = preg_replace("/\[#0]/is",'
', $profiel, 1);
} else {
$geregistreerd=date('d.m.Y', ($displayarray['regtime']));
$profiel = preg_replace("/\[#0]/is",'
', $profiel, 1);
}
//natar image
if($displayarray['username'] == "Natars"){
$profiel = preg_replace("/\[#natars]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#WW]/is",'
', $profiel, 1);
}
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
if(NEW_FUNCTIONS_TRIBE_IMAGES){
if($displayarray['tribe'] == "1"){
$profiel = preg_replace("/\[#roman]/is",'
', $profiel, 1);
}elseif($displayarray['tribe'] == "2"){
$profiel = preg_replace("/\[#teuton]/is",'
', $profiel, 1);
}elseif($displayarray['tribe'] == "3"){
$profiel = preg_replace("/\[#gaul]/is",'
', $profiel, 1);
}
}
//Shadow image - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
if($displayarray['username'] == "Shadow"){
$profiel = preg_replace("/\[#SHADOW]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#MH]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#TEAM]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#EVENT]/is",'
', $profiel, 1);
}
// WW Winner IMAGES - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
if($displayarray['username'] == "Shadow"){
$profiel = preg_replace("/\[#WWBUILDER]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#WINNERWW]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#OFFENSIVE]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#DEFENSIVE]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#POPULATION]/is",'
', $profiel, 1);
}
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
if(NEW_FUNCTIONS_MHS_IMAGES){
if($displayarray['access'] == "9"){
$profiel = preg_replace("/\[#MULTIHUNTER]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#MH]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#TEAM]/is",'
', $profiel, 1);
}elseif($displayarray['access'] == "8"){
$profiel = preg_replace("/\[#MULTIHUNTER]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#MH]/is",'
', $profiel, 1);
$profiel = preg_replace("/\[#TEAM]/is",'
', $profiel, 1);
}
}
//NATURE image - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
if($displayarray['username'] == "Nature"){
$profiel = preg_replace("/\[#NATURE]/is",'
', $profiel, 1);
}
//Taskmaster image - MUST TO BE SET FROM ADMIN PANEL @iopietro must code
// Added by Shadow - cata7007@gmail.com / Skype : cata7007
if($displayarray['username'] == "Taskmaster"){
$profiel = preg_replace("/\[#TASKMASTER]/is",'
', $profiel, 1);
}
//veteran & veteran_5a IMAGES
if(NEW_FUNCTIONS_MEDAL_3YEAR){
$profiel = preg_replace("/\[#g2300]/is",'
', $profiel, 1);
}
if(NEW_FUNCTIONS_MEDAL_5YEAR){
$profiel = preg_replace("/\[#g2301]/is",'
', $profiel, 1);
}
if(NEW_FUNCTIONS_MEDAL_10YEAR){
$profiel = preg_replace("/\[#g2302]/is",'
', $profiel, 1);
}
//de lintjes
/******************************
INDELING CATEGORIEEN:
===============================
== 1. Aanvallers top 10 ==
== 2. Defence top 10 ==
== 3. Klimmers top 10 ==
== 4. Overvallers top 10 ==
== 5. In att en def tegelijk ==
== 6. in top 3 - aanval ==
== 7. in top 3 - verdediging ==
== 8. in top 3 - klimmers ==
== 9. in top 3 - overval ==
******************************/
foreach($varmedal as $medal) {
switch ($medal['categorie']) {
case "1":
$titel="Attackers of the Week";
$woord="Points";
break;
case "2":
$titel="Defenders of the Week";
$woord="Points";
break;
case "3":
$titel="Pop Climbers of the week";
$woord="Pop";
break;
case "4":
$titel="Robbers of the week";
$woord="Resources";
break;
case "5":
$titel="Receiving this medal shows that you where in the top 10 of both Attackers and Defenders of the week.";
$bonus[$medal['id']]=1;
break;
case "6":
$titel="Receiving this medal shows that you were in the top 3 Attackers of the week ".$medal['points']." in a row";
$bonus[$medal['id']]=1;
break;
case "7":
$titel="Receiving this medal shows that you were in the top 3 Defenders of the week ".$medal['points']." in a row";
$bonus[$medal['id']]=1;
break;
case "8":
$titel="Receiving this medal shows that you were in the top 3 Pop Climbers of the week ".$medal['points']." in a row.";
$bonus[$medal['id']]=1;
break;
case "9":
$titel="Receiving this medal shows that you were in the top 3 Robbers of the week ".$medal['points']." in a row.";
$bonus[$medal['id']]=1;
break;
case "10":
$titel="Rank Climbers of the week.";
$woord="Ranks";
break;
case "11":
$titel="Receiving this medal shows that you were in the top 3 Rank Climbers of the week ".$medal['points']." in a row.";
$bonus[$medal['id']]=1;
break;
case "12":
$titel="Receiving this medal shows that you were in the top 10 Attackers of the week ".$medal['points']." in a row.";
$bonus[$medal['id']]=1;
break;
case "13":
$titel="Receiving this medal shows that you were in the top 10 Defenders of the week ".$medal['points']." in a row.";
$bonus[$medal['id']]=1;
break;
case "14":
$titel="Receiving this medal shows that you were in the top 10 Pop Climbers of the week ".$medal['points']." in a row.";
$bonus[$medal['id']]=1;
break;
case "15":
$titel="Receiving this medal shows that you were in the top 10 Robbers of the week ".$medal['points']." in a row.";
$bonus[$medal['id']]=1;
break;
case "16":
$titel="Receiving this medal shows that you were in the top 10 Rank Climbers of the week ".$medal['points']." in a row.";
$bonus[$medal['id']]=1;
break;
}
if(isset($bonus[$medal['id']])){
$profiel = preg_replace("/\[#".$medal['id']."]/is",'
', $profiel, 1);
} else {
$profiel = preg_replace("/\[#".$medal['id']."]/is",'
', $profiel, 1);
}
}
?>