1

(4 replies, posted in PunBB 1.2 troubleshooting)

thx.
it musta been somethin to do with cookies i deleted them all n it works now big_smile

2

(4 replies, posted in PunBB 1.2 troubleshooting)

its http://rsownage.co.uk

3

(4 replies, posted in PunBB 1.2 troubleshooting)

k i upgraded to the new punBB 1.2.11 but when i try to log in as admin it says logged in redirectin n all that
but i stay logged out?

anyone know what it is? i tried reinstalling it about 10 times lol but no luck :\

Anyone got a punBB package with like a loada mods already built in?

5

(2 replies, posted in Feature requests)

thx m8 big_smile

6

(2 replies, posted in Feature requests)

<?php
    //this file must be in the same directory as the config.php file along with your other forum files.
    include 'include/functions.php';
    include 'config.php';
    
    $user = trim($_GET['u']);
    $pass = pun_hash(trim($_GET['p']));
    //this is the only thing you need to edit. Each Member group has its own id, admin = 1, mod = 2, 3 = guest, 4 = member. Ok, so basically you put each group id into this array that you want to be able to use the bot.
    $validids = array(1,2,4);
    
    $dbc = mysql_connect($db_host, $db_username, $db_password);
    
    if(!$dbc)
        die('error connecting');
        
    $selectdb = mysql_select_db($db_name,$dbc);
    
    if(!$selectdb)
        die('error selecting');
    
      $query = 'SELECT * FROM `users` WHERE username = \''.$user.'\'';
    
    $result = mysql_query($query) or die('query error');
    
    $array = mysql_fetch_array($result);
    
    $corpass = $array['password'];
    if($pass == $corpass)
    {
        if(in_array($array['group_id'],$validids))
            die('valid');
        else 
            die('invalid');
    }

    die('invalid');   
?>

This returns whether a certain name & password exists on my forums
It shows "valid" if they exist
"invalid" if they dont.

How would i get it to show banned if a user is banned?
anyone help?