Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Modules
Author Message
pureliving
Worker
Worker


Joined: Dec 01, 2008
Posts: 180

PostPosted: Thu Jan 22, 2009 9:51 pm Reply with quote

Can someone please advice me?

Recently i decided to do a search into different modules on the net that reference suitability in raven nuke websites, only to find there are many that all seem to receive the same kind of error.

In particular now in question is WS Banners, for some reason all the installation has gone according, yet when i click upon the module link in the site navigation bar, yes everything seems to be showing and working ok, although there are no settings(obvious default), but when i click WS Banners from the admin panel all i get is a blank white page.

I seem to have also got this same type of error upon quite a few other tested modules. Does anyone have any advise as to what might be causing these type of issues to arise.

It would really be appreciated to have your help.

Thank you sincerely.
 
View user's profile Send private message
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Thu Jan 22, 2009 11:29 pm Reply with quote

Pretty sure if these are older scripts, then they are using old database code.
Please check the post on fixes to such old database layer - $dbi - issues

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
pureliving
PostPosted: Fri Jan 23, 2009 9:58 am Reply with quote

Oh yes just remembered from a previous topic we have discussed.

Although I don't suppose you can guide me to any more detailed tutorials or topics, regarding how to correct all the issues that are experienced with certain modules like these with the database layer issues, as if i were to rewrite these scripts to a working raven condition.

Any advise would highly be appreciated.
 
jakec
Site Admin


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

PostPosted: Fri Jan 23, 2009 10:37 am Reply with quote

There is a sticky which talks you through it. Do a search for $dbi. Wink
 
View user's profile Send private message
pureliving
PostPosted: Fri Jan 23, 2009 7:31 pm Reply with quote

There are quite a few pieces that are not taken into consideration in the top sticky topic:
Only registered users can see links on this board! Get registered or login! - by Palbin.

Seems today with the rapid expansion of programming there is alot of changes that in fact require chatserv security and additional abstraction layer conversions, although at my experience and learning level, apart from the $dbi, sql_query and fetch_row functions that require changing in older programmed modules, how would i change the end of table function call, or are the following correct:

> function ws_banadmin()

> ws_banadmin();

As when i look at these compared to the way the code is structured, i can not comprehend at this stage whether these are right or require modification, just as my research shows nearly all functions within the module in question has required also the change of include to include_once, and require into require_once, so i wondered does the alike need altering also.

Also another thing i noticed wrong with older modules is the start security of some files, like for instance:

Quote:

if (!eregi("admin.php", $_SERVER['PHP_SELF'])) { die ("Access Denied"); }
$result = sql_query("select radminsuper from ".$prefix."_authors where aid='$aid'", $dbi);
list($radminsuper) = sql_fetch_row($result, $dbi);
if ($radminsuper==1) {
global $prefix, $db, $bgcolor1;
include("paginator.php");
require("./ws_core/inc/upload.inc.php");
function ws_banadmin(){
OpenTable();


I have changed to:

Quote:

if ( !defined('ADMIN_FILE') )
{
die ("Access Denied");
}
global $prefix, $db, $admin_file, $bgcolor1;
include_once('paginator.php');
$row = $db->sql_fetchrow($db->sql_query("SELECT radminsuper FROM " . $prefix . "_authors WHERE aid='$aid'"));
if ($row['radminsuper'] ==1)
if (!isset($ok)) { $ok = ''; } //an addition by fkelly
{
require_once('./ws_core/inc/upload.inc.php');
function ws_banadmin(){
OpenTable();




So as for the modification i changed on this page, would you say there is anything missing, or as i queried, would the function call need changing at all?
Truthfully i have never modified any module before as in such detail as this, so please bare with me, while i learn, but to be able to change old modules into new for raven i believe would be a great idea, so it would really be appreciated to receive your advice. [/quote]
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> 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 ©