Jump to content

lost_again

New Members
  • Posts

    8
  • Joined

  • Last visited

lost_again's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I tried to use html table got a blank page what im trying to get is this is what i have PicName.jpg Picture Pic Name.zip and this is what i would like to have, i try $col=2 but nothing happen PicName.jpg PicName.jpg Picture Picture Pic Name.zip Pic Name.zip
  2. This Code works good to display name of Pic.jpg , And The Picture And The Same Name.zip PicName.jpg Picture Pic Name.zip I would like to make 2 columns if possible,and when clicking on picture it would download the .zip file. But the 2 columns is more important. thanks ahead of time for help. <?php echo "<BR><B><BR>Click On Pic Name .ZIP To Download<BR></B>"; $files = glob("*.*"); for ($i=-1; $i<count($files); $i++) { $num = $files[$i]; if($num=='index.php'){$num='';} echo '<a href="'.$num.'">'.$num.'<br><img src="'.$num.'""height=200 width=400" alt="" /> '."<br />"; } ?><BR><BR></center>
  3. i also try this $passhash = md5(md5($salt).md5($passwd)); still didnt work the app that members use just looks at my code and verifies user and password if they dont match they cant use the app
  4. function update_password($uid, $password, $salt="")
  5. Im sorry if you think im trying to get my members pass words . I already can see them in my temp login all Im trying to do is make my code work for my members securty you can delete this this post if you are uncomfortable with it.
  6. found this in the member.php forum code $logindetails = update_password($user['uid'], md5($password), $user['salt']); so i try this but still didnt work $passhash = md5($password), $user['salt']);
  7. Old forum was e107 using MD5 new forum is mybb and I think it is MD5 With Salt and all members have re register there , I do have a temp login for them at this time but the password is in plaintext that is why im trying to get the new forum login username password to work with the app they use to record online game times. I will look Into pdo but first I would like to get old code to work , then il change it to be more secure.
  8. I have change my forum from and old version to a new version , old version used MD5 and new version uses MD5 and Salt as there secure password my members run a app that looks at there username and password from forum database and lets them record online lap times from a game. I cant get the app to see the password anymore the app looks at this peace of php code. Please can you help me. THIS WORKED ON OLD FORUM WITH JUST MD5 $mysqlcon = mysql_connect('localhost', 'user', 'password') or die('Could not connect: ' . mysql_error()); mysql_select_db('database') or die('Could not select database'); $passhash = md5($passwd ); $authresult = mysql_query("SELECT username,password from forum_users WHERE username='$username' AND password='$passhash' ") or die('mysql error: ' . mysql_error() ); ------------------------------------------------------------------------------------------------------------------- And this works on a temperary db with no MD5 or salt $authresult = mysql_query("SELECT username,password FROM forum_users WHERE username='$username' AND password='$passwd' ") or die('mysql error: ' . mysql_error() ); ------------------------------------------------------------------------------------------------------------- THIS DOES NOT WORK ON NEW FORUM WITH MD5 and SALT $mysqlcon = mysql_connect('localhost', 'user', 'password') or die('Could not connect: ' . mysql_error()); mysql_select_db('database') or die('Could not select database'); //I tryed this $passhash == md5($salt['passwd']) // I tryed this $passhash = md5($salt['passwd']) // I tryed this $passhash == md5($passwd . salt ); // I tryed this $passhash = md5($passwd . salt ); $authresult = mysql_query("SELECT username,password from forum_users WHERE username='$username' AND password='$passhash' ") or die('mysql error: ' . mysql_error() ); Its been years sence my last codeings so i am a real newb again
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.