New stats page


New stats page - TorrentTrader Forums /* * Cascading Style Sheet(CSS 467), for Invision Power Board 2.2.0 * Author: James A. Mathias, admin@leihu.com, http://www.1lotus.com * Copyright: 2005 Invision Power Services, all rights reserved * * All style attributes in alpha-numeric order starting from 0 * */ /* * ======================================== * global element styles * ======================================== */ html{ overflow-x: auto; /* fixes MSIE scrollbar bug DO NOT REMOVE, has no effect in Mozilla, or Opera */ } body{ background: #FFF; color: #222; font-family: Verdana, Tahoma, Arial, "Trebuchet MS", Sans-Serif, Georgia, Courier, "Times New Roman", Serif; font-size: 11px; line-height: 135%; margin: 0px; padding: 0px; /* required for Opera to have 0 margin */ text-align: center; /* centers board in MSIE */ } /* * ======================================== * Set up IPB table * ======================================== */ .ipbtable { width:100% } table.ipbtable, tr.ipbtable, td.ipbtable { /* required for text in tables, because tables do not inherit from body */ background: transparent; color: #222; font-size: 11px; line-height: 135%; } .ipbtable td, .divpad{ /* gives all tables faux cellpadding of 5px */ padding: 5px; } td.nopad{ /* allows some tables to have no padding on the td */ padding: 0; } /* Safari... */ th { text-align: left; } form{ display: inline; margin: 0; /* removes mystery form tag gapping */ padding: 0; /* removes mystery form tag gapping */ } img{ border: 0; /* makes sure linked images do not have a border */ vertical-align: middle; } /* * ======================================== * global hyperlink styles * ======================================== */ a:link, a:visited, a:active{ background: transparent; color: #222; text-decoration: underline; } a:hover{ background: transparent; color: #34498B; } /* * ======================================== * Main wrapper, this controls the overall width of the board in you browser view window. * ======================================== */ #ipbwrapper{ margin: 20px auto 20px auto; /* centers the box, no matter the overall width, also applies a 20px gap at the top and bottom of the board */ text-align: left; /* re_aligns text to left second part of two part MSIE centering workaround */ /* EDIT THIS TO CHANGE THE WIDTH OF THE BOARD -> 960px is a common fixed resolution size */ width: 98%; } /* * ======================================== * styles for pagination links * ======================================== */ .pagelink, .pagelinklast, .pagecurrent, .minipagelink, .minipagelinklast{ background: #F0F5FA; border: 1px solid #072A66; padding: 1px 3px 1px 3px; } .pagelinklast, .minipagelinklast{ background: #DFE6EF; } .pagecurrent{ background: #FFC9A5; } .minipagelink, .minipagelinklast{ border: 1px solid #C2CFDF; font-size: 10px; margin: 0 1px 0 0; } .pagelink a:active, .pagelink a:visited, .pagelink a:link, .pagelinklast a:active, .pagelinklast a:visited, .pagelinklast a:link, .pagecurrent a:active, .pagecurrent a:visited, .pagecurrent a:link, .minipagelink a:active, .minipagelink a:visited, .minipagelink a:link, .minipagelinklast a:active, .minipagelinklast a:visited, .minipagelinklast a:link{ text-decoration: none; } /* fake button effect for some links */ .fauxbutton{ background: #BFCDE0; border: 1px solid #072A66; font-size: 11px; font-weight: bold; padding: 4px; } .fauxbutton a:link, .fauxbutton a:visited, .fauxbutton a:active{ color: #222 !important; text-decoration: none; } .forumdesc, .forumdesc a:link, .forumdesc a:visited, .forumdesc a:active{ background: transparent; font-size: 10px; color: #666; line-height: 135%; margin: 2px 0 0 0; padding: 0; } /* =================================================================================== */ /* =================================================================================== */ /* =================================================================================== */ .searchlite { background-color:yellow; font-weight:bold; color: red; } .activeusers{ background: #FFF; border: 1px solid #072A66; color: #000; margin: 0px; padding: 1px; } .activeuserposting a:link, .activeuserposting a:visited, .activeuserposting a:active, .activeuserposting { font-style:italic; text-decoration: none; border-bottom:1px dotted black; } fieldset.search{ line-height: 150%; padding: 6px; } label{ cursor: pointer; } img.attach{ background: #808080 url(style_images/1/click2enlarge.gif) no-repeat top right; border: 1px solid #808080; margin: 0 2px 0 0; padding: 11px 2px 2px 2px; } .thumbwrap, .thumbwrapp, .fullimagewrap { border: 1px solid #072A66; margin: 2px; } .thumbwrapp{ border: 2px solid #660707; } .fullimagewrap{ background: #F5F9FD; text-align: center; margin: 5px 0 5px 0; padding: 5px; } .thumbwrap h4, .thumbwrapp h4{ background: #DDE6F2; border: 0 !important; border-bottom: 1px solid #5176B5 !important; color: #5176B5; font-size: 12px; font-weight: bold; margin: 0; padding: 5px; } .thumbwrap p, .thumbwrapp p{ background: #EEF2F7 !important; border: 0 !important; border-top: 1px solid #5176B5 !important; margin: 0 !important; padding: 5px !important; text-align: left; } .thumbwrap p.alt, .thumbwrapp p.alt{ background: #DFE6EF !important; margin: 0 !important; padding: 5px !important; text-align: left; } .thumbwrapp p.pin{ background: #EFDFDF !important; text-align: center !important; } .thumbwrap img.galattach, .thumbwrapp img.galattach{ background: #FFF url(style_images/1/img_larger.gif) no-repeat bottom right; border: 1px solid #072A66; margin: 5px; padding: 2px 2px 10px 2px; } li.helprow{ margin: 0 0 10px 0; padding: 0; } ul#help{ padding: 0 0 0 15px; } .warngood, .warnbad{ color: #0B9500; font-weight: bold; } .warnbad{ color: #DD0000; } #padandcenter{ margin: 0 auto 0 auto; padding: 14px 0 14px 0; text-align: center; } #profilename{ font-size: 28px; font-weight: bold; } #photowrap{ padding: 6px; } #phototitle{ border-bottom: 1px solid #000; font-size: 24px; } #photoimg{ margin: 15px 0 0 0; text-align: center; } #ucpmenu, #ucpcontent{ background: #F5F9FD; border: 1px solid #345487; line-height: 150%; } #ucpmenu p{ margin: 0; padding: 2px 5px 6px 9px; } #ucpmenu a:link, #ucpmenu a:active, #ucpmenu a:visited{ text-decoration: none; } #ucpcontent{ width: auto; } #ucpcontent p{ margin: 0; padding: 10px; } .activeuserstrip{ background: #BCD0ED; padding: 6px; } /* Topic View elements */ .signature{ background: transparent; color: #339; font-size: 10px; line-height: 150%; } .postdetails{ font-size: 10px; line-height:140%; } .postcolor{ font-size: 12px; line-height: 160%; } .normalname{ color: #003; font-size: 12px; font-weight: bold; } .normalname a:link, .normalname a:visited, .normalname a:active{ font-size: 12px; } .post1, .bg1{ background: #F5F9FD; } .post2, .bg3{ background: #EEF2F7; } .row2shaded, .post1shaded { background-color: #DEDBE4 } .row4shaded, .post2shaded { background-color: #E3DFE7 } .row1{ background: #DFE6EF; } .row2{ background: #E4EAF2; } .rowhighlight{ background-color: #FFF9BA; } .darkrow1{ background: #BCD0ED; color: #3A4F6C; } .darkrow3{ background: #D1DCEB; color: #3A4F6C; } /* tableborders gives the white column / row lines effect */ .plainborder, .tablefill, .tablepad{ background: #F5F9FD; border: 1px solid #345487; } .tablefill, .tablepad{ padding: 6px; } .tablepad{ border: 0 !important; } .wrapmini{ float: left; line-height: 1.5em; width: 25%; } .pagelinks{ float: left; line-height: 1.2em; width: 35%; } .desc{ font-size: 11px; color: #434951; } .lastaction { font-size: 10px; color: #434951; } .edit{ font-size: 9px; } .thin{ border: 1px solid #FFF; border-left: 0; border-right: 0; line-height: 150%; margin: 2px 0 2px 0; padding: 6px 0 6px 0; } /* =================================================================================== */ /* =================================================================================== */ /* =================================================================================== */ /* * ======================================== * calendar styles * ======================================== */ .calmonths{ background: #F0F5FA; border: 1px solid #C2CFDF; font-size: 18px; font-weight: bold; margin: 5px 0 5px 0; padding: 8px; text-align: center; } .weekday{ font-size: 14px; font-weight: bold; } .calmonths a{ text-decoration: none; } .calday, .calweekday{ background: #DFE6EF; color: #666; font-size: 11px; font-weight: bold; margin: 0; padding: 4px; text-align: right; } .calweekday{ border-right: 1px solid #AAA; color: #222; font-size: 14px; padding: 6px; text-align: center; } .celltodayshaded, .celldateshaded, .cellblank, .celldate, .celltoday, .mcellblank, .mcelldate, .mcelltoday{ background: #EEF2F7; height: 100px; margin: 0; padding: 0; vertical-align: top; } .celltodayshaded, .celldateshaded { background: #E3DFE7; } .mcellblank, .mcelldate, .mcelltoday{ height: auto; } .cellblank, .mcellblank{ background: #C2CFDF; } .celltoday, .celltodayshaded, .mcelltoday{ border: 2px solid #8B0000; } .calranged { border: 2px outset #C2CFDF; background: #C2CFDF; padding:4px; } .calitem { border-bottom: 1px dotted #C2CFDF; padding:4px; } /* * ======================================== * form styles * ======================================== */ .input-warn, .input-green, .input-checkbox, input, textarea, select{ background: #FFF; border: 1px solid #4C77B6; color: #000; font-family: verdana, helvetica, sans-serif; font-size: 11px; margin: 5px; padding: 2px; vertical-align: middle; } select { margin: 0px; } .input-checkbox { border: none; } .input-warn, .input-warn-content { border: 1px solid #C00; } .input-ok, .input-ok-content { border: 1px solid #0C0; } .input-warn-content { padding: 4px; margin: 4px; background-color: #FCC; } .input-ok-content { padding: 4px; margin: 4px; background-color: #CFC; } .input-text { color: #900; } input.button{ margin: 0; width: auto; cursor: pointer; } optgroup option{ font-family: verdana, helvetica, sans-serif; font-size: 12px; } .codebuttons{ font-family: Verdana, Helvetica, Sans-Serif; font-size: 10px; vertical-align: middle; margin:2px; } .textarea, .searchinput, .button, .gobutton{ background: #FFF; border: 1px solid #4C77B6; color: #000; font-family: Verdana, Helvetica, Sans-Serif; font-size: 11px; padding: 2px; vertical-align: middle; } .button{ background: #DFE6EF; } .gobutton{ background: transparent; border: 0; color: #072A66; margin: 0; vertical-align: middle; } .radiobutton, .checkbox, .helpbox { border: 0; vertical-align: middle; background: transparent; } /* * class.formtable * * used for tabled forms * technically tables should not be used for form display * but, in the case of IPB a table is easier to work with * for the average webmaster, who has little to no CSS knowledge. * */ .formtable{ background: transparent; } .formtable td, .pformleft, .pformleftw, .pformright{ background:#F5F9FD; border: 1px solid #C2CFDF; border-bottom: 0; border-left: 0; font-weight: bold; margin: 1px 0 0 0; padding: 6px; width: 25%; } .formtable td.wider, .pformleftw, .pformright{ width: 40%; } .formtable td.formright, .pformright{ border-right: 0px; font-weight: normal; width: auto; } .formtable td.formtitle, .formsubtitle{ background: #D1DCEB; border: 1px solid #9FB9D4; border-bottom: 0; border-left: 0; border-right: 0; font-weight: normal; } .formsubtitle{ border: 0; color: #3A4F6C; font-weight: bold; padding: 5px; } .formtable td.formstrip{ background: #DDE8F2; border: 1px solid #9FB9D4; border-left: 0; border-right: 0; font-weight: normal; } /* * ======================================== * new style quote and code wrappers MATT's DESIGN * ======================================== */ .quotetop{ background: #E4EAF2 url(style_images/1/css_img_quote.gif) no-repeat right; border: 1px dotted #000; border-bottom: 0; border-left: 4px solid #8394B2; color: #000; font-weight: bold; font-size: 10px; margin: 2px auto 0 auto; padding: 3px; } .quotemain{ background: #FAFCFE; border: 1px dotted #000; border-left: 4px solid #8394B2; border-top: 0; color: #465584; padding: 4px; margin: 0 auto 0 auto; } .codetop, .sqltop, .htmltop{ background: #FDDBCC url(style_images/1/css_img_code.gif) no-repeat right; color: #000; font-weight: bold; margin: 0 auto 0 auto; padding: 3px; } .codemain, .sqlmain, .htmlmain{ background: #FAFCFE; border: 1px dotted #000; color: #465584; font-family: Courier, "Courier New", Verdana, Arial; margin: 0 auto 0 auto; padding: 2px; } /* * ======================================== * old school quote and code styles - backwards compatibility * ======================================== */ #QUOTE, #CODE{ background: #FAFCFE; border: 1px solid #000; color: #465584; font-family: Verdana, Arial; font-size: 11px; padding: 2px; white-space: normal; } #CODE{ font-family: Courier, "Courier New", Verdana, Arial; } /* * ======================================== * All New Styles * ======================================== */ .cleared{ clear: both; } .borderwrap, .borderwrapm{ /* this will affect the outlining border of all the tables and boxes through-out the skin. */ background: #FFF; border: 1px solid #072A66; padding: 0px; margin: 0px; } .borderwrapm{ margin: 5px; } .borderwrap h3, .maintitle, .maintitlecollapse{ background: url(style_images/1/tile_cat.gif); border: 1px solid #FFF; border-bottom: 1px solid #5176B5; color: #FFF; font-size: 12px; font-weight: bold; margin: 0px; padding: 8px; } .maintitle td { color: #FFF; font-size: 12px; font-weight: bold; } .maintitlecollapse{ border: 1px solid #FFF; } .maintitle p, .maintitlecollapse p, .formsubtitle p{ background: transparent !important; border: 0 !important; margin: 0 !important; padding: 0 !important; } .maintitle p.expand, .maintitle p.goto, .maintitlecollapse p.expand, .formsubtitle p.members{ float: right; width: auto !important; } .maintitle a:link, .maintitle a:visited, .maintitlecollapse a:link, .maintitlecollapse a:visited{ background: transparent; color: #FFF; text-decoration: none; } .maintitle a:hover, .maintitle a:active, .maintitlecollapse a:hover, .maintitlecollapse a:active{ background: transparent; color: #F1F1F1; } table th, .borderwrap table th, .subtitle, .subtitlediv, .postlinksbar{ background: transparent url(style_images/1/tile_sub.gif); border-bottom: 1px solid #5176B5; color: #3A4F6C; font-size: 10px; font-weight: bold; letter-spacing: 1px; margin: 0; padding: 5px; } .subtitlediv{ border: 1px solid #FFF; border-bottom: 1px solid #5176B5; text-align: right; } .borderwrap table th a:link, .subtitle a:link, .subtitlediv a:link, .borderwrap table th a:visited, .subtitle a:visited, .subtitlediv a:visited, .borderwrap table th a:active, .subtitle a:active, .subtitlediv a:active, .borderwrap table th a:hover, .subtitle a:hover, .subtitlediv a:hover{ background: transparent; color: #3A4F6C; text-decoration: none; } .borderwrap h4{ background: #DDE6F2; border: 1px solid #FFF; border-bottom: 1px solid #5176B5; border-top: 1px solid #5176B5; color: #5176B5; font-size: 12px; font-weight: bold; margin: 0; padding: 5px; } .borderwrap p{ background: #F9F9F9; border: 1px solid #CCC; margin: 5px; padding: 10px; text-align: left; } td.formbuttonrow, .pformstrip, .borderwrap p.formbuttonrow, .borderwrap p.formbuttonrow1{ background: #D1DCEB !important; border: 1px solid #FFF; border-top: 1px solid #5176B5; margin: 0px !important; padding: 5px !important; text-align: center; } td.formbuttonrow{ border-bottom: 0; border-left: 0; border-right: 0; } .borderwrap p.formbuttonrow1{ background: #F9F9F9 !important; border: 0; border-top: 1px solid #CCC; } .bar, .barb, .barc{ background: #DFE6EF; border: 1px solid #FFF; } .barc{ border-bottom: 0; } .bar p, .barb p, .barc p{ background: transparent; border: 0; color: #222; font-size: 11px; margin: 0; padding: 5px; text-align: left; } .barb p{ text-align: right; } .bar p.over, .bar p.overs, .barc p.over, .barc p.overs{ float: right; } .barb p.over, .barb p.overs{ float: left; } .bar p.overs, .barb p.overs, .barc p.overs{ position: relative; top: 5px; } .catend{ background: #8394B2; color: #000; font-size: 1px; height: 5px; } .newslink{ background: #F0F5FA; border: 1px solid #C2CFDF; margin: 0; width: 100%; } .newslink td{ color: #222; font-size: 10px; padding: 5px 5px 5px 10px; } .newslink span{ background: transparent; color: #072A66; font-style: italic; font-weight: normal; } .newslink input{ background: #FFF; border: 1px solid #999; color: #072A66; font-size: 10px; padding: 3px; vertical-align: middle; width: auto; } .newslink input.button{ background: transparent; border: 0; color: #072A66; vertical-align: middle; } .fieldwrap{ background: #F9F9F9; border: 1px solid #CCC; border-top: 0; margin: 5px; padding: 0; text-align: left; } .fieldwrap h4{ background: #EEE; border: 1px solid #CCC; border-left: 0; border-right: 0; color: #444; font-size: 12px; font-weight: bold; margin: 0; padding: 5px; } .errorwrap { background: #F2DDDD; border: 1px solid #992A2A; border-top: 0; margin: 5px; padding: 0; } .errorwrap h4 { background: #E3C0C0; border: 1px solid #992A2A; border-left: 0; border-right: 0; color: #992A2A; font-size: 12px; font-weight: bold; margin: 0; padding: 5px; } .errorwrap p { background: transparent; border: 0; color: #992A2A; margin: 0; padding: 8px; } .ruleswrap{ background: #F2DDDD; border: 1px solid #992A2A; color: #992A2A; margin: 5px 0 5px 0; padding: 5px; } #redirectwrap{ background: #F0F5FA; border: 1px solid #C2CFDF; margin: 200px auto 0 auto; text-align: left; width: 500px; } #redirectwrap h4{ background: #D0DDEA; border-bottom: 1px solid #C2CFDF; color: #3A4F6C; font-size: 14px; margin: 0; padding: 5px; } #redirectwrap p{ margin: 0; padding: 5px; } #redirectwrap p.redirectfoot{ background: #E3EBF4; border-top: 1px solid #C2CFDF; text-align: center; } #gfooter{ background: #8394B2; margin: 5px 0 5px 0; padding: 0; width: 100%; } #gfooter td{ color: #FFF; font-size: 10px; padding: 4px; } #gfooter a:link, #gfooter a:visited{ color: #FFF; } #logostrip{ background: #3860BB url(style_images/1/tile_back.gif); border: 1px solid #FFF; height: 68px; margin: 0; padding: 0; } #logographic{ background: transparent url(style_images/1/logo4.gif) no-repeat left; height: 68px; margin: 0; padding: 0; } #submenu{ background: transparent url(style_images/1/tile_sub.gif); border: 1px solid #FFF; border-top: 0; color: #3A4F6C; margin: 0; height: 29px; text-align: right; } .ipb-top-left-link, .ipb-top-right-link { background: transparent url(style_images/1/tile_sub-lite.gif); float: right; font-size: 10px; font-weight: bold; letter-spacing: 0.5px; margin: 0px; padding: 7px 0 7px 0; width: auto; border-left: 1px solid #dce3ee; } .ipb-top-left-link { float: left; border-left: 0px; border-right: 1px solid #dce3ee; } .ipb-top-left-link a:link, .ipb-top-left-link a:visited, .ipb-top-right-link a:link, .ipb-top-right-link a:visited { background: transparent; color: #3A4F6C; padding: 0 6px 0 6px; text-decoration: none; } .ipb-top-left-link a:hover, .ipb-top-left-link a:active, .ipb-top-right-link a:hover, .ipb-top-right-link a:active { background: transparent; color: #5176B5; } #userlinks, #userlinksguest{ background: #F0F5FA; border: 1px solid #C2CFDF; margin: 5px 0 5px 0; padding: 0 5px 0 5px; } #userlinksguest{ background: #F4E7EA; border: 1px solid #986265; } #userlinks p, #userlinksguest p{ background: transparent !important; border: 0 !important; font-size: 10px; font-weight: bold; letter-spacing: 1px; margin: 0 !important; padding: 7px 0 7px 0; text-align: right; } #userlinks p, #userlinksguest p{ font-weight: normal; letter-spacing: 0; } #userlinksguest p.pcen{ text-align: center; } #userlinks p.home, #userlinksguest p.home{ float: left; } #navstrip{ background: transparent; color: #999; font-size: 12px; font-weight: bold; margin: 0 0 5px 0; padding: 14px 0px 8px 0px; } #navstrip a:link, #navstrip a:visited{ background: transparent; color: #222; text-decoration: none; } #navstrip a:hover, #navstrip a:active{ background: transparent; color: #5176B5; } .toplinks{ background: transparent; color: #000; margin: 0; padding: 0 0 5px 0; text-align: right; } .toplinks span{ background: #F0F5FA; border: 1px solid #C2CFDF; border-bottom: 0; color: #000; font-size: 10px; font-weight: bold; margin: 0 10px 0 0; padding: 5px; } .copyright{ background: #EEE; font-size: 11px; margin: 0 0 5px 0; padding: 8px; } /* * ======================================== * print page styles * ======================================== */ #print{ margin: 20px auto 20px auto; padding: 0; text-align: left; width: 85%; } #print h1, #print h2, #print h3, #print h4, #print p{ color: #036; font-size: 18px; font-weight: bold; margin: 0; padding: 8px; } #print h2, #print h3, #print p{ border-bottom: 1px solid #999; font-size: 11px; font-weight: normal; } #print h3{ background: #F5F5F5; font-size: 12px; font-weight: bold; margin: 0 0 10px 0; } #print h4{ background: #F9F9F9; font-size: 11px; } #print p{ margin: 0 0 5px 0; padding: 10px; } #print p.printcopy{ border: 0; color: #000; text-align: center; } .dny-edit-title { border:0px; padding:3px; margin:0px; background: #D1DCEB; color: #3A4F6C; } /* ======================================== */ /* TABS /* ======================================== */ .tabon { border-top:1px solid #999; border-left:1px solid #999; border-right:1px solid #999; background-color:#FFF; padding:8px; padding-bottom:9px; font-size:10px; float:left; width:auto; margin-top:3px; } .taboff { border-top: 1px solid #777; border-left: 1px solid #777; border-right: 1px solid #777; background-color: #B5C3D9; color: #333; padding: 8px; font-size:10px; float: left; width: auto; margin-top:3px; } .tabon a:link, .tabon a:visited, .tabon a:active { text-decoration:none; color: #000; } .taboff a:link, .taboff a:visited, .taboff a:active { text-decoration:none; color: #333; } .mya-back { background: #072A66; margin:1px; padding: 1px; } .mya-content { background: #FFF; padding:8px; margin: 1px; border: 1px solid #777; } .mya-content-tbl { background: #F0F5FA; border: 1px solid #777; text-align:left; font-size:10px; white-space:nowrap; margin:1px; } .mya-fieldwrap { background: transparent; margin-top: 2px; margin-bottom: 2px; padding: 4px; border: 1px solid #C5C7CD; -moz-border-radius: 5px; width: auto; display: block; } /* -------------------------------- */ /* Create PM box defaults */ /* -------------------------------- */ .iframeshim { position:absolute; display:none; background: #FFF; border:0px; width:auto; height:auto; } /* -------------------------------- */ /* Experimental */ /* -------------------------------- */ .popupmenu, .popupmenu-new { background: #F0F5FA; border: 1px solid #3A4F6C; text-align:left; font-size:10px; white-space:nowrap; /*padding:3px 5px 3px 3px;*/ /*width:300px;*/ } .popupmenu-item { padding: 5px; /*margin-top:4px;*/ white-space: nowrap; border-bottom: 1px solid #C2CFDF; color: #000000; font-weight: normal; } .popupmenu-item-last { padding: 5px; /*margin-top:4px;*/ white-space: nowrap; color: #000000; font-weight: normal; } .popmenubutton-new, .popmenubutton { width:120px; white-space:nowrap; background-color: #C2CFDF; border:1px solid #3A4F6C; color: #3A4F6C; font-weight:bold; float:right; height:18px; text-align:center; margin:0px; font-size:11px; padding:3px; } .popmenubutton-new { float:none; width:auto; text-align:left; height:auto; padding:3px; font-weight:normal; background-color:#EEF2F7; background-image: url(style_images/1/menu_action_down-padded.gif); background-repeat: no-repeat; background-position: right; } .popmenubutton-new-out { padding:4px; } .popupmenu-new { background-color: #DFE6EF; } .popmenubutton a:link, .popmenubutton a:visited, .popmenubutton-new a:link, .popmenubutton-new a:visited, .popupmenu-item a:link, .popupmenu-item a:visited, .popupmenu-item-last a:link, .popupmenu-item-last a:visited { color: #3A4F6C; text-decoration: none; } .popmenubutton a:hover, .popmenubutton-new a:hover, .popupmenu-item a:hover, .popupmenu-item-last a:hover { color: #5176B5; text-decoration: none; } .popupmenu-category { background: transparent url(style_images/1/tile_sub.gif); border-top: 1px solid #5176B5; border-bottom: 1px solid #5176B5; color: #3A4F6C; font-size: 10px; font-weight: bold; letter-spacing: 1px; margin: 0; padding: 5px; } /* -------------------------------- */ /* Loading box /* -------------------------------- */ #loading-layer-inner { width:220px; height:28px; padding:18px 10px 10px 10px; text-align:center; color: #000; border: 1px solid; border-color:#CCC #666 #666 #CCC; background-color: #FCF8C7; } /* -------------------------------- */ /* Message in a bo(x|ttle) /* -------------------------------- */ #ipd-msg-wrapper { display: none; width: 220px; } #ipd-msg-inner { width:100%; height:45px; padding: 6px 4px 4px 4px; margin: 0px; text-align:center; color: #000; border: 1px solid; border-color:#ccc #666 #666 #ccc; background-color: #FCF8C7; filter:alpha(opacity=75); opacity:.75 } #ipd-msg-title { width: 100%; height:20px; margin: 0px; padding: 6px 4px 4px 4px; background: transparent url(style_images/1/css_pp_header.gif); border: 1px solid #3A4F6C; border-bottom: 0px; color: #FFF; } .linked-image { margin: 0px; padding: 0px; border: 0px; } .resized-linked-image { margin: 1px 0px 0px 0px; padding: 0px; background-color: #000; border: 0px; color: #FFF; font-size: 10px; width: auto; -moz-border-radius-topleft: 7px; -moz-border-radius-topright: 7px; } .resized-linked-image-zoom { width: 200px; height: 30px; filter:alpha(opacity=85); opacity:.85; background-color: #FFF; padding-top: 6px; padding-left: 5px; top: 0px; left: 0px; position: absolute; display: none; } /* -------------------------------- */ /* Edit post reason /* -------------------------------- */ .post-edit-reason { background: #E7EAEF; margin-top: 9px; margin-bottom: 0px; padding: 4px; color: #333; font-size: 10px; border: 1px solid #C5C7CD; -moz-border-radius: 5px; width: auto; display: block; } /* -------------------------------- */ /* Personal Profile /* -------------------------------- */ .pp-name { background: #F0F5FA; border: 1px solid #C2CFDF; margin: 0px; padding: 10px; } .pp-name h3 { margin:0px; padding:0px 0px 5px 0px; font-size:24px; } .pp-header { background: transparent url(style_images/1/tile_sub.gif); color: #3A4F6C; font-size: 10px; font-weight: bold; margin: 0px 0px 1px 0px; padding: 5px; } .pp-title { background: url(style_images/1/css_pp_header.gif); border-bottom: 1px solid #5176B5; color: #FFF; font-size: 12px; font-weight: bold; margin: 0px; padding: 8px; } .pp-datebox { text-align: center; background: #FFFFFF; border: 1px solid #555555; padding: 4px; margin: 0px; font-size:18px; font-weight:bold; line-height: 100%; letter-spacing: -1px; float:right; width: auto; } .pp-datebox em { color: #AAA; font-weight: normal; font-style: normal; } .pp-contentbox-back { background-image: url(style_images/1/folder_profile_portal/pp-css-contentblock.gif); background-repeat: repeat-x; background-color: #ACBFD9; padding: 6px; } .pp-contentbox-entry, .pp-contentbox-entry-noheight, .pp-contentbox-entry-noheight-mod, .pp-contentbox-entry-noheight-sel { background-color: #EEF2F7; border: 1px solid #888888; line-height: 140%; padding: 8px; margin-bottom: 6px; height: 200px; overflow: auto; overflow-x: auto; } .pp-contentbox-entry-noheight-sel { background-color:#FCECCD; } .pp-contentbox-entry-noheight-mod { background-color:#FDF1DA; } .pp-contentbox-entry-noheight, .pp-contentbox-entry-noheight-mod, .pp-contentbox-entry-noheight-sel { height: auto; margin-bottom: 1px; } .pp-image-thumb-wrap, .pp-image-thumb-wrap-floatright, .pp-image-mini-wrap, .pp-image-mini-wrap-floatright { width: 52px; height: 52px; text-align: center; background: #FFFFFF; border: 1px solid #555555; padding: 4px; margin-top: auto; margin-bottom: auto; } .pp-image-mini-wrap, .pp-image-mini-wrap-floatright { width: 27px; height: 27px; margin-top: auto; margin-bottom: auto; } .pp-image-thumb-wrap-floatright, .pp-image-mini-wrap-floatright { float:right; } .pp-tiny-text { color: gray; font-size: 10px; } .pp-mini-content-entry, .pp-mini-content-entry-noheight, .pp-mini-entry-noheight-shaded { background-color: #F5F9FD; padding: 6px; border-bottom: 1px dotted #555555; clear:both; width: auto; height: 60px; } .pp-mini-entry-noheight-shaded { background-color: #E3DFE7; } .pp-mini-content-entry-noheight, .pp-mini-entry-noheight-shaded { height: auto; } .pp-tabclear, .pp-maintitle { background: url(style_images/1/css_pp_header.gif); border: 1px solid #FFF; border-bottom: 1px solid #5176B5; color: #FFF; font-size: 12px; font-weight: bold; margin: 0px; padding: 8px; } .pp-tabclear { border:0px; border-right: 1px solid #072A66; border-left: 1px solid #072A66; } .pp-tabon { border-top:1px solid #3363A1; border-left:1px solid #072A66; border-right:1px solid #072A66; background-color:#6696D6; color:#FFFFFF; padding:8px; float:left; width:auto; background-image: url(style_images/1/css_pp_tab_on.gif); background-repeat: repeat-x; background-position: left bottom; margin-top:3px; font-size:10px; } .pp-taboff, .pp-tabshaded { border-top: 1px solid #759BC7; border-left: 1px solid #759BC7; border-right: 1px solid #759BC7; background-color: #3363A1; color: #3363A1; padding:8px; float: left; width: auto; background-image: url(style_images/1/css_pp_tab_off.gif); background-repeat: repeat-x; background-position: left bottom; margin-top:3px; font-size:10px; } .pp-tabshaded { background-image: url(style_images/1/css_pp_tab_shaded.gif); background-repeat: repeat-x; background-position: left bottom; color: #516795; border-top: 1px solid #7f9BBC; border-left: 1px solid #7f9BBC; border-right: 1px solid #7f9BBC; } .pp-tabon a:link, .pp-tabon a:visited, .pp-tabon a:active { text-decoration:none; color: #FFFFFF; } .pp-taboff a:link, .pp-taboff a:visited, .pp-taboff a:active, .pp-tabshaded a:link, .pp-tabshaded a:visited, .pp-tabshaded a:active { text-decoration:none; color: #3363A1; } .pp-tabwrap { height: 34px; margin:0px; padding:0px; } @import url( "http://www.torrenttrader.org/style_images/1/folder_editor_images/css_rte.css" ); // // Features Forums SourceForge Download Premium Support Custom Services VBTT VBTT Download Help Search Members Calendar Search this forum only? More Search Options ipsmenu.register( "ipb-tl-search", 'document.getElementById("ipb-tl-search-box").focus();' ); gbl_check_search_box(); [X] My Assistant Loading. Please Wait...   Site Message (Message will auto close in 2 seconds) Logged in as: small_bigguy ( Log Out ) My Controls · View New Posts · My Assistant · My Friends · 0 New Messages  TorrentTrader Forums > TorrentTrader PREMIUM > PREMIUM BETA Source Codes //   All future TorrentTrader releases will be posted here at least ONE WEEK before general public release.Please remember that all hacks and modifications found in the premium area are for premium members only.DO NOT DISTRIBUTE!

   New stats page Options Torrential-Storm... Torrential-Storm.co.uk View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25678", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 11 2007, 08:18 PM Post #1 Official Developer/Moderator Group: Official Developer Posts: 3,085 Joined: 27-September 05 From: http://www.TorrentialStorm.net Member No.: 10 extras-stats.php:CODE<?phpob_start("ob_gzhandler");require_once("backend/functions.php");dbconn(false);loggedinorreturn();function donortable($res, $frame_caption) {    print ("<div align=center><B>$frame_caption </B><BR>");    if (mysql_num_rows($res) > 0) {        print("<table border=1 cellspacing=0 cellpadding=2 class=table_table>\n");        echo "<tr>";        echo "<td class=table_head width=40>" . ACCOUNT_RANK . "</td>";        echo "<td class=table_head align=left>" . ACCOUNT_USER . "</td>";        echo "<td class=table_head align=right width=100>Donated</td>";        echo "</tr>";        $num = 0;        while ($a = mysql_fetch_assoc($res)) {            ++$num;            print("<tr><td class=table_col1>$num</td><td class=table_col2 align=left><a href=account-details.php?id=$a[id]><b>$a[username]</b></td><td align=right class=table_col1>$a[donated]</td></tr>\n");        }        echo "</table></div>";    } else {        echo "<font color=red>" . NOTHING_TO_SHOW . "</font></div>";    }}function usertable($res, $frame_caption) {    global $CURUSER;    begin_frame($frame_caption, true);    begin_table();?><tr><td class=ttable_head width=60 align=center>Rank</td><td class=ttable_head align="left">User</td><td class=ttable_head align="right">Uploaded</td><td class=ttable_head align="right">UL speed</td><td class=ttable_head align="right">Downloaded</td><td class=ttable_head align="right">DL speed</td><td class=ttable_head align="right">Ratio</td><td class=ttable_head align="center">Joined</td></tr><?    $num = 0;    while ($a = mysql_fetch_assoc($res)) {        ++$num;        $highlight = $CURUSER["id"] == $a["userid"] ? "" : "";        if ($a["downloaded"]) {            $ratio = $a["uploaded"] / $a["downloaded"];            $color = get_ratio_color($ratio);            $ratio = number_format($ratio, 2);            if ($color)                $ratio = "<font color=\"$color\">$ratio</font>";        } else            $ratio = "Inf.";        print("<tr$highlight><td class=\"rowhead\" align=\"center\">$num</td>            <td class=\"rowhead\" align=\"left\" $highlight><a href=\"account-details.php?id=" . $a["userid"] . "\" /><b>" . $a["username"] . "</b>" . "</td>            <td class=\"rowhead\" align=\"right\" $highlight>" . mksize($a["uploaded"]) . "</td>            <td class=\"rowhead\" align=\"right\" $highlight>" . mksize($a["upspeed"]) . "/s" . "</td>            <td class=\"rowhead\" align=\"right\" $highlight>" . mksize($a["downloaded"]) . "</td>            <td class=\"rowhead\" align=\"right\" $highlight>" . mksize($a["downspeed"]) . "/s" . "</td>            <td class=\"rowhead\" align=\"right\" $highlight>" . $ratio . "</td>            <td class=\"rowhead\" align=\"center\">" . gmdate("Y-m-d",strtotime($a["added"])) . " (" .            get_elapsed_time(sql_timestamp_to_unix_timestamp($a["added"])) . " ago)</td></tr>");    }    end_table();    end_frame();}function _torrenttable($res, $frame_caption) {    begin_frame($frame_caption, true);    begin_table();?><tr><td class=ttable_head width=60 align=center>Rank</td><td class=ttable_head align="left">Name</td><td class=ttable_head align="right">Snatched</td><td class=ttable_head align="right">Data</td><td class=ttable_head align="right">Seeders</td><td class=ttable_head align="right">Leechers</td><td class=ttable_head align="right">Peers</td><td class=ttable_head align="right">Ratio</td></tr><?    $num = 0;    while ($a = mysql_fetch_assoc($res)) {        ++$num;        if ($a["leechers"]) {            $r = $a["seeders"] / $a["leechers"];            $ratio = "<font color=\"" . get_ratio_color($r) . "\">" . number_format($r, 2) . "</font>";        } else            $ratio = "Inf.";        print("<tr>            <td class=\"rowhead\" align=\"center\">$num</td>            <td class=\"rowhead\" align=\"left\"><a href=\"torrents-details.php?id=" . $a["id"] . "&hit=1\"><b>" . $a["name"] . "</b></a></td>            <td class=\"rowhead\" align=right>" . number_format($a["times_completed"]) . "</td>            <td class=\"rowhead\" align=\"right\">" . mksize($a["data"]) . "</td>            <td class=\"rowhead\" align=\"right\">" . number_format($a["seeders"]) . "</td>            <td class=\"rowhead\" align=\"right\">" . number_format($a["leechers"]) . "</td>            <td class=\"rowhead\" align=\"right\">" . ($a["leechers"] + $a["seeders"]) . "</td>            <td class=\"rowhead\" align=\"right\">$ratio</td>\n");    }    end_table();    end_frame();}function countriestable($res, $frame_caption, $what) {    global $CURUSER;    begin_frame($frame_caption, true);    begin_table();?><tr><td class=ttable_head width=60 align=center>Rank</td><td class=ttable_head align="left">Country</td><td class=ttable_head align="right"><?=$what?></td></tr><?    $num = 0;    while ($a = mysql_fetch_assoc($res)) {        ++$num;        if ($what == "Users")            $value = number_format($a["num"]);        elseif ($what == "Uploaded")            $value = mksize($a["ul"]);        elseif ($what == "Average")            $value = mksize($a["ul_avg"]);        elseif ($what == "Ratio")            $value = number_format($a["r"],2);        print("<tr><td class=\"rowhead\" align=\"center\">$num</td>            <td class=\"rowhead\" align=\"left\"><table border=\"0\" class=\"main\" cellspacing=\"0\" cellpadding=\"0\"><tr>            <td class=\"embedded\">" . "<img align=\"middle\" src=\"images/flag/$a[flagpic]\" alt=\"\" /></td>            <td class=\"embedded\"><b>$a[name]</b></td>" . "</tr></table></td><td class=\"rowhead\" align=\"right\">$value</td></tr>\n");    }    end_table();    end_frame();}function postertable($res, $frame_caption) {    print ("<div align=center><B>$frame_caption </B><BR>");    if (mysql_num_rows($res) > 0) {        print("<table border=1 cellspacing=0 cellpadding=2 class=table_table>\n");        echo "<tr>";        echo "<td class=table_head width=40>" . ACCOUNT_RANK . "</td>";        echo "<td class=table_head align=left>" . ACCOUNT_USER . "</td>";        echo "<td class=table_head align=right width=100>Torrents</td>";        echo "</tr>";        $num = 0;        while ($a = mysql_fetch_assoc($res)) {            ++$num;            print("<tr><td class=table_col1>$num</td><td class=table_col2 align=left><a href=account-details.php?id=$a[id]><b>$a[username]</b></td><td align=right class=table_col1>$a[num]</td></tr>\n");        }        echo "</table></div>";    } else {        echo "<font color=red>" . NOTHING_TO_SHOW . "</font></div>";    }}stdhead("Top 10");begin_frame("Site Statistics, Top Ten");    $type = isset($_GET["type"]) ? 0 + $_GET["type"] : 0;    if (!in_array($type,array(1,2,3,4)))        $type = 4;    $limit = isset($_GET["lim"]) ? 0 + $_GET["lim"] : false;    $subtype = isset($_GET["subtype"]) ? $_GET["subtype"] : false;    print("<p align=\"center\">"  .        ($type == 4 && !$limit ? "<b>{$GLOBALS['SITENAME']}</b>" : "<a href=\"extras-stats.php?type=4\">{$GLOBALS['SITENAME']}</a>") .    " | " .        ($type == 1 && !$limit ? "<b>Users</b>" : "<a href=\"extras-stats.php?type=1\">Users</a>") .    " | " .        ($type == 2 && !$limit ? "<b>Torrents</b>" : "<a href=\"extras-stats.php?type=2\">Torrents</a>") . " | " .        ($type == 3 && !$limit ? "<b>Countries</b>" : "<a href=\"extras-stats.php?type=3\">Countries</a>") . "</p>\n");    $pu = get_user_class() >= UC_POWER_USER;  if (!$pu)      $limit = 10;  if ($type == 4) {        begin_frame("Hall Of Fame");        $r = mysql_query("SELECT users.id, users.username, COUNT(torrents.owner) as num FROM torrents LEFT JOIN users ON users.id = torrents.owner GROUP BY owner ORDER BY num DESC LIMIT 10") or sqlerr();        postertable($r, "Top 10 Posters</font>");        echo "<br>";        $r = mysql_query("SELECT * FROM users ORDER BY donated DESC, username LIMIT 10") or die;        donortable($r, "Top 10 Donors");        echo "<br>";        $r = mysql_query("SELECT users.id, users.username, COUNT(peers.seeder) as num FROM peers LEFT JOIN users ON users.id=peers.userid WHERE peers.seeder='yes' GROUP BY peers.userid ORDER BY num DESC LIMIT 10") or sqlerr();        postertable($r, "Top 10 Seeders (Based on the number of seeded torrents.)</font>");        $r = mysql_query("SELECT users.id, users.username, COUNT(peers.seeder) as num FROM peers LEFT JOIN users ON users.id=peers.userid WHERE peers.seeder='no' GROUP BY peers.userid ORDER BY num DESC LIMIT 10") or sqlerr();        echo "<br>";        postertable($r, "Top 10 Leechers (Based on the number of leeching torrents.)</font>");        end_frame();        echo "<br><br>";        begin_frame("Site Stats");        $male = number_format(get_row_count("users", "WHERE gender='Male'"));        $female = number_format(get_row_count("users", "WHERE gender='Female'"));        $registered = number_format(get_row_count("users", "WHERE status='confirmed'"));        $peers = number_format(get_row_count("peers"));        $unverified = number_format(get_row_count("users", "WHERE status='pending'"));        $torrents = number_format(get_row_count("torrents", "WHERE visible='yes'"));        $smart = number_format(get_row_count("peers", "WHERE connectable='yes'"));        $stupid = number_format(get_row_count("peers", "WHERE connectable='no'"));        $leechers123 = number_format(get_row_count("users", "WHERE class='1'"));        $secret = number_format(get_row_count("users", "WHERE class='4'"));        $warn = number_format(get_row_count("users", "WHERE warned='yes'"));        $banned = number_format(get_row_count("users", "WHERE enabled='no'"));        $r = mysql_query("SELECT value_u FROM avps WHERE arg='seeders'") or sqlerr(__FILE__, __LINE__);        $a = mysql_fetch_row($r);        $seeders = 0 + $a[0];        $r = mysql_query("SELECT value_u FROM avps WHERE arg='leechers'") or sqlerr(__FILE__, __LINE__);        $a = mysql_fetch_row($r);        $leechers = 0 + $a[0];        $seeders = get_row_count("peers", "WHERE seeder='yes'");        $leechers = get_row_count("peers", "WHERE seeder='no'");        if ($leechers == 0)            $totratio = 0;        else            $totratio = round($seeders / $leechers * 100);        $peers = number_format($seeders + $leechers);        $seeders = number_format($seeders);        $leechers = number_format($leechers);        $result = mysql_query("SELECT SUM(downloaded) AS totaldl FROM users") or sqlerr(__FILE__, __LINE__);        while ($row = mysql_fetch_array ($result)) {            $totaldownloaded = $row["totaldl"];        }        $result = mysql_query("SELECT SUM(uploaded) AS totalul FROM users") or sqlerr(__FILE__, __LINE__);        while ($row = mysql_fetch_array ($result)) {            $totaluploaded = $row["totalul"];        }$result = mysql_query("SELECT SUM(donated) AS totaldon FROM users") or sqlerr(__FILE__, __LINE__);while ($row = mysql_fetch_array ($result)){$totaldonated = $row["totaldon"];}        print("<table width=560><tr><td class=tabletitle align=left><b>User Info</b></td></tr></table>\n"); ?>        <table width=560 class=tableb border=0 cellspacing=0 cellpadding=3>        <?print("<tr><td class=tableb> " . REGISTEREDUSERS . "</td><td class=tableb> $registered</td></tr>\n");print("<tr><td class=tableb> Pending users</td><td class=tableb> $unverified</td></tr>\n");print("<tr><td class=tableb> Male users</td><td class=tableb> $male</td></tr>\n");print("<tr><td class=tableb> Female users</td><td class=tableb> $female</td></tr>\n");print("<tr><td class=tableb> Secret Class</td><td class=tableb> $secret</td></tr>\n");print("<tr><td class=tableb> Leechers Class</td><td class=tableb> $leechers123</td></tr>\n");print("<tr><td class=tableb> Banned Users<img src=images/disabled.gif></td><td class=tableb> $banned</td></tr>\n");print("<tr><td class=tableb> Warned Users<img src=images/warned.gif></td><td class=tableb> $warn</td></tr>\n");print("<tr><td class=tableb> Total Donations</td><td class=tableb> $$totaldonated</td></tr>\n");print("<tr><td class=tableb> Total upload</td><td class=tableb> ".mksize($totaluploaded)."</td></tr>\n");        ?>        </table> <br>        <?        print("<table width=560><tr><td class=tabletitle align=left><b>Torrent Info</b></td></tr></table>\n"); ?>        <table width=560 class=tableb border=0 cellspacing=0 cellpadding=3>        <?print("<tr><td class=tableb> " . TORRENTS . "</td><td class=tableb> $torrents</td></tr>\n");print("<tr><td class=tableb> Peers</td><td class=tableb> $peers</td></tr>\n");print("<tr><td class=tableb> Clever Users</td><td class=tableb> $smart</td></tr>\n");print("<tr><td class=tableb> Dumb Users</td><td class=tableb> $stupid</td></tr>\n");print("<tr><td class=tableb> Seeders</td><td class=tableb> $seeders</td></tr>\n");print("<tr><td class=tableb> Leechers</td><td class=tableb> $leechers</td></tr>\n");; ?>        </table>        <br>        <?        print("<table width=560><tr><td class=tabletitle align=left><b>Monthly Registration Chart</b></td></tr></table>\n");        echo '<table width=560 cellpadding=3><tr><td><b>'.(isset($month) ? 'Day':'Month').'</b></td><td><b>Users</b></td></tr>';        $res = mysql_query('SELECT RPAD(added,'.(isset($month) ? '10':'7').',"") AS date,COUNT(RPAD(added,'.(isset($month) ? '10':'7').',"")) AS count FROM users '.(isset($month) ? 'WHERE status = confirmed AND added LIKE "'.$month.'-%" ':'').' GROUP BY date ORDER BY date DESC');        while($users = mysql_fetch_assoc($res)) {            echo '<tr width=560><td class=tableb width=50% align=left>'.$users['date'].'</td><td class=tableb>'.$users['count'].'</td></tr>';        }        echo '</table>';    end_frame();}  if ($type == 1) {    $mainquery = "SELECT id as userid, username, added, uploaded, downloaded, uploaded / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(added)) AS upspeed, downloaded / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(added)) AS downspeed FROM users WHERE enabled = 'yes'";      if (!$limit || $limit > 250)          $limit = 10;      if ($limit == 10 || $subtype == "ul")      {            $order = "uploaded DESC";            $r = mysql_query($mainquery . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Uploaders" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=ul\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=ul\">Top 250</a>]</font>" : ""));      }    if ($limit == 10 || $subtype == "dl")      {            $order = "downloaded DESC";          $r = mysql_query($mainquery . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Downloaders" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=dl\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=dl\">Top 250</a>]</font>" : ""));      }    if ($limit == 10 || $subtype == "uls")      {            $order = "upspeed DESC";            $r = mysql_query($mainquery . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Fastest Uploaders <font class=\"small\">(average, includes inactive time)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=uls\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=uls\">Top 250</a>]</font>" : ""));      }    if ($limit == 10 || $subtype == "dls")      {            $order = "downspeed DESC";            $r = mysql_query($mainquery . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Fastest Downloaders <font class=\"small\">(average, includes inactive time)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=dls\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=dls\">Top 250</a>]</font>" : ""));      }    if ($limit == 10 || $subtype == "bsh")      {            $order = "uploaded / downloaded DESC";            $extrawhere = " AND downloaded > 1073741824";          $r = mysql_query($mainquery . $extrawhere . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Best Sharers <font class=\"small\">(with minimum 1 GB downloaded)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=bsh\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=bsh\">Top 250</a>]</font>" : ""));        }    if ($limit == 10 || $subtype == "wsh")      {            $order = "uploaded / downloaded ASC, downloaded DESC";          $extrawhere = " AND downloaded > 1073741824";          $r = mysql_query($mainquery . $extrawhere . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Worst Sharers <font class=\"small\">(with minimum 1 GB downloaded)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=wsh\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=wsh\">Top 250</a>]</font>" : ""));      }  }  elseif ($type == 2)  {       if (!$limit || $limit > 50)          $limit = 10;       if ($limit == 10 || $subtype == "act")      {          $r = mysql_query("SELECT t.*, (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' GROUP BY t.id ORDER BY seeders + leechers DESC, seeders DESC, added ASC LIMIT $limit") or sqlerr();          _torrenttable($r, "Top $limit Most Active Torrents" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=2&lim=25&subtype=act\">Top 25</a>] - [<a href=\"extras-stats.php?type=2&lim=50&subtype=act\">Top 50</a>]</font>" : ""));      }       if ($limit == 10 || $subtype == "sna")       {        // $r = mysql_query("SELECT t.*, (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' GROUP BY t.id ORDER BY times_completed DESC LIMIT $limit") or sqlerr();        $r = mysql_query("SELECT * FROM `torrents` ORDER BY `torrents`.`times_completed` DESC LIMIT 10") or sqlerr();        _torrenttable($r, "Top $limit Most Snatched Torrents" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=2&lim=25&subtype=sna\">Top 25</a>] - [<a href=\"extras-stats.php?type=2&lim=50&subtype=sna\">Top 50</a>]</font>" : ""));      }       if ($limit == 10 || $subtype == "bse")       {        //          $r = mysql_query("SELECT t.*, (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' AND seeders >= 5 GROUP BY t.id ORDER BY seeders / leechers DESC, seeders DESC, added ASC LIMIT $limit") or sqlerr();        $r = mysql_query("SELECT * FROM torrents WHERE seeders >= 5 ORDER BY seeders / leechers DESC, seeders DESC, added ASC LIMIT $limit") or sqlerr();          _torrenttable($r, "Top $limit Best Seeded Torrents <font class=\"small\">(with minimum 5 seeders)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=2&lim=25&subtype=bse\">Top 25</a>] - [<a href=\"extras-stats.php?type=2&lim=50&subtype=bse\">Top 50</a>]</font>" : ""));    }       if ($limit == 10 || $subtype == "wse")       {          $r = mysql_query("SELECT t.*, (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' AND leechers >= 5 AND times_completed > 0 GROUP BY t.id ORDER BY seeders / leechers ASC, leechers DESC LIMIT $limit") or sqlerr();          _torrenttable($r, "Top $limit Worst Seeded Torrents <font class=\"small\">(with minimum 5 leechers, excluding unsnatched torrents)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=2&lim=25&subtype=wse\">Top 25</a>] - [<a href=\"extras-stats.php?type=2&lim=50&subtype=wse\">Top 50</a>]</font>" : ""));        }  }  elseif ($type == 3)  {      if (!$limit || $limit > 25)          $limit = 10;       if ($limit == 10 || $subtype == "us")       {          $r = mysql_query("SELECT name, flagpic, COUNT(users.country) as num FROM countries LEFT JOIN users ON users.country = countries.id WHERE users.country > 0 GROUP BY name ORDER BY num DESC LIMIT $limit") or sqlerr();          countriestable($r, "Top $limit Countries<font class=\"small\"> (users)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=3&lim=25&subtype=us\">Top 25</a>]</font>" : ""),"Users");    }       if ($limit == 10 || $subtype == "ul")       {          $r = mysql_query("SELECT c.name, c.flagpic, sum(u.uploaded) AS ul FROM users AS u LEFT JOIN countries AS c ON u.country = c.id WHERE u.enabled = 'yes' AND u.country > 0 GROUP BY c.name ORDER BY ul DESC LIMIT $limit") or sqlerr();          countriestable($r, "Top $limit Countries<font class=\"small\"> (total uploaded)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=3&lim=25&subtype=ul\">Top 25</a>]</font>" : ""),"Uploaded");    }}  end_frame();    stdfoot();?>I might put this in the next release... depends what everyone thinks. -------------------- TorrentialStorm ^^Click My Sig^^TorrentTrader IRC Channel: #TorrentTrader on irc.p2p-network.netTorrentialStorm IRC Channel: #TorrentialStorm on irc.p2p-network.netIf you want to know what made my sig click HERE____________________________________________________________STOP PM'ING ME FOR SUPPORT, USE THE FORUMS THAT'S WHAT THEY'RE HERE FOR.   redvoodo View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25697", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 12 2007, 06:40 AM Post #2 Advanced Member Group: Premium Posts: 176 Joined: 10-October 05 Member No.: 182 Looks great!! I like the extra stuff you have added in. SOmething i would like to have, not sure about anyone else, but i would like to see the top 10 leechers as in total concurrent torrents currently being downloaded. I think it was you who replied to my query question and i tell ya its great to have as now i can see who is trying to get more than the 5 limit i have per user.ANyway all looks goodRedvoodo   Phoenix_UK View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25702", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 12 2007, 12:23 PM Post #3 Official Developer Group: Official Developer Posts: 499 Joined: 31-May 06 From: UK Member No.: 2,513 Screenshots ^ Attached thumbnail(s) // // // //   -------------------- Phoenix #TorrentialStorm on irc.p2p-network.net____________________________________________________________STOP PM'ING ME FOR SUPPORT, USE THE FORUMS THAT'S WHAT THEY'RE HERE FOR.   Torrential-Storm... Torrential-Storm.co.uk View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25705", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 12 2007, 03:05 PM Post #4 Official Developer/Moderator Group: Official Developer Posts: 3,085 Joined: 27-September 05 From: http://www.TorrentialStorm.net Member No.: 10 QUOTE(redvoodo @ Apr 12 2007, 06:40 AM) [snapback]25697[/snapback]Looks great!! I like the extra stuff you have added in. SOmething i would like to have, not sure about anyone else, but i would like to see the top 10 leechers as in total concurrent torrents currently being downloaded. I think it was you who replied to my query question and i tell ya its great to have as now i can see who is trying to get more than the 5 limit i have per user.ANyway all looks goodRedvoodoadded and it's not my code... i think it came from torrentstrike or tbdev (not sure cause i got it off a friend)anyone think it should go in the next release? -------------------- TorrentialStorm ^^Click My Sig^^TorrentTrader IRC Channel: #TorrentTrader on irc.p2p-network.netTorrentialStorm IRC Channel: #TorrentialStorm on irc.p2p-network.netIf you want to know what made my sig click HERE____________________________________________________________STOP PM'ING ME FOR SUPPORT, USE THE FORUMS THAT'S WHAT THEY'RE HERE FOR.   redvoodo View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25720", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 12 2007, 07:52 PM Post #5 Advanced Member Group: Premium Posts: 176 Joined: 10-October 05 Member No.: 182 Very good!!! Only thing i notice, and it may just be my tracker settings. On the stats countries listings, if a user did not select a country in their account settings its blank. So on the stats page it showed no image, and called a error in my servers logs. I rectified this by adding a country with id 0 to the countries table and created a blank flag.gif. Another way to rectify this may be to exclude users who country listing is Null or empty. Then again that then skews the data in favor of only those who have chosen a country of origin.Hope this makes senseRedvoodo   Mike2098 View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25736", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 13 2007, 01:02 AM Post #6 Advanced Member Group: Premium Posts: 212 Joined: 20-February 06 Member No.: 1,648 QUOTE(Phoenix_UK @ Apr 12 2007, 12:23 PM) [snapback]25702[/snapback] Screenshots ^Added some aditional info male female etc CODE<?phpob_start("ob_gzhandler");require_once("backend/functions.php");dbconn(false);loggedinorreturn();function donortable($res, $frame_caption) {    print ("<div align=center><B>$frame_caption </B><BR>");    if (mysql_num_rows($res) > 0) {        print("<table border=1 cellspacing=0 cellpadding=2 class=table_table>\n");        echo "<tr>";        echo "<td class=table_head width=40>" . ACCOUNT_RANK . "</td>";        echo "<td class=table_head align=left>" . ACCOUNT_USER . "</td>";        echo "<td class=table_head align=right width=100>Donated</td>";        echo "</tr>";        $num = 0;        while ($a = mysql_fetch_assoc($res)) {            ++$num;            print("<tr><td class=table_col1>$num</td><td class=table_col2 align=left><a href=account-details.php?id=$a[id]><b>$a[username]</b></td><td align=right class=table_col1>$a[donated]</td></tr>\n");        }        echo "</table></div>";    } else {        echo "<font color=red>" . NOTHING_TO_SHOW . "</font></div>";    }}function usertable($res, $frame_caption) {    global $CURUSER;    begin_frame($frame_caption, true);    begin_table();?><tr><td class=ttable_head width=60 align=center>Rank</td><td class=ttable_head align="left">User</td><td class=ttable_head align="right">Uploaded</td><td class=ttable_head align="right">UL speed</td><td class=ttable_head align="right">Downloaded</td><td class=ttable_head align="right">DL speed</td><td class=ttable_head align="right">Ratio</td><td class=ttable_head align="center">Joined</td></tr><?    $num = 0;    while ($a = mysql_fetch_assoc($res)) {        ++$num;        $highlight = $CURUSER["id"] == $a["userid"] ? "" : "";        if ($a["downloaded"]) {            $ratio = $a["uploaded"] / $a["downloaded"];            $color = get_ratio_color($ratio);            $ratio = number_format($ratio, 2);            if ($color)                $ratio = "<font color=\"$color\">$ratio</font>";        } else            $ratio = "Inf.";        print("<tr$highlight><td class=\"rowhead\" align=\"center\">$num</td>            <td class=\"rowhead\" align=\"left\" $highlight><a href=\"account-details.php?id=" . $a["userid"] . "\" /><b>" . $a["username"] . "</b>" . "</td>            <td class=\"rowhead\" align=\"right\" $highlight>" . mksize($a["uploaded"]) . "</td>            <td class=\"rowhead\" align=\"right\" $highlight>" . mksize($a["upspeed"]) . "/s" . "</td>            <td class=\"rowhead\" align=\"right\" $highlight>" . mksize($a["downloaded"]) . "</td>            <td class=\"rowhead\" align=\"right\" $highlight>" . mksize($a["downspeed"]) . "/s" . "</td>            <td class=\"rowhead\" align=\"right\" $highlight>" . $ratio . "</td>            <td class=\"rowhead\" align=\"center\">" . gmdate("Y-m-d",strtotime($a["added"])) . " (" .            get_elapsed_time(sql_timestamp_to_unix_timestamp($a["added"])) . " ago)</td></tr>");    }    end_table();    end_frame();}function _torrenttable($res, $frame_caption) {    begin_frame($frame_caption, true);    begin_table();?><tr><td class=ttable_head width=60 align=center>Rank</td><td class=ttable_head align="left">Name</td><td class=ttable_head align="right">Snatched</td><td class=ttable_head align="right">Data</td><td class=ttable_head align="right">Seeders</td><td class=ttable_head align="right">Leechers</td><td class=ttable_head align="right">Peers</td><td class=ttable_head align="right">Ratio</td></tr><?    $num = 0;    while ($a = mysql_fetch_assoc($res)) {        ++$num;        if ($a["leechers"]) {            $r = $a["seeders"] / $a["leechers"];            $ratio = "<font color=\"" . get_ratio_color($r) . "\">" . number_format($r, 2) . "</font>";        } else            $ratio = "Inf.";        print("<tr>            <td class=\"rowhead\" align=\"center\">$num</td>            <td class=\"rowhead\" align=\"left\"><a href=\"torrents-details.php?id=" . $a["id"] . "&hit=1\"><b>" . $a["name"] . "</b></a></td>            <td class=\"rowhead\" align=right>" . number_format($a["times_completed"]) . "</td>            <td class=\"rowhead\" align=\"right\">" . mksize($a["data"]) . "</td>            <td class=\"rowhead\" align=\"right\">" . number_format($a["seeders"]) . "</td>            <td class=\"rowhead\" align=\"right\">" . number_format($a["leechers"]) . "</td>            <td class=\"rowhead\" align=\"right\">" . ($a["leechers"] + $a["seeders"]) . "</td>            <td class=\"rowhead\" align=\"right\">$ratio</td>\n");    }    end_table();    end_frame();}function countriestable($res, $frame_caption, $what) {    global $CURUSER;    begin_frame($frame_caption, true);    begin_table();?><tr><td class=ttable_head width=60 align=center>Rank</td><td class=ttable_head align="left">Country</td><td class=ttable_head align="right"><?=$what?></td></tr><?    $num = 0;    while ($a = mysql_fetch_assoc($res)) {        ++$num;        if ($what == "Users")            $value = number_format($a["num"]);        elseif ($what == "Uploaded")            $value = mksize($a["ul"]);        elseif ($what == "Average")            $value = mksize($a["ul_avg"]);        elseif ($what == "Ratio")            $value = number_format($a["r"],2);        print("<tr><td class=\"rowhead\" align=\"center\">$num</td>            <td class=\"rowhead\" align=\"left\"><table border=\"0\" class=\"main\" cellspacing=\"0\" cellpadding=\"0\"><tr>            <td class=\"embedded\">" . "<img align=\"middle\" src=\"images/flag/$a[flagpic]\" alt=\"\" /></td>            <td class=\"embedded\"><b>$a[name]</b></td>" . "</tr></table></td><td class=\"rowhead\" align=\"right\">$value</td></tr>\n");    }    end_table();    end_frame();}function postertable($res, $frame_caption) {    print ("<div align=center><B>$frame_caption </B><BR>");    if (mysql_num_rows($res) > 0) {        print("<table border=1 cellspacing=0 cellpadding=2 class=table_table>\n");        echo "<tr>";        echo "<td class=table_head width=40>" . ACCOUNT_RANK . "</td>";        echo "<td class=table_head align=left>" . ACCOUNT_USER . "</td>";        echo "<td class=table_head align=right width=100>Torrents</td>";        echo "</tr>";        $num = 0;        while ($a = mysql_fetch_assoc($res)) {            ++$num;            print("<tr><td class=table_col1>$num</td><td class=table_col2 align=left><a href=account-details.php?id=$a[id]><b>$a[username]</b></td><td align=right class=table_col1>$a[num]</td></tr>\n");        }        echo "</table></div>";    } else {        echo "<font color=red>" . NOTHING_TO_SHOW . "</font></div>";    }}stdhead("Top 10");begin_frame("Site Statistics, Top Ten");    $type = isset($_GET["type"]) ? 0 + $_GET["type"] : 0;    if (!in_array($type,array(1,2,3,4)))        $type = 4;    $limit = isset($_GET["lim"]) ? 0 + $_GET["lim"] : false;    $subtype = isset($_GET["subtype"]) ? $_GET["subtype"] : false;    print("<p align=\"center\">"  .        ($type == 4 && !$limit ? "<b>{$GLOBALS['SITENAME']}</b>" : "<a href=\"extras-stats.php?type=4\">{$GLOBALS['SITENAME']}</a>") .    " | " .        ($type == 1 && !$limit ? "<b>Users</b>" : "<a href=\"extras-stats.php?type=1\">Users</a>") .    " | " .        ($type == 2 && !$limit ? "<b>Torrents</b>" : "<a href=\"extras-stats.php?type=2\">Torrents</a>") . " | " .        ($type == 3 && !$limit ? "<b>Countries</b>" : "<a href=\"extras-stats.php?type=3\">Countries</a>") . "</p>\n");    $pu = get_user_class() >= UC_POWER_USER;  if (!$pu)      $limit = 10;  if ($type == 4) {        begin_frame("Hall Of Fame");        $r = mysql_query("SELECT users.id, users.username, COUNT(torrents.owner) as num FROM torrents LEFT JOIN users ON users.id = torrents.owner GROUP BY owner ORDER BY num DESC LIMIT 10") or sqlerr();        postertable($r, "Top 10 Posters</font>");        echo "<br>";        $r = mysql_query("SELECT * FROM users ORDER BY donated DESC, username LIMIT 10") or die;        donortable($r, "Top 10 Donors");        echo "<br>";        $r = mysql_query("SELECT users.id, users.username, COUNT(peers.seeder) as num FROM peers LEFT JOIN users ON users.id=peers.userid WHERE peers.seeder='yes' GROUP BY peers.userid ORDER BY num DESC LIMIT 10") or sqlerr();        postertable($r, "Top 10 Seeders (Based on the number of seeded torrents.)</font>");        $r = mysql_query("SELECT users.id, users.username, COUNT(peers.seeder) as num FROM peers LEFT JOIN users ON users.id=peers.userid WHERE peers.seeder='no' GROUP BY peers.userid ORDER BY num DESC LIMIT 10") or sqlerr();        echo "<br>";        postertable($r, "Top 10 Leechers (Based on the number of leeching torrents.)</font>");        end_frame();        echo "<br><br>";        begin_frame("Site Stats");        $male = number_format(get_row_count("users", "WHERE gender='Male'"));        $female = number_format(get_row_count("users", "WHERE gender='Female'"));        $registered = number_format(get_row_count("users", "WHERE status='confirmed'"));        $peers = number_format(get_row_count("peers"));        $unverified = number_format(get_row_count("users", "WHERE status='pending'"));        $torrents = number_format(get_row_count("torrents", "WHERE visible='yes'"));        $smart = number_format(get_row_count("peers", "WHERE connectable='yes'"));        $stupid = number_format(get_row_count("peers", "WHERE connectable='no'"));        $leechers123 = number_format(get_row_count("users", "WHERE class='1'"));        $secret = number_format(get_row_count("users", "WHERE class='4'"));        $warn = number_format(get_row_count("users", "WHERE warned='yes'"));        $banned = number_format(get_row_count("users", "WHERE enabled='no'"));        $r = mysql_query("SELECT value_u FROM avps WHERE arg='seeders'") or sqlerr(__FILE__, __LINE__);        $a = mysql_fetch_row($r);        $seeders = 0 + $a[0];        $r = mysql_query("SELECT value_u FROM avps WHERE arg='leechers'") or sqlerr(__FILE__, __LINE__);        $a = mysql_fetch_row($r);        $leechers = 0 + $a[0];        $seeders = get_row_count("peers", "WHERE seeder='yes'");        $leechers = get_row_count("peers", "WHERE seeder='no'");        if ($leechers == 0)            $totratio = 0;        else            $totratio = round($seeders / $leechers * 100);        $peers = number_format($seeders + $leechers);        $seeders = number_format($seeders);        $leechers = number_format($leechers);        $result = mysql_query("SELECT SUM(downloaded) AS totaldl FROM users") or sqlerr(__FILE__, __LINE__);        while ($row = mysql_fetch_array ($result)) {            $totaldownloaded = $row["totaldl"];        }        $result = mysql_query("SELECT SUM(uploaded) AS totalul FROM users") or sqlerr(__FILE__, __LINE__);        while ($row = mysql_fetch_array ($result)) {            $totaluploaded = $row["totalul"];        }$result = mysql_query("SELECT SUM(donated) AS totaldon FROM users") or sqlerr(__FILE__, __LINE__);while ($row = mysql_fetch_array ($result)){$totaldonated = $row["totaldon"];}        print("<table width=560><tr><td class=tabletitle align=left><b>User Info</b></td></tr></table>\n"); ?>        <table width=560 class=tableb border=0 cellspacing=0 cellpadding=3>        <?print("<tr><td class=tableb> " . REGISTEREDUSERS . "</td><td class=tableb> $registered</td></tr>\n");print("<tr><td class=tableb> Pending users</td><td class=tableb> $unverified</td></tr>\n");print("<tr><td class=tableb> Male users</td><td class=tableb> $male</td></tr>\n");print("<tr><td class=tableb> Female users</td><td class=tableb> $female</td></tr>\n");print("<tr><td class=tableb> Secret Class</td><td class=tableb> $secret</td></tr>\n");print("<tr><td class=tableb> Leechers Class</td><td class=tableb> $leechers123</td></tr>\n");print("<tr><td class=tableb> Banned Users<img src=images/disabled.gif></td><td class=tableb> $banned</td></tr>\n");print("<tr><td class=tableb> Warned Users<img src=images/warned.gif></td><td class=tableb> $warn</td></tr>\n");print("<tr><td class=tableb> Total Donations</td><td class=tableb> $$totaldonated</td></tr>\n");print("<tr><td class=tableb> Total upload</td><td class=tableb> ".mksize($totaluploaded)."</td></tr>\n");        ?>        </table> <br>        <?        print("<table width=560><tr><td class=tabletitle align=left><b>Torrent Info</b></td></tr></table>\n"); ?>        <table width=560 class=tableb border=0 cellspacing=0 cellpadding=3>        <?print("<tr><td class=tableb> " . TORRENTS . "</td><td class=tableb> $torrents</td></tr>\n");print("<tr><td class=tableb> Peers</td><td class=tableb> $peers</td></tr>\n");print("<tr><td class=tableb> Clever Users</td><td class=tableb> $smart</td></tr>\n");print("<tr><td class=tableb> Dumb Users</td><td class=tableb> $stupid</td></tr>\n");print("<tr><td class=tableb> Seeders</td><td class=tableb> $seeders</td></tr>\n");print("<tr><td class=tableb> Leechers</td><td class=tableb> $leechers</td></tr>\n");; ?>        </table>        <br>        <?        print("<table width=560><tr><td class=tabletitle align=left><b>Monthly Registration Chart</b></td></tr></table>\n");        echo '<table width=560 cellpadding=3><tr><td><b>'.(isset($month) ? 'Day':'Month').'</b></td><td><b>Users</b></td></tr>';        $res = mysql_query('SELECT RPAD(added,'.(isset($month) ? '10':'7').',"") AS date,COUNT(RPAD(added,'.(isset($month) ? '10':'7').',"")) AS count FROM users '.(isset($month) ? 'WHERE status = confirmed AND added LIKE "'.$month.'-%" ':'').' GROUP BY date ORDER BY date DESC');        while($users = mysql_fetch_assoc($res)) {            echo '<tr width=560><td class=tableb width=50% align=left>'.$users['date'].'</td><td class=tableb>'.$users['count'].'</td></tr>';        }        echo '</table>';    end_frame();}  if ($type == 1) {    $mainquery = "SELECT id as userid, username, added, uploaded, downloaded, uploaded / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(added)) AS upspeed, downloaded / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(added)) AS downspeed FROM users WHERE enabled = 'yes'";      if (!$limit || $limit > 250)          $limit = 10;      if ($limit == 10 || $subtype == "ul")      {            $order = "uploaded DESC";            $r = mysql_query($mainquery . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Uploaders" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=ul\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=ul\">Top 250</a>]</font>" : ""));      }    if ($limit == 10 || $subtype == "dl")      {            $order = "downloaded DESC";          $r = mysql_query($mainquery . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Downloaders" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=dl\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=dl\">Top 250</a>]</font>" : ""));      }    if ($limit == 10 || $subtype == "uls")      {            $order = "upspeed DESC";            $r = mysql_query($mainquery . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Fastest Uploaders <font class=\"small\">(average, includes inactive time)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=uls\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=uls\">Top 250</a>]</font>" : ""));      }    if ($limit == 10 || $subtype == "dls")      {            $order = "downspeed DESC";            $r = mysql_query($mainquery . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Fastest Downloaders <font class=\"small\">(average, includes inactive time)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=dls\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=dls\">Top 250</a>]</font>" : ""));      }    if ($limit == 10 || $subtype == "bsh")      {            $order = "uploaded / downloaded DESC";            $extrawhere = " AND downloaded > 1073741824";          $r = mysql_query($mainquery . $extrawhere . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Best Sharers <font class=\"small\">(with minimum 1 GB downloaded)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=bsh\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=bsh\">Top 250</a>]</font>" : ""));        }    if ($limit == 10 || $subtype == "wsh")      {            $order = "uploaded / downloaded ASC, downloaded DESC";          $extrawhere = " AND downloaded > 1073741824";          $r = mysql_query($mainquery . $extrawhere . " ORDER BY $order " . " LIMIT $limit") or sqlerr();          usertable($r, "Top $limit Worst Sharers <font class=\"small\">(with minimum 1 GB downloaded)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=1&lim=100&subtype=wsh\">Top 100</a>] - [<a href=\"extras-stats.php?type=1&lim=250&subtype=wsh\">Top 250</a>]</font>" : ""));      }  }  elseif ($type == 2)  {       if (!$limit || $limit > 50)          $limit = 10;       if ($limit == 10 || $subtype == "act")      {          $r = mysql_query("SELECT t.*, (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' GROUP BY t.id ORDER BY seeders + leechers DESC, seeders DESC, added ASC LIMIT $limit") or sqlerr();          _torrenttable($r, "Top $limit Most Active Torrents" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=2&lim=25&subtype=act\">Top 25</a>] - [<a href=\"extras-stats.php?type=2&lim=50&subtype=act\">Top 50</a>]</font>" : ""));      }       if ($limit == 10 || $subtype == "sna")       {        // $r = mysql_query("SELECT t.*, (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' GROUP BY t.id ORDER BY times_completed DESC LIMIT $limit") or sqlerr();        $r = mysql_query("SELECT * FROM `torrents` ORDER BY `torrents`.`times_completed` DESC LIMIT 10") or sqlerr();        _torrenttable($r, "Top $limit Most Snatched Torrents" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=2&lim=25&subtype=sna\">Top 25</a>] - [<a href=\"extras-stats.php?type=2&lim=50&subtype=sna\">Top 50</a>]</font>" : ""));      }       if ($limit == 10 || $subtype == "bse")       {        //          $r = mysql_query("SELECT t.*, (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' AND seeders >= 5 GROUP BY t.id ORDER BY seeders / leechers DESC, seeders DESC, added ASC LIMIT $limit") or sqlerr();        $r = mysql_query("SELECT * FROM torrents WHERE seeders >= 5 ORDER BY seeders / leechers DESC, seeders DESC, added ASC LIMIT $limit") or sqlerr();          _torrenttable($r, "Top $limit Best Seeded Torrents <font class=\"small\">(with minimum 5 seeders)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=2&lim=25&subtype=bse\">Top 25</a>] - [<a href=\"extras-stats.php?type=2&lim=50&subtype=bse\">Top 50</a>]</font>" : ""));    }       if ($limit == 10 || $subtype == "wse")       {          $r = mysql_query("SELECT t.*, (t.size * t.times_completed + SUM(p.downloaded)) AS data FROM torrents AS t LEFT JOIN peers AS p ON t.id = p.torrent WHERE p.seeder = 'no' AND leechers >= 5 AND times_completed > 0 GROUP BY t.id ORDER BY seeders / leechers ASC, leechers DESC LIMIT $limit") or sqlerr();          _torrenttable($r, "Top $limit Worst Seeded Torrents <font class=\"small\">(with minimum 5 leechers, excluding unsnatched torrents)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=2&lim=25&subtype=wse\">Top 25</a>] - [<a href=\"extras-stats.php?type=2&lim=50&subtype=wse\">Top 50</a>]</font>" : ""));        }  }  elseif ($type == 3)  {      if (!$limit || $limit > 25)          $limit = 10;       if ($limit == 10 || $subtype == "us")       {          $r = mysql_query("SELECT name, flagpic, COUNT(users.country) as num FROM countries LEFT JOIN users ON users.country = countries.id GROUP BY name ORDER BY num DESC LIMIT $limit") or sqlerr();          countriestable($r, "Top $limit Countries<font class=\"small\"> (users)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=3&lim=25&subtype=us\">Top 25</a>]</font>" : ""),"Users");    }       if ($limit == 10 || $subtype == "ul")       {          $r = mysql_query("SELECT c.name, c.flagpic, sum(u.uploaded) AS ul FROM users AS u LEFT JOIN countries AS c ON u.country = c.id WHERE u.enabled = 'yes' GROUP BY c.name ORDER BY ul DESC LIMIT $limit") or sqlerr();          countriestable($r, "Top $limit Countries<font class=\"small\"> (total uploaded)</font>" . ($limit == 10 && $pu ? " <font class=\"small\"> - [<a href=\"extras-stats.php?type=3&lim=25&subtype=ul\">Top 25</a>]</font>" : ""),"Uploaded");    }}  end_frame();    stdfoot();?> Attached thumbnail(s) //   -------------------- using 1.05 all hacks + additional hacks and mods by myself incAvatar upload - admin hack, avatar in shout box, auto logo rotation, mass upload, clock, Partner blocks x 2, bb code, extra smilies, integrated paypal mod contact staff, galery, converted to English 98%   Torrential-Storm... Torrential-Storm.co.uk View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25739", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 13 2007, 01:12 AM Post #7 Official Developer/Moderator Group: Official Developer Posts: 3,085 Joined: 27-September 05 From: http://www.TorrentialStorm.net Member No.: 10 no one really answered my question... which was: who thinks i should put this in the next release? -------------------- TorrentialStorm ^^Click My Sig^^TorrentTrader IRC Channel: #TorrentTrader on irc.p2p-network.netTorrentialStorm IRC Channel: #TorrentialStorm on irc.p2p-network.netIf you want to know what made my sig click HERE____________________________________________________________STOP PM'ING ME FOR SUPPORT, USE THE FORUMS THAT'S WHAT THEY'RE HERE FOR.   Slippery View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25741", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 13 2007, 03:17 AM Post #8 Advanced Member Group: Premium Posts: 118 Joined: 28-September 06 From: U.K Member No.: 3,442 Yep "Go for it" I think its cool --------------------   redvoodo View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25742", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 13 2007, 04:46 AM Post #9 Advanced Member Group: Premium Posts: 176 Joined: 10-October 05 Member No.: 182 QUOTE(Torrential-Storm.co.uk @ Apr 12 2007, 08:12 PM) [snapback]25739[/snapback]no one really answered my question... which was: who thinks i should put this in the next release?I say go with it...looks real good my friendRedvoodo   SssLukasSss View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25760", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 13 2007, 06:00 PM Post #10 Advanced Member Group: Premium Posts: 149 Joined: 26-January 07 From: Wilno - Litwa :) Member No.: 5,686 thanx   YUGI View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25777", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 13 2007, 10:36 PM Post #11 Advanced Member Group: Premium Posts: 399 Joined: 21-August 06 Member No.: 3,009 really good, i just modify a litlle your code, because i prefer keep a part of code , maybe you should integrate it in the beginning of the page (in my advice ) like this : see attached file Attached thumbnail(s) //     Mike2098 View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-25914", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 17 2007, 08:27 AM Post #12 Advanced Member Group: Premium Posts: 212 Joined: 20-February 06 Member No.: 1,648 QUOTE(Torrential-Storm.co.uk @ Apr 13 2007, 01:12 AM) [snapback]25739[/snapback]no one really answered my question... which was: who thinks i should put this in the next release?sorry yes cool thanksMike -------------------- using 1.05 all hacks + additional hacks and mods by myself incAvatar upload - admin hack, avatar in shout box, auto logo rotation, mass upload, clock, Partner blocks x 2, bb code, extra smilies, integrated paypal mod contact staff, galery, converted to English 98%   SssLukasSss View Member Profile Add as Friend Send Message Find Member's Topics Find Member's Posts ipsmenu.register( "post-member-26202", '', 'popmenubutton-new', 'popmenubutton-new-out' ); Apr 25 2007, 12:34 PM Post #13 Advanced Member Group: Premium Posts: 149 Joined: 26-January 07 From: Wilno - Litwa :) Member No.: 5,686 i has been already put in torrenttrader 1.6   « Next Oldest · PREMIUM BETA Source Codes · Next Newest »    Fast Reply    Enable email notification of replies |  Enable Smilies |  Enable Signature     Forum Home Search Help Main   |-- Site News Updates and Rules   |-- General Chat   |-- Your Tracker TorrentTrader   |-- Technical Support   |-- Mod Requests   |-- Hacks And Modifications   |-- Themes & Styles   |-- TT4XBT VBTT   |-- VBTT Version 1.x   |---- Releases   |---- Support   |---- Mods   |-- VBTT Version 2.x   |---- Releases   |---- Support   |---- Mods   |-- VBTT Version 3.x   |---- Releases   |---- Support   |---- Mods TorrentTrader PREMIUM   |-- PREMIUM Support   |-- PREMIUM Hacks & Modifications   |-- PREMIUM BETA Source Codes   |-- PREMIUM Themes   Display Mode: Standard · Switch to: Linear+ · Switch to: Outline Track this topic · Email this topic · Print this topic · Subscribe to this forum // IPB 2.2.0 Default English Lo-Fi Version Time is now: 22nd August 2007 - 03:50 PM // Powered By IP.Board 2.3.1 © 2007  IPS, Inc. Licensed to: TorrentTrader.org

Wyszukiwarka

Podobne podstrony:
new page
new page 2
new page!
new page 5
new page 8
new page
new page 9
new page
new page)
new page 1
new page
new page(

więcej podobnych podstron