Changeset 7
- Timestamp:
- Oct 16, 2007, 10:23:06 PM (17 years ago)
- Files:
-
- 6 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
measure_scripts/traffic.php
r6 r7 97 97 while(1) 98 98 { 99 100 99 // Network load 101 100 $NetworkStat = GetNetworkStat(); … … 115 114 116 115 // GM online 117 DB_Init('localhost', 'root', '','realmd');118 DB_Query('SELECT COUNT(*) FROM account WHERE online=1 AND gmlevel > 0');119 $Row = DB_Row();116 $Database->select_db('realmd'); 117 $DbResult = $Database->query('SELECT COUNT(*) FROM account WHERE online=1 AND gmlevel > 0'); 118 $Row = $DbResult->fetch_array(); 120 119 $Value = $Row[0]; 121 120 file_get_contents($URL.'?MeasureId=10&Value='.$Value); 122 121 123 122 // Players online 124 DB_Query('SELECT COUNT(*) FROM account WHERE online=1');125 $Row = DB_Row();123 $DbResult = $Database->query('SELECT COUNT(*) FROM account WHERE online=1'); 124 $Row = $DbResult->fetch_array(); 126 125 $Value = $Row[0]; 127 126 file_get_contents($URL.'?MeasureId=5&Value='.$Value); … … 132 131 133 132 // Account count 134 DB_Query('SELECT COUNT(*) FROM account');135 $Row = DB_Row();133 $DbResult = $Database->query('SELECT COUNT(*) FROM account'); 134 $Row = $DbResult->fetch_array(); 136 135 $Value = $Row[0]; 137 136 file_get_contents($URL.'?MeasureId=8&Value='.$Value); 138 137 139 138 // Character count 140 DB_Init('localhost', 'root', '','mangos');141 DB_Query('SELECT COUNT(*) FROM `character`');142 $Row = DB_Row();139 $Database->select_db('mangos'); 140 $DbResult = $Database->query('SELECT COUNT(*) FROM `character`'); 141 $Row = $DbResult->fetch_array(); 143 142 $Value = $Row[0]; 144 143 file_get_contents($URL.'?MeasureId=13&Value='.$Value); 145 144 146 145 // Guild count 147 DB_Query('SELECT COUNT(*) FROM guild');148 $Row = DB_Row();146 $DbResult = $Database->query('SELECT COUNT(*) FROM guild'); 147 $Row = $DbResult->fetch_array(); 149 148 $Value = $Row[0]; 150 149 file_get_contents($URL.'?MeasureId=14&Value='.$Value); 151 150 152 151 // MaNGOS restarts count 153 DB_Init('localhost', 'root', '','wow');154 DB_Query('SELECT COUNT(*) FROM mangos_restart');155 $Row = DB_Row();152 $Database->select_db('wow'); 153 $DbResult = $Database->query('SELECT COUNT(*) FROM mangos_restart'); 154 $Row = $DbResult->fetch_array(); 156 155 $Value = $Row[0]; 157 156 file_get_contents($URL.'?MeasureId=6&Value='.$Value); 158 159 160 157 161 158 sleep(60); 162 159 } -
style/style.css
r6 r7 1 body 2 { 3 font-family : Arial, sans-serif; 4 } 5 .BasicTable 6 { 7 border-width: thin; 8 border-style: solid; 9 border-color: red; 10 padding: 0px 0px 0px 0px; 11 border-collapse: collapse; 12 } 13 .BasicTable td 14 { 15 border-width: 2px; 16 border-style: solid; 17 border-color: Silver; 18 padding: 2px; 19 } 20 .BasicTable th 21 { 22 border-width: 2px; 23 border-style: solid; 24 border-color: Silver; 25 padding: 2px; 26 } 27 h3 28 { 29 margin-bottom: 3px; 30 } 1 body { 2 font-family: Arial, Helvetica, sans-serif; 3 } 4 5 li.Tree { 6 list-style: outside url(images/blank.png); 7 margin-left: -20px; 8 padding: 0px 0px 0px -10px; 9 cursor: pointer; 10 } 11 12 li.Open { 13 list-style: outside url(images/open.png); 14 margin-left: 0px; 15 padding: 0px 0px 0px -10px; 16 cursor: pointer; 17 } 18 19 li.Close { 20 list-style: outside url(images/close.png); 21 margin-left: 0px; 22 } 23 24 ul.NoEnd { 25 margin-left: 20px; 26 padding-left: 20px; 27 background-repeat: repeat-y; 28 background-image: url(images/line1.png); 29 } 30 31 ul.End { 32 margin-left: 20px; 33 padding-left: 20px; 34 } 35 36 div.NewsItem { 37 38 } 39 40 div.NewsItemContent { 41 } 42 43 div.NewsItemLink { 44 display: inline; 45 padding-right: 5px; 46 } 47 48 div.NewsTreeItem { 49 50 } 51 52 #MainTitle { 53 background-color: #F08080; 54 padding: 1px 10px 0px 10px; 55 margin-top: 0px; 56 margin-left: 0px; 57 border-bottom-style: dotted; 58 border-bottom-width: thin; 59 color: White; 60 } 61 62 #MainTitleText { 63 margin: 2px 0px 2px 0px; 64 padding: 0px 0px 0px 0px; 65 background-repeat: no-repeat; 66 } 67 68 #MainMenu { 69 background-color: #F5F5F5; 70 padding: 2px 5px 2px 5px; 71 margin-top: 0px; 72 border-bottom-style: dotted; 73 border-bottom-width: thin; 74 } 75 76 form { 77 padding: 0px 0px 0px 0px; 78 margin: 0px 0px 0px 0px; 79 } 80 81 .MenuItem { 82 padding: 2px 3px 1px 3px; 83 float: left; 84 } 85 86 .MenuItem2 { 87 padding: 0px 3px 0px 3px; 88 margin-top: 0px; 89 text-align: right; 90 width: 100%; 91 } 92 93 #Online { 94 padding: 1px 3px 2px 3px; 95 display: inline; 96 right: 10px; 97 } 98 99 #Content { 100 padding: 4px 10px 10px 10px; 101 margin-left: 0px; 102 } 103 104 div.NewsItem { 105 border: thin dotted #97ADFF; 106 background: #F6F7FF; 107 margin-top: 5px; 108 padding: 0px 5px 5px 5px; 109 } 110 111 h4.NewsItemTitle { 112 border-bottom-width: thin; 113 border-bottom-style: solid; 114 margin-top: 0px; 115 margin-bottom: 0px; 116 } 117 118 #NewsGroupTree { 119 margin-left: -20px; 120 } 121 122 #NewsGroupTreeSection { 123 float: left; 124 width: 50%; 125 } 126 127 #NewsGroupTreeTitle { 128 padding: 0px; 129 border-bottom-color: Silver; 130 border-bottom-style: solid; 131 border-bottom-width: thin; 132 } 133 134 #NewsSection { 135 margin: 0px 0px 0px 50%; 136 } 137 138 #NewsSection { 139 140 } 141 142 #AddNewsForm { 143 144 } 145 146 div.Form { 147 border: thin solid; 148 background: #F0F8FF; 149 padding: 0px; 150 width: 450px; 151 padding: 5px 5px 5px 5px; 152 } 153 154 #AdminInfo { 155 clear: both; 156 border-top-style: dotted; 157 border-top-width: thin; 158 text-align: center; 159 font-size: smaller; 160 margin-top: 0px; 161 padding-top: 0px; 162 } 163 164 table.Table { 165 border: thin dotted; 166 } 167 168 table.Table tr td { 169 font-size: smaller; 170 border: thin dotted; 171 padding: 1px 3px 1px 3px; 172 margin: 0px 0px 0px 0px; 173 } 174 175 table.Table tr th { 176 background: #F6F6F6; 177 font-size: smaller; 178 border: thin dotted; 179 padding: 1px 3px 1px 3px; 180 margin: 0px 0px 0px 0px; 181 } 182 183 h3 { 184 font-size: large; 185 padding: 0px 0px 0px 0px; 186 margin: 0px 0px 0px 0px; 187 } 188 189 li a img { 190 padding: 0px 0px 0px 0px; 191 border: none; 192 } 193 194 #rsslink 195 { 196 text-align: right; 197 } 198 199 #NewsList table 200 { 201 } 202 203 #NewsList h3 204 { 205 border-bottom-color: Silver; 206 border-bottom-style: solid; 207 border-bottom-width: thin; 208 margin-bottom: 5px; 209 } 210 211 div.sysmessage 212 { 213 background: #ffe0e0; 214 border-left-width: 10; 215 border-left-color: Red; 216 border-left-style: solid; 217 padding: 5px 5px 5px 5px; 218 font-size: medium; 219 color: Maroon; 220 margin-top: 5px; 221 margin-bottom: 5px; 222 } 223 224 div.Title 225 { 226 border-bottom-color: Silver; 227 border-bottom-style: solid; 228 border-bottom-width: thin; 229 font-size: large; 230 font-weight: bold; 231 margin-bottom: 5px; 232 } 233 234 #odber { 235 font-size: small; 236 font-style: italic; 237 } 238 239 Table2 { 240 border: 0px; 241 } 242 243 Table2 tr { 244 background-color: #d9dCFF; 245 } 246 247 Table2 th { 248 background-color: #897CFF; 249 color: White; 250 } 251 252 Table2 td { 253 padding: 3 3 3 3; 254 } 255 256 .StatTable { 257 font-size: small; 258 margin-left: auto; 259 margin-right: auto; 260 margin-bottom: 16px; 261 border-left: thin solid Black; 262 border-top: thin solid Black; 263 } 264 265 .StatTable th { 266 background-color: #e8e8ff; 267 border-right: thin solid Black; 268 border-bottom: thin solid Black; 269 } 270 271 .StatTable td { 272 border-right: thin solid Black; 273 border-bottom: thin solid Black; 274 padding: 3px 3px 3px 3px; 275 } 276 277 .StatTable tr { 278 border: thin solid Black; 279 } 280 281 .StatList { 282 text-align: center; 283 margin-bottom: 16px; 284 } 285 286 .SourceCode { 287 font-family: monospace; 288 font-size: larger; 289 border: solid #dddddd 1px; 290 background-color: #FFFFF0; 291 padding: 6px; 292 float: none; 293 page: auto; 294 width: auto; 295 }
Note:
See TracChangeset
for help on using the changeset viewer.