News:

SMF 2.1.6 has been released! Take it for a spin! Read more.

Main Menu

Fatal Error when trying Recent Topics SSI

Started by kadhumia_flo, September 03, 2005, 02:14:16 PM

Previous topic - Next topic

kadhumia_flo

QuoteFatal error: Cannot redeclare is_admin() (previously declared in /data/members/paid/a/l/****/htdocs/www/nuke/mainfile.php:220) in /data/members/paid/a/l/****/htdocs/www/board/Sources/Security.php on line 126

This is the error I get when i try to put a file in a block in PHPNuke for recent posts...
This is the file im trying to insert
<?php require("/data/members/paid/a/l/[color=red]****[/color]/htdocs/www/board/SSI.php"); ?>
<?php ssi_recentTopics(); ?>


Appreiciate any1s help

kadhumia_flo

Well im thinking... could it be that im an admin in PHPNuke, and SMF takes this as a hacking attempt and doesnt let me see them... becoz they think i wanna declre admin  ;D

kadhumia_flo

OK I edited the file

Now it looks like this

<?php

require(dirname(__FILE__) . '/SSI.php');

?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
echo '
<link rel="stylesheet" type="text/css" href="', $settings['default_theme_url'], '/style.css" />
<script language="JavaScript" type="text/javascript" src="', $settings['default_theme_url'], '/script.js"></script>
<style type="text/css">
body
{
margin: 1ex;
}';

echo '
</style>';

?>
</head>
<body>
<?php ssi_recentPosts(); flush(); ?>
</body>
</html>


But this time,,,, nothing is shown, but there is no error... so its absolutly blank and for some reason the block title is also disappeared

[Unknown]

Currently, SMF and PHP-Nuke have some conflicts.

-[Unknown]


Advertisement: