PHPnuke intergration. Images are x's

stuupke

Joined: 2005-07-09
Posts: 4
Posted: Wed, 2005-07-20 19:15

Who can help me. All the images that i uploaded are x's.
Gallery2 dir: http://www.exploringtheworld.info/gallery2
PHP gallery2 dir: http://www.exploringtheworld.info/html/modules/gallery2
G2data map:Gallery2 dir: http://www.exploringtheworld.info/gallery2/g2data
in the PHP gallery2 dir i got the index.php file.
Who can help me?

<?php

/************************************************************************/
/* PHP-NUKE: Web Portal System */
/* =========================== */
/* */
/* Copyright (c) 2002 by Francisco Burzi */
/* http://phpnuke.org */
/* */
/* ====================== */
/* Based on Automated FAQ */
/* Copyright (c) 2001 by */
/* Richard Tirtadji AKA King Richard (rtirtadji@hotmail.com) */
/* Hutdik Hermawan AKA hotFix (hutdik76@hotmail.com) */
/* http://www.phpnuke.web.id */
/* */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License. */
/************************************************************************/
/* Additional security & Abstraction layer conversion */
/* 2003 chatserv */
/* http://www.nukefixes.com -- http://www.nukeresources.com */
/************************************************************************/

if (!eregi("modules.php", $_SERVER['PHP_SELF'])) {
die ("You can't access this file directly...");
}

require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));

include("header.php");

require_once(dirname(__FILE__) . '/../../../gallery2/embed.php');

$ret = GalleryEmbed::init(array(
'embedUri' => 'http://www.exploringtheworld.info/html/modules.php?name=gallery2',
'relativeG2Path' => '/../../../gallery2/',
'loginRedirect' => 'index.php',
'activeUserId' => '0'));

GalleryCapabilities::set('showSidebar', false);

// handle the G2 request
$g2moddata = GalleryEmbed::handleRequest();

// show error message if isDone is not defined
if (!isset($g2moddata['isDone']))
{
echo 'isDone is not defined, something very bad must have happened.';
exit;
}

// die if it was a binary data (image) request
if ($g2moddata['isDone'])
{
exit; /* uploads module does this too */
}

if ($ret->isError())
{
echo $ret->getAsHtml();
}

echo $g2moddata['headHtml'];
echo $g2moddata['bodyHtml'];

include("footer.php");

?>

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-07-20 19:41

-> nukedgallery.net for phpnuke/g2 support.

 
stuupke

Joined: 2005-07-09
Posts: 4
Posted: Wed, 2005-07-20 19:53

it is working :lol: