Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
Donovan
Client



Joined: Oct 07, 2003
Posts: 735
Location: Ohio

PostPosted: Tue Jul 17, 2007 2:38 pm Reply with quote

I found a nice looking Admin Login block that is configurable. I tried to find the one at NukeScripts and Ravens front page but no luck.

Check the bottom right side.
[ Only registered users can see links on this board! Get registered or login! ]

Problem is this doesn't display the correct gfx_check image for RavenNuke v2.10.01

The part of the code that displays this is as follows:

Code:
if (extension_loaded("gd") AND ($gfx_chk == 1 OR $gfx_chk == 5 OR $gfx_chk == 6 OR $gfx_chk == 7)) {

      $content .= "<tr><td>Security Key<br><img src='index.php?gfx=gfx&random_num=$random_num' border='1' height='21' width='78' alt='code' title='CODE'></td></tr>";
      $content .= "<tr><td>Input Key<br><input type=\"text\" NAME=\"gfx_check\" SIZE=\"10\" MAXLENGTH=\"25\"></td></tr>";
     $content .= "<tr><td><input type=\"hidden\" NAME=\"random_num\" value=\"$random_num\"></td></tr>";
}


How could I fix this so it displays the correct gfx number?
 
View user's profile Send private message Visit poster's website ICQ Number
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Wed Jul 18, 2007 6:00 am Reply with quote

I would look at the admin.php script as the needed code is well commented between the following:

/*****[BEGIN]******************************************
[ Base: GFX Code v1.0.0 ]
******************************************************/
the code here
/*****[END]********************************************
[ Base: GFX Code v1.0.0 ]
******************************************************/

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
kevinkap
Involved
Involved



Joined: Apr 22, 2006
Posts: 356

PostPosted: Tue Oct 23, 2007 3:22 pm Reply with quote

I have the same admin block and have tried to get the code changed but I just keep breaking it. I figure it is probably part because of the block is coded not in the same standards as with the admin file.

I have tried replacing the above code with:

Code:
/*****[BEGIN]******************************************

 [ Base:    GFX Code                           v1.0.0 ]
 ******************************************************/
    echo security_code(array(1,5,6,7), 'normal');
/*****[END]********************************************
 [ Base:    GFX Code                           v1.0.0 ]
 ******************************************************/


but I just keep breaking the site.

Would I need to use the complete admin login function without the header and footer includes to make it work?

I would paste it but it blocked me.

_________________
Kevin Kappes 
View user's profile Send private message
montego







PostPosted: Wed Oct 24, 2007 7:23 am Reply with quote

Kevin, try posting the complete block code here minus the opening and closing PHP tags.

If is is just PHP code and no echoing out of javascript / etc. you should not get banned.

Just the block file please!
 
fkelly
Former Moderator in Good Standing



Joined: Aug 30, 2005
Posts: 3312
Location: near Albany NY

PostPosted: Wed Oct 24, 2007 7:27 am Reply with quote

Why not just use what's in your account / your home and activate the personal menu?

<rant>Why does everyone have to make everything so darned complicated?</rant>
 
View user's profile Send private message Visit poster's website
kevinkap







PostPosted: Wed Oct 24, 2007 3:20 pm Reply with quote

fkelly wrote:
Why not just use what's in your account / your home and activate the personal menu?

<rant>Why does everyone have to make everything so darned complicated?</rant>


Not to sound stupid, but I do not see how that would do anything to resolve what I am trying to do. So what, everyone that has admin priv. would have to go and put links to all the admin area or a link to the admin login page? I just do not get what you are trying to say fkelly.

I have tried to post the code but I still keep getting banned. I tried removing the js code and such but there must be something else triggering it.

I tried to contact floppydrives some time ago as he created it and has the modified version no his site but no luck.
 
fkelly







PostPosted: Wed Oct 24, 2007 4:57 pm Reply with quote

Quote:
So what, everyone that has admin priv. would have to go and put links to all the admin area or a link to the admin login page? I just do not get what you are trying to say fkelly.


Yes, that's what I'm trying to say. I have told all my admins to do that. But in my question, however badly it was worded, I was just trying to get an understanding of how GOD admins administer their sites. I have less than 10 people that I give admin privileges of any type to. Even with them I have problems getting them to remember their admin id's and passwords and to sign on as admins before they try to access an admin function. We really need to have a groups--admin privileges option rather than adding admins to the authors table and to the modules table too. The current situation is unreliable and inefficient. Therein lies my rave, but I need to post that separately and in a more well thought out fashion.

As to posting here and getting banned, I'm working on that too but we really need to get Nuke Sentinel modified to allow certain types of POST strings without compromising security. I've made some very tentative suggestions to the author of NS but I don't pretend to understand all the ramifications or know how to accomplish it. It is very unknown at this time whether that can be included in RN 2.20.
 
DEADLY-D4D-
New Member
New Member



Joined: Feb 19, 2006
Posts: 14

PostPosted: Sun Nov 11, 2007 4:22 am Reply with quote

fkelly wrote:
Why not just use what's in your account / your home and activate the personal menu?

<rant>Why does everyone have to make everything so darned complicated?</rant>


LOL i hate seeing admin blocks, i always want to give it a go, besides wouldn't it be safer with the standard link to admin?
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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 ©