irivers Posted June 27, 2011 Report Posted June 27, 2011 Sorry i didn't know where is the best place for this question, that why i wrote it here. My question is... In video there is a file temp.php whit this code <?php echo md5('admin' . 'j4H9?s0d'); but in validateLogin function there a code $stmt->bind_param("ss", $user, md5($pass . $this->salt)); Is it ok or there should be??? $stmt->bind_param("ss", $user, md5($user . $this->salt)); Sorry for asking i just wanna clear this out for myself. Quote
falkencreative Posted June 27, 2011 Report Posted June 27, 2011 Feel free to ask questions -- that's what this forum is for. The 'admin' portion of temp.php refers to the password you want set, not the username. For the sake of simplicity, I set the system up to use "admin" as both the username and password so I couldn't forget it. The temp.php file is only a temporary file to figure out the result of md5() of the password ("admin") plus the salt ("j4...etc"). This allows us to add a row to the database with the correct password details. After you have the database set up properly, temp.php can be deleted. $stmt->bind_param("ss", $user, md5($pass . $this->salt)); within the validateLogin() function is correct. This line binds the parameters in place within the SQL query, allowing us to compares the md5() value of $pass (what the user entered as the password) plus the salt with what is stored in the database. Quote
irivers Posted June 27, 2011 Author Report Posted June 27, 2011 Thanks a lot for your quick answer! I really appreciate that! Do you have some special topic for this video tutorial? I still have some others questions as well if you don't mind Quote
falkencreative Posted June 27, 2011 Report Posted June 27, 2011 No, here in the PHP section is fine. I may or may not be able to answer the questions tonight, but definitely post and I'll respond as soon as I can. Quote
irivers Posted June 27, 2011 Author Report Posted June 27, 2011 First of all i wanna thank you for your great tutorial!!! It is what i wonted for a long long time. I don't feel sorry not for even 1 USD which i spend for this tutorial I'm still working with this tutorial but i wondering do you have some plans to continue this course? I am interested to add photo and video gallery or catalog with some products and some other things that will be really helpful for me using this cms. Quote
falkencreative Posted June 27, 2011 Report Posted June 27, 2011 I'm glad to hear that you are enjoying the tutorial. Yes, I definitely would like to add more to this tutorial. However, I will probably (at least initially) be focusing on more general items, like adding a reset password ability, the ability to add/remove/edit admin users and similar. One major hole is the uploading photos/documents, and that is one thing I hope to tackle. The challenge is simply finding time for it. I'm a full time freelancer in the web/graphic design industry, and I have a significant backlog of projects, but you can keep an eye on my screencast blog (http://www.killersites.com/community/index.php?/blog/5-my-killersites-screencast-blog/) since I post there anytime I do new screencasts. I probably won't be covering video or a product catalog. Video is a maybe, but would come after some of the other major items that I think are missing. A product catalog is highly unlikely, since my purpose is to write a basic, extendable CMS, not really an e-commerce platform. My hope is that by the time you finish the course, you'll have a good enough understanding of how they system works that you will be able to add additional features to the system yourself. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.