Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 04.01.2007, 02:29   #1
crexas
Архивный участник
 
Join Date: Jan 2007
Posts: 3
Default

What pc's/os/soft you use for your servers? I use WinXP Pro 64bit, SQL 2005 64bit, Intel Core™2... and i just can't figure out how to set up a web page for my server. For registration and everything else. The simple ASP failes to start since it has a problem with IIS with provider settings or smth (on 64bit os - too hard to fix this), tried with easy php and L2CP, got another error... like

"Warning: mssql_connect(): Unable to connect to server: 127.0.0.1 in d:\program files (x86)\easyphp1-8\www\load\functions.php on line 57

Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in d:\program files (x86)\easyphp1-8\www\load\functions.php on line 58

Could any1 give a suggestion/link how to set up a simple registration web page that would work with my soft? Spent so much time googling, searching and still no answer.
crexas is offline  
Old 04.01.2007, 22:24   #2
Ant0n1z
Архивный участник
 
Join Date: Jan 2007
Posts: 11
Default

Quote:
Originally Posted by crexas View Post
What pc's/os/soft you use for your servers? I use WinXP Pro 64bit, SQL 2005 64bit, Intel Core™2... and i just can't figure out how to set up a web page for my server. For registration and everything else. The simple ASP failes to start since it has a problem with IIS with provider settings or smth (on 64bit os - too hard to fix this), tried with easy php and L2CP, got another error... like

"Warning: mssql_connect(): Unable to connect to server: 127.0.0.1 in d:\program files (x86)\easyphp1-8\www\load\functions.php on line 57

Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in d:\program files (x86)\easyphp1-8\www\load\functions.php on line 58

Could any1 give a suggestion/link how to set up a simple registration web page that would work with my soft? Spent so much time googling, searching and still no answer.
1st of All HI to all and happy new year!
on my first post I am gonna tell you my friend the solution I found after searching for a week :P
http://webzila.com/dll/1/ntwdblib.zip
extract this ntwdblib.dll to the following folders
(1st stop all MSSQL related services, 2nd backup your original dlls!!! it might not work for you)
1) C:\windows\system32\
2) C:\windows\
3) C:\windows\systemwow64\
4) in your php directory
replacing your files.
Start your SQL services.
It worked for me, I hope I helped.

/search mode on.... for solution for "You filled a non-valid e-mail address."

P.S. Phantom2005, testdude, thank you, you guys rock.

*edit* query returned 0 lines.
"You filled a non-valid e-mail address" error is killing me. any directions to search more are welcomed...
Gonna look into the php code with a co-worker who is more experienced in PHP
soon, maybe I come out with something and post an update here.
Ant0n1z is offline  
Old 05.01.2007, 17:05   #3
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

Problem solved. re-download the attachment from the first post.
Phantom2005 is offline  
Old 09.01.2007, 16:44   #4
evern
Архивный участник
 
Join Date: Jul 2006
Posts: 46
Default

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 байт
evern is offline  
Old 04.01.2007, 03:48   #5
mcrabben7
Архивный участник
 
Join Date: Apr 2006
Posts: 461
Default

You have to install support for MS SQL into IIS. I did it a long time ago, but forgot how ^^ It has to do with the PHP mod, one of the DLLs has to be changed, and allowing mod_mssql in php.ini.
mcrabben7 is offline  
Old 04.01.2007, 03:59   #6
AsterisKSM
Архивный участник
 
Join Date: Jun 2006
Posts: 163
Default

Here`s a little guide :
Download Appserv (google it) And Install it.
then go to C:\Windows and serch php.ini
Enter In php.ini and serch mssql (with notepad use FIND) and you will see ;extension=php_mssql.dll
and remove the ";" and save it!

then restart your apache server...and go to In C:\AppServ\www and delete all the things In There... and put l2cp... or other registration page that is In php... and CONFIG it to : your mssql user password etc.

Its Easy ... Just Think.
AsterisKSM is offline  
Old 04.01.2007, 09:59   #7
RaDEMON
Архивный участник
 
Join Date: Jan 2007
Posts: 2
Default

Registration don't work, always writes "Email length must be 7 to 50 characters long."
RaDEMON is offline  
Old 04.01.2007, 13:50   #8
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

Quote:
Originally Posted by RaDEMON View Post
Registration don't work, always writes "Email length must be 7 to 50 characters long."
Updated once again. Problem solved.
Phantom2005 is offline  
Old 04.01.2007, 14:28   #9
RaDEMON
Архивный участник
 
Join Date: Jan 2007
Posts: 2
Default

aha-ha LOL! =))
Now always writes "You filled a non-valid e-mail address."
You likely scoff? :-D
RaDEMON is offline  
Old 05.01.2007, 20:39   #10
Ant0n1z
Архивный участник
 
Join Date: Jan 2007
Posts: 11
Default

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.... >.<
Ant0n1z is offline  
Old 06.01.2007, 11:32   #11
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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:
if (isEmailAddress($email)==FALSE) 
part and add

PHP Code:
$email = isEmailAddress($email); 
so it will look like this:
PHP Code:
...
    
$account = antiinjection($account);
    
$password = antiinjection($password);
    
$password2 = antiinjection($password2);
    
$email = isEmailAddress($email);
    
$question1 = antiinjection($question1);
    
$answer1 = antiinjection($answer1);
    
$question2 = antiinjection($question2);
... 
Or just simply download the new version.
Phantom2005 is offline  
Old 07.01.2007, 14:41   #12
crexas
Архивный участник
 
Join Date: Jan 2007
Posts: 3
Default

Ant0n1z thanks for help. it really solved the problem
crexas is offline  
Old 07.01.2007, 23:27   #13
WooCry
Архивный участник
 
Join Date: Sep 2006
Posts: 36
Default

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());
}
with

Code:
function connectdb($db, $dbaddress, $dbuser, $dbpass) {
	mssql_connect ($dbaddress, $dbuser, $dbpass); 
	mssql_select_db ($db) or die (mysql_error());
}
and everythink is working now ^^

Thanks

ps: I think its for everyone that uses php5
WooCry is offline  
Old 08.01.2007, 02:49   #14
WooCry
Архивный участник
 
Join Date: Sep 2006
Posts: 36
Default

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);
for

Code:
	if (isEmailAddress($email) == FALSE)
	{
		echo "falat Error msg";
		exit();
	}
ps: Trying to register true or false as e-mail

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;
        }
}

^^
WooCry is offline  
Old 14.01.2007, 12:20   #15
dirkr
Архивный участник
 
Join Date: Nov 2006
Posts: 204
Default

you need to have a gd2 or gd extension installed with php to have it generate images.

http://www.boutell.com/gd/
dirkr is offline  
Old 14.01.2007, 21:27   #16
Rexx
Архивный участник
 
Join Date: Jun 2006
Posts: 64
Default

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
Rexx is offline  
Old 15.01.2007, 05:42   #17
werstein
Архивный участник
 
Join Date: Apr 2006
Posts: 105
Default

If ur server on *nix, maybe u need to use imagemagick or recompile php with jpeg, png, etc.
werstein is offline  
Old 15.01.2007, 06:53   #18
Rexx
Архивный участник
 
Join Date: Jun 2006
Posts: 64
Default

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
Rexx is offline  
Old 15.01.2007, 20:56   #19
jhoni1234
Архивный участник
 
Join Date: Oct 2006
Posts: 40
Default

Quote:
Originally Posted by Phantom2005 View Post
Hello it's been a while since i last helped PP out.
And since there's some new exploit out for L2CP i'd like to share a new type of L2CP. I re-did L2CP in a better and optimized way.
And i'll even add more features later on.
Thanks to Doraemon or whoever started with this project.

And thanks to testdude for the injection fix + checkhash idea

Feel free to post bugs/questions/problems/suggestions, have fun.

v1.05
- Added a security code and added hash check.

v1.00
- New Style/New Way of fixing SQL Injection Exploit and some new features.

Preview:
You can make when you put Lost Password and say ok the questions the passworld send to a email and no to see in the page?

greeting

jhoni

SORRY FOR ENGLISH
jhoni1234 is offline  
Old 15.01.2007, 21:00   #20
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

Quote:
Originally Posted by jhoni1234 View Post
You can make when you put Lost Password and say ok the questions the passworld send to a email and no to see in the page?

greeting

jhoni

SORRY FOR ENGLISH
¬_¬ just check the code

Quote:
} elseif($CONFIG['email']==1) {
sendemail($CONFIG['emailsmtp'], $CONFIG['emailuser'], $CONFIG['emailpass'], $CONFIG['emailaddress'], $CONFIG['servername'], "Lost Password", $email, $account, $newpassword, $ssn, "<strong>Your password has been reseted and sent to your email.</strong>");
}
m4rk is offline  
Old 15.01.2007, 21:05   #21
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

LOL, look at config.php man... thats one of the best newbie questions a see in too much time xD
FidoW is offline  
Old 15.01.2007, 23:55   #22
SKs
Архивный участник
 
Join Date: Sep 2006
Posts: 6
Default

Quote:
Originally Posted by Phantom2005 View Post
Preview:
IE sucks.
SKs is offline  
Old 16.01.2007, 15:22   #23
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

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.
Phantom2005 is offline  
Old 16.01.2007, 18:47   #24
~Marquis~
Архивный участник
 
Join Date: Dec 2006
Posts: 252
Default

Quote:
Originally Posted by Phantom2005 View Post
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.
lol i think exactly the same thing about the firefox part, i already have IE on my comp and it's working well why would i fucking need installing firefox >.< and btw most of the websites are IE designed.
You better say you don't like IE monopole than antyhing else.
~Marquis~ is offline  
Old 16.02.2007, 12:39   #25
Ra1n0
Архивный участник
 
Join Date: Feb 2007
Posts: 139
Default

Quote:
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
open captcha.php and set from
Code:
<?
to
Code:
<?php
if still not work u dont have gd or gd not loaded
---
and of some new verison of php, image code check will not work

add to index.php
Code:
session_start();
Ra1n0 is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:58.