Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $array = array();
- $username = $DC->sec()->my("username",1);
- $password = $DC->sec()->my("password",1);
- $secret_code = $DC->sec()->my("secret_code",1);
- $password_in = $DC->sec()->enc($password);
- $secret_code_in = $DC->sec()->enc($secret_code);
- $Q = $DC->db()->query("SELECT * FROM `".TABLE_KEY."Master` WHERE `username` = '" .$username. "' AND `password` = '" .$password_in. "' AND `secret_code` = '" .$secret_code_in. "'");
- if($DC->db()->numRows($Q) < 1){
- echo "הפרטים שהוזנו שגויים&&null";
- }else {
- $DC->auth()->Handle(array(
- DC_GLOBAL_KEY => array("type" => "cookie","action" => "register","value" => $username,"expire" => strtotime("+ 1 month")),
- DC_GLOBAL_KEY_VALIDATE => array("type" => "cookie","action" => "register","value" => $DC->sec()->enc($username),"expire" => strtotime("+ 1 month"))
- ));
- $DC->WriteLog($username." התחבר למערכת");
- echo "התחברת בהצלחה למערכת&&index.php";
- }
Add Comment
Please, Sign In to add comment