Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   L2CP Reborn. (https://postpacific.mmorpg-game.online/showthread.php?t=6488)

Ant0n1z 05.01.2007 20:39

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.... >.<

Phantom2005 06.01.2007 11:32

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.

crexas 07.01.2007 14:41

Ant0n1z thanks for help. it really solved the problem :)

WooCry 07.01.2007 23:27

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 08.01.2007 02:49

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


^^

evern 09.01.2007 16:44

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 09.01.2007 17:03

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?

Rexx 14.01.2007 01:27

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

dirkr 14.01.2007 12:20

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

http://www.boutell.com/gd/

Rexx 14.01.2007 21:27

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

werstein 15.01.2007 05:42

If ur server on *nix, maybe u need to use imagemagick or recompile php with jpeg, png, etc.

Rexx 15.01.2007 06:53

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

jhoni1234 15.01.2007 20:56

Quote:

Originally Posted by Phantom2005 (Post 74874)
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:
http://img245.imageshack.us/img245/8...oos2gr7.th.jpghttp://img214.imageshack.us/img214/2...oos3ef8.th.jpg

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

m4rk 15.01.2007 21:00

Quote:

Originally Posted by jhoni1234 (Post 76145)
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>");
}

FidoW 15.01.2007 21:05

LOL, look at config.php man... thats one of the best newbie questions a see in too much time xD

SKs 15.01.2007 23:55

IE sucks. :D

Phantom2005 16.01.2007 15:22

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.

~Marquis~ 16.01.2007 18:47

Quote:

Originally Posted by Phantom2005 (Post 76187)
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.

Belazor 25.01.2007 13:34

Quote:

Originally Posted by testdude (Post 75417)
m4rk that kinda is... he was refering to the check_cookie function, if u use livehttpheaders, a plugin for firefox, and change the user or password cookie u can sql inject... which is what my changed check_cookie function stops... so yeah...

i was actually suprised that no one had released the fix for the injection.. l2cp was a pretty good control panel... just was insecure... but then again out of all of the servers ive looked at with l2cp mine is the only one i ever found that actually fixed the injection instead of just locking permissions

You obviously didn't check my old server then =P
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 asdasd@asdsad.sdasd 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?

testdude 25.01.2007 14:02

Quote:

Originally Posted by Belazor (Post 76654)
You obviously didn't check my old server then =P
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

yeah but u probably just replaced the cookies with vbul sessions instead... as for my function i just used the already existing antiinjection function inside l2cp and just checked the vars sent to the check cookie function before they went anywhere near the db, and that anti inject function just uses str_replace and eregi...

btw i hate vBulletin >.>

http://img149.imageshack.us/img149/9...tled6id.th.png
^ my current work-in-progress... maybe ill share it some time...

FidoW 25.01.2007 16:04

Quote:

Originally Posted by testdude (Post 76657)
http://img149.imageshack.us/img149/9...tled6id.th.png
^ my current work-in-progress... maybe ill share it some time...

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)...

Belazor 30.01.2007 17:52

Quote:

Originally Posted by testdude (Post 76657)
yeah but u probably just replaced the cookies with vbul sessions instead... as for my function i just used the already existing antiinjection function inside l2cp and just checked the vars sent to the check cookie function before they went anywhere near the db, and that anti inject function just uses str_replace and eregi...

No, I coded a vBa module to quick register an account from the frontpage if they weren't logged in with vB.
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 :/

Ra1n0 16.02.2007 12:39

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

demon 16.02.2007 13:47

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 !

Ra1n0 16.02.2007 14:05

Quote:

just enable
short_open_tag = On
session.auto_start = 1
lol i know this
but for default its off and more ppl dont know how set this
any question ?


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