Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules
Author Message
ibonic
Hangin' Around



Joined: Aug 12, 2009
Posts: 25

PostPosted: Sun Jan 04, 2015 5:50 pm Reply with quote

Hi, I'm trying to install HTTP Video Stream V.4.53 into Ravennuke 2.51 and receive the following error

Warning: require_once(mainfile.php) [function.require-once]: failed to open stream: No such file or directory in /***removed***/modules/Video_Stream/Video_Stream_SQL_Installer.php on line 20

Fatal error: require_once() [function.require]: Failed opening required 'mainfile.php' (include_path='***removed*') in /***removed***/modules/Video_Stream/Video_Stream_SQL_Installer.php on line 20

I have copied the files to the Ravennuke 2.51 module folder and tried install it.

Any idea how to rectify this?

Thank you,
 
View user's profile Send private message Visit poster's website
neralex
Site Admin



Joined: Aug 22, 2007
Posts: 1772

PostPosted: Sun Jan 04, 2015 10:17 pm Reply with quote

This one?
[ Only registered users can see links on this board! Get registered or login! ]

_________________
Github: RavenNuke 
View user's profile Send private message
ibonic







PostPosted: Sun Jan 04, 2015 11:23 pm Reply with quote

neralex wrote:
This one?
[ Only registered users can see links on this board! Get registered or login! ]


Yes that one
 
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1122

PostPosted: Thu Feb 19, 2015 10:44 am Reply with quote

I just started today taking the time to convert this one. Lots of work guys! Just to let u know.
 
View user's profile Send private message
hicuxunicorniobestbuildpc







PostPosted: Fri Feb 20, 2015 4:42 am Reply with quote

First file

case.video_stream.php

OLD

Code:
<?php



global $admin_file;
if (!eregi("".$admin_file.".php", $_SERVER['SCRIPT_NAME'])) { die ("Access Denied"); }

switch($op) {
    case "video_stream":
    include("admin/modules/video_stream.php");
    break;

}

?>


New

Code:
<?php


if ( !defined('ADMIN_FILE') ) {die ('Access Denied');}
$module_name = basename(substr(__FILE__, 0, -15));
switch($op) {

   case 'video_stream':
   include_once 'admin/' . $module_name . '/video_stream.php';
    break;


I think it is better to make this module more efficient if we change the admin folder from the root to the module itself. Like this it will be more independable.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules

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 ©