Jump to content

Recommended Posts

I got this error:

 

Parse error: parse error, unexpected T_BOOLEAN_OR, expecting '(' in /home/content...on line 36

 

Went to line 36 in the code and here it is:

 

if ( PA::$login_uid || (!isset($configure['show_splash_page'])) || $configure['show_splash_page'] == INACTIVE) {

 

Now I know it is an error with a "(" and I have played around with it, but I can't find the error. If someone could help I would be appreciative. Thank you.

Link to comment
https://forums.phpfreaks.com/topic/64191-parse-error-unexpected-t_boolean_or/
Share on other sites

We need more code. The prior ten lines or so would be nice.

 

Here is the whole thing:

 

<?php

 

// web/index.php: Splash page

 

// First check if the server is running a too-old version of PHP, and

// complain bitterly if so.

 

if (preg_match("/^(\d+)/", phpversion(), $m)) {

    if (intval($m[0]) < 5) {

?>

<h1>PeopleAggregator requires PHP5</h1>

 

<p>Your web server is running PHP version <b><?php echo phpversion(); ?></b>.  Unfortunately, PeopleAggregator requires PHP5 or later.</p>

 

<p><a href="http://wiki.peopleaggregator.org/PeopleAggregator_requires_PHP5">Click here for some information on installing or enabling PHP5 on typical web servers</a> (on the PeopleAggregator Wiki).</p>

 

<?php

        exit;

    }

}

 

$login_required = FALSE;

$use_theme = 'Beta';

include "includes/page.php";

require_once "$path_prefix/api/ModuleData/ModuleData.php";

 

 

$configure = unserialize(ModuleData::get('configure'));

$module_name = 'SplashPage';

$configurable_sections = array('showcased_networks', 'network_of_moment', 'video_tours', 'register_today', 'server_announcement');

foreach ($configurable_sections as $key => $section) {

  $$section = unserialize(ModuleData::get($section));

}

 

//if user is logged in he will go to homepage main site

if ( PA::$login_uid || (!isset($configure['show_splash_page'])) || $configure['show_splash_page'] == INACTIVE) {

  $location = 'homepage.php';

  header("Location: $location");

  exit;

}

 

$parameter = js_includes("all");                             

$mothership_info = mothership_info();

 

?>

 

<html>

 

  <head>

    <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">

    <meta name="generator" content="Adobe GoLive">

    <title>Welcome to PeopleAggregator</title>

    <link href="<?php echo $current_theme_path;?>/style_index.css" rel="stylesheet" type="text/css" media="all">

    <?

    echo $parameter;

    ?>

   

  </head>

  <body>

    <div id="wrapper">

      <div class="header">

        <h1>

          A place to create and run your own social network

        </h1>

        <div class="login">

          Already a member?<br>

          <a href="<?php echo $base_url?>/login.php">Login now</a> or <a href="<?php echo $base_url?>/register.php">register</a>

        </div>

      </div>

      <div class="first_row">

        <div class="cel_one">

          <span class="spanone"><a href="<?=$base_url;?>/register.php"><div class="number1">1</div><div class="text1 cursor-pointer">join</div></a></span><div class="info_text1">open an account on the PeopleAggregator Home network</div>

          <span class="spantwo"><a href="<?=$base_url;?>/register.php"><div class="number2">2</div><div class="text2 cursor-pointer">create</div></a></span><div class="info_text2">create your own social network. Pick a name, upload a logo, set the rules and start the community blog</div>

          <span class="spanthree"><a href="<?=$base_url;?>/register.php"><div class="number3">3</div><div class="text3 cursor-pointer">invite</div></a></span><div class="info_text3">Invite your friends to blog, create groups, upload media and meet each other. All in your own social network</div>

        </div>

        <div class="cel_two">

          <h2>Register today</h2>

          <?php

            if (!empty($register_today)) {

          ?>

          <div class="text">

            <?php echo $register_today['description']?><br /><br />

          </div>

          <div class="text" align="center">

            <a href="<?=$base_url;?>/register.php">

              <?php echo uihelper_resize_mk_img('files/'.$register_today['network_image'], 193, 67, 'images/default.png', 'alt="PeopleAggregator"') ?>

            </a>

          </div>

          <?php

            }

          ?>

        </div>

        <div class="cel_three">

          <h2>Video Tours</h2>

          <?php

            if (!empty($video_tours)) {

          ?>

          <div class="text">

            <?php echo $video_tours['description']?><br><br>

          </div>

          <div class="text" align="center">

            <a href="<?php echo $video_tours['video_url']?>">

              <?php echo uihelper_resize_mk_img('files/'.$video_tours['network_image'], 193, 67, 'images/default.png', 'alt="PeopleAggregator"') ?>

            </a>

          </div>

          </div>

          <?php

            }

          ?>

      </div>

      <div class="second_row">

        <div class="cel_one">

          <h2>Network Showcase</h2>

          <div class="text">

            <?php

              if ($showcased_networks) {

            ?>

              Here are a random collection of PeopleAggregator networks. Each network has its own membership, community blog, media galleries, groups, message system, etc. Rollover to view details, click to jump there.

              <p><span class="showcase">

              <?php

                foreach ($showcased_networks as $network) {

              ?>

                <a href="<?php echo $network['network_url']?>" target="_blank">

                  <?php echo uihelper_resize_mk_img('files/'.$network['network_image'], 145, 145, 'images/default.png', 'alt="PeopleAggregator"')?>

                </a>

              <?php

                }

              ?>

              </span></p>

            <?php

              } else {

                echo 'There are no showcased networks';

              }

            ?>

            <p>Visit our <a href="<?=$base_url;?>/networks_home.php">network directory</a></p>

          </div>

        </div>

        <div class="cel_two">

                  <h2>Network of the Moment</h2>

          <div class="text">

          <?php

            if (!empty($network_of_moment)) {

          ?>

            <a href="<?php echo $network_of_moment['network_url']?>" target="_blank"><?php echo $network_of_moment['network_caption']?></a> - <?php echo $network_of_moment['description']?></div>

          <div class="text" align="center">

            <p><a href="<?php echo $network_of_moment['network_url'];?>" target="_blank">

              <?php echo uihelper_resize_mk_img('files/'.$network_of_moment['network_image'], 193, 67, 'images/default.png', 'alt="PeopleAggregator"') ?>

            </a></p>

          </div>

          <?php

            }

          ?> 

        </div>

        <div class="cel_three">

          <h2>On your server?</h2>

         

 

 

<?php

            if (!empty($server_announcement)) {

          ?>

          <div class="text">

            <?php echo $server_announcement['description']?><br><br>

          </div>

          <div class="text" align="center">

            <a href="http://wiki.peopleaggregator.org/Main_Page">

              <?php echo uihelper_resize_mk_img('files/'.$server_announcement['network_image'], 185, 110, 'images/default.png', 'alt="PeopleAggregator"') ?>

            </a>

          </div>

         

          <?php

            }

          ?>

 

</div>

 

 

 

 

 

 

</div>

      <div class="footer">

        <div class="footer_text">copyright 2006 Broadband Mechanics <a href="http://www.broadbandmechanics.com/" target="_blank">About Us</a> | <a href="<?=$base_url?>/features.php" target="_blank">Features</a>| <a href="<?=$base_url?>/faq.php" target="_blank">FAQ</a> | <a href="<?php echo $base_url.'/roadmap.php';?>" target="_blank">Roadmap</a> | <a href="http://wiki.peopleaggregator.org/Main_Page" target="_blank">Developer Wiki</a></div>

      </div>

    </div> 

  </body>

 

</html>

you had an extra ) after end bracket: (!isset($configure['show_splash_page'])), efectivley closing the whole statement, rather than just that clause...

 

if (PA::$login_uid || (!isset($configure['show_splash_page']) || $configure['show_splash_page'] == INACTIVE) {

you had an extra ) after end bracket: (!isset($configure['show_splash_page'])), efectivley closing the whole statement, rather than just that clause...

 

if (PA::$login_uid || (!isset($configure['show_splash_page']) || $configure['show_splash_page'] == INACTIVE) {

 

I made that change and still get the same error. I had tried making that before I made this post. That is why I am confused about what it is. When I make that change I get the EXACT same error.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.