summaryrefslogtreecommitdiffstats
path: root/utils/password_create.php
diff options
context:
space:
mode:
Diffstat (limited to 'utils/password_create.php')
-rw-r--r--utils/password_create.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/password_create.php b/utils/password_create.php
new file mode 100644
index 0000000..e13ba44
--- /dev/null
+++ b/utils/password_create.php
@@ -0,0 +1,13 @@
+<?php
+/***************************************
+ * Description:
+ * Autor: Robert Ć malc
+ * Created date: 16.11.2016
+ *****************************************/
+include_once ("../function.php");
+$geslo = 'admin';
+
+global $pass_salt;
+$password = base64_encode((hash(SHA256, $geslo .$pass_salt)));
+
+sisplet_query("UPDATE users SET pass='".$password."' WHERE id=1045"); \ No newline at end of file