Jump to content

PHP logo/image upload error


monkey72

Recommended Posts

I am trying to upload a logo in a script I installed but keep getting this error. I did read the "Header" post above by the moderator and understand the jist of the problem but am clueless as to how to go in an fix the code. Can someone tell me how and what exactly to change?

 

Warning: Cannot modify header information - headers already sent by (output started at /home/coco72/public_html/xAdmin/inc/g/header.php:20) in /home/coco72/public_html/inc/functions.php  on line 113

 

Thanks so much!!

Link to comment
https://forums.phpfreaks.com/topic/201853-php-logoimage-upload-error/
Share on other sites

header.php as follows:

 

<?php

$arrUserMenu = $dm->getArrayData('mallpages_tbl', '*', "PAGETYPE = 'USER' ORDER BY PRIORITY ASC");

$arrSystemMenu = $dm->getArrayData('mallpages_tbl', '*', "PAGETYPE =  'SYSTEM' ORDER BY PRIORITY ASC");

$logo = $dm->getSingleData('admin_tbl', 'LOGO', "EMAIL='[email protected]'");

$twitter = $dm->getSingleData('admin_tbl', 'TWITTER', "EMAIL='[email protected]'");

$facebook = $dm->getSingleData('admin_tbl', 'FACEBOOK', "EMAIL='[email protected]'");

$countStores = $dm->getSingleData('members_tbl', 'COUNT(*)');

$countItems = $dm->getSingleData('item_tbl', 'COUNT(*)');

$arrCountry = $dm->getCountry();

$arrSellers = $dm->getArrayData('members_tbl', 'ID,STORENAME');

//print_r($arrNewItems);

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html dir="ltr" lang="en"><head>

      <meta name="Author" content="MultiShop CMS">

      <!--<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">-->   

      <meta content="text/html; charset=utf-8" http-equiv="content-type"/>

      <meta http-equiv="Content-Language" content="en">

      <meta http-equiv="Cache-Control" content="no-cache"> 

      <meta http-equiv="Pragma" content="no-cache">

      <meta name="robots" content="all">

     

  <!--my global js file-->

  <script type="text/javascript" src="<?=SITEURL?>js/g.js"></script>

 

  <!-- ckeditor-->

<!--<script type="text/javascript" src="ckeditor/ckeditor.js"></script>-->

   

    <!-- jquery-->

    <script type="text/javascript" src="<?=SITEURL?>js/jquery-1.3.2.min.js"></script>

   

    <script type="text/javascript" src="<?=SITEURL?>js/jquery.form.js"></script>

   

    <!-- JQ-UI-->

    <link type="text/css" href="<?=SITEURL?>css/cupertino/jquery-ui-1.7.2.custom.css" rel="stylesheet" />

<script type="text/javascript" src="<?=SITEURL?>js/jquery-ui-1.7.2.custom.min.js"></script>

    <!-- JQ-UI -->

    <!-- impromptu-->

    <script type="text/javascript" src="<?=SITEURL?>js/jquery-impromptu.2.7.min.js"></script>

     

    <!-- TinyMCE -->

    <script type="text/javascript" src="<?=SITEURL?>tiny_mce/jquery.tinymce.js">

    </script>

    <!-- /TinyMCE -->

______________________________________________________________________________________

 

functions.php:

 

function protect_alreadyLoggedIn()

{

if(isset($_COOKIE['memberid']))

header("Location: ".SITEURL."settings.php");

}

 

function protect_admin()

{

if(!isset($_COOKIE['admin']))

{

header("Location: index.php");

}

}

 

 

function getImagePath($pImageName)

{

$img_src = substr($pImageName,0,3);

$img_src = ($img_src == 'URL') ? substr($pImageName,4) : fullURL('productimages/thumb/'.$pImageName);

 

return $img_src;

}

 

function createImageLink($pIcon, $pLink, $pToolTip = null)

{

//echo $pIcon;

$iconPath = SITEURL.'images/'.$pIcon;

//echo $iconPath;

$html = '<a href="'.$pLink.'"><img src="'.$iconPath.'" alt="'.$pToolTip.'" border=0 />'.$pToolTip.' </a>';

 

return $html;

Archived

This topic is now archived and is closed to further replies.

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