Announcement

Collapse
No announcement yet.

a strange error in apache logs related in global.php

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Zachery
    replied
    Try removing that for the time being

    Leave a comment:


  • uae2k
    replied
    I'm using the version 3.0.7 and the phpinclude_start

    PHP Code:
    // Example of how to include a seperate file:
    // ob_start();
    // require("yourheader.html");
    // $header = ob_get_contents();
    // ob_end_clean();

    // PopUp User Option //////////////////////
    if ($bbuserinfo['field6'])
    {
    if (
    $bbuserinfo['field6'] == 'Yes')
    {
      
    $vboptions['usepopups'] = 1;

    else
    {
      
    $vboptions['usepopups'] = 0;

    }
    else
    {
      
    $vboptions['usepopups'] = 0;

    ////////////////////////////////////////
    // PostBit User Option ////////////////
    if($bbuserinfo['userid']) 

        if(
    $bbuserinfo['field5'] == 'Yes'
        { 
           
    $vboptions['legacypostbit'] = 1
        } 
        else 
        { 
            
    $vboptions['legacypostbit'] = 0
        } 

    else 

        
    $vboptions['legacypostbit'] = 0
    // Random images ////////////////////
    // # Brad's random banners 
    // get a number between 1 and 4 
    $image_id rand(1,4); 
    // we got a id, now figure out the name of the image 
    switch($image_id

              
    // if the random number is one display 
              
    case '1'
              
    $banner_name '1'
              break; 
              
    // or if two is the scripts thing 
              
    case '2'
              
    $banner_name '2'
              break; 
              
    // Mabey it prefers three 
              
    case '3'
              
    $banner_name '3'
              break; 
              
    // Must be four... 
              
    case '4'
              
    $banner_name '4'
              break; 
              
    // The script could'nt generate a random number for some reason, so we wil use this fail safe image 
              
    default: 
              
    $banner_name 'banner_failsafe'
              break; 

    // end banner generator 

    Leave a comment:


  • Zachery
    replied
    That error is generally dealing with a template, what is in your phpinlcud template?

    Leave a comment:


  • Steve Machol
    replied
    Which version of vB is this?

    Leave a comment:


  • uae2k
    started a topic a strange error in apache logs related in global.php

    a strange error in apache logs related in global.php

    I was checking my apache error logs and it is appear that I have an error in the file global.php in the root directory for the vB forum

    PHP Parse error: parse error, unexpected $ in /home/****/public_html/forum/global.php(389) : eval()'d code on line 81


    the file global.php is unhacked and the line 81 is
    PHP Code:
      // ########################### 
    !!!!!

Related Topics

Collapse

Working...
X