Welcome to Open Carnage

A resource for Halo Custom Edition and MCC modding, with unique means of rewarding content creation and support. Have a wander to see why we're worth the time!

EST. 14th of February, 2012

Daywu

Member
  • Content count

    483
  • Joined

  • Last visited

  • Raffle Tickets

    0

5 Followers

About Daywu

  • Birthday July 15

Extra Information

  • Gender
    Male
  • Occupation
    Software Engineer
  • Interests
    Fishing, Anime, Programming

Contact Methods

Computer Details

  • Central Processor
    Intel i7 8700
  • Motherboard
    Intel B360
  • Graphics
    Nvidia GTX 1060 3GB
  • Memory
    16GB DDR4 2666
  • Storage
    1TB HDD + 120GB SSD
  • Power Supply
    500W
  • Case
    iBP Trace
  • Operating System
    Windows 10

Recent Profile Visitors

14,119 profile views
  1. Finished Silicon Valley and Mr. Robot. Currently watching Vikings S6.
  2. Anyone watched "Weathering with You" yet? I'm watching it this coming Saturday! I've heard good things about it.
  3. I am a Software Engineer for a government contractor. I mainly program using .NET
  4. Brings back chills when I first watch this outstanding movie.
  5. I've been watch Black Clover. I like the show so far, but my only complaint is the voice for Asta in the Japanese dub. It's so annoying haha.
  6. UPDATE: The consumer never got back to me about the app, so I never sold it to the company. From this experience, I have learned that I should have documented contracts and come to an agreement before I start anything. Otherwise, I would just be wasting my time like what just happened in this situation.
  7. Annihilation and Maze Runner: Death Cure
  8. Hey guys, I am working on a website for my Capstone Project and I am having unusual issues with some PHP. I have used the password_verify() function before and never had issues with it until now. Every time I try to use it with a password that contains a pound(#) symbol it returns false. The function returns true for anything else but that. The encrypted password used with the password_hash() function is working and I am pretty sure that it is inserting into the database correctly . Below is my code, please let me know if you notice anything that may be causing the issue or if you need more information. THIS IS DRIVING ME INSANE!! This is how I am inserting it into the database: require_once("mydb.php"); $fullName = $_REQUEST['fullName']; $prefName = $_REQUEST['prefName']; $gender = $_REQUEST['gender']; $profile = $_REQUEST['profile']; $email = $_REQUEST['email']; $username = $_REQUEST['username']; $password = $_REQUEST['password']; $password = password_hash($password, PASSWORD_BCRYPT); $query = "insert into USERS(full_name, preferred_name, username, password, gender, email, profile, comment_penalties, upload_penalties)" . " values('$fullName', '$prefName', '$username', '$password', '$gender', '$email', '$profile', 0, 0);"; $result = mysqli_query($conn, $query); if($result) { header("Location: login.php?status=1"); die(); } else { echo mysqli_error($conn); } mysqli_close($conn); This is how I am validating my password with the hash: <?php require_once('mydb.php'); $username = $_POST['username']; $password = $_POST['password']; //gets password based on the username function getPassword($username) { global $conn; $hash = ''; $query = "select PASSWORD from USERS where USERNAME='$username';"; $result = mysqli_query($conn, $query); if(mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_assoc($result)) { $hash = $row['PASSWORD']; } return $hash; } } //gets userID function getUserID($username) { global $conn; $userID = 0; $query = "select ID from USERS where USERNAME='$username';"; $result = mysqli_query($conn, $query); if(mysqli_num_rows($result) > 0) { while($row = mysqli_fetch_assoc($result)) { $userID = $row['ID']; } return $userID; } } if(password_verify($password, getPassword($username))) { //creates a session for username and redirects to the index page session_start(); $userID = getUserID($username); $_SESSION['USERID'] = $userID; header("Location: index.html?userID=$userID"); } else { //return to login page with an error status header("Location: login.php?status=2"); } mysqli_close($conn); ?> UPDATE Okay never mind. I figured out why. The pound symbol was being treated as a fragment when I was passing it along through a URL.
  9. Definitely watching Shokugeki No Souma S3, Dies Irae , and Saredo Tsumibito wa Ryuu to Odoru
  10. Hope everything went well for you!
  11. Home made fried rice.
  12. Thanks for the heads up! I shall definitely look into this and bring it up in the next meeting. I appreciate all the help and the advice you guys are giving me. I will stand my ground and will not let this arrogant bastard pay me cheap for something I worked hard on. If he doesn't want it... that's fine with me. He can continue writing everyone's times in his fucking notebook. The next time I do this for someone, I am going to discuss a price before coding anything to make sure the consumer is not wasting my time. I have learned my lesson and I'll keep you guys updated of the results.