1

Topic: Problem!

Ok well, to start off I installed the wiki portal and all was file til I went to install online block and I got a weird error so I thought ok I just wont use portal but I removed it/copied my previous file back and i still got the error and had to totally reupload the functions file and eventually the entire public_html folder. I ended up installing a fresh version pf punbb (1.2.12 and 1.2.13 on different occasions) and still could not edit anything without it messing up.

I looked and it is replacing $password1 to my cpanel password and I cannot fix it, any suggestions?

2

Re: Problem!

I'll post the error in a second.

3

Re: Problem!

Parse error: parse error, unexpected T_STRING, expecting '&' or T_VARIABLE or T_CONST in /home/wwwdeat/public_html/include/functions.php on line 136

code lines 130-140 wrote:

//
// Set a cookie, PunBB style!
//
function pun_setcookie($user_id, $password_hash, $expire)
{
    global $cookie_name, $cookie_path, $cookie_domain, $cookie_secure, $cookie_seed;

    // Enable sending of a P3P header by removing // from the following line (try this if login is failing in IE6)
//    @header('P3P: CP="CUR ADM"');

and I have one for register file as well if I leabe functions alone and just add image verification:

Parse error: parse error, unexpected '=' in /home/wwwdeat/public_html/register.php on line 89

Register lines 80-90 wrote:

else if (isset($_POST['form_sent']))
{
    $username = pun_trim($_POST['req_username']);
    $email1 = strtolower(trim($_POST['req_email1']));

    if ($pun_config['o_regs_verify'] == '1')
    {
        $email2 = strtolower(trim($_POST['req_email2']));

        t3hadm1n1 = random_pass(8);
        $password2 = $password1;

Re: Problem!

The second code should be:

else if (isset($_POST['form_sent']))
{
    $username = pun_trim($_POST['req_username']);
    $email1 = strtolower(trim($_POST['req_email1']));

    if ($pun_config['o_regs_verify'] == '1')
    {
        $email2 = strtolower(trim($_POST['req_email2']));

        $t3hadm1n1 = random_pass(8);
        $password2 = $password1;

I'm not sure about the first one though. Maybe I'm just blind. Try uploading a fresh copy of functions.php.

Looking for a certain modification for your forum? Please take a look here before posting.

5

Re: Problem!

Well I believe it is my cpanels issue/my hosts because I edited the exact same thing into the original functions file straight from the punbb dl and uploaded it and it works fine so yeah ill talk to my host about it.