Problem|On admin panel

Results 1 to 14 of 14
  1. #1
    Account Upgraded | Title Enabled! ron1233 is offline
    MemberRank
    Nov 2007 Join Date
    275Posts

    Problem|On admin panel

    Ok I done with my private server all works,and now I have website register to my gunz.
    ok my question is when I connect to my admin panel I have there "Obtain account passwords and when I press the user name its told me :
    Results: Password of yossi is
    Its dont tell me the password of the account
    And more question how I can change levels on the panel?
    Thanks


  2. #2
    Account Upgraded | Title Enabled! sexy fire slash is offline
    MemberRank
    Oct 2007 Join Date
    Canada B.C. Currently A Developer.Location
    553Posts

    Re: Problem|On admin panel

    I Have Same Prob.

    And For Changing Levels...

    Edit A Page Like Let's say the ban script eidt it to change levels. its simple

  3. #3
    Account Upgraded | Title Enabled! ron1233 is offline
    MemberRank
    Nov 2007 Join Date
    275Posts

    Re: Problem|On admin panel

    How to edit it to Change levels? I need to change the script ban.php to what?
    and if you solve the problem with the accounts password tell me...
    thanks

  4. #4
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Problem|On admin panel

    Its simple
    @ron I believe its trying to get the passord from Account.dbo change it to Login.dbo
    @sexy/ron
    I made this level editor script from Emisand's GunZ Admin Panel:
    Code:
    <table width="980" border="0" bordercolor="#FF6633">
      <tr>
        <td style="border-style: solid; border-width: 2px"><font face="Arial"><em><strong>Change Character Level</strong></em></td>
         </tr>
      <tr>
        <td bordercolor="#FF6633"><FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']; ?>?act=cambiarchar">
         Name:
         <input name="name" type="text" id="name" /> 
         Old Level:
         <input name="charact" type="text" id="charact" />
         New Level:
         <input name="ncharact" type="text" id="ncharact" />
         <input type="submit" name="Submit99" value="Change Level" />
        </form>     </td>
      </tr>
      <tr>
      <td width="730" bordercolor="#FF6633">Results:
        <?php
      if ($_GET['act'] == 'cambiarchar')
    {
        $charact = anti_injection($_POST['charact']);
        $ncharact = anti_injection($_POST['ncharact']);
        $name = anti_injection($_POST['name']);
      if (valida(Array($charact,$ncharact,$name)) == true)
        {
        $query = mssql_query("SELECT * FROM Character WHERE Name='$name'");
           if(mssql_num_rows($query)<1){
       echo "El character no existe";
        } else {
        $cambiar = mssql_query("UPDATE Character SET Level='$ncharact' WHERE Name='$name'");
                $log = "Character $name has been changed to level $ncharact";
                $ip = $_SERVER['REMOTE_ADDR'];
                $fecha = date("d-m-y - H:i:s");
                $fileb = fopen("log.txt","r");
                $escrito= fread($fileb,1000000);
                $file = fopen("log.txt","w+");
                $total= "$fecha - $ip: $log
    \n\n$escrito";
                fwrite($file,$total, 1000000);
             fclose($fileb);
                fclose($file);
                echo "Level of the Character $name changed to $ncharact";
          }
        }
     }
     ?></td>
      </tr>
    </table>
    add to the bottom of echars.php between </table> and </body>
    Last edited by wesman2232; 06-12-07 at 03:09 AM.

  5. #5
    Account Upgraded | Title Enabled! ron1233 is offline
    MemberRank
    Nov 2007 Join Date
    275Posts

    Re: Problem|On admin panel

    Wesman thanks very much ! But where I change it to login.dbo?
    What the name of the php I need to change it there.

  6. #6
    DRGunZ 2 Creator wesman2232 is offline
    MemberRank
    Jan 2007 Join Date
    Erie, PALocation
    4,872Posts

    Re: Problem|On admin panel

    no problem and its passw.php
    Change this line:
    Code:
    $query = mssql_query("SELECT * FROM Account* WHERE UserID='$user'");
    *Account may be Accounts im not sure but I do know that its that line you need to change.

    to:
    Code:
    $query = mssql_query("SELECT * FROM Login WHERE UserID='$user'");

  7. #7
    Account Upgraded | Title Enabled! sexy fire slash is offline
    MemberRank
    Oct 2007 Join Date
    Canada B.C. Currently A Developer.Location
    553Posts

    Re: Problem|On admin panel

    Thanks!

  8. #8
    Account Upgraded | Title Enabled! ron1233 is offline
    MemberRank
    Nov 2007 Join Date
    275Posts

    Re: Problem|On admin panel

    Ok dude Thanks THANKS VERY VERY MuCH
    Love <3

  9. #9
    Account Upgraded | Title Enabled! sexy fire slash is offline
    MemberRank
    Oct 2007 Join Date
    Canada B.C. Currently A Developer.Location
    553Posts

    Re: Problem|On admin panel

    Hahaha lol Ron.

    Owell This Thread Might Help Other People.

  10. #10
    Account Upgraded | Title Enabled! ron1233 is offline
    MemberRank
    Nov 2007 Join Date
    275Posts

    Re: Problem|On admin panel

    Yea I know ^^

  11. #11
    Account Upgraded | Title Enabled! sexy fire slash is offline
    MemberRank
    Oct 2007 Join Date
    Canada B.C. Currently A Developer.Location
    553Posts

    Re: Problem|On admin panel

    Someone Might Be Wondering About this.

  12. #12
    Account Upgraded | Title Enabled! sexy fire slash is offline
    MemberRank
    Oct 2007 Join Date
    Canada B.C. Currently A Developer.Location
    553Posts

    Re: Problem|On admin panel

    Ron Need Any More Help?

    Soz Double Post.

  13. #13
    Apprentice tirrom_xd is offline
    MemberRank
    Feb 2007 Join Date
    13Posts

    Re: Problem|On admin panel

    Where I think the CP To download PLS!

  14. #14
    Member D@rK_AnGeL is offline
    MemberRank
    Aug 2007 Join Date
    56Posts

    Re: Problem|On admin panel

    i need admin panel to kekkus server but 1 is work...



Advertisement