Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6 Bugs/Fixes
Author Message
SuperCat
Hangin' Around



Joined: Nov 27, 2004
Posts: 37
Location: MN

PostPosted: Sat Nov 27, 2004 4:24 pm Reply with quote

The security code graphic is broke in v7.6. In fact, it is extensively broke!

Here are the fixes needed to get it working again:

Find:
Code:
echo "<tr><td colspan='2'>"._SECURITYCODE.": <img src='?gfx=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."' /></td></tr>"


Replace with:
Code:
echo "<tr><td colspan='2'>"._SECURITYCODE.": <img src='".$admin_file.".php?op=gfx&amp;random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."' /></td></tr>"


Find the end of function login() and add this after the last }:
Code:
function gfx($random_num) {

    global $prefix, $db;
    require("config.php");
    $datekey = date("F j");
    $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
    $code = substr($rcode, 2, 6);
    $image = ImageCreateFromJPEG("images/admin/code_bg.jpg");
    $text_color = ImageColorAllocate($image, 80, 80, 80);
    Header("Content-type: image/jpeg");
    ImageString ($image, 5, 12, 2, $code, $text_color);
    ImageJPEG($image, '', 75);
    ImageDestroy($image);
    die();
}


Find:
Code:
switch($op) {


Add this after it:
Code:
case "gfx":

gfx($random_num);
break;
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Wazock
New Member
New Member



Joined: Nov 27, 2004
Posts: 16

PostPosted: Sun Nov 28, 2004 9:28 am Reply with quote

On wich file(s) would this code be as you have not stated.
 
View user's profile Send private message
SuperCat







PostPosted: Sun Nov 28, 2004 11:29 am Reply with quote

That would be in admin.php or whatever you have renamed it to.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6 Bugs/Fixes

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 ©