NukeXchange Network

          

Nuke Sites Link Directory
Nuke Fixes · NukeForums · NukeZone Hosting · NukeUnited · Nuke Sites · Nuke Skins · NukeLance
Nuke Resources
 :: Home  :: Downloads  :: Your Account  :: Forums  :: Advertise :: 
Login or Register
Main Menu
General
 Main
 AvantGo
 Banner_Clients
 cfaq
 Donations
 Downloads
 Forums
 Members_List
 Private_Messages
 Search
 Stories_Archive
 Submit_News
 Surveys
 Topics
 Web_Links
 Your_Account

Your Account
 Login
 Register
 Lost Pass

Modules
Quick Links
· CMS Focus
· Domain Names
. Game Quest
· Learning Linux
. MateMaker
· NukeFixes
· NukeForums
· NukeLance
· Nuke Sites
· Nuke Skins
· NukeZone Hosting
. SearchDevil
Other Options

Download Resources
· Nuke Downloads
· Add a Link
· New Files
· Top Rated
· Most Popular

Web Site Resources
· Nuke Sites
· Add A Site
· New Sites
· Top Rated
· Most Popular

Support
· NukeZone Hosting
· NukeSkins.com
· NukeForums.com
· phpnuke.org
· NukeFixes.com
Information
NukeForums
·PHPNuke 8 security worries
·PHP-Nuke SQL Injection Vulnerability Fix
·decompressing EN-Book-Nuke.tar.tar
·How to allow spaces/gaps/"-" in allowed usernames
·How to Setup PHPNUKE on win2k
·cannot save changes
·voting?
·Nuke forum picture problem
·How to change smtp port on wampserver and windows
·yet another 301 redirect problem

read more...
Top10 Links
· 1: Nuke Forums
· 2: PHPNukeFiles
· 3: NukeSkins
· 4: Nuke Templates
· 5: EcomJunk
· 6: MDesign
· 7: Windows Installation: PHP
· 8: FLASH-FOR-NUKE
· 9: Dezina
· 10: Global Dream News Sharing Portal!
Site Visitors
User Login:

Nickname:
Password:
Security Code: Security Code
Type Security Code Here:

Members List Membership:
Latest: tones
Today: 1
Yesterday: 2
Overall: 15105

Visitation:
Guests: 551
Members: 0
Total: 551


You are Anonymous user. You can register for free by clicking here
Sponsor Links
php-Nuke Themes and Templates
php-Nuke Themes and Templates

NukeResources :: View topic - External Forums Redirect Mod (errors) ...
NukeResources Forum Index

NukeResources Forum Index -> Random Thoughts -> External Forums Redirect Mod (errors) ...
Post new topic  Reply to topic    View previous topic :: View next topic 
External Forums Redirect Mod (errors) ...
PostPosted: Mon Jul 02, 2007 2:25 pm Reply with quote
ragu
Resourceful
Resourceful
 
Joined: Mar 16, 2004
Posts: 141




Hi,

I have installed this mod that was ported for bbtonuke and are able to view and edit it in the admin panel and stuff, but when you click on the topic that is suppose to redirect you to a external url, I get these errors.

Code:
Warning: main(./extension.inc) [function.main]: failed to open stream: No such file or directory in /home/***/public_html/modules/Forums/view_external.php on line 21

Warning: main(./extension.inc) [function.main]: failed to open stream: No such file or directory in /home/***/public_html/modules/Forums/view_external.php on line 21

Warning: main() [function.include]: Failed opening './extension.inc' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/***/public_html/modules/Forums/view_external.php on line 21

Warning: main(./common.) [function.main]: failed to open stream: No such file or directory in /home/***/public_html/modules/Forums/view_external.php on line 22

Warning: main(./common.) [function.main]: failed to open stream: No such file or directory in /home/***/public_html/modules/Forums/view_external.php on line 22

Warning: main() [function.include]: Failed opening './common.' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/***/public_html/modules/Forums/view_external.php on line 22

Fatal error: Call to undefined function: session_pagestart() in /home/***/public_html/modules/Forums/view_external.php on line 26


I have checked my forums folder and I do have the extensions.inc file in there so I dont know what the deal is .... Here is the code for the "view_external.php" file

Code:

/***************************************************************************
 *                       view_external.php
 *                      -------------------
 *                    (C) 2003 John McKernan
 *
 ***************************************************************************/

/***************************************************************************
 *
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version.
 *
 ***************************************************************************/


define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);


// start session management
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);


// start initial var setup
if ( isset($HTTP_GET_VARS[POST_FORUM_URL]))
{
   $forum_id = intval($HTTP_GET_VARS[POST_FORUM_URL]);
}
else
{
   message_die(GENERAL_MESSAGE, "Error redirecting to external forum. Please try again.");
}

// update the hit counter
if ( !$userdata['session_logged_in'] )
{
   $sql = "UPDATE " . FORUMS_TABLE . "
      SET forum_redirects_guest = forum_redirects_guest + 1
      WHERE forum_id = $forum_id";
   if ( !$db->sql_query($sql) )
   {
      message_die(GENERAL_ERROR, "Could not update forum hit counter.", '', __LINE__, __FILE__, $sql);
   }
}
else
{
   $sql = "UPDATE " . FORUMS_TABLE . "
      SET forum_redirects_user = forum_redirects_user + 1
      WHERE forum_id = $forum_id";
   if ( !$db->sql_query($sql) )
   {
      message_die(GENERAL_ERROR, "Could not update forum hit counter.", '', __LINE__, __FILE__, $sql);
   }
}

// pull the external redirect info
$sql = "SELECT f.forum_redirect_url FROM " . FORUMS_TABLE . " f WHERE forum_id = $forum_id";

if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, "Could not obtain redirection information.", '', __LINE__, __FILE__, $sql);
}

if ( !($row = $db->sql_fetchrow($result)) )
{
   message_die(GENERAL_MESSAGE, "Could not obtain redirection information.", '', __LINE__, __FILE__, $sql);
}

$external_url = "Location: " . $row['forum_redirect_url'];

header($external_url);

?>


Thanks In Advance for any help.
View user's profile Send private message
External Forums Redirect Mod (errors) ...
 NukeResources Forum Index -> Random Thoughts
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
All times are GMT - 4 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic     



Powered by phpBB © 2001-2005 phpBB Group.     Theme created by Vjacheslav Trushkin.
There have been 178 unique hit(s) in the past 24 hours.
Forums ©
Download the Best Archiver in the World


Best viewed with a Browser
All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2001 - 2007 by NukeResources.com
You can syndicate our news using the file .backend.php or ultramode.txt
PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the GPL. PHP-Nuke comes with absolutely no warranty, for details, see the license.
Page Generation: 0.46 Seconds

:: Eos phpbb2 style by Cyberalien :: PHP-Nuke theme by www.nukemods.com ::