Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
Eduardo
Worker
Worker



Joined: Jul 20, 2004
Posts: 189
Location: Italy

PostPosted: Tue Oct 28, 2008 3:32 am Reply with quote

When I try to install the table of Theme_Cp_Panel I get the following error:

Warning: require_once(INCLUDE_PATHrnconfig.php) [function.require-once]: failed to open stream: No such file or directory in /xxx/config.php on line 94

Fatal error: require_once() [function.require]: Failed opening required 'INCLUDE_PATHrnconfig.php' (include_path='.:/php5/lib/php/') in /xxxx/config.php on line 94

Edited: Server paths removed by Guardian
 
View user's profile Send private message
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Tue Oct 28, 2008 4:50 am Reply with quote

Puth this at the top of your installation file if it is in the root of your website. If it is not in the root you will need to modify it as neccessary.

define('INCLUDE_PATH', './');

_________________
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan. 
View user's profile Send private message
Eduardo







PostPosted: Wed Oct 29, 2008 11:49 am Reply with quote

Thank you very much.
 
Eduardo







PostPosted: Tue May 05, 2009 4:59 am Reply with quote

Palbin wrote:
........ If it is not in the root you will need to modify it as neccessary.


My Raven distro is into a directory named raven231, please tell me how I need to modify the path.
Many thanks.
 
evaders99
Former Moderator in Good Standing



Joined: Apr 30, 2004
Posts: 3221

PostPosted: Tue May 05, 2009 7:15 pm Reply with quote

Should not require any change, as ./ should define the local path relative to your RavenNuke directory

_________________
- Star Wars Rebellion Network -

Need help? Nuke Patched Core, Coding Services, Webmaster Services 
View user's profile Send private message Visit poster's website
Eduardo







PostPosted: Wed May 06, 2009 9:32 am Reply with quote

Palbin suggested me to include define('INCLUDE_PATH', './'); in the install.php file.
So I have installed the table.
Now my problem is in the admin sector.
When I go to make changes to the theme the connection to the table of the database is not possible.
Where is the problem?
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed May 06, 2009 11:09 am Reply with quote

Without seeing the code it is impossible to say but most likely the script is using the old $dbi database layer.
If you can send me a link to where I can download the package, I will look at it tomorrow for you.
 
View user's profile Send private message Send e-mail
Eduardo







PostPosted: Wed May 06, 2009 12:19 pm Reply with quote

The home page link is: [ Only registered users can see links on this board! Get registered or login! ]

To download the package: [ Only registered users can see links on this board! Get registered or login! ]
 
Eduardo







PostPosted: Wed May 06, 2009 12:35 pm Reply with quote

The word $dbi is 5 times.
Please tell me the changes.
Following the code:

Code:
<?php

if (!defined('ADMIN_FILE')) {
   die ("Access Denied");
}

global $prefix, $db, $admin_file;
$aid = substr("$aid", 0,25);
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] == 1) {
/*********************************************************/
/* Configuration Functions to Setup all the Variables    */
/*********************************************************/
if (file_exists("admin/language/themecp/lang-$language.php"))
{
   include("admin/language/themecp/lang-$language.php");
}
else
{
   include("admin/language/themecp/lang-english.php");
}
function themesetup() {
    global $prefix, $dbi;
    include ("header.php");
    GraphicAdmin();
    $result = sql_query("SELECT link1, link2, link3, link4, link5, custom_title1, custom_title2, custom_title3, custom_title4, custom_title5, link1url, link2url, link3url, link4url, link5url from ".$prefix."_themecp", $dbi);
    list($link1, $link2, $link3, $link4, $link5, $custom_title1, $custom_title2, $custom_title3, $custom_title4, $custom_title5, $link1url, $link2url, $link3url, $link4url, $link5url) = sql_fetch_row($result, $dbi);
    OpenTable();
    echo "<center><font class='title'><b>"._THEMECONFIG."</b></font></center>";
    CloseTable();
    echo "<br>";
    OpenTable();
    echo "<center><font class='option'><b>"._THEMESETUP."</b></font></center>"
   ."<form action='admin.php' method='post'>"
   ."<table border='0' align=center><tr><td>"
   .""._CUSTOM1NAME.":</td><td><input type='text' name='xcustom1' value='$custom_title1' size='25' maxlength='25'>"
   ."</td></tr><tr><td>"
   .""._LINK1NAME.":</td><td><input type='text' name='xlink1' value='$link1' size='25' maxlength='25'>"
   ."</td></tr><tr><td>"
   .""._LINK1URL.":</td><td><input type='text' name='xlink1url' value='$link1url' size='60' maxlength='255'>"
   ."</td></tr><tr><td>"
   .""._CUSTOM2NAME.":</td><td><input type='text' name='xcustom2' value='$custom_title2' size='25' maxlength='25'>"
   ."</td></tr><tr><td>"
   .""._LINK2NAME.":</td><td><input type='text' name='xlink2' value='$link2' size='25' maxlength='25'>"
   ."</td></tr><tr><td>"
   .""._LINK2URL.":</td><td><input type='text' name='xlink2url' value='$link2url' size='60' maxlength='255'>"
   ."</td></tr><tr><td>"
   .""._CUSTOM3NAME.":</td><td><input type='text' name='xcustom3' value='$custom_title3' size='25' maxlength='25'>"
   ."</td></tr><tr><td>"
   .""._LINK3NAME.":</td><td><input type='text' name='xlink3' value='$link3' size='25' maxlength='25'>"
   ."</td></tr><tr><td>"
   .""._LINK3URL.":</td><td><input type='text' name='xlink3url' value='$link3url' size='60' maxlength='255'>"
   ."</td></tr><tr><td>"
   .""._CUSTOM4NAME.":</td><td><input type='text' name='xcustom4' value='$custom_title4' size='25' maxlength='25'>"
   ."</td></tr><tr><td>"
   .""._LINK4NAME.":</td><td><input type='text' name='xlink4' value='$link4' size='25' maxlength='25'>"
   ."</td></tr><tr><td>"
   .""._LINK4URL.":</td><td><input type='text' name='xlink4url' value='$link4url' size='60' maxlength='255'>"
   ."</td></tr><tr><td>"
   .""._CUSTOM5NAME.":</td><td><input type='text' name='xcustom5' value='$custom_title5' size='25' maxlength='25'>"
   ."</td></tr><tr><td>"
   .""._LINK5NAME.":</td><td><input type='text' name='xlink5' value='$link5' size='25' maxlength='25'>"
   ."</td></tr><tr><td>"
   .""._LINK5URL.":</td><td><input type='text' name='xlink5url' value='$link5url' size='60' maxlength='255'>"
   ."</td></tr>";

    echo "</table><br><br>";
    echo "<input type='hidden' name='op' value='themecpSave'>"
   ."<center><input type='submit' value='"._SAVECHANGES."'></center>"
   ."</form>";
    CloseTable();
    include ("footer.php");
}

function themecpSave ($xlink1, $xlink2, $xlink3, $xlink4, $xlink5, $xcustom1, $xcustom2, $xcustom3, $xcustom4, $xcustom5, $xlink1url, $xlink2url, $xlink3url, $xlink4url, $xlink5url) {
    global $prefix, $dbi;
   
    $xlink1 = htmlentities($xlink1, ENT_QUOTES);
    $xlink2 = htmlentities($xlink2, ENT_QUOTES);
    $xlink3 = htmlentities($xlink3, ENT_QUOTES);
    $xlink4 = htmlentities($xlink4, ENT_QUOTES);
    $xlink5 = htmlentities($xlink5, ENT_QUOTES);
    $xcustom1 = htmlentities($xcustom1, ENT_QUOTES);
    $xcustom2 = htmlentities($xcustom2, ENT_QUOTES);
    $xcustom3 = htmlentities($xcustom3, ENT_QUOTES);
    $xcustom4 = htmlentities($xcustom4, ENT_QUOTES);
    $xcustom5 = htmlentities($xcustom5, ENT_QUOTES);
    $xlink1url = htmlentities($xlink1url, ENT_QUOTES);
    $xlink1ur2 = htmlentities($xlink1ur2, ENT_QUOTES);
    $xlink1ur3 = htmlentities($xlink1ur3, ENT_QUOTES);
    $xlink1ur4 = htmlentities($xlink1ur4, ENT_QUOTES);
    $xlink1ur5 = htmlentities($xlink1ur5, ENT_QUOTES);
    sql_query("UPDATE ".$prefix."_themecp SET link1='$xlink1', link2='$xlink2', link3='$xlink3', link4='$xlink4', link5='$xlink5', custom_title1='$xcustom1', custom_title2='$xcustom2', custom_title3='$xcustom3', custom_title4='$xcustom4', custom_title5='$xcustom5', link1url='$xlink1url', link2url='$xlink2url', link3url='$xlink3url', link4url='$xlink4url', link5url='$xlink5url'", $dbi);
    Header("Location: admin.php?op=themesetup");
}

switch($op) {

    case "themesetup":
    themesetup();
    break;

    case "themecpSave":
    themecpSave ($xlink1, $xlink2, $xlink3, $xlink4, $xlink5, $xcustom1, $xcustom2, $xcustom3, $xcustom4, $xcustom5, $xlink1url, $xlink2url, $xlink3url, $xlink4url, $xlink5url);
    break;

}

} else {
    echo "Access Denied";
}

?>
 
jakec
Site Admin



Joined: Feb 06, 2006
Posts: 3048
Location: United Kingdom

PostPosted: Wed May 06, 2009 12:45 pm Reply with quote

There is a post in the forums here explaining how to make the changes required. Wink
 
View user's profile Send private message
Guardian2003







PostPosted: Wed May 06, 2009 12:54 pm Reply with quote

I have the package so I'll load it up first thing in the morning and sort it out for you.
 
Guardian2003







PostPosted: Wed May 06, 2009 9:52 pm Reply with quote

Here ya go. Package has the $dbi problem fixed and a number of other tweaks/enhancements. I will also send a copy to the author. [ Only registered users can see links on this board! Get registered or login! ]
 
Eduardo







PostPosted: Wed May 06, 2009 11:46 pm Reply with quote

Many thanks Guardian2003
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

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 ©