Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25

Thread: POWERPanel Help

  1. #11
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    Quote Originally Posted by Highjacker-x View Post
    Does this mean I need to wait for 0.2 to come out?
    Quote Originally Posted by Mashi View Post
    Unless You Can Code PHP Then Yess
    But you see if you used my panel you wouldn't get those errors in the first place and even if you did I would fix them without making you wait for another entire version

  2. #12
    Join Date
    Jul 2005
    Location
    Bristol
    Posts
    2,054
    Tokens
    -10

    Latest Awards:

    Default

    Quote Originally Posted by Scriptz View Post
    But you see if you used my panel you wouldn't get those errors in the first place and even if you did I would fix them without making you wait for another entire version
    Lol. Trying to steal Simon's customers ;P

    Tut tut.

  3. #13
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    But you see if you used my panel you wouldn't get those errors in the first place and even if you did I would fix them without making you wait for another entire version
    When did I say I wasn't going to post the fix?..

    Please don't make moronic assumptions, I have always helped the people who use my scripts, ask anyone :\

  4. #14
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    When did I say I wasn't going to post the fix?..

    Please don't make moronic assumptions, I have always helped the people who use my scripts, ask anyone :\
    Its true and I aint even used his script.

  5. #15
    Join Date
    May 2007
    Location
    Scotland
    Posts
    294
    Tokens
    0

    Default

    So Si, When you planning to post the fix? :]
    Sam

  6. #16
    Join Date
    Sep 2006
    Posts
    2,114
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Highjacker-x View Post
    So Si, When you planning to post the fix? :]
    Don't be so inpatient
    Looking for a good desiner to design a social networking template.

    PM me.

  7. #17
    Join Date
    May 2007
    Location
    Scotland
    Posts
    294
    Tokens
    0

    Default

    Quote Originally Posted by 07 View Post
    Don't be so inpatient
    err.

    Im not?
    Sam

  8. #18
    Join Date
    Sep 2006
    Location
    Essex
    Posts
    3,177
    Tokens
    0
    Habbo
    Xarea

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    When did I say I wasn't going to post the fix?..

    Please don't make moronic assumptions, I have always helped the people who use my scripts, ask anyone :\
    It's true, lol.

    Quote Originally Posted by 07 View Post
    Don't be so inpatient
    I don't blame him - I use the panel, and I find it very annoying that I have to delete it manually from phpMA, but I have to deal with it until it's fixed.
    eek.

  9. #19
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    admin/delacc.php

    PHP Code:
    <?php

    if( isset( $_SESSION'username' ] ) && isset( $_SESSION'password' ] ) && $_SESSION'level' ] == "admin" ) {

        
    checkaccount$_SESSION[username] );

    ?>
    <link href="../css/inside.css" rel="stylesheet" type="text/css" />
    <div id="content_title">
              <p>Delete An Account (Remove a DJ) </p>
    </div>
            
            <div id="content">On this page you are able to delete a DJs account to prevent them from accessing the panel. <br />
    <?php

    if( isset( $_POST'id' ] ) ) {

        
    $id $_POST'id' ];
        
        if( 
    $id == "1" ) {
        
            echo( 
    "<br /><strong>Sorry!</strong> You cannot delete the root administrator's account" );
        
        }
        else {
        
            
    $insert mysql_query"DELETE FROM users WHERE id = '$id'" ) or die( 'Could not delete data, Error: 'mysql_error( ) );
            
            echo( 
    "<br />The user you specified has been <strong>deleted</strong>!" );
        
        }
    }


    else {
    ?><br />
              <br />

    <?php

    // We generate a list of users
        
    $query mysql_query"SELECT * FROM users ORDER BY id" );
        
        while( 
    $rows mysql_fetch_array$query ) ) {
        
            if( 
    $rows[level] == "admin" ) {
            
                
    $level "Administrator";
                
            }
            
            elseif( 
    $rows[level] == "trialist" ) {
            
                
    $level "Trialist DJ";
                
            }
            
            elseif( 
    $rows[level] == "regular" ) {
            
                
    $level "Regular DJ";
                
            }
            
            elseif( 
    $rows[level] == "senior" ) {
            
                
    $level "Senior DJ";
                
            }
            
            echo( 
    "<form action='' method='POST'><input type='hidden' name='id' value='"$rows[id] ."' /><strong>Name Of User:</strong><br />"$rows[username] ."<br /><strong>Access Level:</strong><br />"$level ."<br /><br /><input type='submit' value='Remove Account' /></form><br /><hr color='lightgrey' /><br />" );
        
            }
        }

    ?></div>
    <?php

    }
    else
    {
        
    header'location: index.php' );
        die( 
    '' );
    }
    ?>

  10. #20
    Join Date
    Sep 2006
    Location
    Essex
    Posts
    3,177
    Tokens
    0
    Habbo
    Xarea

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    admin/delacc.php

    PHP Code:
    <?php

    if( isset( $_SESSION'username' ] ) && isset( $_SESSION'password' ] ) && $_SESSION'level' ] == "admin" ) {

        
    checkaccount$_SESSION[username] );

    ?>
    <link href="../css/inside.css" rel="stylesheet" type="text/css" />
    <div id="content_title">
              <p>Delete An Account (Remove a DJ) </p>
    </div>
            
            <div id="content">On this page you are able to delete a DJs account to prevent them from accessing the panel. <br />
    <?php

    if( isset( $_POST'id' ] ) ) {

        
    $id $_POST'id' ];
        
        if( 
    $id == "1" ) {
        
            echo( 
    "<br /><strong>Sorry!</strong> You cannot delete the root administrator's account" );
        
        }
        else {
        
            
    $insert mysql_query"DELETE FROM users WHERE id = '$id'" ) or die( 'Could not delete data, Error: 'mysql_error( ) );
            
            echo( 
    "<br />The user you specified has been <strong>deleted</strong>!" );
        
        }
    }


    else {
    ?><br />
              <br />

    <?php

    // We generate a list of users
        
    $query mysql_query"SELECT * FROM users ORDER BY id" );
        
        while( 
    $rows mysql_fetch_array$query ) ) {
        
            if( 
    $rows[level] == "admin" ) {
            
                
    $level "Administrator";
                
            }
            
            elseif( 
    $rows[level] == "trialist" ) {
            
                
    $level "Trialist DJ";
                
            }
            
            elseif( 
    $rows[level] == "regular" ) {
            
                
    $level "Regular DJ";
                
            }
            
            elseif( 
    $rows[level] == "senior" ) {
            
                
    $level "Senior DJ";
                
            }
            
            echo( 
    "<form action='' method='POST'><input type='hidden' name='id' value='"$rows[id] ."' /><strong>Name Of User:</strong><br />"$rows[username] ."<br /><strong>Access Level:</strong><br />"$level ."<br /><br /><input type='submit' value='Remove Account' /></form><br /><hr color='lightgrey' /><br />" );
        
            }
        }

    ?></div>
    <?php

    }
    else
    {
        
    header'location: index.php' );
        die( 
    '' );
    }
    ?>
    Warning: Cannot modify header information - headers already sent by (output started at /home/kissfor/public_html/panel/in.php:33) in /home/kissfor/public_html/panel/admin/delacc.php on line 81

    !
    eek.

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •