-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathweek.php
25 lines (19 loc) · 856 Bytes
/
week.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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=Week_ranker");
$today=get_best_week();
$ts3_channel= $ts3_server->channelGetByID($week_best);
//$today[0]['ign']="*V ! P E R*";
//echo "*V ! P E R*";
$ts3_channel['channel_name']="[cspacer] Player of the Week: ".$today[0]['ign'];
//echo $today[0]['ign'];
$des="[center][B] CHECK YOUR RANKS (WEEK) [/B] [/center] Updates at Everyday Saturday 7.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;
?>