Jump to content

Editing Problems


Guest ufa57

Recommended Posts

Guest ufa57

For the past three days I've been trying to manually readjust some of my tables and images according to what I'd like for my store, and I've noticed that everytime I edit my header.inc.php file, it hangs up my cpanel, and my store won't be displayed.

Could someone tell me what syntax error there is present in the code, if there is one?

TIA

<?php

/***************************************************************************

* File Info: header.inc.php

* Purpose:  Header For Webpage

* Updated:  31/07/2003

**************************************************************************** 

* Developer: Alistar Brookbanks (Devellion Limited)

* Copyright: ©2003 Devellion Limited - http://www.devellion.com

* Copyright: ©2003 http://www.cubecart.com

* This program is not "free" software and restrictions apply!

* Further Info: http://www.cubecart.com/license.php

* Contact [email protected] if any conditions are not clear.

*

* Licensees holding valid "CubeCart Licence Number" may edit

* the (powered by CubeCart) from browser title and "Powered by CubeCart"

* and "© Brooky.com" from the web page footer.

*

* This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING

* THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR

* PURPOSE. This and all others in the download package can only be

* redistributed with written permission from Alistair Brookbanks!

*

* The "CubeCart License" is available to purchase at

* http://www.cubecart.com/site/purchase/

* For pricing please contact us via e-mail at [email protected]

***************************************************************************/

// update site hits for stats

include("hits.php");

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>

<head>

<title><?echo "$site_name";?></title>

<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $charset; ?>'>

<style type="text/css">

<!--

  @import url(<?echo"$site_url";?>/admin/style.css);

-->

</style>

<script language="JavaScript" type="text/javascript">

setTimeout ("changePage()", 0);

function changePage()

{

  if (self.parent.frames.length != 0)

  self.parent.location=document.location;

}

</script>

</head>

<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="<?echo$bg_colour;?>"

<?

// used for secure.php to autosubmit form data

if($url=="secure"){

echo"onLoad='document.SecureForm.submit();'";

}

?>>

<form action ="search.php" method="post">

<table width='100%' height='100%' align='center' border='0'  cellspacing='0' cellpadding='0' background="<?echo"$site_url/";?>images/customimage.png">

  <tr height='80' width='100%'>

  <td valign='top' height='80' width='100%' align='center'>

    <table width='100%' height='80' valign='top' align='center' border='0' cellspacing='0' cellpadding='0'>

    <tr height='80'>

      <td align='left' height="80" width="100%" background="<?echo"$site_url/";?>images/store_logo_bg.jpg"><a href="<?echo"$site_url/index.php";?>"><img src="<?echo"$site_url/";?>images/store_logo.gif" alt="<?echo"$la_powered_by_cc";?>" border="0"></a></td>

      <td align="right" valign="bottom" width='220' height="80" background="<?echo"$site_url/";?>images/store_logo_bg2.jpg">

   

      <!-- start buttons & search -->

      <table width="220" height="80" border="0" cellspacing="0" cellpadding="0">

        <tr width="220" valign="middle" align="right">

        <td width="110" colspan="2" valign="middle" align="right">

         

          <!-- start search table -->

          <table valign='top' width="110" align='right' valign='middle' height='56' border="0" cellspacing="0" cellpadding="0">

          <tr align='right'>

            <td height='56' align="center"><b><?echo$la_header_search?></b>&nbsp;</td>

            <td height='56' align="center"><input name="search" class="textbox" type="text" size="15" maxlength="60"></td>

            <td height='56' align="center">&nbsp;<input type="submit" class="submit" value='<?echo$la_go;?>' border="0" name="submit"></td>

          </tr>

          </table>

          <!-- end search table -->

</td>

        </tr>

      <tr width="220">

        <td width="110" align="center" height="24" background="<?echo"$site_url/";?>images/tab.gif" style='cursor:hand;' onclick='window.external.AddFavorite(location.href,document.title);'><a href='#' target='_self'><font class='wht_btn'><?echo$la_add_favorites?></font></a></td>

        <td width="110" align="center" height="24" background="<?echo"$site_url/";?>images/tab.gif" style='cursor: hand;' onClick="location.href='control_panel.php'"><a href='control_panel.php' target='_self'><font class='wht_btn'><?echo$la_your_account?></font></a></td>

      </tr>

      </table>

      <!-- end buttons & search -->

    </td>

    </tr>

  </table>

<?

if(($page!=="order")&&($online!=="N"))

{

  //display welcome is session is not registered

  if (!session_is_registered("valid_user"))

  {

    echo$la_welcome_geust;

  }

  //display welcome is session is registered

  if (session_is_registered("valid_user"))

  {

    $sql_select = mysql_query( "select * from ".$prefix."store_customer where email='$valid_user'");

    while ($row = mysql_fetch_array($sql_select))

    {

      $user_name = $row["name"];

    }

    echo"<b>$la_welcome_member $user_name</b> $la_welcome_tools";

  }

}//end if(($page!=="order")&&($online!=="N"))

// if store is selected as off line display message and disable

if($online=="N")

{

  echo"$offmsg</table>";

  exit;

}?>

</td>

</form>

</tr>

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...