![]() |
|
|
#51 |
|
Архивный участник
Join Date: Jan 2007
Posts: 11
|
just to verify...
line 143 in register.php if (isEmailAddress($email)==FALSE) should be if (isEmailAddress($email)) ... am I right? *edit* I tried your new version... same error for me... I changed the line noted above and worked.... >.< |
|
|
|
|
#52 |
|
Архивный участник
Join Date: Aug 2005
Posts: 394
|
My webserver was kinda messed up the past few days couldn't really test anything.
Sorry the original idea behind the "isemailaddress" function thing was just simply like the "antiinjection" function. remove the PHP Code:
PHP Code:
PHP Code:
|
|
|
|
|
#53 |
|
Архивный участник
Join Date: Jan 2007
Posts: 3
|
Ant0n1z thanks for help. it really solved the problem
|
|
|
|
|
#54 |
|
Архивный участник
Join Date: Sep 2006
Posts: 36
|
I configured your painel in my server, I was using php5 over apache2
It wasnt working, after some tests I saw that conect db function was the problem, then i replaced: Code:
function connectdb($db, $dbaddress, $dbuser, $dbpass) {
$dbconnect = mssql_connect ($dbaddress, $dbuser, $dbpass);
mssql_select_db ($db, $dbconnect) or die (mysql_error());
}
Code:
function connectdb($db, $dbaddress, $dbuser, $dbpass) {
mssql_connect ($dbaddress, $dbuser, $dbpass);
mssql_select_db ($db) or die (mysql_error());
}
Thanks ps: I think its for everyone that uses php5 |
|
|
|
|
#55 |
|
Архивный участник
Join Date: Sep 2006
Posts: 36
|
Another problem, now i saw that all registered acc has no e-mail adress, so I changed your script:
in file register.php replace: Code:
$email = isEmailAddress($email); Code:
if (isEmailAddress($email) == FALSE)
{
echo "falat Error msg";
exit();
}
and replace e-mail check function at functions.php: Code:
function isEmailAddress($strEmail) {
$chars = "/^([a-z0-9+_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,6}\$/i";
if(strstr($strEmail, '@') && strstr($strEmail, '.')) {
if (preg_match($chars, $strEmail)) {
return TRUE;
} else {
return FALSE;
}
} else {
return FALSE;
}
}
^^ |
|
|
|
|
#56 |
|
Архивный участник
Join Date: Jul 2006
Posts: 46
|
this might be useful for those who still experiences problem setting up PHP5 module in IIS6
http://www.peterguy.com/php/install_IIS6.html and on top of that you have to copy the attached file into PHP directory and again on top of that you have to type this at command prompt to enable 64bit for php5isapi.dll cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1 another thing is... although i followed the guide... but php still reads php.ini from my C:\Windows, so i have to copy paste php.ini into that directory you will need more than luck if this doesn't work for you ![]() Вложения из исходного сообщения (сами файлы в копии отсутствуют): ntwdblib.zip — 120187 байт |
|
|
|
|
#57 |
|
Архивный участник
Join Date: Jul 2006
Posts: 46
|
anybody have this error when you log on and it direct you to home.php and sez 'you are not logged in' then kick you back out to index.php?
|
|
|
|
|
#58 |
|
Архивный участник
Join Date: Jun 2006
Posts: 64
|
Thanks for the work on the CP Phatmon.
I have a small problem if someone can help. The CP works fine but the scurity code image doesn't show, the box is there but no image is displayed, it seems I may be the only one with this error so it may be in my setup. Any Suggestions. Thanks Rexx |
|
|
|
|
#59 |
|
Архивный участник
Join Date: Nov 2006
Posts: 204
|
you need to have a gd2 or gd extension installed with php to have it generate images.
http://www.boutell.com/gd/ |
|
|
|
|
#60 |
|
Архивный участник
Join Date: Jun 2006
Posts: 64
|
Thanks for your reply, but GD is installed, that was my first thought.
Been on this for many hours , still with no fix. I will check out your link, maybe I need to upgrade GD. Thanks Rexx |
|
|
|
|
#61 |
|
Архивный участник
Join Date: Apr 2006
Posts: 105
|
If ur server on *nix, maybe u need to use imagemagick or recompile php with jpeg, png, etc.
|
|
|
|
|
#62 |
|
Архивный участник
Join Date: Jun 2006
Posts: 64
|
My php is on an apache server.
To recompile php, is that basically reinstalling php over the exsisting install, or is there a function to do this, I have searched many sites regarding recompiling but they are not clear as how it is done. Thanks Rexx |
|
|
|
|
#63 |
|
Архивный участник
Join Date: Oct 2006
Posts: 40
|
Quote:
greeting jhoni SORRY FOR ENGLISH |
|
|
|
|
#64 | ||
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
Quote:
Quote:
|
||
|
|
|
|
#65 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
LOL, look at config.php man... thats one of the best newbie questions a see in too much time xD
|
|
|
|
|
#66 |
|
Архивный участник
Join Date: Sep 2006
Posts: 6
|
|
|
|
|
|
#67 |
|
Архивный участник
Join Date: Aug 2005
Posts: 394
|
I don't care a crap about which browser i use as long as it works.
I think installing firefox is just a waste of my space. Although i'm probably going to be forced soon (gf). Which also explains that i dont really have much time to code on it anymore, although i'd like to integrate the l2admin à la php soon. |
|
|
|
|
#68 | |
|
Архивный участник
Join Date: Dec 2006
Posts: 252
|
Quote:
You better say you don't like IE monopole than antyhing else. |
|
|
|
|
|
#69 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 26
|
Quote:
Before I coded a vBulletin integrated L2CP we used pretty much the original BR version only without injection issues, and in a highly better coding style XD I didn't look at your function, but in mine, I stripped all characters that weren't a-z A-Z 0-9, worked fine and dandy. Had some guy claim he could still hack it but even though I told him to try it, he couldn't XD @ the email checking function: Checking for valid email address is pretty much useless anyways. Unless you want to open for emails like [email protected]d then you would be blocking people using emails from addresses with domain suffixes not predicted. Sure, if they use fake emails they won't get their accounts validated and the likes, but if the system can be fooled to spam up your DB with accounts then why have it at all? |
|
|
|
|
|
#70 | |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
Quote:
btw i hate vBulletin >.> ![]() ^ my current work-in-progress... maybe ill share it some time... |
|
|
|
|
|
#71 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Ummm, i have a similar panel... my cp have that info... inventary, warehouse, clan info, ally info, you can see the list of your friends and if is online or not... and a lot of more things like see when you reach a level (or down)...
|
|
|
|
|
#72 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 26
|
Quote:
Then I made a full-fledged vB addon which not only could register new accounts associated with a forum account, but let GMs with the proper permissions (set in the usergroup manager in vB) ban/unban users. It also displayed some quick stats on the front page of the addon. All MS-SQL queries done on a different port from the default 1433, and the server was configured to only allow the website domain to have access to run said queries. Secure, it was. Didn't get around to doing inventory and stuff before the server went to shits, already had all the images on my comp too :/ |
|
|
|
|
|
#73 | |
|
Архивный участник
Join Date: Feb 2007
Posts: 139
|
Quote:
Code:
<? Code:
<?php --- and of some new verison of php, image code check will not work add to index.php Code:
session_start(); |
|
|
|
|
|
#74 |
|
Архивный участник
Join Date: May 2005
Posts: 367
|
Ra1n0 wtf ? u are stupid ?
just enable short_open_tag = On extension=php_gd2.dll in php.ini and restart apache or whatever for session also session.auto_start = 1 in php.ini wtf ! |
|
|
|
|
#75 | |
|
Архивный участник
Join Date: Feb 2007
Posts: 139
|
Quote:
but for default its off and more ppl dont know how set this any question ? |
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|