summaryrefslogtreecommitdiffstats
path: root/utils/password_create.php
diff options
context:
space:
mode:
authorAnton Luka Šijanec <anton@sijanec.eu>2022-01-11 12:35:47 +0100
committerAnton Luka Šijanec <anton@sijanec.eu>2022-01-11 12:35:47 +0100
commit19985dbb8c0aa66dc4bf7905abc1148de909097d (patch)
tree2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /utils/password_create.php
download1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst
1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip
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