Jump to content
Stef's Coding Community
Sign in to follow this  
Hank

phpauction

Recommended Posts

mmm right, I recently purchased this from some dodgy guys somewhere. Got the script installed and all seems to be working well.

What I want to do is to have a link to a wordpress blog (Already installed and working)

 

This is the code below:

 

My directory structure looks something like this:

 

root

--blog

-header.php (but the actual header of my website is in my root directory - linked to a header.php.html file(Struggling to figure this out in root/themes/mythemes))

 

I've made some comment below, be great if someone can point me in the right direction.

 

-----------------------------------

 

<?php

/**

* The Header for our theme.

*

* Displays all of the <head> section and everything up till <div id="main">

*

* @package WordPress

* @subpackage Twenty_Ten

* @since Twenty Ten 1.0

*/

?><!DOCTYPE html>

 

<html <?php language_attributes(); ?>>

<head>

<meta charset="<?php bloginfo( 'charset' ); ?>" />

<title><?php

/*

* Print the <title> tag based on what is being viewed.

*/

global $page, $paged;

 

wp_title( '|', true, 'right' );

 

// Add the blog name.

bloginfo( 'name' );

 

// Add the blog description for the home/front page.

$site_description = get_bloginfo( 'description', 'display' );

if ( $site_description && ( is_home() || is_front_page() ) )

echo " | $site_description";

 

// Add a page number if necessary:

if ( $paged >= 2 || $page >= 2 )

echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );

 

?></title>

 

 

<?php

/* We add some JavaScript to pages with the comment form

* to support sites with threaded comments (when in use).

*/

if ( is_singular() && get_option( 'thread_comments' ) )

wp_enqueue_script( 'comment-reply' );

 

/* Always have wp_head() just before the closing </head>

* tag of your theme, or you will break many plugins, which

* generally use this hook to add elements to <head> such

* as styles, scripts, and meta tags.

*/

wp_head();

?>

 

<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />

 

<?php

 

----- ALL WORKS WELL TO THIS POINT ----------------------------

 

#//v.3.2.2

#///////////////////////////////////////////////////////

#// COPYRIGHT 2004 Phpauction.org ALL RIGHTS RESERVED//

#///////////////////////////////////////////////////////

 

----------------- WHEN IT GETS HERE IT GIVES ME ACCESS DENIED -----------------

 

if(!defined("INCLUDED")) exit("Access denied");

 

$prefix = str_replace("http://", "", $prefix);

if ( file_exists($prefix.'./includes/config.inc.php'))

require($prefix.'./includes/config.inc.php');

else

exit ("Access forbbiden");

 

------------IF I SET $prefix TO A NEW VALUE I CAN GET PAST THIS TOP BIT , I PRESUME NOT A GOOD IDEA-----------------

 

mysql_query("SET CHARACTER_SET_CLIENT=utf8");

mysql_query("SET character_set_server=utf8");

mysql_query("SET character_set_results=utf8");

mysql_query("SET character_set_database=utf8");

mysql_query("SET character_set_connection=utf8");

mysql_query("SET collation_server=utf8");

mysql_query("SET collation_database=utf8");

mysql_query("SET collation_connection=utf8");

 

#// Atuomatically login user is necessary ("Remember me" option

if(!isset($_SESSION["PHPAUCTION_LOGGED_IN"]) && isset($_COOKIE['PHPAUCTION_RM_ID'])) {

$query = "SELECT userid FROM PHPAUCTIONXL_rememberme WHERE hashkey='".addslashes($_COOKIE['PHPAUCTION_RM_ID'])."'";

$res = mysql_query($query);

if(!$res){

MySQLError($query);

exit;

}elseif(mysql_num_rows($res) > 0){

$REMEMBER = mysql_fetch_array(mysql_query("SELECT id,email,nick,name FROM PHPAUCTIONXL_users WHERE id=".intval(mysql_result($res,0,"userid"))));

mysql_error();

$_SESSION["PHPAUCTION_LOGGED_IN"] = $REMEMBER['id'];

$_SESSION["PHPAUCTION_LOGGED_EMAIL"] = $REMEMBER['email'];

$_SESSION["PHPAUCTION_LOGGED_NAME"] = $REMEMBER['name'];

$_SESSION["PHPAUCTION_LOGGED_IN_USERNAME"] = $REMEMBER['nick'];

}

}

 

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

* NOTE: Modules enbled version

* This version of header.php can be called from any Phpauction XL module

* It uses the $prefix variable to set the correct include path.

*

*

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

 

-------------BUT THEN I GET TO THE INCLUDES BELOW I GET THE MESSAGE ACCESS DENIED, I KNOW OR THINK IT IS BECAUSE I CANNOT ACCESS THOSE FILES DIRECTLY ---------------

 

// include "../includes/ips.inc.php";

 

// include $prefix."includes/ips.inc.php";

 

//-- Function definition section

include $prefix."includes/dates.inc.php";

 

 

include $prefix."maintenance.php";

include $prefix."includes/banners.inc.php";

 

#//

if(basename($PHP_SELF) != "error.php")

{

include $prefix."includes/stats.inc.php";

}

// flag to enable style editor

$editstyle=isset($_SESSION["PHPAUCTION_ADMIN_USER"]) && !isset($_GET['thepage']);

$editstyle=$editstyle && $prefix=="";

// Added by Edgar 12/09/2005

// to handle relative paths to themes when browsing webstores

// Seeks path to header.php.html in address of being at home directory or webstores module

if (!isset($SETTINGS['theme']) || empty($SETTINGS['theme'])) $SETTINGS['theme']='default';

$htmlheader="themes/".$SETTINGS['theme']."/header.php.html";

 

if (!file_exists($htmlheader)) {

$htmlheader="../../themes/".$SETTINGS['theme']."/header.php.html";

}

 

include($htmlheader);

 

?>

 

</head>

Share this post


Link to post
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.
Note: Your post will require moderator approval before it will be visible.

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.

Loading...
Sign in to follow this  

×
×
  • Create New...