>>  Site Map >>  Forums >>  Modules 6x

Forum module - topics in forum:



Modules 6x - Discussions regarding PHP-Nuke Modules.



Probably a newbie Q, but i'll ask cause i dunno...

OK, here's the deal, rencently i've added two new modules, one is a java mIRC chat, and the other one is a webcam... what i'm wanting to do is this:

1) keep them as seperate modules in case some users might not have the bandwidth for the cams
2) load the java chat from the Irc module into the same " page " as the webcam module

If anyone has any insight into this, I would really appreciate it.

here's what i have so far, but i get alot of complaints from php or the webserver or somehting:

*********************************
Webcam PHP file (edited for security)
*********************************

Code: :
<?php
if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
$index = 1;   // 0 : do not show right blocks - 1:show right blocks
require_once("mainfile.php");
$module_name = basename(dirname(__FILE__));
include("header.php");
OpenTable();
echo "<center>\n";
echo "\n";
echo "\n";
echo "    <h1>xXxXxXxXxXxXxX Live Web Cam</h1>\n";
echo "\n";
echo "\n";
echo "\n";
echo "<!-- BEGINN OF VARIABLE CODE, DO COPY AND PASTE IF YOU WILL USE THIS IN ANOTHER/YOUR OWN FILE //-->\n";
echo "\n";
echo "\n";
echo "\n";
echo "<!-- APPLET Start //-->\n";
echo "<APPLET code=\"webcam.class\" codebase=\"http://IP_REMOVED/\" width=%%groesse_w%% height=%%groesse_h%%>\n";
echo "<PARAM name=\"imgurl\" value=\"http://IP_REMOVED/pw.jpg\">\n";
echo "<PARAM name=\"interval\" value=\"200\">\n";
echo "</APPLET>\n";
echo "<!-- APPLET Ende //-->\n";
echo "\n";
echo "\n";
echo "\n";
echo "<!-- END OF VARIABLE CODE, DO COPY AND PASTE IF YOU WILL USE THIS IN ANOTHER/YOUR OWN FILE //-->\n";
echo "</center>\n";
CloseTable();
OpenTable();
include("/modules.php?name=Irc&file=index2");
CloseTable();
include("footer.php");
?>




*********************************
WARNINGS
*********************************

Code: :
Warning: main(): open_basedir restriction in effect. File(/modules.php?name=Irc&file=index2) is not within the allowed path(s): (/httpdocs:/tmp) in httpdocs/modules/LiveCam/index.php on line 36

Warning: main(/modules.php?name=Irc&file=index2): failed to open stream: Operation not permitted in httpdocs/modules/LiveCam/index.php on line 36

Warning: main(): Failed opening '/modules.php?name=Irc&file=index2' for inclusion (include_path='.:/usr/share/pear') in /httpdocs/modules/LiveCam/index.php on line 36




This page is generated by phpNuke sitemapper script version 0.2
Sitemapper is a free php script, written by Janek Vind "waraxe"
Please support development: shop for easy memory upgrade - ddr memory, rambus memory, fast memory, flash memory, nonvolatile memory

Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS