All pastes #395037 Raw Edit

Mine

public text v1 · immutable
·published 2007-03-14 19:13 UTC
rendered paste body
<?header( 'Content-type: text/html; charset=\"$CHARSET\"' );?>

<!DOCTYPEE 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" xml:lang="en" lang="en"

<?

#// Set document direction (set in includes/messages.XX.inc.php)

#// Can be right-to-left (rtl) or left-to-roght (ltr)

if($DOCDIR != 'rtl') {

    print " dir=ltr>";

} else {

    print " dir=rtl>";

}



#// Build the page width string

$PAGEWIDTH = $SETTINGS['pagewidth'];

if($SETTINGS['pagewidthtype'] == 'perc') $PAGEWIDTH .= "%";

if ($HTTPS == '1' || $HTTPS == 'on') {

    $SITEURL = $Https['httpsurl'];

} else {

    $SITEURL = $SETTINGS['siteurl'];

}



?>

<head>

<title><? print $SETTINGS['sitename']?></title>

<?   include $include_path."styles.inc.php";?>

<?

    if ($editOn) {

        echo "<script type='text/javascript'>\n";

        echo "// <![CDATA[\n";

        echo "var thepage = '$thepage'\n";

        echo "var thestyle = '$thestyle'\n";

        echo "// ]]>\n";

        echo "</script>\n";

        echo "<script src='js/utils.js' type='text/javascript'></script>\n";

        echo "<script src='js/appl.js' type='text/javascript'></script>\n";

        }

?>

<link rel='stylesheet' type='text/css' href='<?=phpa_include("style.css")?>' />



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



function window_open(pagina,titulo,ancho,largo,x,y){

    var Ventana= 'toolbar=0,location=0,directories=0,scrollbars=1,screenX='+x+',screenY='+y+',status=0,menubar=0,resizable=0,width='+ancho+',height='+largo;

    open(pagina,titulo,Ventana);

}

</script>

<?if(basename($_SERVER['PHP_SELF']) == 'sell.php' || basename($_SERVER['PHP_SELF']) == 'selltemplate.php' || basename($_SERVER['PHP_SELF']) == 'wanteditem.php') { ?>

<script language="Javascript" type="text/javascript" src="includes/calendar.js"></script>

<script type="text/javascript" src="./fck/fckeditor.js"></script>



<?  }



#// Handle Meta Tags

if($SETTINGS['descriptiontag'] != '') {

    print " <META name=\"description\" content=\"".stripslashes($SETTINGS['descriptiontag'])."\">";

}

if($SETTINGS['keywordstag'] != '') {

    print " <META name=\"keywords\" content=\"".stripslashes($SETTINGS['keywordstag'])."\">";

}

?>

</head>

<body>

  <table width=<?=$PAGEWIDTH?> cellpadding="0" cellspacing="0" border="0" align="<?=$SETTINGS['alignment']?>" class="container" >

    <tr>

      <td>

    <table width="100%" border="0" cellpadding="5" cellspacing="5" class="logo">

    <tbody><tr>

        <td width=50%>

          <?

        if($SETTINGS['logo']) {

        ?>

          <a href="<?=$SITEURL?>index.php?"><img src="<?=$SITEURL.phpa_uploaded(false).$SETTINGS['logo'];?>" border="0" alt="<?=$SETTINGS['sitename']?>"/></a>

          <?

        } else {

            print "&nbsp;";

        }

        ?>

      </td><td width=50%>

        <?

        if($SETTINGS['banners'] == 1) {

            view();

        } else {

            print "&nbsp;";

        }

        ?>

      </td>

      </tr></tbody></table>

   <table width="100%" border="0" cellpadding="0" cellspacing="5" class="counters">

      <tr>

        <td align="right">

          <?

              //-- Get users and auctions counters

              $COUNTERSTOSHOW = @mysql_fetch_array(@mysql_query("SELECT * FROM PHPAUCTIONXL_counterstoshow"));

              $query = "select * from PHPAUCTIONXL_counters";

              $result_counters = mysql_query($query);

              $counters="";

              if($result_counters) {

                  if($COUNTERSTOSHOW['auctions'] == 'y') $counters .= "<B>".mysql_result($result_counters,0,"auctions")."</B>&nbsp;".strtoupper($MSG_232);

                  if($COUNTERSTOSHOW['users'] == 'y') $counters .= "&nbsp;"."<B>".mysql_result($result_counters,0,"users")."</B>&nbsp;".strtoupper($MSG_231);

                  print $counters;

                  if($COUNTERSTOSHOW['online'] == 'y') include $prefix."online.php";

              }

              ?>

          <?

        //-- Display current Date/Time

        print "&nbsp;&nbsp;".ActualDate();

          ?>

        </td>

      </tr>

    </table>

    <table width="100%" border="0" cellpadding="0" cellspacing="3" class="navbar">

      <tr>

        <td><table cellspacing="0" class="table-bar">

      <tbody><tr>

        <td><a href="<?=$SETTINGS['siteurl']?>index.php?"><? print $MSG_501; ?></a><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="10" height="10"></div></td>

        <?

            if(($SETTINGS['uniqueseller']>0 && $_SESSION["PHPAUCTION_LOGGED_IN"]==$SETTINGS['uniqueseller']) || $SETTINGS['uniqueseller']==0){

        ?>

        <td><a href="<?=$SETTINGS['siteurl']?>select_category.php?"> <? print $MSG_236; ?></a><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="10" height="10"></div></td>

        <?

        }

        if($_SESSION["PHPAUCTION_LOGGED_IN"]) {

              /* user is logged in, give link to edit data or log out */

        ?>

        <td><a href="<?=$SETTINGS['siteurl']?>user_menu.php?"><? print $MSG_622; ?></a><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="10" height="10"></div></td>

        <td><a href="<?=$SETTINGS['siteurl']?>logout.php?"><? print $MSG_245; ?></a><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="10" height="10"></div></td>

        <?

        } else {

              /* user not logged in, give link to register or login */

        ?>

        <td><a href="<?=$SETTINGS['siteurl']?>register.php?"><? print $MSG_235; ?></a><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="10" height="10"></div></td>

        <td><a href="<?=$SETTINGS['siteurl']?>user_login.php?"><? print $MSG_259; ?></a><div id="imgSep"><img src="<?=$SETTINGS['siteurl']?>images/transparent.gif" width="10" height="10"></div></td>

          <?

        }

        ?>

        <td><a href="javascript: window_open('<?=$SETTINGS['siteurl']?>faqs.php','faqs',500,400,20,20)"> <? print $MSG_164; ?></a></td>

        </tr></tbody></table></td>

      </tr>

    </table>

    <table width="100%" height="37" border="0" cellpadding="0" cellspacing="0" class="barSec">

  <tr>

    <td width="50%"><form name="search" action="<?=$SETTINGS['siteurl']?>search.php" method="GET">

        <div class="barSearch">

            <input type="hidden" name="" />

            <?=$MSG_103?>

            <input type="text" name="q" size=15 value="<?=htmlspecialchars($q);?>" />

            <input type="submit" name="" value="<? print $MSG_275;?>" class=button />

            &nbsp;&nbsp;<a href="<?=$SETTINGS['siteurl']?>adsearch.php"> <?=$MSG_464 ?> </a>

        </div> </form></td>

    <td width="50%" align="right"><form name="browse" action="<?=$SETTINGS['siteurl']?>browse.php" method="GET">

        <div class="barBrowse">

            <input type="hidden" name="" />

            <? print $MSG_104; ?>

            <? include $include_path."categories_select_box.inc.php"; ?>

            <input type="submit" name="" value="<? print $MSG_275;?>" class=button />

        </div>

        </form>

      </td>

  </tr>

</table>