Author |
Message |
salsaGalaxy
Regular


Joined: Mar 21, 2004
Posts: 54
Location: Bucharest, Romania
|
Posted:
Tue Mar 23, 2004 6:07 am |
|
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 |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Tue Mar 23, 2004 6:25 am |
|
Was it working and then stopped? |
|
|
|
 |
Nukeum66
Life Cycles Becoming CPU Cycles

Joined: Jul 30, 2003
Posts: 551
Location: Neurotic, State, USA
|
Posted:
Tue Mar 23, 2004 6:26 am |
|
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 |
_________________ Scott Johnson MIS Ubuntu/Linux 11.10 |
|
|
 |
salsaGalaxy

|
Posted:
Tue Mar 23, 2004 6:43 am |
|
Thanxs Nukeum66 but doesn't work! ( |
|
|
|
 |
Nukeum66

|
Posted:
Tue Mar 23, 2004 6:52 am |
|
Save this code as gdtest.php and upload to your root directory then call it from your browser http://yoursite.com/gdtest.php
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);
?>
|
|
|
|
|
 |
Nukeum66

|
Posted:
Tue Mar 23, 2004 6:54 am |
|
Tell me what you see or read! |
|
|
|
 |
salsaGalaxy

|
Posted:
Tue Mar 23, 2004 7:00 am |
|
ok and i see and read this:
GD is enable! What now? |
|
|
|
 |
Nukeum66

|
Posted:
Tue Mar 23, 2004 7:07 am |
|
Well that's good! Now look in images/admin/ and modules/Your_Account/images and see if this image file is there code_bg |
|
|
|
 |
Nukeum66

|
Posted:
Tue Mar 23, 2004 7:29 am |
|
Well I got to go maybe Raven can take it from here ...  |
|
|
|
 |
salsaGalaxy

|
Posted:
Tue Mar 23, 2004 7:35 am |
|
sorry for late .....phone call.....my girlfriend
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 ! |
|
|
|
 |
salsaGalaxy

|
Posted:
Tue Mar 23, 2004 8:02 am |
|
Raven wrote: | Was it working and then stopped? |
yesterday working fine ....but today no |
|
|
|
 |
Raven

|
Posted:
Tue Mar 23, 2004 8:10 am |
|
This would indicate that you have made a change. Did you modify your config.php file or any of your language files? |
|
|
|
 |
salsaGalaxy

|
Posted:
Tue Mar 23, 2004 8:21 am |
|
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 |
|
|
|
 |
Raven

|
Posted:
Tue Mar 23, 2004 8:27 am |
|
Then restore your_account from your backup. |
|
|
|
 |
salsaGalaxy

|
Posted:
Tue Mar 23, 2004 8:36 am |
|
How? i'm in smog! i'm beginner in phpnuke ....maybe is too much for me ...but this i want and need
thanks |
|
|
|
 |
Raven

|
Posted:
Tue Mar 23, 2004 8:48 am |
|
Whatever the file was that you modified (probably index.php in your_account) replace it with your original one. |
|
|
|
 |
salsaGalaxy

|
Posted:
Tue Mar 23, 2004 9:03 am |
|
doesn't work! ......i think i'm so stupid .....and maybe i'll reinstalled.....maybe is the best solution. |
|
|
|
 |
Raven

|
Posted:
Tue Mar 23, 2004 9:27 am |
|
Make sure that there are no extra lines after the closing ?> tag in your_account/index.php and config.php |
|
|
|
 |
salsaGalaxy

|
Posted:
Tue Mar 23, 2004 9:48 am |
|
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? |
|
|
|
 |
Nukeum66

|
Posted:
Tue Mar 23, 2004 7:58 pm |
|
$gfx_chk = 0; is turning the security code OFF
$gfx_chk = 7; is turning the Security code ON (everywhere) |
|
|
|
 |
salsaGalaxy

|
Posted:
Wed Mar 24, 2004 4:53 am |
|
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 |
|
|
|
 |
Raven

|
Posted:
Wed Mar 24, 2004 5:26 am |
|
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. |
|
|
|
 |
salsaGalaxy

|
Posted:
Wed Mar 24, 2004 6:50 am |
|
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 :
http://www.salsagalaxy.com
http://www.salsagalaxy.com/chk.php
maybe i'm stupid ...but this is situation now.! |
|
|
|
 |
Nukeum66

|
Posted:
Wed Mar 24, 2004 7:16 am |
|
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 |
|
|
|
|
 |
Nukeum66

|
Posted:
Wed Mar 24, 2004 7:25 am |
|
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) |
|
|
|
|
 |
|