-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathday.php
22 lines (18 loc) · 844 Bytes
/
day.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
include_once('db.php');
require_once("libraries/TeamSpeak3/TeamSpeak3.php");
require_once("config.php");
$ts3_server = TeamSpeak3::factory("serverquery://".$server_query.":".$server_password."@".$server_host.":"."10011/?server_port=".$server_port."&nickname=Day_ranker");
$today=get_best_month();
$ts3_channel= $ts3_server->channelGetByID($day_best);
if ($ts3_channel['channel_name']!="[cspacer] Player of Today: ".$today[0]['ign']){
$ts3_channel['channel_name']="[cspacer] Player of Today: ".$today[0]['ign'];
}
$des="[center][B] CHECK YOUR RANKS (TODAY) [/B] [/center] Updates at Everyday 8.00 PM (GTM +5.30)
";
for ($i=0; $i < sizeof($today); $i++){
$player_des="[left]".($i+1).". [COLOR=#ff0000]".$today[$i]['ign']."[/color][/left]";
$des=$des.$player_des;
}
$ts3_channel["channel_description"]=$des;
?>