Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Config.php:-
- <?php
- $GLOBALS[ "mysql" ] = "127.0.0.1";
- $GLOBALS[ "username " ] = "lmao";
- $GLOBALS[ "password " ] = "husam123Hane";
- $GLOBALS[ "database " ] = "bym_cod";
- ?>
- index.php:-
- MyTime.php:-
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- body { backgrond: #000000; font-family: Arial, Helwetica, Sans-Serif; color: white; font-weight: bold; font-size: 25px; }
- </style>
- </head>
- <body bgcolor="#000000">
- <br /><br /><br /><br /><br /><br /><center>
- <?php
- require "Config.php";
- $iConnection = new PDO( 'mysql:host=localhost;dbname=bym_cod;charset=utf8', "bywtimer", "" );
- foreach( $iConnection->query( 'SELECT `PlayedTime` FROM `bywtimer` WHERE `Id` = ' . $_GET[ "Id" ] . ';' ) as $szRow ) {
- echo "You have played for: <font color='#3399ff'>" . floor( $szRow[ 'PlayedTime' ] / 3600 ) . ":" . floor( ( $szRow[ 'PlayedTime' ] / 60 ) % 60 ) . ":" . $szRow[ 'PlayedTime' ] % 60 . "</font>";
- }
- ?><br /><br /><br />
- <font color='lime'>Timer by W[!]Z (ByW)</font></center>
- </body>
- </html>
- MyTimeMotd.php:-
- <body bgcolor="#000000"><iframe src="MyTime.php?Id=<?php echo $_GET[ 'Id' ]; ?>" border="0" height="100%" width="100%" frameborder="0" >You do not have iframe in your browser!</iframe></body>
- Top.php:-
- <!DOCTYPE html>
- <html>
- <head>
- <style>
- table {
- font-family: Arial;
- font-weight: bold;
- font-size: 13px;
- border-collapse: collapse;
- width: 100%;
- }
- th, td {
- text-align: left;
- padding: 6px;
- }
- tr:nth-child(even){background-color: #f2f2f2}
- th {
- background-color: #4CAF50;
- color: white;
- }
- </style>
- </head>
- <body>
- <table>
- <tr>
- <th>#</th>
- <th>Nick</th>
- <th>Time</th>
- <th>Last played</th>
- </tr>
- <?php
- require "Config.php";
- $iConnection = new PDO('mysql:mysql=127.0.0.1;dbname=bym_cod', 'lmao', 'husam123Hane');
- $i = 0;
- foreach( $iConnection->query( 'SELECT * FROM `bywtimer` ORDER BY `PlayedTime` DESC LIMIT 15;' ) as $szRow ) {
- $i ++;
- echo "<tr>";
- echo "<td>" . $i . "</td>";
- echo "<td>" . htmlspecialchars( $szRow[ 'Nick' ] ) . "</td>";
- echo "<td>" . floor( $szRow[ 'PlayedTime' ] / 3600 ) . ":" . floor( ( $szRow[ 'PlayedTime' ] / 60 ) % 60 ) . ":" . $szRow[ 'PlayedTime' ] % 60 . "</td>";
- echo "<td>" . date( 'd.m.Y H:i', $szRow[ 'LastSeen' ] ) . "</td>";
- echo "<td></td>";
- }
- ?>
- </tr>
- </table>
- </body>
- </html>
- TopMotd.php:-
- <iframe src="Top.php" border="0" style="width: 100%;height:100%;margin-top: 0px;margin-left: 0px;margin-right: 0px;margin-bottom: 0px;border: 0px #ffffff;" frameborder="0" >You do not have iframe in your browser!</iframe>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement