Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Customized Distribution Packs
Author Message
corba
New Member
New Member


Joined: Mar 15, 2006
Posts: 2

PostPosted: Sun Mar 19, 2006 2:44 am Reply with quote

in previous versions of nuke I was able to create a simple Module using the code below for some reason it no longer works any suggestions ?
Code:
<?php


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

require_once("mainfile.php");


include("header.php");

include("includes/my.htm");

include("footer.php");

?>
 
View user's profile Send private message
hitwalker
Sells PC To Pay For Divorce


Joined:
Posts: 5661

PostPosted: Sun Mar 19, 2006 6:17 am Reply with quote

and like this..

Code:
<?


if ( !defined('MODULE_FILE') )
{
   die("You can't access this file directly...");
}

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

include("header.php");
$index = 1;
OpenTable();

echo"bla bla bla";
CloseTable();
include("footer.php");

?>
 
View user's profile Send private message
corba
PostPosted: Sun Mar 19, 2006 9:17 pm Reply with quote

Thank you very much i'll try this and see
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> Raven's Customized Distribution Packs

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©