<?php
if (!eregi("modules.php", $PHP_SELF)) {
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 = 0;
OpenTable();
//The whole codes at the top of this line are required for seeing the Module in the Main Page
echo"place your code here"
."Your second line code"
."";
//these two lines are required for seeing the Module in the Main Page
CloseTable();
include("footer.php");
?>
Note: A Module file should be like this. if u want to see the blocks in the left side, change the ($index = 0) to ($index = 1).
now u have created your own Module.
Have Fun