help -- phpnuke userinfo block

free web hosting
Open Discussion > Have your say > General Talk

help -- phpnuke userinfo block

l33tg33k
hi how do i remove the security code chk in user info block....its not the config.php 1

as seen in

HERE

attached is the code

CODE
<?php



/************************************************************/

/* Description.: User Info Block                            */

/* Version.....: v0.3.1                                     */

/* File Name...: block-User_Info.php                        */

/* Last Updated: 10 December 2003                           */

/*                                                          */

/* Update Release - 19 Jan 2004 - chatserv                  */

/* Website http://www.nukefixes.com                         */

/* 19/01/2004 - Added Points Needed For Group Membership    */

/* 19/01/2004 - Added Missing Language Definitions          */

/*                                                          */

/* Updated for PHP-Nuke 7.x - 10 Dec 2003 - chatserv        */

/* Website http://www.nukefixes.com                         */

/* 10/12/2003 - Added Point Total Display                   */

/* 10/12/2003 - Added Site Groups list w/ points needed     */

/*                                                          */

/* Updated for PHP-Nuke 6.x - 22/07/2003 - NukeZone         */

/* Website http://www.nukezone.com                          */

/* 22/07/2003 - Added Security Check Image                  */

/* 22/07/2003 - Added User logout Link                      */

/* 22/07/2003 - Added Admin Logout - Visible to Admin Only  */

/*                     ------------                         */

/* Updated for PHP-Nuke 5.6 -  18 Jun 2002 NukeScripts      */

/* website http://www.nukescripts.com                       */

/*                     ------------                         */

/* Updated for PHP-Nuke 5.5 - 24/03/2002 Rugeri             */

/* website http://newsportal.homip.net                      */

/*                     ------------                         */

/* (C) 2002                                                 */

/* All rights beyond the GPL are reserved                   */

/*                                                          */

/************************************************************/

/* Additional security checking code 2003 by chatserv       */

/* http://www.nukefixes.com -- http://www.nukeresources.com */

/************************************************************/



if (eregi("block-User_Info.php",$_SERVER['PHP_SELF'])) {

   Header("Location: index.php");

}



$content = "";



global $user, $admin, $cookie, $prefix, $user_prefix, $db, $anonymous, $sitekey;

mt_srand ((double)microtime()*1000000);

$maxran = 1000000;

$random_num = mt_rand(0, $maxran);

$datekey = date("F j");

$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));

$code = substr($rcode, 2, 10);

cookiedecode($user);

$uname = $cookie[1];



$lasturow = $db->sql_fetchrow($db->sql_query("SELECT username FROM $user_prefix"._users." ORDER BY user_id DESC LIMIT 0,1"));

$lastuser = $lasturow['username'];

$numrows = $db->sql_numrows($db->sql_query("SELECT user_id FROM $user_prefix"._users.""));



$result = $db->sql_query("SELECT uname, guest FROM $prefix"._session." WHERE guest='0'");

$member_online_num = $db->sql_numrows($result);

$who_online_now = "";

$i = 1;

while ($session = $db->sql_fetchrow($result)) {

   if (isset($session["guest"]) and $session["guest"] == 0) {

       if ($i < 10) {

           $who_online_now .= "&nbsp;&nbsp;0$i:&nbsp;<A HREF="modules.php?name=Your_Account&amp;op=userinfo&amp;username=$session[uname]">$session[uname]</a><br>n";

       } else {

           $who_online_now .= "&nbsp;&nbsp;$i:&nbsp;<A HREF="modules.php?name=Your_Account&amp;op=userinfo&amp;username=$session[uname]">$session[uname]</a><br>n";

       }

       $who_online_now .= ($i != $member_online_num ? "  " : "");

       $i++;

   }

}

$Today = getdate();

//Formatting Current Date

$month = $Today['month'];

$mday = $Today['mday'];

$year = $Today['year'];

//Formatting Previous Date

$pmonth = $Today['month'];

$pmday = $Today['mday'];

$pmday = $mday-1;

$pyear = $Today['year'];

//Month conversion into numeric mode

if ($pmonth=="January") { $pmonth=1; } else

if ($pmonth=="February") { $pmonth=2; } else

if ($pmonth=="March") { $pmonth=3; } else

if ($pmonth=="April") { $pmonth=4; } else

if ($pmonth=="May") { $pmonth=5; } else

if ($pmonth=="June") { $pmonth=6; } else

if ($pmonth=="July") { $pmonth=7; } else

if ($pmonth=="August") { $pmonth=8; } else

if ($pmonth=="September") { $pmonth=9; } else

if ($pmonth=="October") { $pmonth=10; } else

if ($pmonth=="November") { $pmonth=11; } else

if ($pmonth=="December") { $pmonth=12; };

$test = mktime (0,0,0,$pmonth,$pmday,$pyear,1);



//Creating SQL parameter

$curDate2 = "%".$month[0].$month[1].$month[2]."%".$mday."%".$year."%";

$preday = strftime ("%d",$test);

$premonth = strftime ("%B",$test);

$preyear = strftime ("%Y",$test);

$curDateP = "%".$premonth[0].$premonth[1].$premonth[2]."%".$preday."%".$preyear."%";



//Executing SQL Today

$row = $db->sql_fetchrow($db->sql_query("SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDate2'"));

$userCount = $row['userCount'];

//end



//Executing SQL Today

$row2 = $db->sql_fetchrow($db->sql_query("SELECT COUNT(user_id) AS userCount FROM $user_prefix"._users." WHERE user_regdate LIKE '$curDateP'"));

$userCount2 = $row2['userCount'];

//end



$guest_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest='1'"));

$member_online_num = $db->sql_numrows($db->sql_query("SELECT uname FROM ".$prefix."_session WHERE guest='0'"));



$who_online_num = $guest_online_num + $member_online_num;

$grpcnt = "";

$i = 1;

$gresult = $db->sql_query("SELECT name, points FROM " . $prefix . "_groups ORDER BY points");

while ($grow = $db->sql_fetchrow($gresult)) {

$grname = $grow['name'];

$grpoints = intval($grow['points']);

$users_num = $db->sql_numrows($db->sql_query("SELECT * FROM " . $user_prefix . "_users WHERE points>='$grpoints'"));

       if ($i < 10) {

           $grpcnt .= "&nbsp;&nbsp;<b>0$i:&nbsp;<u>$grname</u></b><br>&nbsp;&nbsp;"._NPOINTS.": <b>$grpoints</b><br>&nbsp;&nbsp;"._SGMEMBERS.": <b>$users_num</b><br>n";

       } else {

           $grpcnt .= "&nbsp;&nbsp;<b>$i:&nbsp;<u>$grname</u></b><br>&nbsp;&nbsp;"._SGMEMBERS.": <b>$users_num</b><br>n";

       }

       $i++;

}

$numpoints = $db->sql_fetchrow($db->sql_query("SELECT points FROM ".$user_prefix."_users WHERE username='$uname'"));

$npoints = intval($numpoints['points']);

$content .= "<form action="modules.php?name=Your_Account" method="post">";



if (is_user($user)) {

   $content .= "<br><img src="images/blocks/group-4.gif" height="14" width="17"> "._BWEL.", <b>$uname</b>.<br>n";



   $content .= "<center>[ <a href="modules.php?name=Your_Account&amp;op=logout">"._LOGOUT."</a> ]</center>n";

   if (is_admin($admin) AND is_user($user)) {

       $content .= "<br><center>"._ADMIN."<br>[ <a href="admin.php?op=logout">"._LOGOUT."</a> ]</center>n";

   }

   $content .= "<hr>n";

   $row3 = $db->sql_fetchrow($db->sql_query("SELECT user_id FROM $user_prefix"._users." WHERE username='$uname'"));

   $uid = $row3['user_id'];

   $newpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND (privmsgs_type='5' OR privmsgs_type='1')"));

   $oldpms = $db->sql_numrows($db->sql_query("SELECT privmsgs_to_userid FROM $prefix"._bbprivmsgs." WHERE privmsgs_to_userid='$uid' AND privmsgs_type='0'"));

   $content .= "<img src="images/blocks/email-y.gif" height="10" width="14"> <a href="modules.php?name=Private_Messages"><b>"._BPM."</b></a><br>n";

   $content .= "<img src="images/blocks/email-r.gif" height="10" width="14"> "._BUNREAD.": <b>$newpms</b><br>n";

   $content .= "<img src="images/blocks/email-g.gif" height="10" width="14"> "._BREAD.": <b>$oldpms</b><br>n<hr>n";

   $content .= "<img src="images/blocks/icon_poll.gif" height="14" width="17"> <b><u>"._TPOINTS.":</u></b><br>&nbsp;&nbsp;<b><strong><big>&middot;</big></strong>&nbsp;".$npoints."&nbsp;<strong><big>&middot;</big></strong></b><hr>n";

} else {

   $content .= "<center><img src="images/blocks/group-4.gif" height="14" width="17"> "._BWEL.", <b>$anonymous</b>n<hr>";

   $content .= ""._NICKNAME."<br><input type="text" name="username" size="10" maxlength="25"><br>";

   $content .= ""._PASSWORD."<br><input type="password" name="user_password" size="10" maxlength="20"><br>";

   if (extension_loaded("gd")) {

$content .= ""._SECURITYCODE.": <img src='modules.php?name=Your_Account&op=gfx&random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'><br>n";

$content .= ""._TYPESECCODE."<br><input type="text" NAME="gfx_check" SIZE="7" MAXLENGTH="6">n";

$content .= "<input type="hidden" name="random_num" value="$random_num"><br>n";

   } else {

$content .= "<input type="hidden" name="random_num" value="$random_num">";

$content .= "<input type="hidden" name="gfx_check" value="$code">";

   }

   $content .= "<input type="hidden" name="op" value="login">";



   $content .= "<input type="submit" value=""._LOGIN."">n (<a href="modules.php?name=Forums&file=profile&mode=register">"._BREG."</a>)</center><hr>";

}

$content .= "<img src="images/blocks/icon_members.gif" height="14" width="17"> <b><u>"._SITEGROUPS.":</u></b><br>$grpcnt<hr>n";

$content .= "<img src="images/blocks/group-2.gif" height="14" width="17"> <a href="modules.php?name=Members_List"><b><u>"._BMEMP.":</u></b></a><br>n";

$content .= "<img src="images/blocks/ur-moderator.gif" height="14" width="17"> "._BLATEST.": <A HREF="modules.php?name=Your_Account&amp;op=userinfo&amp;username=$lastuser"><b>$lastuser</b></a><br>n";

$content .= "<img src="images/blocks/ur-author.gif" height="14" width="17"> "._BTD.": <b>$userCount</b><br>n";

$content .= "<img src="images/blocks/ur-admin.gif" height="14" width="17"> "._BYD.": <b>$userCount2</b><br>n";

$content .= "<img src="images/blocks/ur-guest.gif" height="14" width="17"> "._BOVER.": <b>$numrows</b><br>n<hr>n";

$content .= "<img src="images/blocks/group-3.gif" height="14" width="17"> <b><u>"._BVISIT.":</u></b>n<br>n";

$content .= "<img src="images/blocks/ur-anony.gif" height="14" width="17"> "._BVIS.": <b>$guest_online_num</b><br>n";

$content .= "<img src="images/blocks/ur-member.gif" height="14" width="17"> "._BMEM.": <b>$member_online_num</b><br>n";

$content .= "<img src="images/blocks/ur-registered.gif" height="14" width="17"> "._BTT.": <b>$who_online_num</b><br>n";

if ($member_online_num > 0) {

   $content .= "<hr>n<img src="images/blocks/group-1.gif" height="14" width="17"> <b><u>"._BON.":</u></b><br>$who_online_nown";

}

$content .= "</form>";



?>

 

 

 


Reply

crazzyt9
open ur index and look for gfxcheck or somthing like that it has a value of 7 change it to 0



Tim :twisted:

Reply

l33tg33k
not index...config.php you mean...but no...didnt work.....look at the attached code.......i removed some parts the code dissappeared but i got parse error instead....

Reply

crazzyt9
sorry yes i ment config.php are you using php-nuke, or php-nuke-platinum?


Tim :twisted:

Reply

l33tg33k
phpnuke 7.5

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Similar Topics

Keywords : phpnuke userinfo

  1. PHPNUKE news module - (5)
    hi i have seen sites with images in their news articles but my news module cannot do that if i give
    a img tag i see that in the output......pls help and pls give detailed instructions........ pretend
    you are teaching someone who installed phpnuke form fantastico and has little knowledge of sql and
    php also how do i extend the url lenght in downloads is there a hack or something cos all the
    addons do not work on phpnuke 7.5...
  2. Error in Lycos when installing phpnuke 7.5, help !! - (4)
    Hi. I tried to install PHP Nuke 7.5 in www.tripod.lycos.co.uk but i couldn't. When i try to get to
    the config.php file i get an error saying: There seems to be a problem with the MySQL server,
    sorry for the inconvenience. We should be back shortly. Can someone help me please? :?...
  3. phpnuke forums.... - (5)
  4. Phpnuke Blogs - (0)
    Anyone know a site that has replaced their journal section with a blog section? I am trying to find
    a secure blog section where users can post messages and images (I already have an upload tool, so
    they can post the images' URL's from there if needed.)...
  5. good phpnuke tut site? - (11)
    anyone know of one?...
  6. Please someone install phpnuke for me! help! - (3)
    Hi there. Please if someone can help me on this i would really appreciate it. I just can't make it
    to work, im really dumb with this kind of stuff. I have my hosting space here for phpnuke but i
    can't install it, i can't upload my php nuke. Please if someone can install it for me, mail me and i
    will give all my hosting details. Im an online gammer i just want to make a website for my team with
    this powerful phpnuke... help!! thanks. jose_luis_altuve@hotmail.com jose.altuve@gmail.com...
  7. help with phpnuke - (7)
    hey could somebody tell me how to install phpnuke or if you would be nice enough to maybe install it
    for me? i've never used it before so i don't know how to do it, i've only did it with fantastico
    before they don't hve it here /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' />
    ....
  8. Phpnuke or Xoops ??? - (15)
    What you say, PHPNuke or Xoops ??...
  9. mp3 module in phpnuke - (3)
    ok this is wat i got if i own the music and i have the original cd wich i bought can i install an
    mp3 block/module with listenonly function? people wont be able to download it from the site...
  10. phpnuke? - (6)
    WATS PHPNuke im dumb i dunno =P...
  11. help please i cant install phpnuke can someone do this for m - (4)
    can someone please help me i cant install phpnuke on my hosting space with u guys can someone
    please do it for me i have a forum set up on there...
  12. Phpnuke Themes Database - (2)
    I'm looking for a phpnuke themes database... Post here the best site you know! 8)...
  13. Intergrating users' data table for phpnuke and phpBB???? - (2)
    Just wondering... I am trying to make this happen. I am trying to intergrate user's data table
    from both phpBB and php-nuke. I want to do this so that users can just log in once and can go to
    the forum board without having to log in again. This must be possible, right? Can anyone help
    me on this?...
  14. Phpnuke - (2)
    Where find design...
  15. How to install a forum into your phpnuke site - (5)
    Hey, how can you install your forum into your PHP-nuke site? so that you can see if there are any
    new posts on the forum Here is an example: http://www.areamike.com/ Go to the forums. As you
    can see the forum is installed in phpnuke + at the right bottom of the site you can see a block
    called forum. U can see al the new topics + posts....
  16. PhpNuke and "GD Library" - (18)
    I've installed PhpNuke but for the login there isn't image with number. Only Username and
    Password. Is it necessary to config "php.ini" on the server?...
  17. install phpnuke 7.5 - (9)
    Can an trusty member please help me install php-nuke 7.5 you can download version 7.5 at
    http://www.phpnuke.org/modules.php?name=Do...p=search&query= I tryed and my friend tryied but we
    cant get it installed so can someone please install it for me before i mess something up. PM for my
    account info if you will do this for me. Thanks so much in advanced -Kyle...
  18. Adding Google Ads in PhpNuke Platinum - (0)
    Adding Google Ads in PhpNuke Platinum - what file do I edit to add them, and where in the file?
    :oops:...
  19. postnuke vs phpnuke - (14)
    is better post nuke or php nuke? what are the difference?...
  20. phpnuke 7.6 or php nuke platinum? security - (1)
    which system is more secure?...
  21. PHPNUKE Games - (6)
    if you have a php nuke and want games on your site then plz dowload the fil of games off the
    site click on : http://download.yacapa.com/download/285.html hope that helps you ....
  22. platinum phpnuke - (7)
    hi i was wondering if there was any themes for phpnuke platinum 7.6 ...
  23. PhpNuke problem... - (4)
    When I'm trying to restore a backup on my php nuke site this comes up: Error importing backup
    file DEBUG MODE SQL Error : 1050 Table 'nuke_authors' already exists CREATE TABLE
    nuke_authors ( aid varchar(25) NOT NULL, name varchar(50), url varchar(255) NOT NULL, email
    varchar(255) NOT NULL, pwd varchar(40), counter int(11) DEFAULT '0' NOT NULL, radminsuper tinyint(1)
    DEFAULT '1' NOT NULL, admlanguage varchar(30) NOT NULL, PRIMARY KEY (aid), KEY aid (aid) ) Line :
    1017 File : /home/roman/public_html/home/modules/Forums/admin/admin_db_utilities.php...
  24. Phpnuke installation problem - (7)
    Each time I fnish the installation Phpnuke I can not fix myself as admin. Since I can not recieve
    confirmation email to continue to confirm it....
  25. PHPNuke Image Gallery - (17)
    Does anyone here know how to add an image gallery (photo album) to the PHPNuke portal thing?
    -Hazaa- Un-Stickied -Random ...
  26. help on PHPNuke Platinum - (2)
    Whats wrong? QUOTE Warning: main(modules/Your_Account/includes/mainfileend.php): failed to
    open stream: No such file or directory in /home/nictan/public_html/portal/mainfile.php on line 1347
    Warning: main(): Failed opening 'modules/Your_Account/includes/mainfileend.php' for inclusion
    (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nictan/public_html/portal/mainfile.php
    on line 1347 Anyone knows?...
  27. Installation of PHPNUKE - (3)
    Hi, I can not set up administrator after I finish installation of phpnuke. Since i can not
    recieve confirmation letter from my phpnuke site...
  28. phpnuke and phpbb - (3)
    hi i installed the phpnuke at - http://l33tg33k.freenukehosting.com/php and phpBB at
    - http://l33tg33k.freenukehosting.com/forum i would like to replace the phpnuke
    forum with the phpbb one or at least make a new module that points to
    http://l33tg33k.freenukehosting.com/forum ..... thx......
  29. phpnuke replaced by phpbb - (10)
    hi i installed the phpnuke at - http://l33tg33k.freenukehosting.com/php and phpBB at -
    http://l33tg33k.freenukehosting.com/forum i would like to replace the phpnuke forum with the
    phpbb one or at least make a new module that points to http://l33tg33k.freenukehosting.com/forum
    ..... thx......
  30. php quote to phpnuke - (2)
    Any idea where i can download phpquote to php nuke?...



Looking for phpnuke, userinfo, block

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for phpnuke, userinfo, block

*MORE FROM TRAP17.COM*
advertisement



help -- phpnuke userinfo block



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE