PDA

View Full Version : [VB3_B7]UpLODAING Service ..


random_X
11-30-2003, 03:10 AM
i was Have Uploading service Center work in VB2...



it is affined withe User membership ... But it is not work with VB3 and i think this from the VB auth connect file ..



look here







<?php

$auth = "false";

if (isset( $PHP_AUTH_ID ) && isset( $PHP_AUTH_PW )) {

mysql_connect( $checkservername, $dbcheckusername, $dbcheckpassword )

or die ( 'Unable to connect to server.' );

mysql_select_db( $dbcheckbase )

or die ( 'Unable to select database.' );

if ($encryptedpw) {

$chkpw = md5($PHP_AUTH_PW);

} else {

$chkpw = $PHP_AUTH_PW;

}

$sql = "SELECT * FROM user WHERE

userid = '$PHP_AUTH_ID' AND

password = '$chkpw' AND

(usergroupid = '2' or usergroupid = '5' or usergroupid = '6' or usergroupid = '7')";

$result = mysql_query( $sql )

or die ( 'Unable to execute query.' );

$num = mysql_numrows( $result );

if ( $num != 0 ) {

$auth = "true";

}

}

?>





Can any one help me to repaier this code ?!!

Koutaru
11-30-2003, 03:28 AM
I don't believe you are allowed to do any vB3 hacking right now on vb.org

Dean C
11-30-2003, 10:09 AM
Sorry vb3 hacking discussion is not currently allowed here. Please refer to the announcement. :)