View Full Version : php account.
Blackmagic
26.05.2005, 01:12
Does any one know where i can get a php account creator. Cuz when i try and run the auth from asp it gets a access violation.
A php account creator whould be alsome.
search for the l2cp, is a good reg php
http://drnagel.dyndns.org/ftp/l2cp.zip
Blackmagic
26.05.2005, 04:02
thanks but i keep geting this error, i think its becouse i didnt configer something or did it wronge
Notice: Undefined index: user in c:\easyphp1-8\www\lineage2\index.php on line 3
Notice: Undefined index: pass in c:\easyphp1-8\www\lineage2\index.php on line 3
Fatal error: Call to undefined function: mssql_connect() in c:\easyphp1-8\www\lineage2\function.php on line 46
If you know how to fix this it would be great
Thanks for the files tho.
yeah I got that error too very odd hehe
first you have to enable the mssql function in the easyphp.
- open the php.ini in "C:\Archivos de programa\EasyPHP1-8\php" and search ";extension=php_mssql.dll" and delete the ";" from the begining, save the file and close, and restart the php service.
- and check in the folder of the l2cp, the file "config.php", edit and complete this fields:
$CONFIG['dbaddress'] = "127.0.0.1"; <----- here you have to put the ip of the l2db
$CONFIG['dbuser'] = "sa"; <----- here put the username of your db
$CONFIG['dbpass'] = ""; <----- here put the password of you db username
Save and close, done.
I did that all before while ago i think got that error I will try tomorrow going bed now.
Blackmagic
26.05.2005, 16:18
Yea i did all that but i still get the same errors :(
Blackmagic
26.05.2005, 16:29
ok i uploaded this to my webhost and when i did that only error i get now is
Fatal error: Call to undefined function: mssql_connect() in /home/www/sfstats.coolinc.info/l2cp/function.php on line 46
Blackmagic
26.05.2005, 16:56
I did search buy i all i could find was a post that said to download l2cp from ragezone but... links are dead.
you've better check this.. easyphp etc sucks
https://postpacific.mmorpg-game.online/forum/viewtopic.php?t=784
call to undefined...
do you have mssql module installed and configured in your php engine?
I used easyphp long time nothing else worked fine with before hmmm./
I used easyphp long time nothing else worked fine with before hmmm./
in found the problem, but still have anothe error but the cp load fine.
you have to seach in easyphp folder, all *.ini, (php.ini and php-safe.ini), and change the ";extension=php_mssql.dll" to "extension=php_mssql.dll", reload the apache and done. but i have another problem because the error "index.php on line 3" i think is a cookie error, and i dont know how fix this yet.
look my l2cp error
[web:98164e0d96]http://drnagel.dyndns.org/ftp/l2cperror.jpg[/web:98164e0d96]
with the appserver wasnt have this errors, but now with easyphp yes.
Dave2005
26.05.2005, 20:53
I used easyphp long time nothing else worked fine with before hmmm./
in found the problem, but still have anothe error but the cp load fine.
you have to seach in easyphp folder, all *.ini, (php.ini and php-safe.ini), and change the ";extension=php_mssql.dll" to "extension=php_mssql.dll", reload the apache and done. but i have another problem because the error "index.php on line 3" i think is a cookie error, and i dont know how fix this yet.
look my l2cp error
image
with the appserver wasnt have this errors, but now with easyphp yes.
Easy to fix, open your php.ini, remove everything behind "error_reporting = " and put this instead of it: "E_ALL & ~E_NOTICE"
So it will look like: error_reporting = E_ALL & ~E_NOTICE
I used easyphp long time nothing else worked fine with before hmmm./
in found the problem, but still have anothe error but the cp load fine.
you have to seach in easyphp folder, all *.ini, (php.ini and php-safe.ini), and change the ";extension=php_mssql.dll" to "extension=php_mssql.dll", reload the apache and done. but i have another problem because the error "index.php on line 3" i think is a cookie error, and i dont know how fix this yet.
look my l2cp error
image
with the appserver wasnt have this errors, but now with easyphp yes.
Easy to fix, open your php.ini, remove everything behind "error_reporting = " and put this instead of it: "E_ALL & ~E_NOTICE"
So it will look like: error_reporting = E_ALL & ~E_NOTICE
yes i read again the readme.txt and change this and done. :D, just i was having post the fix :D.
again but another error in another server, says the user sa is not a correct user of the db :S, check everithing and nothing works :(
[web:0770dc5e0c]http://drnagel.dyndns.org/ftp/error.jpg[/web:0770dc5e0c]
i have exactly the same problem, i followed all from here
pls help :?
tha don your error is easy to fix, just do that
open your php.ini, search "error_reporting = " and put this instead of it: "E_ALL & ~E_NOTICE"
So it will look like: error_reporting = E_ALL & ~E_NOTICE
and done, if it doesnt work, search all php.ini files in your pc, and the php-safe, change this line in all files, reboot the php and done.
ty, but i think its possible to inject the sql with this script :?
Put this in ani injection part in functions.php
<?php
function antiinjection($str) {
$banwords = array ("'", ",", ";", "--", " or ", ")", "(", " OR ", " and ", " AND ","/n","/r");
if ( eregi ( "[a-zA-Z0-9]+", $str ) ) {
$str = str_replace ( $banwords, '', strtolower ( $str ) );
} else {
$str = NULL;
}
$str = trim($str);
$str = strip_tags($str);
$str = addslashes($str);
$str = htmlspecialchars($str);
return $str;
}
ty but when i add this i become this, lol
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: ************ in D:\Inetpub\wwwroot\l2cp\function.php on line 50
Warning: mssql_select_db(): supplied argument is not a valid MS SQL-Link resource in D:\Inetpub\wwwroot\l2cp\function.php on line 51
Fatal error: Call to undefined function mysql_error() in D:\Inetpub\wwwroot\l2cp\function.php on line 51
when i open the web: 127.0.0.1/l2cp it apperat all write. Because it can be?
so no one has an account maker for php.. thats works aint tied into cp... There sue to be when l2 first started but can't find them..
i fixed my errors in the cp, works great.
ROFL. http://livid.sytes.net:81/ :D
Remember, server can be down for an ammount of time.
Kind advice Livid
Limit input fields in PHP to 11 chars. U will do urself big favour.
and remove email option. Its useless on top of that it allows 50 chars to be added (which means 50 chars of pure sql code).
No need to change char limit in sql database. it will be more than enough in php page.
Doing this along with strong anti injection u will secure ur server to higher lvl.
Ahh almost forgot :)
Change SSN generation number to 11 chars as well
Regards,
athlon64
21.09.2005, 05:46
Can anyone post plz a working link with L2cp (php account manager) english version?
dinesat4
14.11.2005, 00:52
up
i need a acc creator
Flamestrike
14.11.2005, 11:02
up
i need a acc creator
Are you blind or what?
I woudln't use l2cp it's like the most unsecure thing i've ever seen i wouldn't even poke it with my teacup. A new cp is being worked on and will prolly be released and updated regularly later.
Everything works fine until i want to register an account. There should be
image with valdation code but i can't see it. When i right click on the image and click on "view image" another window appears with this error :
Fatal error: Call to undefined function: imagecreate() in C:\www\L2ControlPanel\verify.php on line 19
line 19 is --->
$im = imagecreate(60, 20);
Any idea what's with it?