1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Parse error: syntax error, unexpected '.' Really need help with this please.

Discussion in 'PHP' started by serva, Oct 1, 2012.

  1. #1
    Hello everyone,

    I keep getting this anytime i run the script

    Parse error: syntax error, unexpected '.' in /srv/disk8/1157414/www/gbaskyabby.batcave.net/includes/htmltop.php on line 93

    I dont seems to understand why or how to fix it. Here is the line 93

    border-bottom:solid 15px <?php echo substr(explode("background-color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.subheading'))[2])[1],0,strlen(explode("background-color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.subheading'))[2])[1])-1);?>;

    and the whole code is here
    <?php/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
    // +----------------------------------------------------------------------+
    // | PHP version 4/5                                                      |
    // +----------------------------------------------------------------------+
    // | This source file is a part of iScripts Multicart                     |
    // +----------------------------------------------------------------------+
    // | Authors: Programmer<programmer@armia.com>                              |
    // +----------------------------------------------------------------------+
    // | Copyrights Armia Systems, Inc and iScripts.com � 2005                |
    // | All rights reserved                                                  |
    // +----------------------------------------------------------------------+
    // | This script may not be distributed, sold, given away for free to     |
    // | third party, or used as a part of any internet services such as      |
    // | webdesign etc.                                                       |
    // +----------------------------------------------------------------------+
    $Current_page    = basename($_SERVER['PHP_SELF']);
    
    
    $Current_page_seo    = GetSeoTags($Current_page);
    ?>
    <?php  if(!isset($_SERVER['REQUEST_URI'])) {
        if(isset($_SERVER['SCRIPT_NAME']))    $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];   else    $_SERVER['REQUEST_URI'] = $_SERVER['PHP_SELF'];
        if($_SERVER['QUERY_STRING']) {
            $_SERVER['REQUEST_URI'] .=  '?'.$_SERVER['QUERY_STRING'];
        }
            }
    if
    (strcasecmp(basename($_SERVER['REQUEST_URI']),"install.php")==0) {
        ;
    }else {
                        if (INSTALLED ===true) {
            ;
        }else {
            if(strstr($_SERVER['PHP_SELF'],'admin') == TRUE || strstr($_SERVER['PHP_SELF'],'sellers') == TRUE || strstr($_SERVER['PHP_SELF'],'affiliates') == TRUE) {
                header("Location:../install/install.php");
            }    else {
                header("Location:./install/install.php");
            }
        }
    
    
    }
    
    
    if (basename($_SERVER['PHP_SELF']) == "payment.php" || basename($_SERVER['PHP_SELF']) == "yourpay_payment.php")
    {
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="https://www.w3.org/1999/xhtml">
        <head>
    
    
        <?php  }  else {  ?>
            <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
            <html xmlns="http://www.w3.org/1999/xhtml">
                <head>
    
    
                                                <?php  }  ?>
    
    
                    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                        <title><?php if($Current_page_seo['meta_title']!='') {
                                                echo $Current_page_seo['meta_title'] ;
                                            } else {
                                                echo htmlentities(SITE_NAME);
                                            } ?></title>
                        <meta name="keywords" content="<?php if($Current_page_seo['meta_keywords']!='') {
                                                echo $Current_page_seo['meta_keywords'] ;
                                            } else {
                                                echo htmlentities(SITE_NAME);
                                            } ?> " />
                        <meta name="description" content="<?php if($Current_page_seo['meta_description']!='') {
                                                echo $Current_page_seo['meta_description'] ;
                                            } else {
                                                echo htmlentities(SITE_NAME);
                                            } ?>" />
    
    
                        <!--Rating css begins-->
    
    
                        <link href="./style/rating.css" rel="stylesheet" type="text/css">
    
    
                            <!--Rating css ends-->
    
    
    <?php   
    if(strstr($_SERVER['PHP_SELF'],'admin') == TRUE || strstr($_SERVER['PHP_SELF'],'sellers') == TRUE || strstr($_SERVER['PHP_SELF'],'affiliates') == TRUE || strstr($_SERVER['PHP_SELF'],'install') == TRUE) {
        if (INSTALLED===true) {
            $active_template = displayTemplate();
        }
        ?>
                            <script src="../js/javascript_check.js"></script>
                            <link href="../themes/<?php echo $active_template[5]?>/template1-admin.css" rel="stylesheet" type="text/css">
                                <!--Template admin css begins-->
                                <style>
                                    .header{
                                        height:120px;
                                        border:solid 1px #E1E1E1;
                                        border-bottom:solid 15px <?php echo substr(explode("background-color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.subheading'))[2])[1],0,strlen(explode("background-color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.subheading'))[2])[1])-1);?>;
                                        background:#fff url(../images/header_grdnt.gif) repeat-x left bottom;
                                        margin-bottom:5px;
                                    }
                                    .copyright
                                    {
                                        background-color:<?php echo substr(explode("background-color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[2])[1],0,strlen(explode("background-color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[2])[1])-1);?>;
                                        border:solid 1px #C4C3C3;
                                        height:25px;
                                        color:<?php echo substr(explode("color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[3])[1],0,strlen(explode("color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[3])[1])-1);?>;
                                        padding-top:8px;
    
    
                                    }
                                    .login_btm_lnks1{
                                        font:11px Tahoma, Arial;
                                        color:<?php echo substr(explode("color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[3])[1],0,strlen(explode("color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[3])[1])-1);?>;
                                        margin-bottom:5px;
                                    }
                                    .login_btm_lnks1 A:link{
                                        font:11px Tahoma, Arial;
                                        color:<?php echo substr(explode("color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[3])[1],0,strlen(explode("color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[3])[1])-1);?>;
                                        margin-bottom:5px;
                                        text-decoration:none;
    
    
    
    
                                    }
                                    .login_btm_lnks1 A:visited{
                                        font:11px Tahoma, Arial;
                                        color:<?php echo substr(explode("color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[3])[1],0,strlen(explode("color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[3])[1])-1);?>;
                                        margin:8px 0px 5px;
                                        margin-bottom:5px;
                                        text-decoration:none;
                                    }
    
    
                                    #login_area_new{
                                        width:178px;
                                        height:179px;
                                        color:<?php echo substr(explode("color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[3])[1],0,strlen(explode("color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'.copyright_area'))[3])[1])-1);?>;
                                        background-color:<?php echo substr(explode("background-color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'#login_area'))[4])[1],0,strlen(explode("background-color:",explode("\n",strstr(file_get_contents(""../themes/".$active_template[4]"),'#login_area'))[4])[1])-1);?>;
                                        padding:20px 15px 0px;
                                    }
    
    
                                </style>
    
    
                                <!--Template admin css ends-->
    
    
        <?php  }  else {  ?>
                                <!--Template home css begins-->
    
    
                                <link href="./themes/<?php echo $active_template[4]?>" rel="stylesheet" type="text/css">
        <?php  }  ?>
                                    <!--Home page javscript begins-->
                                    <script src="<?php echo SITE_URL?>/js/script_homepage.js"></script>
                                    <script type="text/javascript" language="javascript" src="<?php echo SITE_URL?>/js/jquery.js"></script>
                                    <!--Home page javscript ends-->
                                    <!-- rating star script begins -->
                                    <script type="text/javascript" language="javascript" src="<?php echo SITE_URL?>/js/behavior.js"></script>
                                    <script type="text/javascript" language="javascript" src="<?php echo SITE_URL?>/js/rating.js"></script>
                                    <script type="text/javascript">AC_FL_RunContent = 0;</script>
                                    <script language="javascript" type="text/javascript" src="./js/AC_RunActiveContent.js"></script>
                                    <link href="favicon.ico" type="image/x-icon" rel="icon">
                                        <link href="favicon.ico" type="image/x-icon" rel="shortcut icon">
                                            <!-- rating star script ends -->
                                            </head>
    <?php
    
    
    
    
    $adminCurrency    = GetAdminCurrency();
    
    
    $page            = $_GET['page'];
    
    
    if($page=='') {
        $page    =1;
    }
    
    
    if(basename($_SERVER['PHP_SELF']) == "payment.php" || basename($_SERVER['PHP_SELF']) == "yourpay_payment.php" || basename($_SERVER['PHP_SELF']) == "success.php" || basename($_SERVER['PHP_SELF']) == "failure.php") {
        $site_url    = SECURE_SITE_URL;
    }
    else {
        $site_url    = SITE_URL;
    }
    ?>
    PHP:
    Pls any help will be greatly appreciated.
     
    Last edited: Oct 1, 2012
    serva, Oct 1, 2012 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    29,000
    Likes Received:
    4,577
    Best Answers:
    124
    Trophy Points:
    665
    #2
    Thats code from 2005, you should probably be on something a bit more current to avoid security issues. I wouldn't even bother trying to debug it.
     
    sarahk, Oct 1, 2012 IP