Z góry dziekuje za pomoc!
<?php /////////////////////////////////////////////////////////////////////////////////////////////////////////////// /////Top Files in Main Page Addon for PafileDB (http://www.phparena.net)////// //////////Written by Wh1t3w0lf (wh1t3w0lf@decayandcorrupt.com) (fixed by NightWolf www.belesh.net )///////////////// ///////////////////////////////////////////////////////////////////////////////////////////////////////////// //Instructions: //Change the settings bellow (and the layout in the bottom of this file if you wish). //After that put include this file in the page and in the place where you want to
show the top files //via the include php command //Settings $dbhostname= "nazwahosta"; //Your MySQL Host name $dbusername= "nazwa uzytkownika"; //Your MySQL Username $dbpassword= "haslo"; //Your MySQL Password $dbdatabase= "nazwabazy"; //Your MySQL Database Name $url= "http://www.eadres/forum/dload.php"; //The Url where you have installed pafiledb.php e.g "http://www.yoursite.com/files/pafile.php" $table ="phpbb_pa_files"; //Table name including the prefix $topfilecount= 20; // Top X files to show. e.g Top 10 //Don't mess with the following if (!$db) { "database server at this time.</p>" ); } "database at this time.</p >" ); } $result = @mysql_query("SELECT file_id, file_name, file_dls FROM $table ORDER BY file_dls DESC", $db); if (!$result) { } //Style. Change accoridngly e.g Add html tags or css styles to match your site's design. echo "<style> body{ scrollbar-face-color: #DEE3E7; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #DEE3E7; scrollbar-3dlight-color: #D1D7DC; scrollbar-arrow-color: #006699; scrollbar-track-color: #A9BAC9; scrollbar-darkshadow-color: #98AAB1; } A.pFo:link {color:#2F486F; text-decoration:overline;} A.pFo:visited {color:#2F486F; text-decoration:overline;} A.pFo:active {color:#2F486F; text-decoration:overline;} A.pFo:hover {color:#8AA0B4; text-decoration:overline;} </style>"; $i=1; $i=$i + 1; /////////////////////////////////////////////////////////////////////////////// /////Top Files in Main Page Addon for PafileDB (http://www.phparena.net)/////// //////////Written by Wh1t3w0lf (wh1t3w0lf@decayandcorrupt.com)///////////////// /////////////////////////////////////////////////////////////////////////////// ?>