├── .gitignore ├── templates ├── default │ ├── images │ │ ├── layer01.png │ │ └── baselayer.png │ ├── fonts │ │ ├── visitor_rus.png │ │ └── visitor_rus.ini │ └── template.php ├── default_cyan │ ├── images │ │ ├── layer01.png │ │ └── baselayer.png │ ├── fonts │ │ ├── visitor_rus.png │ │ └── visitor_rus.ini │ └── template.php └── default_alpha │ ├── images │ ├── layer01.png │ └── baselayer.png │ ├── fonts │ ├── visitor_rus.png │ └── visitor_rus.ini │ └── template.php ├── README.md ├── .htaccess ├── doc ├── changes.txt └── howto.txt ├── torrentbar.php └── LICENSE /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | -------------------------------------------------------------------------------- /templates/default/images/layer01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tracker/TorrentBar/master/templates/default/images/layer01.png -------------------------------------------------------------------------------- /templates/default/images/baselayer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tracker/TorrentBar/master/templates/default/images/baselayer.png -------------------------------------------------------------------------------- /templates/default/fonts/visitor_rus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tracker/TorrentBar/master/templates/default/fonts/visitor_rus.png -------------------------------------------------------------------------------- /templates/default_cyan/images/layer01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tracker/TorrentBar/master/templates/default_cyan/images/layer01.png -------------------------------------------------------------------------------- /templates/default_alpha/images/layer01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tracker/TorrentBar/master/templates/default_alpha/images/layer01.png -------------------------------------------------------------------------------- /templates/default_cyan/images/baselayer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tracker/TorrentBar/master/templates/default_cyan/images/baselayer.png -------------------------------------------------------------------------------- /templates/default_alpha/fonts/visitor_rus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tracker/TorrentBar/master/templates/default_alpha/fonts/visitor_rus.png -------------------------------------------------------------------------------- /templates/default_alpha/images/baselayer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tracker/TorrentBar/master/templates/default_alpha/images/baselayer.png -------------------------------------------------------------------------------- /templates/default_cyan/fonts/visitor_rus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tracker/TorrentBar/master/templates/default_cyan/fonts/visitor_rus.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TorrentBar 2 | Script for showing users statistics (upload, download, ratio) of torrent trackers based on Torrent Pier. 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.htaccess: -------------------------------------------------------------------------------- 1 | Options +FollowSymLinks 2 | 3 | RewriteEngine on 4 | RewriteRule ^([0123456789]*)-([0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_]*)\.png$ torrentbar.php?id=$1&style=$2 [L] 5 | RewriteRule ^(.*)/([0123456789]*)-([0123456789qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM_]*)\.png$ torrentbar.php?id=$2&style=$3 [L] 6 | 7 | RewriteRule ^(.*)/([0123456789]*)\.png$ torrentbar.php?id=$2 [L] 8 | RewriteRule ^([0123456789]*)\.png$ torrentbar.php?id=$1 [L] 9 | -------------------------------------------------------------------------------- /doc/changes.txt: -------------------------------------------------------------------------------- 1 | TorrentBar v0.3 for TorrentPier (2008-03-14) 2 | - new engine 3 | - new Templates subengine (Multilayer) 4 | - added support for new TorrentPier versions 5 | 6 | TorrentBar v0.2 for TorrentPier (2007-08-20) 7 | - new Font engine 8 | - new Templates (Background and Reflection separately) 9 | - added Measuring System parameter (Binary and SI) (use $use_binary_prefixes) 10 | - added Space Width parameter (use $space_width) 11 | - added "i" Letter Presentation parameter for Binary system (use $binary_i_with_point) 12 | - added .htaccess file for easy access (read howto.txt or Info section in torrentbar.php) -------------------------------------------------------------------------------- /templates/default/template.php: -------------------------------------------------------------------------------- 1 | legacy_initFont($location . 'fonts/visitor_rus'); 8 | $torrentbar->createBaseLayer($location . 'images/baselayer.png'); 9 | 10 | if (! $use_binary_prefixes) { 11 | $torrentbar->changeSystem(TorrentBar::csSI); 12 | } else { 13 | if ($binary_i_with_point) { 14 | $torrentbar->changePostfixName('kib', 'K' . chr(127) . 'B'); 15 | $torrentbar->changePostfixName('mib', 'M' . chr(127) . 'B'); 16 | $torrentbar->changePostfixName('gib', 'G' . chr(127) . 'B'); 17 | $torrentbar->changePostfixName('tib', 'T' . chr(127) . 'B'); 18 | $torrentbar->changePostfixName('pib', 'P' . chr(127) . 'B'); 19 | $torrentbar->changePostfixName('eib', 'E' . chr(127) . 'B'); 20 | $torrentbar->changePostfixName('zib', 'Z' . chr(127) . 'B'); 21 | $torrentbar->changePostfixName('yib', 'Y' . chr(127) . 'B'); 22 | } 23 | } 24 | 25 | if ($space_width > 0) { 26 | trck_BF_setLetterWidth($torrentbar->font, " ", $space_width); 27 | } 28 | 29 | $torrentbar->drawText(6, 4, 'Ratio:'); 30 | $torrentbar->drawRating(37, 4); 31 | 32 | $torrentbar->drawText(93, 4, 'U:'); 33 | $torrentbar->drawUpload(104, 4); 34 | 35 | $torrentbar->drawText(187, 4, 'D:'); 36 | $torrentbar->drawDownload(198, 4); 37 | 38 | 39 | 40 | $torrentbar->drawLayer($location . 'images/layer01.png'); 41 | -------------------------------------------------------------------------------- /templates/default_alpha/template.php: -------------------------------------------------------------------------------- 1 | legacy_initFont($location . 'fonts/visitor_rus'); 8 | $torrentbar->createBaseLayer($location . 'images/baselayer.png'); 9 | 10 | if (! $use_binary_prefixes) { 11 | $torrentbar->changeSystem(TorrentBar::csSI); 12 | } else { 13 | if ($binary_i_with_point) { 14 | $torrentbar->changePostfixName('kib', 'K' . chr(127) . 'B'); 15 | $torrentbar->changePostfixName('mib', 'M' . chr(127) . 'B'); 16 | $torrentbar->changePostfixName('gib', 'G' . chr(127) . 'B'); 17 | $torrentbar->changePostfixName('tib', 'T' . chr(127) . 'B'); 18 | $torrentbar->changePostfixName('pib', 'P' . chr(127) . 'B'); 19 | $torrentbar->changePostfixName('eib', 'E' . chr(127) . 'B'); 20 | $torrentbar->changePostfixName('zib', 'Z' . chr(127) . 'B'); 21 | $torrentbar->changePostfixName('yib', 'Y' . chr(127) . 'B'); 22 | } 23 | } 24 | 25 | if ($space_width > 0) { 26 | trck_BF_setLetterWidth($torrentbar->font, " ", $space_width); 27 | } 28 | 29 | $torrentbar->drawText(6, 4, 'Ratio:'); 30 | $torrentbar->drawRating(37, 4); 31 | 32 | $torrentbar->drawText(93, 4, 'U:'); 33 | $torrentbar->drawUpload(104, 4); 34 | 35 | $torrentbar->drawText(187, 4, 'D:'); 36 | $torrentbar->drawDownload(198, 4); 37 | 38 | 39 | 40 | $torrentbar->drawLayer($location . 'images/layer01.png'); 41 | -------------------------------------------------------------------------------- /templates/default_cyan/template.php: -------------------------------------------------------------------------------- 1 | legacy_initFont($location . 'fonts/visitor_rus'); 8 | $torrentbar->createBaseLayer($location . 'images/baselayer.png'); 9 | 10 | if (! $use_binary_prefixes) { 11 | $torrentbar->changeSystem(TorrentBar::csSI); 12 | } else { 13 | if ($binary_i_with_point) { 14 | $torrentbar->changePostfixName('kib', 'K' . chr(127) . 'B'); 15 | $torrentbar->changePostfixName('mib', 'M' . chr(127) . 'B'); 16 | $torrentbar->changePostfixName('gib', 'G' . chr(127) . 'B'); 17 | $torrentbar->changePostfixName('tib', 'T' . chr(127) . 'B'); 18 | $torrentbar->changePostfixName('pib', 'P' . chr(127) . 'B'); 19 | $torrentbar->changePostfixName('eib', 'E' . chr(127) . 'B'); 20 | $torrentbar->changePostfixName('zib', 'Z' . chr(127) . 'B'); 21 | $torrentbar->changePostfixName('yib', 'Y' . chr(127) . 'B'); 22 | } 23 | } 24 | 25 | if ($space_width > 0) { 26 | trck_BF_setLetterWidth($torrentbar->font, " ", $space_width); 27 | } 28 | 29 | $torrentbar->drawText(6, 4, 'Ratio:'); 30 | $torrentbar->drawRating(37, 4); 31 | 32 | $torrentbar->drawText(93, 4, 'U:'); 33 | $torrentbar->drawUpload(104, 4); 34 | 35 | $torrentbar->drawText(187, 4, 'D:'); 36 | $torrentbar->drawDownload(198, 4); 37 | 38 | 39 | 40 | $torrentbar->drawLayer($location . 'images/layer01.png'); 41 | -------------------------------------------------------------------------------- /doc/howto.txt: -------------------------------------------------------------------------------- 1 | INSTALLATION in TorrentPier: 2 | 3 | 4 | 1. Unpack to some folder on your server, for example here: 5 | http://127.0.0.1/torrentpier/torrentbar/ 6 | 7 | 2. Then edit torrentpier.php. Add the right path to TorrentPier configuration 8 | file ($torrentpier_config_path), for example: 9 | $torrentpier_config_path = "/home/localhost/www/torrentpier/forum/config.php"; 10 | or like this: 11 | $torrentpier_config_path = "../forum/config.php"; 12 | 13 | 3. (OPTIONAL) Change some other variables in Presets area or view Templates folder 14 | to create new templates. 15 | 16 | 4. Installation Complete :) 17 | 18 | 19 | ------------------------------------------------------------------------------ 20 | 21 | HOW TO USE with TorrentPier: 22 | 23 | 24 | After that, just put to your signature (on Forum): 25 | (Without .htaccess) 26 | [img]http://127.0.0.1/torrentbar/torrentbar.php/USERID.png[/img] 27 | or 28 | [img]http://127.0.0.1/torrentbar/torrentbar.php?id=USERID[/img] 29 | [img]http://127.0.0.1/torrentbar/torrentbar.php?id=USERID&style=STYLENAME[/img] 30 | 31 | (With .htaccess) 32 | [img]http://127.0.0.1/torrentbar/USERID.png[/img] 33 | [img]http://127.0.0.1/torrentbar/USERID-STYLENAME.png[/img] 34 | 35 | where USERID is your ID on Forum and STYLEID is the name of template. How to find 36 | out your ID? Easy :) Just Click on your Profile and look to the address bar: 37 | http://127.0.0.1/torrentpier/forum/profile.php?mode=viewprofile&u=2 38 | 2 - is my ID. 39 | 40 | 41 | ------------------------------------------------------------------------------ -------------------------------------------------------------------------------- /templates/default/fonts/visitor_rus.ini: -------------------------------------------------------------------------------- 1 | 0_x=0 2 | 0_w=8 3 | 1_x=8 4 | 1_w=8 5 | 2_x=16 6 | 2_w=8 7 | 3_x=24 8 | 3_w=8 9 | 4_x=32 10 | 4_w=8 11 | 5_x=40 12 | 5_w=8 13 | 6_x=48 14 | 6_w=8 15 | 7_x=56 16 | 7_w=8 17 | 8_x=64 18 | 8_w=8 19 | 9_x=72 20 | 9_w=8 21 | 10_x=80 22 | 10_w=8 23 | 11_x=88 24 | 11_w=8 25 | 12_x=96 26 | 12_w=8 27 | 13_x=104 28 | 13_w=8 29 | 14_x=112 30 | 14_w=8 31 | 15_x=120 32 | 15_w=8 33 | 16_x=128 34 | 16_w=8 35 | 17_x=136 36 | 17_w=8 37 | 18_x=144 38 | 18_w=8 39 | 19_x=152 40 | 19_w=8 41 | 20_x=160 42 | 20_w=8 43 | 21_x=168 44 | 21_w=8 45 | 22_x=176 46 | 22_w=8 47 | 23_x=184 48 | 23_w=8 49 | 24_x=192 50 | 24_w=8 51 | 25_x=200 52 | 25_w=8 53 | 26_x=208 54 | 26_w=8 55 | 27_x=216 56 | 27_w=8 57 | 28_x=224 58 | 28_w=8 59 | 29_x=232 60 | 29_w=8 61 | 30_x=240 62 | 30_w=8 63 | 31_x=248 64 | 31_w=8 65 | 32_x=0 66 | 32_w=3 67 | 33_x=259 68 | 33_w=2 69 | 34_x=261 70 | 34_w=4 71 | 35_x=265 72 | 35_w=6 73 | 36_x=271 74 | 36_w=6 75 | 37_x=277 76 | 37_w=6 77 | 38_x=283 78 | 38_w=6 79 | 39_x=289 80 | 39_w=2 81 | 40_x=291 82 | 40_w=3 83 | 41_x=294 84 | 41_w=3 85 | 42_x=297 86 | 42_w=6 87 | 43_x=303 88 | 43_w=6 89 | 44_x=309 90 | 44_w=2 91 | 45_x=311 92 | 45_w=5 93 | 46_x=316 94 | 46_w=2 95 | 47_x=318 96 | 47_w=6 97 | 48_x=324 98 | 48_w=6 99 | 49_x=330 100 | 49_w=3 101 | 50_x=333 102 | 50_w=6 103 | 51_x=339 104 | 51_w=6 105 | 52_x=345 106 | 52_w=6 107 | 53_x=351 108 | 53_w=6 109 | 54_x=357 110 | 54_w=6 111 | 55_x=363 112 | 55_w=6 113 | 56_x=369 114 | 56_w=6 115 | 57_x=375 116 | 57_w=6 117 | 58_x=381 118 | 58_w=2 119 | 59_x=383 120 | 59_w=2 121 | 60_x=385 122 | 60_w=4 123 | 61_x=389 124 | 61_w=6 125 | 62_x=395 126 | 62_w=4 127 | 63_x=399 128 | 63_w=6 129 | 64_x=405 130 | 64_w=6 131 | 65_x=411 132 | 65_w=6 133 | 66_x=417 134 | 66_w=6 135 | 67_x=423 136 | 67_w=6 137 | 68_x=429 138 | 68_w=6 139 | 69_x=435 140 | 69_w=6 141 | 70_x=441 142 | 70_w=6 143 | 71_x=447 144 | 71_w=6 145 | 72_x=453 146 | 72_w=6 147 | 73_x=459 148 | 73_w=6 149 | 74_x=465 150 | 74_w=6 151 | 75_x=471 152 | 75_w=6 153 | 76_x=477 154 | 76_w=6 155 | 77_x=483 156 | 77_w=6 157 | 78_x=489 158 | 78_w=6 159 | 79_x=495 160 | 79_w=6 161 | 80_x=501 162 | 80_w=6 163 | 81_x=507 164 | 81_w=6 165 | 82_x=513 166 | 82_w=6 167 | 83_x=519 168 | 83_w=6 169 | 84_x=525 170 | 84_w=6 171 | 85_x=531 172 | 85_w=6 173 | 86_x=537 174 | 86_w=6 175 | 87_x=543 176 | 87_w=6 177 | 88_x=549 178 | 88_w=6 179 | 89_x=555 180 | 89_w=6 181 | 90_x=561 182 | 90_w=6 183 | 91_x=567 184 | 91_w=3 185 | 92_x=570 186 | 92_w=6 187 | 93_x=576 188 | 93_w=3 189 | 94_x=579 190 | 94_w=4 191 | 95_x=583 192 | 95_w=5 193 | 96_x=588 194 | 96_w=2 195 | 97_x=590 196 | 97_w=6 197 | 98_x=596 198 | 98_w=6 199 | 99_x=602 200 | 99_w=6 201 | 100_x=608 202 | 100_w=6 203 | 101_x=614 204 | 101_w=6 205 | 102_x=620 206 | 102_w=6 207 | 103_x=626 208 | 103_w=6 209 | 104_x=632 210 | 104_w=6 211 | 105_x=638 212 | 105_w=2 213 | 106_x=640 214 | 106_w=6 215 | 107_x=646 216 | 107_w=6 217 | 108_x=652 218 | 108_w=6 219 | 109_x=658 220 | 109_w=6 221 | 110_x=664 222 | 110_w=6 223 | 111_x=670 224 | 111_w=6 225 | 112_x=676 226 | 112_w=6 227 | 113_x=682 228 | 113_w=6 229 | 114_x=688 230 | 114_w=6 231 | 115_x=694 232 | 115_w=6 233 | 116_x=700 234 | 116_w=6 235 | 117_x=706 236 | 117_w=6 237 | 118_x=712 238 | 118_w=6 239 | 119_x=718 240 | 119_w=6 241 | 120_x=724 242 | 120_w=6 243 | 121_x=730 244 | 121_w=6 245 | 122_x=736 246 | 122_w=6 247 | 123_x=742 248 | 123_w=4 249 | 124_x=746 250 | 124_w=2 251 | 125_x=748 252 | 125_w=4 253 | 126_x=752 254 | 126_w=6 255 | 127_x=758 256 | 127_w=2 257 | 128_x=766 258 | 128_w=9 259 | 129_x=775 260 | 129_w=5 261 | 130_x=780 262 | 130_w=2 263 | 131_x=782 264 | 131_w=4 265 | 132_x=786 266 | 132_w=3 267 | 133_x=789 268 | 133_w=10 269 | 134_x=799 270 | 134_w=6 271 | 135_x=805 272 | 135_w=6 273 | 136_x=811 274 | 136_w=6 275 | 137_x=817 276 | 137_w=10 277 | 138_x=827 278 | 138_w=11 279 | 139_x=838 280 | 139_w=3 281 | 140_x=841 282 | 140_w=10 283 | 141_x=851 284 | 141_w=6 285 | 142_x=857 286 | 142_w=9 287 | 143_x=866 288 | 143_w=7 289 | 144_x=873 290 | 144_w=6 291 | 145_x=879 292 | 145_w=2 293 | 146_x=881 294 | 146_w=2 295 | 147_x=883 296 | 147_w=3 297 | 148_x=886 298 | 148_w=4 299 | 149_x=890 300 | 149_w=4 301 | 150_x=894 302 | 150_w=6 303 | 151_x=900 304 | 151_w=10 305 | 152_x=910 306 | 152_w=8 307 | 153_x=918 308 | 153_w=10 309 | 154_x=928 310 | 154_w=9 311 | 155_x=937 312 | 155_w=3 313 | 156_x=940 314 | 156_w=8 315 | 157_x=948 316 | 157_w=4 317 | 158_x=952 318 | 158_w=6 319 | 159_x=958 320 | 159_w=6 321 | 160_x=964 322 | 160_w=3 323 | 161_x=967 324 | 161_w=6 325 | 162_x=973 326 | 162_w=5 327 | 163_x=978 328 | 163_w=5 329 | 164_x=983 330 | 164_w=6 331 | 165_x=989 332 | 165_w=5 333 | 166_x=994 334 | 166_w=3 335 | 167_x=997 336 | 167_w=6 337 | 168_x=1003 338 | 168_w=7 339 | 169_x=1010 340 | 169_w=7 341 | 170_x=1017 342 | 170_w=7 343 | 171_x=1024 344 | 171_w=6 345 | 172_x=1030 346 | 172_w=6 347 | 173_x=1036 348 | 173_w=5 349 | 174_x=1041 350 | 174_w=7 351 | 175_x=1048 352 | 175_w=3 353 | 176_x=1051 354 | 176_w=4 355 | 177_x=1055 356 | 177_w=5 357 | 178_x=1060 358 | 178_w=3 359 | 179_x=1063 360 | 179_w=2 361 | 180_x=1065 362 | 180_w=4 363 | 181_x=1069 364 | 181_w=6 365 | 182_x=1075 366 | 182_w=5 367 | 183_x=1080 368 | 183_w=3 369 | 184_x=1083 370 | 184_w=6 371 | 185_x=1089 372 | 185_w=10 373 | 186_x=1099 374 | 186_w=5 375 | 187_x=1104 376 | 187_w=6 377 | 188_x=1110 378 | 188_w=2 379 | 189_x=1112 380 | 189_w=7 381 | 190_x=1119 382 | 190_w=5 383 | 191_x=1124 384 | 191_w=3 385 | 192_x=1127 386 | 192_w=6 387 | 193_x=1133 388 | 193_w=6 389 | 194_x=1139 390 | 194_w=6 391 | 195_x=1145 392 | 195_w=6 393 | 196_x=1151 394 | 196_w=7 395 | 197_x=1158 396 | 197_w=6 397 | 198_x=1164 398 | 198_w=6 399 | 199_x=1170 400 | 199_w=6 401 | 200_x=1176 402 | 200_w=6 403 | 201_x=1182 404 | 201_w=6 405 | 202_x=1188 406 | 202_w=6 407 | 203_x=1194 408 | 203_w=6 409 | 204_x=1200 410 | 204_w=6 411 | 205_x=1206 412 | 205_w=6 413 | 206_x=1212 414 | 206_w=6 415 | 207_x=1218 416 | 207_w=6 417 | 208_x=1224 418 | 208_w=6 419 | 209_x=1230 420 | 209_w=6 421 | 210_x=1236 422 | 210_w=6 423 | 211_x=1242 424 | 211_w=6 425 | 212_x=1248 426 | 212_w=8 427 | 213_x=1256 428 | 213_w=6 429 | 214_x=1262 430 | 214_w=6 431 | 215_x=1268 432 | 215_w=6 433 | 216_x=1274 434 | 216_w=6 435 | 217_x=1280 436 | 217_w=6 437 | 218_x=1286 438 | 218_w=7 439 | 219_x=1293 440 | 219_w=8 441 | 220_x=1301 442 | 220_w=6 443 | 221_x=1307 444 | 221_w=6 445 | 222_x=1313 446 | 222_w=8 447 | 223_x=1321 448 | 223_w=6 449 | 224_x=1327 450 | 224_w=6 451 | 225_x=1333 452 | 225_w=6 453 | 226_x=1339 454 | 226_w=6 455 | 227_x=1345 456 | 227_w=6 457 | 228_x=1351 458 | 228_w=6 459 | 229_x=1357 460 | 229_w=6 461 | 230_x=1363 462 | 230_w=6 463 | 231_x=1369 464 | 231_w=6 465 | 232_x=1375 466 | 232_w=6 467 | 233_x=1381 468 | 233_w=6 469 | 234_x=1387 470 | 234_w=6 471 | 235_x=1393 472 | 235_w=6 473 | 236_x=1399 474 | 236_w=6 475 | 237_x=1405 476 | 237_w=6 477 | 238_x=1411 478 | 238_w=6 479 | 239_x=1417 480 | 239_w=6 481 | 240_x=1423 482 | 240_w=6 483 | 241_x=1429 484 | 241_w=6 485 | 242_x=1435 486 | 242_w=6 487 | 243_x=1441 488 | 243_w=6 489 | 244_x=1447 490 | 244_w=8 491 | 245_x=1455 492 | 245_w=6 493 | 246_x=1461 494 | 246_w=6 495 | 247_x=1467 496 | 247_w=6 497 | 248_x=1473 498 | 248_w=6 499 | 249_x=1479 500 | 249_w=6 501 | 250_x=1485 502 | 250_w=7 503 | 251_x=1492 504 | 251_w=8 505 | 252_x=1500 506 | 252_w=6 507 | 253_x=1506 508 | 253_w=6 509 | 254_x=1512 510 | 254_w=8 511 | 255_x=1520 512 | 255_w=6 513 | -------------------------------------------------------------------------------- /templates/default_alpha/fonts/visitor_rus.ini: -------------------------------------------------------------------------------- 1 | 0_x=0 2 | 0_w=8 3 | 1_x=8 4 | 1_w=8 5 | 2_x=16 6 | 2_w=8 7 | 3_x=24 8 | 3_w=8 9 | 4_x=32 10 | 4_w=8 11 | 5_x=40 12 | 5_w=8 13 | 6_x=48 14 | 6_w=8 15 | 7_x=56 16 | 7_w=8 17 | 8_x=64 18 | 8_w=8 19 | 9_x=72 20 | 9_w=8 21 | 10_x=80 22 | 10_w=8 23 | 11_x=88 24 | 11_w=8 25 | 12_x=96 26 | 12_w=8 27 | 13_x=104 28 | 13_w=8 29 | 14_x=112 30 | 14_w=8 31 | 15_x=120 32 | 15_w=8 33 | 16_x=128 34 | 16_w=8 35 | 17_x=136 36 | 17_w=8 37 | 18_x=144 38 | 18_w=8 39 | 19_x=152 40 | 19_w=8 41 | 20_x=160 42 | 20_w=8 43 | 21_x=168 44 | 21_w=8 45 | 22_x=176 46 | 22_w=8 47 | 23_x=184 48 | 23_w=8 49 | 24_x=192 50 | 24_w=8 51 | 25_x=200 52 | 25_w=8 53 | 26_x=208 54 | 26_w=8 55 | 27_x=216 56 | 27_w=8 57 | 28_x=224 58 | 28_w=8 59 | 29_x=232 60 | 29_w=8 61 | 30_x=240 62 | 30_w=8 63 | 31_x=248 64 | 31_w=8 65 | 32_x=0 66 | 32_w=3 67 | 33_x=259 68 | 33_w=2 69 | 34_x=261 70 | 34_w=4 71 | 35_x=265 72 | 35_w=6 73 | 36_x=271 74 | 36_w=6 75 | 37_x=277 76 | 37_w=6 77 | 38_x=283 78 | 38_w=6 79 | 39_x=289 80 | 39_w=2 81 | 40_x=291 82 | 40_w=3 83 | 41_x=294 84 | 41_w=3 85 | 42_x=297 86 | 42_w=6 87 | 43_x=303 88 | 43_w=6 89 | 44_x=309 90 | 44_w=2 91 | 45_x=311 92 | 45_w=5 93 | 46_x=316 94 | 46_w=2 95 | 47_x=318 96 | 47_w=6 97 | 48_x=324 98 | 48_w=6 99 | 49_x=330 100 | 49_w=3 101 | 50_x=333 102 | 50_w=6 103 | 51_x=339 104 | 51_w=6 105 | 52_x=345 106 | 52_w=6 107 | 53_x=351 108 | 53_w=6 109 | 54_x=357 110 | 54_w=6 111 | 55_x=363 112 | 55_w=6 113 | 56_x=369 114 | 56_w=6 115 | 57_x=375 116 | 57_w=6 117 | 58_x=381 118 | 58_w=2 119 | 59_x=383 120 | 59_w=2 121 | 60_x=385 122 | 60_w=4 123 | 61_x=389 124 | 61_w=6 125 | 62_x=395 126 | 62_w=4 127 | 63_x=399 128 | 63_w=6 129 | 64_x=405 130 | 64_w=6 131 | 65_x=411 132 | 65_w=6 133 | 66_x=417 134 | 66_w=6 135 | 67_x=423 136 | 67_w=6 137 | 68_x=429 138 | 68_w=6 139 | 69_x=435 140 | 69_w=6 141 | 70_x=441 142 | 70_w=6 143 | 71_x=447 144 | 71_w=6 145 | 72_x=453 146 | 72_w=6 147 | 73_x=459 148 | 73_w=6 149 | 74_x=465 150 | 74_w=6 151 | 75_x=471 152 | 75_w=6 153 | 76_x=477 154 | 76_w=6 155 | 77_x=483 156 | 77_w=6 157 | 78_x=489 158 | 78_w=6 159 | 79_x=495 160 | 79_w=6 161 | 80_x=501 162 | 80_w=6 163 | 81_x=507 164 | 81_w=6 165 | 82_x=513 166 | 82_w=6 167 | 83_x=519 168 | 83_w=6 169 | 84_x=525 170 | 84_w=6 171 | 85_x=531 172 | 85_w=6 173 | 86_x=537 174 | 86_w=6 175 | 87_x=543 176 | 87_w=6 177 | 88_x=549 178 | 88_w=6 179 | 89_x=555 180 | 89_w=6 181 | 90_x=561 182 | 90_w=6 183 | 91_x=567 184 | 91_w=3 185 | 92_x=570 186 | 92_w=6 187 | 93_x=576 188 | 93_w=3 189 | 94_x=579 190 | 94_w=4 191 | 95_x=583 192 | 95_w=5 193 | 96_x=588 194 | 96_w=2 195 | 97_x=590 196 | 97_w=6 197 | 98_x=596 198 | 98_w=6 199 | 99_x=602 200 | 99_w=6 201 | 100_x=608 202 | 100_w=6 203 | 101_x=614 204 | 101_w=6 205 | 102_x=620 206 | 102_w=6 207 | 103_x=626 208 | 103_w=6 209 | 104_x=632 210 | 104_w=6 211 | 105_x=638 212 | 105_w=2 213 | 106_x=640 214 | 106_w=6 215 | 107_x=646 216 | 107_w=6 217 | 108_x=652 218 | 108_w=6 219 | 109_x=658 220 | 109_w=6 221 | 110_x=664 222 | 110_w=6 223 | 111_x=670 224 | 111_w=6 225 | 112_x=676 226 | 112_w=6 227 | 113_x=682 228 | 113_w=6 229 | 114_x=688 230 | 114_w=6 231 | 115_x=694 232 | 115_w=6 233 | 116_x=700 234 | 116_w=6 235 | 117_x=706 236 | 117_w=6 237 | 118_x=712 238 | 118_w=6 239 | 119_x=718 240 | 119_w=6 241 | 120_x=724 242 | 120_w=6 243 | 121_x=730 244 | 121_w=6 245 | 122_x=736 246 | 122_w=6 247 | 123_x=742 248 | 123_w=4 249 | 124_x=746 250 | 124_w=2 251 | 125_x=748 252 | 125_w=4 253 | 126_x=752 254 | 126_w=6 255 | 127_x=758 256 | 127_w=2 257 | 128_x=766 258 | 128_w=9 259 | 129_x=775 260 | 129_w=5 261 | 130_x=780 262 | 130_w=2 263 | 131_x=782 264 | 131_w=4 265 | 132_x=786 266 | 132_w=3 267 | 133_x=789 268 | 133_w=10 269 | 134_x=799 270 | 134_w=6 271 | 135_x=805 272 | 135_w=6 273 | 136_x=811 274 | 136_w=6 275 | 137_x=817 276 | 137_w=10 277 | 138_x=827 278 | 138_w=11 279 | 139_x=838 280 | 139_w=3 281 | 140_x=841 282 | 140_w=10 283 | 141_x=851 284 | 141_w=6 285 | 142_x=857 286 | 142_w=9 287 | 143_x=866 288 | 143_w=7 289 | 144_x=873 290 | 144_w=6 291 | 145_x=879 292 | 145_w=2 293 | 146_x=881 294 | 146_w=2 295 | 147_x=883 296 | 147_w=3 297 | 148_x=886 298 | 148_w=4 299 | 149_x=890 300 | 149_w=4 301 | 150_x=894 302 | 150_w=6 303 | 151_x=900 304 | 151_w=10 305 | 152_x=910 306 | 152_w=8 307 | 153_x=918 308 | 153_w=10 309 | 154_x=928 310 | 154_w=9 311 | 155_x=937 312 | 155_w=3 313 | 156_x=940 314 | 156_w=8 315 | 157_x=948 316 | 157_w=4 317 | 158_x=952 318 | 158_w=6 319 | 159_x=958 320 | 159_w=6 321 | 160_x=964 322 | 160_w=3 323 | 161_x=967 324 | 161_w=6 325 | 162_x=973 326 | 162_w=5 327 | 163_x=978 328 | 163_w=5 329 | 164_x=983 330 | 164_w=6 331 | 165_x=989 332 | 165_w=5 333 | 166_x=994 334 | 166_w=3 335 | 167_x=997 336 | 167_w=6 337 | 168_x=1003 338 | 168_w=7 339 | 169_x=1010 340 | 169_w=7 341 | 170_x=1017 342 | 170_w=7 343 | 171_x=1024 344 | 171_w=6 345 | 172_x=1030 346 | 172_w=6 347 | 173_x=1036 348 | 173_w=5 349 | 174_x=1041 350 | 174_w=7 351 | 175_x=1048 352 | 175_w=3 353 | 176_x=1051 354 | 176_w=4 355 | 177_x=1055 356 | 177_w=5 357 | 178_x=1060 358 | 178_w=3 359 | 179_x=1063 360 | 179_w=2 361 | 180_x=1065 362 | 180_w=4 363 | 181_x=1069 364 | 181_w=6 365 | 182_x=1075 366 | 182_w=5 367 | 183_x=1080 368 | 183_w=3 369 | 184_x=1083 370 | 184_w=6 371 | 185_x=1089 372 | 185_w=10 373 | 186_x=1099 374 | 186_w=5 375 | 187_x=1104 376 | 187_w=6 377 | 188_x=1110 378 | 188_w=2 379 | 189_x=1112 380 | 189_w=7 381 | 190_x=1119 382 | 190_w=5 383 | 191_x=1124 384 | 191_w=3 385 | 192_x=1127 386 | 192_w=6 387 | 193_x=1133 388 | 193_w=6 389 | 194_x=1139 390 | 194_w=6 391 | 195_x=1145 392 | 195_w=6 393 | 196_x=1151 394 | 196_w=7 395 | 197_x=1158 396 | 197_w=6 397 | 198_x=1164 398 | 198_w=6 399 | 199_x=1170 400 | 199_w=6 401 | 200_x=1176 402 | 200_w=6 403 | 201_x=1182 404 | 201_w=6 405 | 202_x=1188 406 | 202_w=6 407 | 203_x=1194 408 | 203_w=6 409 | 204_x=1200 410 | 204_w=6 411 | 205_x=1206 412 | 205_w=6 413 | 206_x=1212 414 | 206_w=6 415 | 207_x=1218 416 | 207_w=6 417 | 208_x=1224 418 | 208_w=6 419 | 209_x=1230 420 | 209_w=6 421 | 210_x=1236 422 | 210_w=6 423 | 211_x=1242 424 | 211_w=6 425 | 212_x=1248 426 | 212_w=8 427 | 213_x=1256 428 | 213_w=6 429 | 214_x=1262 430 | 214_w=6 431 | 215_x=1268 432 | 215_w=6 433 | 216_x=1274 434 | 216_w=6 435 | 217_x=1280 436 | 217_w=6 437 | 218_x=1286 438 | 218_w=7 439 | 219_x=1293 440 | 219_w=8 441 | 220_x=1301 442 | 220_w=6 443 | 221_x=1307 444 | 221_w=6 445 | 222_x=1313 446 | 222_w=8 447 | 223_x=1321 448 | 223_w=6 449 | 224_x=1327 450 | 224_w=6 451 | 225_x=1333 452 | 225_w=6 453 | 226_x=1339 454 | 226_w=6 455 | 227_x=1345 456 | 227_w=6 457 | 228_x=1351 458 | 228_w=6 459 | 229_x=1357 460 | 229_w=6 461 | 230_x=1363 462 | 230_w=6 463 | 231_x=1369 464 | 231_w=6 465 | 232_x=1375 466 | 232_w=6 467 | 233_x=1381 468 | 233_w=6 469 | 234_x=1387 470 | 234_w=6 471 | 235_x=1393 472 | 235_w=6 473 | 236_x=1399 474 | 236_w=6 475 | 237_x=1405 476 | 237_w=6 477 | 238_x=1411 478 | 238_w=6 479 | 239_x=1417 480 | 239_w=6 481 | 240_x=1423 482 | 240_w=6 483 | 241_x=1429 484 | 241_w=6 485 | 242_x=1435 486 | 242_w=6 487 | 243_x=1441 488 | 243_w=6 489 | 244_x=1447 490 | 244_w=8 491 | 245_x=1455 492 | 245_w=6 493 | 246_x=1461 494 | 246_w=6 495 | 247_x=1467 496 | 247_w=6 497 | 248_x=1473 498 | 248_w=6 499 | 249_x=1479 500 | 249_w=6 501 | 250_x=1485 502 | 250_w=7 503 | 251_x=1492 504 | 251_w=8 505 | 252_x=1500 506 | 252_w=6 507 | 253_x=1506 508 | 253_w=6 509 | 254_x=1512 510 | 254_w=8 511 | 255_x=1520 512 | 255_w=6 513 | -------------------------------------------------------------------------------- /templates/default_cyan/fonts/visitor_rus.ini: -------------------------------------------------------------------------------- 1 | 0_x=0 2 | 0_w=8 3 | 1_x=8 4 | 1_w=8 5 | 2_x=16 6 | 2_w=8 7 | 3_x=24 8 | 3_w=8 9 | 4_x=32 10 | 4_w=8 11 | 5_x=40 12 | 5_w=8 13 | 6_x=48 14 | 6_w=8 15 | 7_x=56 16 | 7_w=8 17 | 8_x=64 18 | 8_w=8 19 | 9_x=72 20 | 9_w=8 21 | 10_x=80 22 | 10_w=8 23 | 11_x=88 24 | 11_w=8 25 | 12_x=96 26 | 12_w=8 27 | 13_x=104 28 | 13_w=8 29 | 14_x=112 30 | 14_w=8 31 | 15_x=120 32 | 15_w=8 33 | 16_x=128 34 | 16_w=8 35 | 17_x=136 36 | 17_w=8 37 | 18_x=144 38 | 18_w=8 39 | 19_x=152 40 | 19_w=8 41 | 20_x=160 42 | 20_w=8 43 | 21_x=168 44 | 21_w=8 45 | 22_x=176 46 | 22_w=8 47 | 23_x=184 48 | 23_w=8 49 | 24_x=192 50 | 24_w=8 51 | 25_x=200 52 | 25_w=8 53 | 26_x=208 54 | 26_w=8 55 | 27_x=216 56 | 27_w=8 57 | 28_x=224 58 | 28_w=8 59 | 29_x=232 60 | 29_w=8 61 | 30_x=240 62 | 30_w=8 63 | 31_x=248 64 | 31_w=8 65 | 32_x=0 66 | 32_w=3 67 | 33_x=259 68 | 33_w=2 69 | 34_x=261 70 | 34_w=4 71 | 35_x=265 72 | 35_w=6 73 | 36_x=271 74 | 36_w=6 75 | 37_x=277 76 | 37_w=6 77 | 38_x=283 78 | 38_w=6 79 | 39_x=289 80 | 39_w=2 81 | 40_x=291 82 | 40_w=3 83 | 41_x=294 84 | 41_w=3 85 | 42_x=297 86 | 42_w=6 87 | 43_x=303 88 | 43_w=6 89 | 44_x=309 90 | 44_w=2 91 | 45_x=311 92 | 45_w=5 93 | 46_x=316 94 | 46_w=2 95 | 47_x=318 96 | 47_w=6 97 | 48_x=324 98 | 48_w=6 99 | 49_x=330 100 | 49_w=3 101 | 50_x=333 102 | 50_w=6 103 | 51_x=339 104 | 51_w=6 105 | 52_x=345 106 | 52_w=6 107 | 53_x=351 108 | 53_w=6 109 | 54_x=357 110 | 54_w=6 111 | 55_x=363 112 | 55_w=6 113 | 56_x=369 114 | 56_w=6 115 | 57_x=375 116 | 57_w=6 117 | 58_x=381 118 | 58_w=2 119 | 59_x=383 120 | 59_w=2 121 | 60_x=385 122 | 60_w=4 123 | 61_x=389 124 | 61_w=6 125 | 62_x=395 126 | 62_w=4 127 | 63_x=399 128 | 63_w=6 129 | 64_x=405 130 | 64_w=6 131 | 65_x=411 132 | 65_w=6 133 | 66_x=417 134 | 66_w=6 135 | 67_x=423 136 | 67_w=6 137 | 68_x=429 138 | 68_w=6 139 | 69_x=435 140 | 69_w=6 141 | 70_x=441 142 | 70_w=6 143 | 71_x=447 144 | 71_w=6 145 | 72_x=453 146 | 72_w=6 147 | 73_x=459 148 | 73_w=6 149 | 74_x=465 150 | 74_w=6 151 | 75_x=471 152 | 75_w=6 153 | 76_x=477 154 | 76_w=6 155 | 77_x=483 156 | 77_w=6 157 | 78_x=489 158 | 78_w=6 159 | 79_x=495 160 | 79_w=6 161 | 80_x=501 162 | 80_w=6 163 | 81_x=507 164 | 81_w=6 165 | 82_x=513 166 | 82_w=6 167 | 83_x=519 168 | 83_w=6 169 | 84_x=525 170 | 84_w=6 171 | 85_x=531 172 | 85_w=6 173 | 86_x=537 174 | 86_w=6 175 | 87_x=543 176 | 87_w=6 177 | 88_x=549 178 | 88_w=6 179 | 89_x=555 180 | 89_w=6 181 | 90_x=561 182 | 90_w=6 183 | 91_x=567 184 | 91_w=3 185 | 92_x=570 186 | 92_w=6 187 | 93_x=576 188 | 93_w=3 189 | 94_x=579 190 | 94_w=4 191 | 95_x=583 192 | 95_w=5 193 | 96_x=588 194 | 96_w=2 195 | 97_x=590 196 | 97_w=6 197 | 98_x=596 198 | 98_w=6 199 | 99_x=602 200 | 99_w=6 201 | 100_x=608 202 | 100_w=6 203 | 101_x=614 204 | 101_w=6 205 | 102_x=620 206 | 102_w=6 207 | 103_x=626 208 | 103_w=6 209 | 104_x=632 210 | 104_w=6 211 | 105_x=638 212 | 105_w=2 213 | 106_x=640 214 | 106_w=6 215 | 107_x=646 216 | 107_w=6 217 | 108_x=652 218 | 108_w=6 219 | 109_x=658 220 | 109_w=6 221 | 110_x=664 222 | 110_w=6 223 | 111_x=670 224 | 111_w=6 225 | 112_x=676 226 | 112_w=6 227 | 113_x=682 228 | 113_w=6 229 | 114_x=688 230 | 114_w=6 231 | 115_x=694 232 | 115_w=6 233 | 116_x=700 234 | 116_w=6 235 | 117_x=706 236 | 117_w=6 237 | 118_x=712 238 | 118_w=6 239 | 119_x=718 240 | 119_w=6 241 | 120_x=724 242 | 120_w=6 243 | 121_x=730 244 | 121_w=6 245 | 122_x=736 246 | 122_w=6 247 | 123_x=742 248 | 123_w=4 249 | 124_x=746 250 | 124_w=2 251 | 125_x=748 252 | 125_w=4 253 | 126_x=752 254 | 126_w=6 255 | 127_x=758 256 | 127_w=2 257 | 128_x=766 258 | 128_w=9 259 | 129_x=775 260 | 129_w=5 261 | 130_x=780 262 | 130_w=2 263 | 131_x=782 264 | 131_w=4 265 | 132_x=786 266 | 132_w=3 267 | 133_x=789 268 | 133_w=10 269 | 134_x=799 270 | 134_w=6 271 | 135_x=805 272 | 135_w=6 273 | 136_x=811 274 | 136_w=6 275 | 137_x=817 276 | 137_w=10 277 | 138_x=827 278 | 138_w=11 279 | 139_x=838 280 | 139_w=3 281 | 140_x=841 282 | 140_w=10 283 | 141_x=851 284 | 141_w=6 285 | 142_x=857 286 | 142_w=9 287 | 143_x=866 288 | 143_w=7 289 | 144_x=873 290 | 144_w=6 291 | 145_x=879 292 | 145_w=2 293 | 146_x=881 294 | 146_w=2 295 | 147_x=883 296 | 147_w=3 297 | 148_x=886 298 | 148_w=4 299 | 149_x=890 300 | 149_w=4 301 | 150_x=894 302 | 150_w=6 303 | 151_x=900 304 | 151_w=10 305 | 152_x=910 306 | 152_w=8 307 | 153_x=918 308 | 153_w=10 309 | 154_x=928 310 | 154_w=9 311 | 155_x=937 312 | 155_w=3 313 | 156_x=940 314 | 156_w=8 315 | 157_x=948 316 | 157_w=4 317 | 158_x=952 318 | 158_w=6 319 | 159_x=958 320 | 159_w=6 321 | 160_x=964 322 | 160_w=3 323 | 161_x=967 324 | 161_w=6 325 | 162_x=973 326 | 162_w=5 327 | 163_x=978 328 | 163_w=5 329 | 164_x=983 330 | 164_w=6 331 | 165_x=989 332 | 165_w=5 333 | 166_x=994 334 | 166_w=3 335 | 167_x=997 336 | 167_w=6 337 | 168_x=1003 338 | 168_w=7 339 | 169_x=1010 340 | 169_w=7 341 | 170_x=1017 342 | 170_w=7 343 | 171_x=1024 344 | 171_w=6 345 | 172_x=1030 346 | 172_w=6 347 | 173_x=1036 348 | 173_w=5 349 | 174_x=1041 350 | 174_w=7 351 | 175_x=1048 352 | 175_w=3 353 | 176_x=1051 354 | 176_w=4 355 | 177_x=1055 356 | 177_w=5 357 | 178_x=1060 358 | 178_w=3 359 | 179_x=1063 360 | 179_w=2 361 | 180_x=1065 362 | 180_w=4 363 | 181_x=1069 364 | 181_w=6 365 | 182_x=1075 366 | 182_w=5 367 | 183_x=1080 368 | 183_w=3 369 | 184_x=1083 370 | 184_w=6 371 | 185_x=1089 372 | 185_w=10 373 | 186_x=1099 374 | 186_w=5 375 | 187_x=1104 376 | 187_w=6 377 | 188_x=1110 378 | 188_w=2 379 | 189_x=1112 380 | 189_w=7 381 | 190_x=1119 382 | 190_w=5 383 | 191_x=1124 384 | 191_w=3 385 | 192_x=1127 386 | 192_w=6 387 | 193_x=1133 388 | 193_w=6 389 | 194_x=1139 390 | 194_w=6 391 | 195_x=1145 392 | 195_w=6 393 | 196_x=1151 394 | 196_w=7 395 | 197_x=1158 396 | 197_w=6 397 | 198_x=1164 398 | 198_w=6 399 | 199_x=1170 400 | 199_w=6 401 | 200_x=1176 402 | 200_w=6 403 | 201_x=1182 404 | 201_w=6 405 | 202_x=1188 406 | 202_w=6 407 | 203_x=1194 408 | 203_w=6 409 | 204_x=1200 410 | 204_w=6 411 | 205_x=1206 412 | 205_w=6 413 | 206_x=1212 414 | 206_w=6 415 | 207_x=1218 416 | 207_w=6 417 | 208_x=1224 418 | 208_w=6 419 | 209_x=1230 420 | 209_w=6 421 | 210_x=1236 422 | 210_w=6 423 | 211_x=1242 424 | 211_w=6 425 | 212_x=1248 426 | 212_w=8 427 | 213_x=1256 428 | 213_w=6 429 | 214_x=1262 430 | 214_w=6 431 | 215_x=1268 432 | 215_w=6 433 | 216_x=1274 434 | 216_w=6 435 | 217_x=1280 436 | 217_w=6 437 | 218_x=1286 438 | 218_w=7 439 | 219_x=1293 440 | 219_w=8 441 | 220_x=1301 442 | 220_w=6 443 | 221_x=1307 444 | 221_w=6 445 | 222_x=1313 446 | 222_w=8 447 | 223_x=1321 448 | 223_w=6 449 | 224_x=1327 450 | 224_w=6 451 | 225_x=1333 452 | 225_w=6 453 | 226_x=1339 454 | 226_w=6 455 | 227_x=1345 456 | 227_w=6 457 | 228_x=1351 458 | 228_w=6 459 | 229_x=1357 460 | 229_w=6 461 | 230_x=1363 462 | 230_w=6 463 | 231_x=1369 464 | 231_w=6 465 | 232_x=1375 466 | 232_w=6 467 | 233_x=1381 468 | 233_w=6 469 | 234_x=1387 470 | 234_w=6 471 | 235_x=1393 472 | 235_w=6 473 | 236_x=1399 474 | 236_w=6 475 | 237_x=1405 476 | 237_w=6 477 | 238_x=1411 478 | 238_w=6 479 | 239_x=1417 480 | 239_w=6 481 | 240_x=1423 482 | 240_w=6 483 | 241_x=1429 484 | 241_w=6 485 | 242_x=1435 486 | 242_w=6 487 | 243_x=1441 488 | 243_w=6 489 | 244_x=1447 490 | 244_w=8 491 | 245_x=1455 492 | 245_w=6 493 | 246_x=1461 494 | 246_w=6 495 | 247_x=1467 496 | 247_w=6 497 | 248_x=1473 498 | 248_w=6 499 | 249_x=1479 500 | 249_w=6 501 | 250_x=1485 502 | 250_w=7 503 | 251_x=1492 504 | 251_w=8 505 | 252_x=1500 506 | 252_w=6 507 | 253_x=1506 508 | 253_w=6 509 | 254_x=1512 510 | 254_w=8 511 | 255_x=1520 512 | 255_w=6 513 | -------------------------------------------------------------------------------- /torrentbar.php: -------------------------------------------------------------------------------- 1 | 0) { 165 | for ($i = 0; $i < strlen($text); $i++) { 166 | $res += trck_BF_LetterWidth($font, $text[$i]); 167 | } 168 | } 169 | 170 | return $res; 171 | } 172 | 173 | function trck_BF_TextHeight($font) { 174 | return imagesy($font["font"]); 175 | } 176 | 177 | function trck_BF_DrawText($im, $x, $y, $font, $text) { 178 | if (strlen($text) == 0) { 179 | return true; 180 | } 181 | 182 | $xc = $x; 183 | $yc = $y; 184 | 185 | for ($i = 0; $i < strlen($text); $i++) { 186 | $ascii = ord($text[$i]); 187 | $sx = $font["params"][$ascii."_x"]; 188 | imagecopy($im, $font["font"], $xc, $yc, $sx, 0, trck_BF_LetterWidth($font, $text[$i]), trck_BF_TextHeight($font)); 189 | $xc += trck_BF_LetterWidth($font, $text[$i]); 190 | } 191 | } 192 | 193 | function trck_BF_DrawStroke($im, $text_color, $stroke_color) { 194 | for($y=0; $y=0) && ($sy<=$im_y2)) && (($sx>=0) && ($sx<=$im_x2))) { 216 | $color = imagecolorat($im, $sx, $sy); 217 | if (($color!=$ct) && ($color!=$cs)) { 218 | imagesetpixel($im, $sx, $sy, $cs); 219 | } 220 | } 221 | $sx++; 222 | } 223 | $sy++; 224 | } 225 | } 226 | 227 | function trck_BF_CreateTextWithStroke($font, $text) { 228 | $im = @imagecreatetruecolor(trck_BF_TextWidth($font, $text)+2, trck_BF_TextHeight($font)+2); 229 | if (! $im) { 230 | return 0; 231 | } 232 | 233 | imagesavealpha($im, true); 234 | imagealphablending($im, false); 235 | $bgalpha_color = imagecolorallocatealpha($im, 0, 0, 0, 127); 236 | $text_color = imagecolorallocate($im, 255, 255, 255); 237 | $stroke_color = imagecolorallocate($im, 0, 0, 0); 238 | imagefilledrectangle($im, 0, 0, imagesx($im)-1, imagesy($im)-1, $bgalpha_color); 239 | 240 | trck_BF_DrawText($im, 1, 1, $font, $text); 241 | trck_BF_DrawStroke($im, $text_color, $stroke_color); 242 | 243 | return $im; 244 | } 245 | 246 | 247 | class TorrentBar { 248 | 249 | public $img = null; 250 | public $font = null; 251 | 252 | private $userID; 253 | private $data = array(); 254 | 255 | const csBinary = 1; 256 | const csSI = 2; 257 | 258 | private $system = TorrentBar::csBinary; 259 | 260 | public $systems_data = array ( 261 | TorrentBar::csSI => array( 262 | 'b' => array( 'name'=>'B', 'val'=>1), 263 | 'kb' => array( 'name'=>'KB', 'val'=>1000), 264 | 'mb' => array( 'name'=>'MB', 'val'=>1000000), 265 | 'gb' => array( 'name'=>'GB', 'val'=>1000000000), 266 | 'tb' => array( 'name'=>'TB', 'val'=>1000000000000), 267 | 'pb' => array( 'name'=>'PB', 'val'=>1000000000000000), 268 | 'eb' => array( 'name'=>'EB', 'val'=>1000000000000000000), 269 | 'zb' => array( 'name'=>'ZB', 'val'=>1000000000000000000000), 270 | 'yb' => array( 'name'=>'YB', 'val'=>1000000000000000000000000) 271 | ), 272 | 273 | TorrentBar::csBinary => array( 274 | 'b' => array( 'name'=>'B', 'val'=>1), 275 | 'kib' => array( 'name'=>'KiB', 'val'=>1024), 276 | 'mib' => array( 'name'=>'MiB', 'val'=>1048576), 277 | 'gib' => array( 'name'=>'GiB', 'val'=>1073741824), 278 | 'tib' => array( 'name'=>'TiB', 'val'=>1099511627776), 279 | 'pib' => array( 'name'=>'PiB', 'val'=>1125899906842624), 280 | 'eib' => array( 'name'=>'EiB', 'val'=>1152921504606846976), 281 | 'zib' => array( 'name'=>'ZiB', 'val'=>1180591620717411303424), 282 | 'yib' => array( 'name'=>'YiB', 'val'=>1208925819614629174706176) 283 | ) 284 | ); 285 | 286 | public function __construct($user_id, $path_to_baselayerImage = '') { 287 | if ($path_to_baselayerImage != '') { 288 | $this->createBaseLayer($path_to_baselayerImage); 289 | } 290 | 291 | if ($user_id <= 0) { 292 | 293 | $this->throwException(__FUNCTION__, 1, 'user_id <= 0'); 294 | } 295 | $this->userID = $user_id; 296 | $this->getInfo(); 297 | } 298 | 299 | public function changeSystem($system) { 300 | $this->system = $system; 301 | } 302 | 303 | public function createBaseLayer($path_to_baselayerImage) { 304 | // if not exist throw exception 305 | $this->img = @imagecreatefrompng($path_to_baselayerImage) or $this->throwException(__FUNCTION__, 2, 'Can\'t create base layer image'); 306 | //imageAlphaBlending($this->img, true); 307 | imageSaveAlpha($this->img, true); 308 | } 309 | 310 | public function drawLayer($path_to_layerImage, $x = 0, $y = 0) { 311 | $layer = @imagecreatefrompng($path_to_layerImage) or $this->throwException(__FUNCTION__, 3, 'Can\'t create layer image'); 312 | @imagecopy($this->img, $layer, $x, $y, 0, 0, imagesx($layer), imagesy($layer)) or $this->throwException(__FUNCTION__, 4, 'Can\'t copy layer image to base layer image'); 313 | @imagedestroy($layer) or $this->throwException(__FUNCTION__, 5, 'Can\'t destroy temporary layer image'); 314 | } 315 | 316 | public function legacy_initFont($path_to_font) { 317 | $this->font = trck_BF_Load($path_to_font); 318 | } 319 | 320 | private function getInfo() { 321 | global $table_prefix; 322 | $this->mysql_init(); 323 | 324 | $query = "SELECT count(user_id) FROM " . $table_prefix . "users WHERE user_id = " . $this->userID; 325 | $result = @mysql_query($query) or $this->throwException(__FUNCTION__, 6, 'Can\'t select data'); 326 | $counter = @mysql_result($result, 0) or $this->throwException(__FUNCTION__, 7, 'Can\'t get result data'); 327 | mysql_free_result($result); 328 | 329 | if ($counter > 0) { 330 | $query = "SELECT u_up_total, u_down_total, u_up_release, u_up_bonus FROM " . $table_prefix . "bt_users WHERE user_id = " . $this->userID; 331 | $result = mysql_query($query) or $this->throwException(__FUNCTION__, 8, 'Can\'t select data'); 332 | 333 | while ($data = mysql_fetch_array($result)) 334 | { 335 | $this->data['upload_counter'] = $data['u_up_total']; 336 | $this->data['download_counter'] = $data['u_down_total']; 337 | $this->data['release_counter'] = $data['u_up_release']; 338 | $this->data['bonus_counter'] = $data['u_up_bonus']; 339 | $this->data['rating_counter'] = 0; 340 | if ($this->data['download_counter'] > 0) { 341 | $this->data['rating_counter'] = ($this->data['upload_counter'] + 342 | $this->data['bonus_counter'] + 343 | $this->data['release_counter']) / 344 | $this->data['download_counter']; 345 | } 346 | } 347 | } 348 | } 349 | 350 | private function mysql_init() { 351 | global $dbhost, $dbname, $dbuser, $dbpasswd; 352 | 353 | //echo $dbhost ."
". $dbname ."
". $dbuser ."
". $dbpasswd; 354 | if ($dbpasswd!='') { 355 | $link = @mysql_connect($dbhost, $dbuser, $dbpasswd) or $this->throwException(__FUNCTION__, 9, 'Can\'t connect to database'); 356 | } else { 357 | $link = @mysql_connect($dbhost, $dbuser) or $this->throwException(__FUNCTION__, 10, 'Can\'t connect to database'); 358 | } 359 | @mysql_select_db($dbname) or $this->throwException(__FUNCTION__, 11, 'Can\'t select database'); 360 | return $link; 361 | } 362 | 363 | public function getPostfixID($val) { 364 | $res = 'b'; 365 | foreach ($this->systems_data[$this->system] as $key=>$data) { 366 | //echo $key .'---'. $data ."!!!"; 367 | if ($val >= $data['val']) { 368 | //return $key; 369 | $res = $key; 370 | } else { 371 | break; 372 | } 373 | } 374 | return $res; 375 | } 376 | 377 | public function getPostfixName($postfix_id) { 378 | //echo $this->systems_data[$this->system][$postfix_id]['name']; 379 | return $this->systems_data[$this->system][$postfix_id]['name']; 380 | } 381 | 382 | public function roundValue($val) { 383 | $dot_pos = strpos((string) $val, "."); 384 | if ($dot_pos > 0) { 385 | return (string) round(substr((string) $val, 0, $dot_pos+1+2), 2); 386 | } else { 387 | return (string) $val; 388 | } 389 | } 390 | 391 | public function convertValue($val) { 392 | $postfix_id = $this->getPostfixID($val); 393 | return $val / $this->systems_data[$this->system][$postfix_id]['val']; 394 | } 395 | 396 | public function drawText($x, $y, $text) { 397 | $img = trck_BF_CreateTextWithStroke($this->font, $text); 398 | @imagecopy($this->img, $img, $x, $y, 0, 0, imagesx($img), imagesy($img)) or $this->throwException(__FUNCTION__, 12, 'Can\'t copy temporary image to base layer image'); 399 | } 400 | 401 | public function drawRating($x, $y) { 402 | $val = $this->roundValue($this->data['rating_counter']); 403 | $val = strval($val); 404 | $this->drawText($x, $y, $val); 405 | } 406 | 407 | public function drawUpload($x, $y, $draw_postfix = true) { 408 | $postfix_id = $this->getPostfixID($this->data['upload_counter']); 409 | $val = $this->convertValue($this->data['upload_counter']); 410 | $val = $this->roundValue($val); 411 | 412 | $val = strval($val); 413 | if ($draw_postfix) { 414 | $val .= " " . $this->getPostfixName($postfix_id); 415 | } 416 | $this->drawText($x, $y, $val); 417 | } 418 | 419 | public function drawDownload($x, $y, $draw_postfix = true) { 420 | $postfix_id = $this->getPostfixID($this->data['download_counter']); 421 | $val = $this->convertValue($this->data['download_counter']); 422 | $val = $this->roundValue($val); 423 | 424 | $val = strval($val); 425 | if ($draw_postfix) { 426 | $val .= " " . $this->getPostfixName($postfix_id); 427 | } 428 | $this->drawText($x, $y, $val); 429 | } 430 | 431 | public function useTemplate($template_name) { 432 | $allowed_letters = '1234567890QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm_'; 433 | 434 | if (! file_exists('templates/' . $template_name)) { 435 | $this->throwException(__FUNCTION__, 13, 'Template is not exist'); 436 | } 437 | 438 | for ($i = 0; $i < strlen($template_name); $i++) { 439 | $pos = strpos($allowed_letters, $template_name[$i]); 440 | 441 | if ($pos === false) { 442 | $this->throwException(__FUNCTION__, 14, 'Template name is not allowed'); 443 | } 444 | } 445 | 446 | return 'templates/' . $template_name . '/template.php'; 447 | } 448 | 449 | public function Finalize() { 450 | header("Content-type: image/png");// or $this->throwException(__FUNCTION__, 15, 'Can\'t send header'); 451 | @imagepng($this->img) or $this->throwException(__FUNCTION__, 16, 'Can\'t output image'); 452 | @imagedestroy($this->img) or $this->throwException(__FUNCTION__, 17, 'Can\'t destroy image'); 453 | //trck_BF_Unload($this->font); 454 | } 455 | 456 | public function changePostfixName($postfixID, $newName) { 457 | if (! isset($this->systems_data[$this->system][$postfixID])) { 458 | //throw Exception (Not exists) 459 | return null; 460 | } 461 | $this->systems_data[$this->system][$postfixID]['name'] = $newName; 462 | } 463 | 464 | private function throwException($function, $code, $message) { 465 | $E = new Exception('TorrentBar exception in ' . $function . ': ' . $message, $code); 466 | throw $E; 467 | } 468 | } 469 | 470 | //=========================================================================== 471 | // Main body 472 | //=========================================================================== 473 | 474 | $user_id = getParam(); 475 | $style_id = getStyle(); 476 | 477 | define('BB_ROOT', '1'); 478 | include($torrentpier_config_path); 479 | 480 | try { 481 | 482 | $torrentbar = new TorrentBar($user_id); 483 | $template = $torrentbar->useTemplate($style_id); 484 | include $template; 485 | $torrentbar->Finalize(); 486 | 487 | } catch(Exception $E) { 488 | echo $E->getMessage() . " (Code:" . $E->getCode() . ")"; 489 | } 490 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | 341 | --------------------------------------------------------------------------------