[ODBC]Password logs easier to search up CTRL+F

Results 1 to 4 of 4
  1. #1
    Valued Member iCreamPie is offline
    MemberRank
    Sep 2010 Join Date
    130Posts

    [ODBC]Password logs easier to search up CTRL+F

    This shows userid, last connected, password, last connected ip, the registerip won't work for you because i used lloyd register script and it logged the ip adress at RegisterIP so you can just ignore it or delete it.

    Connection:
    Code:
    Code:
    <?php
    //Database Connection
    	$dns="GunzDB";
    	$user="sa";
    	$pass="password";
    	$connect=odbc_connect($dns, $user, $pass) or die ("Couldn't connect to the database, we're sorry...");
    	odbc_exec($connect,"use GunzDB");
    ?>
    Code:
    <?php 
    include ('config.php');
    ?>
    
    <?php
    //get latest clan fight
    $query = odbc_exec($connect, "SELECT TOP 1000* FROM Login ORDER BY RegisterIP DESC");
    odbc_fetch_row($query);
    $name = odbc_result($query, "UserID");
    $point = odbc_result($query, "Password");
    $wins = odbc_result($query, "LastConnDate");
    $losses = odbc_result($query, "RegisterIP");
    $draws = odbc_result($query, "LastIP");
    ?>
    
                <table width="1152" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="105"><b>#</b></td>
                    <td width="213"><b>UserID</b></td>
                    <td width="143"><b>Password</b></td>
                    <td width="234"><b>Last connected</b></td>
                    <td width="159"><b>Registered IP</b></td>
                    <td width="298"><b>Last connected IP</b></td>
                  </tr>
                <?php
    			$rank2 = 0;
                while($rij3 = odbc_fetch_object($query))
                    {
    					$rank2 = $rank2 + 1;
    					{
    					}
    				?>
                      <tr>
                        <td><?php echo $rank2; ?></td>
                        <td><?php echo $rij3->UserID; ?></td>
                        <td><?php echo $rij3->Password; ?></td>
                        <td><?php echo $rij3->LastConnDate; ?></td>
                        <td><?php echo $rij3->RegisterIP; ?></td>
                        <td><?php echo $rij3->LastIP; ?></td>
                      </tr>
                	<?php
    				}
                ?>
            </table>


  2. #2
    Account Upgraded | Title Enabled! adminjoker is offline
    MemberRank
    Jun 2009 Join Date
    USA - Stuart -Location
    247Posts

    Re: [ODBC]Password logs easier to search up CTRL+F

    man this is a great release but look what happens when i tested it!

    Warning: odbc_connect() [function.odbc-connect]: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in C:\AppServ\www\scripts\config.php on line 6
    Couldn't connect to the database, we're sorry...
    How can we fix this?

  3. #3
    Valued Member iCreamPie is offline
    MemberRank
    Sep 2010 Join Date
    130Posts

    Re: [ODBC]Password logs easier to search up CTRL+F

    You need to make a user DSN and system DSN

    Are you running an 64bit OS?

    And did you put a password?

  4. #4
    Valued Member Millitary8 is offline
    MemberRank
    Oct 2010 Join Date
    C++Location
    141Posts

    Re: [ODBC]Password logs easier to search up CTRL+F

    Nice ODBC Release :)



Advertisement