vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   unexpected $ (https://vborg.vbsupport.ru/showthread.php?t=81237)

aslambek 05-10-2005 10:49 AM

unexpected $
 
Hello

After I have installed, and edited all files, i get this error on forum page:
Parse error: parse error, unexpected $ in /home/kavkazc/public_html/vbulletin/global.php on line 612

This is on line 612:
PHP Code:

$passworddaysold floor((TIMENOW $bbuserinfo['passworddate']) / 86400); 


Anyone? :classic:

Thanks

-Aslambek

Marco van Herwaarden 05-10-2005 10:53 AM

Please also post the lines before and after line 612.

What editor did you use?

aslambek 05-10-2005 10:56 AM

Quote:

Originally Posted by MarcoH64
Please also post the lines before and after line 612.

What editor did you use?


Well here it is:

PHP Code:

eval('standard_error("' str_replace("\'""'"addslashes($vboptions['bbclosedreason'])) . '");');
        unset(
$shutdownqueries['lastvisit']);
    }
    else
    {
        
// show the board disabled warning message so that admins don't leave the board turned off by accident
        
eval('$warning = "' fetch_template('board_inactive_warning') . '";');
        
$header $warning $header;
        
$footer .= $warning;
    }
}

// #############################################################################
// password expiry system
if ($bbuserinfo['userid'] AND $permissions['passwordexpires'])
{
    
$passworddaysold floor((TIMENOW $bbuserinfo['passworddate']) / 86400);

    if (
$passworddaysold >= $permissions['passwordexpires'])
    {
        if ((
THIS_SCRIPT != 'login' AND THIS_SCRIPT != 'profile') OR (THIS_SCRIPT == 'profile' AND $_REQUEST['do'] != 'editpassword' AND $_POST['do'] != 'updatepassword'))
        {
            eval(
print_standard_error('passwordexpired'));
        }
        else
        {
            
$show['passwordexpired'] = true;
        }
    }
}
else
{
    
$passworddaysold 0;
    
$show['passwordexpired'] = false;
}

// #############################################################################
// check permission to view forum
if (!($permissions['forumpermissions'] & CANVIEW)) 


I am using Macromedia dreamweaver MX 2004

Thanks!

Marco van Herwaarden 05-10-2005 10:59 AM

Try to edit again with another editor. Very likely it is caused by DW.

aslambek 05-10-2005 11:02 AM

Are you sure about this?
Cuz i used it before to edit my vb a lot times
and everything went OK.
but, hmm anyway which one do you use?
Hint please... :) anyway thanks for your help.

Marco van Herwaarden 05-10-2005 11:37 AM

Using only UltraEdit myself.

aslambek 05-10-2005 12:18 PM

OK, this time I used PHP Expert Editor 3.2.1.
And everything went just PERFECT!

Remember Folks, do not use Macromedia dreamweaver MX 2004 to edit your vb files! :D

Thank You Very Much!

And Have a Nice Day!

(You can delete this topic now, if you want:))


All times are GMT. The time now is 11:40 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01236 seconds
  • Memory Usage 1,737KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete