Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
NS2Stats.org: ( Array
(
[map] => ns2_docking
[key] => bbddce3cc3be81b988a984bf078df1af
[last_part] => 1
[part_number] => 43
[roundlog] => { "time": "2013-08-07 16:42:02", "team": 0, "gametime": 68.527076721191, "action": "player_join_team", "name": "Bot", "score": 0 }
{ "time": "2013-08-07 16:42:05", "team": 0, "gametime": 71.521759033203, "action": "player_join_team", "name": "[BOT] Joev (2)", "score": 0 }
{ "time": "2013-08-07 16:42:05", "team": 0, "gametime": 71.723770141602, "action": "player_join_team", "name": "[BOT] MonsieurEvil", "score": 0 }
{ "time": "2013-08-07 16:42:05", "team": 0, "gametime": 71.997734069824, "action": "player_join_team", "name": "[BOT] MonsieurEvil (2)", "score": 0 }
{ "time": "2013-08-07 16:42:05", "team": 0, "gametime": 72.024337768555, "action": "player_join_team", "name": "[BOT] Numerik", "score": 0 }
{ "time": "2013-08-07 16:42:06", "team": 0, "gametime": 72.646621704102, "action": "player_join_team", "name": "[BOT] Joev", "score": 0 }
{ "time": "2013-08-07 16:42:06", "team": 0, "gametime": 73.130569458008, "action": "player_join_team", "name": "[BOT] devildog", "score": 0 }
{ "time": "2013-08-07 16:42:06", "team": 0, "gametime": 73.31037902832, "action": "player_join_team", "name": "[BOT] m4x0r", "score": 0 }
{ "time": "2013-08-07 16:42:07", "team": 0, "gametime": 73.941772460938, "action": "player_join_team", "name": "[BOT] Kouji_San", "score": 0 }
{ "time": "2013-08-07 16:42:08", "team": 0, "gametime": 74.864151000977, "action": "player_join_team", "name": "[BOT] Numerik (2)", "score": 0 }
{ "attackerz": "6.9688", "target_lifetime": "17.3925", "gametime": 93.690994262695, "attacker_hp": 100, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:42:27", "attacker_team": 1, "attackerx": "111.9810", "attacker_lifeform": "marine", "attackery": "0.6034", "targetz": "8.2613", "attacker_steamId": 0, "targety": "0.6723", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "119.3770" }
{ "attackerz": "26.7416", "target_lifetime": "25.1205", "gametime": 101.41899108887, "attacker_hp": 10, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:42:35", "attacker_team": 1, "attackerx": "113.9773", "attacker_lifeform": "marine", "attackery": "1.4816", "targetz": "26.5549", "attacker_steamId": 0, "targety": "3.4329", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "111.9777" }
{ "attackerz": "26.0740", "target_lifetime": "26.7207", "gametime": 103.01921081543, "attacker_hp": 10, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:42:36", "attacker_team": 1, "attackerx": "116.0414", "attacker_lifeform": "marine", "attackery": "2.0455", "targetz": "12.1181", "attacker_steamId": 0, "targety": "-2.0433", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "109.7518" }
{ "attackerz": "37.5275", "target_lifetime": "35.3724", "gametime": 111.67086791992, "attacker_hp": 1.3999996185303, "attacker_weapon": "bite", "target_hp": 0, "target_lifeform": "marine", "action": "death", "attacker_armor": 10, "time": "2013-08-07 16:42:45", "attacker_team": 2, "attackerx": "110.3032", "attacker_lifeform": "skulk", "attackery": "3.7883", "targetz": "37.0660", "attacker_steamId": 0, "targety": "2.0420", "target_armor": 30, "target_steamId": 0, "target_team": 1, "target_weapon": "rifle", "targetx": "109.9639" }
{ "attackerz": "-8.3585", "target_lifetime": "36.1909", "gametime": 112.48934936523, "attacker_hp": 10, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:42:46", "attacker_team": 1, "attackerx": "148.3553", "attacker_lifeform": "marine", "attackery": "0.3656", "targetz": "-5.7555", "attacker_steamId": 0, "targety": "1.6602", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "147.4976" }
{ "attackerz": "-8.2466", "target_lifetime": "10.3688", "gametime": 118.18350982666, "attacker_hp": 10, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:42:51", "attacker_team": 1, "attackerx": "149.1954", "attacker_lifeform": "marine", "attackery": "0.2555", "targetz": "-6.2462", "attacker_steamId": 0, "targety": "1.0168", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "134.5730" }
{ "attackerz": "5.0679", "target_lifetime": "45.1458", "gametime": 121.44423675537, "attacker_hp": 77.5, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:42:55", "attacker_team": 1, "attackerx": "132.3082", "attacker_lifeform": "marine", "attackery": "0.3148", "targetz": "7.7289", "attacker_steamId": 0, "targety": "0.3465", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "129.8641" }
{ "attackerz": "-1.2466", "target_lifetime": "10.7240", "gametime": 127.79501342773, "attacker_hp": 77.5, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:43:01", "attacker_team": 1, "attackerx": "147.4697", "attacker_lifeform": "marine", "attackery": "0.4615", "targetz": "-2.9237", "attacker_steamId": 0, "targety": "2.3841", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "148.8856" }
{ "attackerz": "10.5084", "target_lifetime": "56.7148", "gametime": 133.01329040527, "attacker_hp": 64, "attacker_weapon": "bite", "target_hp": 0, "target_lifeform": "marine", "action": "death", "attacker_armor": 10, "time": "2013-08-07 16:43:06", "attacker_team": 2, "attackerx": "164.9758", "attacker_lifeform": "skulk", "attackery": "0.3243", "targetz": "8.7943", "attacker_steamId": 0, "targety": "-0.8028", "target_armor": 30, "target_steamId": 0, "target_team": 1, "target_weapon": "rifle", "targetx": "164.5399" }
{ "attackerz": "3.6095", "target_lifetime": "11.1352", "gametime": 138.54945373535, "attacker_hp": 10, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:43:12", "attacker_team": 1, "attackerx": "154.7584", "attacker_lifeform": "marine", "attackery": "-0.3144", "targetz": "-2.0468", "attacker_steamId": 0, "targety": "0.6757", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "152.4163" }
{ "attackerz": "2.9027", "target_lifetime": "69.6058", "gametime": 145.90423583984, "attacker_hp": 70, "attacker_weapon": "bite", "target_hp": 0, "target_lifeform": "marine", "action": "death", "attacker_armor": 10, "time": "2013-08-07 16:43:19", "attacker_team": 2, "attackerx": "154.4869", "attacker_lifeform": "skulk", "attackery": "0.6983", "targetz": "3.6093", "attacker_steamId": 0, "targety": "-0.7526", "target_armor": 30, "target_steamId": 0, "target_team": 1, "target_weapon": "rifle", "targetx": "154.9880" }
{ "attackerz": "-6.9148", "target_lifetime": "17.8688", "gametime": 150.43829345703, "attacker_hp": 77.5, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:43:24", "attacker_team": 1, "attackerx": "138.9764", "attacker_lifeform": "marine", "attackery": "0.2591", "targetz": "-7.7166", "attacker_steamId": 0, "targety": "0.2332", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "152.2385" }
{ "attackerz": "8.3283", "target_lifetime": "86.9096", "gametime": 163.20811462402, "attacker_hp": 21.39999961853, "attacker_weapon": "bite", "target_hp": 0, "target_lifeform": "marine", "action": "death", "attacker_armor": 10, "time": "2013-08-07 16:43:36", "attacker_team": 2, "attackerx": "114.7923", "attacker_lifeform": "skulk", "attackery": "0.5188", "targetz": "7.3662", "attacker_steamId": 0, "targety": "-0.7012", "target_armor": 30, "target_steamId": 0, "target_team": 1, "target_weapon": "rifle", "targetx": "116.1119" }
{ "attackerz": "6.2614", "target_lifetime": "18.4916", "gametime": 163.3703918457, "attacker_hp": 100, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:43:36", "attacker_team": 1, "attackerx": "109.7915", "attacker_lifeform": "marine", "attackery": "-1.2671", "targetz": "8.3417", "attacker_steamId": 0, "targety": "-0.2073", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "113.8061" }
{ "attackerz": "9.6400", "target_lifetime": "18.0027", "gametime": 176.23236083984, "attacker_hp": 100, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:43:49", "attacker_team": 1, "attackerx": "132.1408", "attacker_lifeform": "marine", "attackery": "0.3451", "targetz": "8.9164", "attacker_steamId": 0, "targety": "0.6971", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "131.6652" }
{ "attackerz": "-7.4054", "target_lifetime": "36.8574", "gametime": 181.95231628418, "attacker_hp": 21.400001525879, "attacker_weapon": "bite", "target_hp": 0, "target_lifeform": "marine", "action": "death", "attacker_armor": 10, "time": "2013-08-07 16:43:55", "attacker_team": 2, "attackerx": "141.1639", "attacker_lifeform": "skulk", "attackery": "1.0498", "targetz": "-6.8668", "attacker_steamId": 0, "targety": "0.2640", "target_armor": 30, "target_steamId": 0, "target_team": 1, "target_weapon": "rifle", "targetx": "142.1746" }
{ "attackerz": "-9.7928", "target_lifetime": "19.0553", "gametime": 189.49465942383, "attacker_hp": 100, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:44:03", "attacker_team": 1, "attackerx": "137.9932", "attacker_lifeform": "marine", "attackery": "0.2640", "targetz": "-13.1286", "attacker_steamId": 0, "targety": "-0.4616", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "136.9820" }
{ "attackerz": "0.2410", "target_lifetime": "39.0745", "gametime": 197.1421661377, "attacker_hp": 65.400001525879, "attacker_weapon": "bite", "target_hp": 0, "target_lifeform": "marine", "action": "death", "attacker_armor": 10, "time": "2013-08-07 16:44:10", "attacker_team": 2, "attackerx": "148.8891", "attacker_lifeform": "skulk", "attackery": "1.8103", "targetz": "1.7221", "attacker_steamId": 0, "targety": "0.6012", "target_armor": 30, "target_steamId": 0, "target_team": 1, "target_weapon": "rifle", "targetx": "149.3203" }
{ "attackerz": "-7.5230", "target_lifetime": "21.1662", "gametime": 204.89517211914, "attacker_hp": 100, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:44:18", "attacker_team": 1, "attackerx": "135.9343", "attacker_lifeform": "marine", "attackery": "0.3656", "targetz": "-5.4275", "attacker_steamId": 0, "targety": "1.9358", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "137.7009" }
{ "attackerz": "-1.7327", "target_lifetime": "15.2298", "gametime": 212.42665100098, "attacker_hp": 10, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:44:26", "attacker_team": 1, "attackerx": "146.1873", "attacker_lifeform": "marine", "attackery": "0.2640", "targetz": "-1.5974", "attacker_steamId": 0, "targety": "1.9762", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "148.5838" }
{ "attackerz": "5.2656", "target_lifetime": "91.6155", "gametime": 215.44227600098, "attacker_hp": 61.400001525879, "attacker_weapon": "bite", "target_hp": 0, "target_lifeform": "marine", "action": "death", "attacker_armor": 10, "time": "2013-08-07 16:44:29", "attacker_team": 2, "attackerx": "154.1966", "attacker_lifeform": "skulk", "attackery": "0.8614", "targetz": "5.5064", "attacker_steamId": 0, "targety": "-0.8277", "target_armor": 30, "target_steamId": 0, "target_team": 1, "target_weapon": "rifle", "targetx": "155.0567" }
{ "time": "2013-08-07 16:44:30", "team": 0, "gametime": 217.19631958008, "action": "player_join_team", "name": "Ghoul", "score": 0 }
{ "attackerz": "-6.5716", "target_lifetime": "104.6184", "gametime": 220.67156982422, "attacker_hp": 77.5, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:44:34", "attacker_team": 1, "attackerx": "143.9569", "attacker_lifeform": "marine", "attackery": "0.2640", "targetz": "-6.7852", "attacker_steamId": 0, "targety": "0.6458", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "144.7678" }
{ "attackerz": "-7.6308", "target_lifetime": "13.6711", "gametime": 223.19407653809, "attacker_hp": 77.5, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:44:36", "attacker_team": 1, "attackerx": "146.4612", "attacker_lifeform": "marine", "attackery": "0.2640", "targetz": "-6.8968", "attacker_steamId": 0, "targety": "1.2541", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "146.9325" }
{ "attackerz": "3.0781", "target_lifetime": "10.4297", "gametime": 231.21318054199, "attacker_hp": 10, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:44:44", "attacker_team": 1, "attackerx": "146.1220", "attacker_lifeform": "marine", "attackery": "0.2345", "targetz": "3.9307", "attacker_steamId": 0, "targety": "1.8608", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "146.2263" }
{ "attackerz": "7.8433", "target_lifetime": "41.0272", "gametime": 235.08818054199, "attacker_hp": 64, "attacker_weapon": "bite", "target_hp": 0, "target_lifeform": "marine", "action": "death", "attacker_armor": 10, "time": "2013-08-07 16:44:48", "attacker_team": 2, "attackerx": "164.1858", "attacker_lifeform": "skulk", "attackery": "0.4999", "targetz": "6.4434", "attacker_steamId": 0, "targety": "0.0235", "target_armor": 30, "target_steamId": 0, "target_team": 1, "target_weapon": "rifle", "targetx": "162.5471" }
{ "attackerz": "1.9101", "target_lifetime": "7.6464", "gametime": 239.50590515137, "attacker_hp": 100, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:44:53", "attacker_team": 1, "attackerx": "153.1649", "attacker_lifeform": "marine", "attackery": "1.9350", "targetz": "0.7252", "attacker_steamId": 0, "targety": "1.9685", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "153.5520" }
{ "attackerz": "6.9895", "target_lifetime": "3.6208", "gametime": 260.93829345703, "attacker_hp": 77.5, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:45:14", "attacker_team": 1, "attackerx": "163.0299", "attacker_lifeform": "marine", "attackery": "0.9442", "targetz": "10.9965", "attacker_steamId": 0, "targety": "0.1325", "target_armor": 10, "target_steamId": 49071975, "target_team": 2, "target_weapon": "bite", "targetx": "171.5366" }
{ "attackerz": "22.4692", "target_lifetime": "52.2079", "gametime": 261.53472900391, "attacker_hp": 22.800003051758, "attacker_weapon": "bite", "target_hp": 0, "target_lifeform": "marine", "action": "death", "attacker_armor": 10, "time": "2013-08-07 16:45:15", "attacker_team": 2, "attackerx": "176.5821", "attacker_lifeform": "skulk", "attackery": "-3.3934", "targetz": "22.8248", "attacker_steamId": 0, "targety": "-4.8564", "target_armor": 30, "target_steamId": 0, "target_team": 1, "target_weapon": "rifle", "targetx": "175.8985" }
{ "attackerz": "17.7696", "target_lifetime": "20.8558", "gametime": 264.93466186523, "attacker_hp": 100, "attacker_weapon": "rifle", "target_hp": 0, "target_lifeform": "skulk", "action": "death", "attacker_armor": 30, "time": "2013-08-07 16:45:18", "attacker_team": 1, "attackerx": "174.4652", "attacker_lifeform": "marine", "attackery": "-2.6690", "targetz": "16.9237", "attacker_steamId": 0, "targety": "-4.8520", "target_armor": 10, "target_steamId": 0, "target_team": 2, "target_weapon": "bite", "targetx": "177.5145" }
{ "gametime": 271.30480957031, "action": "player_list_end", "list": [ { "walked": 0, "assists": 0, "lx": 0, "ly": 0, "lifeform": "", "unstuckCounter": 0, "lz": 0, "teamnumber": 0, "highestKillstreak": 29, "afkCount": 0, "killstreak": 29, "damageTaken": [ ], "hasVoted": false, "jumps": 0, "weapons": [ ], "x": 0, "y": 0, "ipaddress": "127.0.0.1", "isCommander": false, "alien_ELO": 0, "votedMap": 0, "marine_commander_ELO": 0, "z": 0, "score": 0, "marine_ELO": 0, "isbot": true, "code": 0, "lastCoords": 0, "ping": 0, "unstuck": false, "kills": 29, "dc": false, "lastCommand": 0, "weapon": "none", "deaths": 28, "index": 0, "steamId": 0, "total_constructed": 0, "name": "NSPlayer", "alien_commander_ELO": 0 } ], "time": "2013-08-07 16:45:24" }
{ "awards": [ ], "gametime": 271.30480957031, "resendCount": 0, "statsVersion": "0.3", "time": "2013-08-07 16:45:24", "successfulSends": 0, "tags": [ ], "action": "game_ended", "serverName": "251 RFP Test Server", "mods": "" }
)
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>PHP notice</title>
<style type="text/css">
/*<![CDATA[*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;margin:0;padding:0;}
body{line-height:1;}
ol,ul{list-style:none;}
blockquote,q{quotes:none;}
blockquote:before,blockquote:after,q:before,q:after{content:none;}
:focus{outline:0;}
ins{text-decoration:none;}
del{text-decoration:line-through;}
table{border-collapse:collapse;border-spacing:0;}
body {
font: normal 9pt "Verdana";
color: #000;
background: #fff;
}
h1 {
font: normal 18pt "Verdana";
color: #f00;
margin-bottom: .5em;
}
h2 {
font: normal 14pt "Verdana";
color: #800000;
margin-bottom: .5em;
}
h3 {
font: bold 11pt "Verdana";
}
pre {
font: normal 11pt Menlo, Consolas, "Lucida Console", Monospace;
}
pre span.error {
display: block;
background: #fce3e3;
}
pre span.ln {
color: #999;
padding-right: 0.5em;
border-right: 1px solid #ccc;
}
pre span.error-ln {
font-weight: bold;
}
.container {
margin: 1em 4em;
}
.version {
color: gray;
font-size: 8pt;
border-top: 1px solid #aaa;
padding-top: 1em;
margin-bottom: 1em;
}
.message {
color: #000;
padding: 1em;
font-size: 11pt;
background: #f3f3f3;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
margin-bottom: 1em;
line-height: 160%;
}
.source {
margin-bottom: 1em;
}
.code pre {
background-color: #ffe;
margin: 0.5em 0;
padding: 0.5em;
line-height: 125%;
border: 1px solid #eee;
}
.source .file {
margin-bottom: 1em;
font-weight: bold;
}
.traces {
margin: 2em 0;
}
.trace {
margin: 0.5em 0;
padding: 0.5em;
}
.trace.app {
border: 1px dashed #c00;
}
.trace .number {
text-align: right;
width: 2em;
padding: 0.5em;
}
.trace .content {
padding: 0.5em;
}
.trace .plus,
.trace .minus {
display:inline;
vertical-align:middle;
text-align:center;
border:1px solid #000;
color:#000;
font-size:10px;
line-height:10px;
margin:0;
padding:0 1px;
width:10px;
height:10px;
}
.trace.collapsed .minus,
.trace.expanded .plus,
.trace.collapsed pre {
display: none;
}
.trace-file {
cursor: pointer;
padding: 0.2em;
}
.trace-file:hover {
background: #f0ffff;
}
/*]]>*/
</style>
</head>
<body>
<div class="container">
<h1>PHP notice</h1>
<p class="message">
Undefined variable: logName </p>
<div class="source">
<p class="file">/home/ns2stats/dev/protected/controllers/ApiController.php(349)</p>
<div class="code"><pre><span class="ln">337</span> $logName = $fileName;
<span class="ln">338</span> $fileName = explode(&#039;-&#039;, $fileName);
<span class="ln">339</span> $serverId = array_pop($fileName);
<span class="ln">340</span> $previousPartNumber = array_pop($fileName);
<span class="ln">341</span> if ($serverId == $server-&gt;id)
<span class="ln">342</span> break;
<span class="ln">343</span> }
<span class="ln">344</span> Yii::log(&#039;---------------------&#039;, &#039;info&#039;, &#039;api.sendLog&#039;);
<span class="ln">345</span> Yii::log(&#039;Server IP: &#039; . $_SERVER[&#039;REMOTE_ADDR&#039;], &#039;info&#039;, &#039;api.sendLog&#039;);
<span class="ln">346</span> Yii::log(&#039;Server ID: &#039; . $server-&gt;id, &#039;info&#039;, &#039;api.sendLog&#039;);
<span class="ln">347</span> Yii::log(&#039;Server key: &#039; . $server-&gt;server_key, &#039;info&#039;, &#039;api.sendLog&#039;);
<span class="ln">348</span> Yii::log(&#039;Server name: &#039; . $server-&gt;name, &#039;info&#039;, &#039;api.sendLog&#039;);
<span class="error"><span class="ln error-ln">349</span> Yii::log(&#039;Log name: &#039; . $logName, &#039;info&#039;, &#039;api.sendLog&#039;);
</span><span class="ln">350</span> Yii::log(&#039;Previous part: &#039; . $previousPartNumber, &#039;info&#039;, &#039;api.sendLog&#039;);
<span class="ln">351</span> Yii::log(&#039;This part: &#039; . $partNumber, &#039;info&#039;, &#039;api.sendLog&#039;);
<span class="ln">352</span> if ($_POST[&#039;last_part&#039;])
<span class="ln">353</span> Yii::log(&#039;Is last part&#039;, &#039;info&#039;, &#039;api.sendLog&#039;);
<span class="ln">354</span> else
<span class="ln">355</span> Yii::log(&#039;Is not last part&#039;, &#039;info&#039;, &#039;api.sendLog&#039;);
<span class="ln">356</span> if ($previousPartNumber != $partNumber - 1 &amp;&amp; $previousPartNumber != $partNumber)
<span class="ln">357</span> throw new CHttpException(400, &#039;Log part missing. Make sure you are using different config_path for each server! Do not copy paste ns2stats_advanced_settings.json file! Server key: &#039; . $_POST[&#039;key&#039;]);
<span class="ln">358</span> unset($dir);
<span class="ln">359</span> unset($list);
<span class="ln">360</span> }
<span class="ln">361</span>
</pre></div> </div>
<div class="traces">
<h2>Stack Trace</h2>
<table style="width:100%;">
<tr class="trace core collapsed">
<td class="number">
#0 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
&nbsp;/home/ns2stats/framework/web/actions/CInlineAction.php(50): <strong>ApiController</strong>-><strong>actionSendLog</strong>() </div>
<div class="code"><pre><span class="ln">45</span> $controller=$this-&gt;getController();
<span class="ln">46</span> $method=new ReflectionMethod($controller, $methodName);
<span class="ln">47</span> if($method-&gt;getNumberOfParameters()&gt;0)
<span class="ln">48</span> return $this-&gt;runWithParamsInternal($controller, $method, $params);
<span class="ln">49</span> else
<span class="error"><span class="ln error-ln">50</span> return $controller-&gt;$methodName();
</span><span class="ln">51</span> }
<span class="ln">52</span>
<span class="ln">53</span> }
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#1 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
&nbsp;/home/ns2stats/framework/web/CController.php(309): <strong>CInlineAction</strong>-><strong>runWithParams</strong>(array()) </div>
<div class="code"><pre><span class="ln">304</span> {
<span class="ln">305</span> $priorAction=$this-&gt;_action;
<span class="ln">306</span> $this-&gt;_action=$action;
<span class="ln">307</span> if($this-&gt;beforeAction($action))
<span class="ln">308</span> {
<span class="error"><span class="ln error-ln">309</span> if($action-&gt;runWithParams($this-&gt;getActionParams())===false)
</span><span class="ln">310</span> $this-&gt;invalidActionParams($action);
<span class="ln">311</span> else
<span class="ln">312</span> $this-&gt;afterAction($action);
<span class="ln">313</span> }
<span class="ln">314</span> $this-&gt;_action=$priorAction;
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#2 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
&nbsp;/home/ns2stats/framework/web/CController.php(287): <strong>CController</strong>-><strong>runAction</strong>(CInlineAction) </div>
<div class="code"><pre><span class="ln">282</span> * @see runAction
<span class="ln">283</span> */
<span class="ln">284</span> public function runActionWithFilters($action,$filters)
<span class="ln">285</span> {
<span class="ln">286</span> if(empty($filters))
<span class="error"><span class="ln error-ln">287</span> $this-&gt;runAction($action);
</span><span class="ln">288</span> else
<span class="ln">289</span> {
<span class="ln">290</span> $priorAction=$this-&gt;_action;
<span class="ln">291</span> $this-&gt;_action=$action;
<span class="ln">292</span> CFilterChain::create($this,$action,$filters)-&gt;run();
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#3 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
&nbsp;/home/ns2stats/framework/web/CController.php(266): <strong>CController</strong>-><strong>runActionWithFilters</strong>(CInlineAction, array()) </div>
<div class="code"><pre><span class="ln">261</span> {
<span class="ln">262</span> if(($parent=$this-&gt;getModule())===null)
<span class="ln">263</span> $parent=Yii::app();
<span class="ln">264</span> if($parent-&gt;beforeControllerAction($this,$action))
<span class="ln">265</span> {
<span class="error"><span class="ln error-ln">266</span> $this-&gt;runActionWithFilters($action,$this-&gt;filters());
</span><span class="ln">267</span> $parent-&gt;afterControllerAction($this,$action);
<span class="ln">268</span> }
<span class="ln">269</span> }
<span class="ln">270</span> else
<span class="ln">271</span> $this-&gt;missingAction($actionID);
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#4 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
&nbsp;/home/ns2stats/framework/web/CWebApplication.php(283): <strong>CController</strong>-><strong>run</strong>(&quot;sendlog&quot;) </div>
<div class="code"><pre><span class="ln">278</span> {
<span class="ln">279</span> list($controller,$actionID)=$ca;
<span class="ln">280</span> $oldController=$this-&gt;_controller;
<span class="ln">281</span> $this-&gt;_controller=$controller;
<span class="ln">282</span> $controller-&gt;init();
<span class="error"><span class="ln error-ln">283</span> $controller-&gt;run($actionID);
</span><span class="ln">284</span> $this-&gt;_controller=$oldController;
<span class="ln">285</span> }
<span class="ln">286</span> else
<span class="ln">287</span> throw new CHttpException(404,Yii::t(&#039;yii&#039;,&#039;Unable to resolve the request &quot;{route}&quot;.&#039;,
<span class="ln">288</span> array(&#039;{route}&#039;=&gt;$route===&#039;&#039;?$this-&gt;defaultController:$route)));
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#5 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
&nbsp;/home/ns2stats/framework/web/CWebApplication.php(142): <strong>CWebApplication</strong>-><strong>runController</strong>(&quot;api/sendlog&quot;) </div>
<div class="code"><pre><span class="ln">137</span> foreach(array_splice($this-&gt;catchAllRequest,1) as $name=&gt;$value)
<span class="ln">138</span> $_GET[$name]=$value;
<span class="ln">139</span> }
<span class="ln">140</span> else
<span class="ln">141</span> $route=$this-&gt;getUrlManager()-&gt;parseUrl($this-&gt;getRequest());
<span class="error"><span class="ln error-ln">142</span> $this-&gt;runController($route);
</span><span class="ln">143</span> }
<span class="ln">144</span>
<span class="ln">145</span> /**
<span class="ln">146</span> * Registers the core application components.
<span class="ln">147</span> * This method overrides the parent implementation by registering additional core components.
</pre></div> </td>
</tr>
<tr class="trace core collapsed">
<td class="number">
#6 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
&nbsp;/home/ns2stats/framework/base/CApplication.php(162): <strong>CWebApplication</strong>-><strong>processRequest</strong>() </div>
<div class="code"><pre><span class="ln">157</span> */
<span class="ln">158</span> public function run()
<span class="ln">159</span> {
<span class="ln">160</span> if($this-&gt;hasEventHandler(&#039;onBeginRequest&#039;))
<span class="ln">161</span> $this-&gt;onBeginRequest(new CEvent($this));
<span class="error"><span class="ln error-ln">162</span> $this-&gt;processRequest();
</span><span class="ln">163</span> if($this-&gt;hasEventHandler(&#039;onEndRequest&#039;))
<span class="ln">164</span> $this-&gt;onEndRequest(new CEvent($this));
<span class="ln">165</span> }
<span class="ln">166</span>
<span class="ln">167</span> /**
</pre></div> </td>
</tr>
<tr class="trace app expanded">
<td class="number">
#7 </td>
<td class="content">
<div class="trace-file">
<div class="plus">+</div>
<div class="minus">–</div>
&nbsp;/home/ns2stats/dev/index.php(22): <strong>CApplication</strong>-><strong>run</strong>() </div>
<div class="code"><pre><span class="ln">17</span> defined(&#039;YII_TRACE_LEVEL&#039;) or define(&#039;YII_TRACE_LEVEL&#039;, 3);
<span class="ln">18</span>
<span class="ln">19</span> require_once($yii);
<span class="ln">20</span> //Yii::createWebApplication($config)-&gt;run();
<span class="ln">21</span> require_once(dirname(__FILE__) . &#039;/protected/components/Ns2stats.php&#039;);
<span class="error"><span class="ln error-ln">22</span> Yii::createApplication(&#039;Ns2stats&#039;, $config)-&gt;run();
</span></pre></div> </td>
</tr>
</table>
</div>
<div class="version">
2013-08-07 19:45:27 Apache/2.2.22 (Debian) <a href="http://www.yiiframework.com/">Yii Framework</a>/1.1.12 </div>
</div>
<script type="text/javascript">
/*<![CDATA[*/
var traceReg = new RegExp("(^|\\s)trace-file(\\s|$)");
var collapsedReg = new RegExp("(^|\\s)collapsed(\\s|$)");
var e = document.getElementsByTagName("div");
for(var j=0,len=e.length;j<len;j++){
if(traceReg.test(e[j].className)){
e[j].onclick = function(){
var trace = this.parentNode.parentNode;
if(collapsedReg.test(trace.className))
trace.className = trace.className.replace("collapsed", "expanded");
else
trace.className = trace.className.replace("expanded", "collapsed");
}
}
}
/*]]>*/
</script>
</body>
</html>
<!-- start profiling summary -->
<table class="yiiLog" width="100%" cellpadding="2" style="border-spacing:1px;font:11px Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;color:#666666;">
<tr>
<th style="background:black;color:white;" colspan="6">
Profiling Summary Report
(Time: 0.15875s,
Memory: 2,675KB)
</th>
</tr>
<tr style="background-color: #ccc;">
<th>Procedure</th>
<th>Count</th>
<th>Total (s)</th>
<th>Avg. (s)</th>
<th>Min. (s)</th>
<th>Max. (s)</th>
</tr>
<tr style="background:#FFFFFF">
<td>system.db.CDbCommand.execute(UPDATE `server` SET `id`=:yp0, `name`=:yp1, `ip`=:yp2, `port`=:yp3, `admin_id`=:yp4, `server_key`=:yp5, `created`=:yp6, `stats_version`=:yp7, `motd`=:yp8, `private`=:yp9, `country`=:yp10, `last_updated`=:yp11, `last_state`=:yp12, `last_map`=:yp13, `last_player_count`=:yp14, `gametime`=:yp15 WHERE `server`.`id`=&#039;7442&#039;)</td>
<td align="center">1</td>
<td align="center">0.04863</td>
<td align="center">0.04863</td>
<td align="center">0.04863</td>
<td align="center">0.04863</td>
</tr> <tr style="background:#F5F5F5">
<td>system.db.CDbCommand.query(SHOW COLUMNS FROM `server`)</td>
<td align="center">1</td>
<td align="center">0.00084</td>
<td align="center">0.00084</td>
<td align="center">0.00084</td>
<td align="center">0.00084</td>
</tr> <tr style="background:#FFFFFF">
<td>system.db.CDbCommand.query(SELECT `data`
FROM `YiiSession`
WHERE expire&gt;:expire AND id=:id)</td>
<td align="center">1</td>
<td align="center">0.00062</td>
<td align="center">0.00062</td>
<td align="center">0.00062</td>
<td align="center">0.00062</td>
</tr> <tr style="background:#F5F5F5">
<td>system.db.CDbCommand.query(SELECT * FROM `server` `t` WHERE `t`.`server_key`=:yp0 LIMIT 1)</td>
<td align="center">1</td>
<td align="center">0.00046</td>
<td align="center">0.00046</td>
<td align="center">0.00046</td>
<td align="center">0.00046</td>
</tr> <tr style="background:#FFFFFF">
<td>system.db.CDbCommand.query(SHOW CREATE TABLE `server`)</td>
<td align="center">1</td>
<td align="center">0.00012</td>
<td align="center">0.00012</td>
<td align="center">0.00012</td>
<td align="center">0.00012</td>
</tr></table>
<!-- end of profiling summary -->)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment