PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.
Author Message
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Tue Mar 23, 2004 6:07 am Reply with quote Back to top

My security code image not showing up ....why? in php version 6.8 ...pls Help me....
Sorry for my language but i don't know english very well
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Mar 23, 2004 6:25 am Reply with quote Back to top

Was it working and then stopped?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Tue Mar 23, 2004 6:26 am Reply with quote Back to top

In 6.8 file config.php you need to add this line $gfx_chk = 7;

$dbhost = "localhost";
$dbuname = "root";
$dbpass = "";
$dbname = "nuke";
$prefix = "nuke";
$user_prefix = "nuke";
$dbtype = "MySQL";
$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";
$gfx_chk = 7;

-------------------------------------------------------------------
These are some of the different ways to set the security code
# 0: No check
# 1: Administrators login only
# 2: Users login only
# 3: New users registration only
# 4: Both, users login and new users registration only
# 5: Administrators and users login only
# 6: Administrators and new users registration only
# 7: Everywhere on all login options (Admins and Users)
# NOTE: If you aren't sure set this value to 0
View user's profile Send private message Visit poster's website
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Tue Mar 23, 2004 6:43 am Reply with quote Back to top

Thanxs Nukeum66 but doesn't work!Sad(
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Tue Mar 23, 2004 6:52 am Reply with quote Back to top

Save this code as gdtest.php and upload to your root directory then call it from your browser
Only registered users can see links on this board!
Get registered or login to the forums!


Code:
<?php
        header ("Content-type: image/png");
        $img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
        $back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
        $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191);
        ImageString ($img_handle, 31, 5, 5,  "GD Is Enabled! What Now?", $txt_color);
        ImagePng ($img_handle);
    ?>
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Tue Mar 23, 2004 6:54 am Reply with quote Back to top

Tell me what you see or read!
View user's profile Send private message Visit poster's website
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Tue Mar 23, 2004 7:00 am Reply with quote Back to top

ok and i see and read this:

GD is enable! What now?
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Tue Mar 23, 2004 7:07 am Reply with quote Back to top

Well that's good! Now look in images/admin/ and modules/Your_Account/images and see if this image file is there code_bg
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Tue Mar 23, 2004 7:29 am Reply with quote Back to top

Well I got to go maybe Raven can take it from here ... Wink
View user's profile Send private message Visit poster's website
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Tue Mar 23, 2004 7:35 am Reply with quote Back to top

sorry for late .....phone call.....my girlfriend Evil or Very Mad Very Happy

it's ok! both image files exist .....code_bg.jpg
and now?what's problem? i think to reinstall all site, but ....... i try find another solution with your help !

sorry again for my language, but i don't know english very well
thanks for help .....i am looking forward to receiving your answers... maybe we manage solve this bug !
View user's profile Send private message Visit poster's website
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Tue Mar 23, 2004 8:02 am Reply with quote Back to top

Raven wrote:
Was it working and then stopped?


yesterday working fine ....but today no
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Mar 23, 2004 8:10 am Reply with quote Back to top

This would indicate that you have made a change. Did you modify your config.php file or any of your language files?
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Tue Mar 23, 2004 8:21 am Reply with quote Back to top

I changed just your_account because i want to disable webmail option for members ......just it ....but i don't know what's happen!

thanks in advanced
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Mar 23, 2004 8:27 am Reply with quote Back to top

Then restore your_account from your backup.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Tue Mar 23, 2004 8:36 am Reply with quote Back to top

How? i'm in smog! i'm beginner in phpnuke ....maybe is too much for me ...but this i want and need

thanks
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Mar 23, 2004 8:48 am Reply with quote Back to top

Whatever the file was that you modified (probably index.php in your_account) replace it with your original one.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Tue Mar 23, 2004 9:03 am Reply with quote Back to top

doesn't work! Sad ......i think i'm so stupid Twisted Evil .....and maybe i'll reinstalled.....maybe is the best solution.
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Tue Mar 23, 2004 9:27 am Reply with quote Back to top

Make sure that there are no extra lines after the closing ?> tag in your_account/index.php and config.php
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Tue Mar 23, 2004 9:48 am Reply with quote Back to top

everything it's ok...but does't work ....interesting is this command $gfx_chk = 0; not functionally but i don't know why!
why you delete previos reply from me?
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Tue Mar 23, 2004 7:58 pm Reply with quote Back to top

$gfx_chk = 0; is turning the security code OFF

$gfx_chk = 7; is turning the Security code ON (everywhere)
View user's profile Send private message Visit poster's website
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Wed Mar 24, 2004 4:53 am Reply with quote Back to top

I solved the problem! How?! I reinstalled PhpNuke several times to do it! So, I actually installed PhpNuke and created the "Super User" account, then modified in Your_account/navbar.php what I needed, and then other normal users can subscribe! Attention: DO NOT modify Your_account/navbar.php after having a registered member other than the Super User, because the Security Code image will vanish...
What is really strange is the fact that the function $gfx.chk from config.php is not working at all!!!
this is error :
Fatal error: Call to undefined function: message_die() in /home/salsa/public_html/db/db.php on line 88

Thanks Raven and Nukeum66
View user's profile Send private message Visit poster's website
Raven
Site Admin/Owner


Joined: Aug 27, 2002
Posts: 16987
Location: Kansas

PostPosted: Wed Mar 24, 2004 5:26 am Reply with quote Back to top

salsaGalaxy wrote:
I solved the problem! How?! I reinstalled PhpNuke several times to do it! So, I actually installed PhpNuke and created the "Super User" account, then modified in Your_account/navbar.php what I needed, and then other normal users can subscribe! Attention: DO NOT modify Your_account/navbar.php after having a registered member other than the Super User, because the Security Code image will vanish...
What is really strange is the fact that the function $gfx.chk from config.php is not working at all!!!
this is error :
Fatal error: Call to undefined function: message_die() in /home/salsa/public_html/db/db.php on line 88

Thanks Raven and Nukeum66
navbar can be modified at any time. Chances are you had a trailing space and/or blank lines after the closing ?>

The message_die issue means you either have config.php located outside of the root nuke folder and/or your MySQL connection settings are incorrect. 99% of the time it is the latter.
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger
salsaGalaxy
Regular
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania

PostPosted: Wed Mar 24, 2004 6:50 am Reply with quote Back to top

ok i stand .......i reinstalled PhpNuke again and now works with one exception:
i installed your block ..Site Info and i modified config.php with $gfx_chk = 0
and in block site info block do not show security code, but everywhere in site this code is show.
check this out :
Only registered users can see links on this board!
Get registered or login to the forums!
Only registered users can see links on this board!
Get registered or login to the forums!


maybe i'm stupid ...but this is situation now.!
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Wed Mar 24, 2004 7:16 am Reply with quote Back to top

If you want the code to show, you need to set $gfx_chk = 7;

Quote:
$gfx_chk = 7; is turning the Security code ON (everywhere)
$gfx_chk = 0; is turning the security code OFF
View user's profile Send private message Visit poster's website
Nukeum66
Life Cycles Becoming CPU Cycles


Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA

PostPosted: Wed Mar 24, 2004 7:25 am Reply with quote Back to top

Quote:

$gfx_chk =0; (No check)
$gfx_chk =1; (Administrators login only)
$gfx_chk =2; (Users login only)
$gfx_chk =3; (New users registration only)
$gfx_chk =4; (Both, users login and new users registration only)
$gfx_chk =5; (Administrators and users login only)
$gfx_chk =6; (Administrators and new users registration only)
$gfx_chk =7; (Everywhere on all login options (Admins and Users)
View user's profile Send private message Visit poster's website
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.

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum