2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Moved files to the right place

This commit is contained in:
Adam Zammit
2017-01-09 11:46:11 +11:00
parent b838edc01a
commit abfef22f9f
60 changed files with 1294 additions and 840 deletions

View File

@@ -51,7 +51,7 @@ if ((defined('PHP_SESSION_ACTIVE') && session_status() !== PHP_SESSION_ACTIVE) |
if (session_id() == "" || !isset($_SESSION['loginID']))
{
//need to log in
header('Location: ../include/limesurvey/admin/admin.php');
header('Location: ../login.php');
die();
}

View File

@@ -93,7 +93,7 @@ if (isset($_POST['client']) && !empty($_POST['client']))
/* rewrite 'password' only if not blank in edit mode */
if (isset($_GET['edit']) && $_GET['edit'] >0 && isset($_POST['password']) && !empty($_POST['password'])) {
include_once("../include/limesurvey/admin/classes/core/sha256.php");
include_once("../include/sha256.php");
$sql .=",`password` = '" . SHA256::hashing($_POST['password']) . "'";
}
@@ -111,7 +111,7 @@ if (isset($_POST['client']) && !empty($_POST['client']))
if ($db->Execute($sql)) {
include_once("../include/limesurvey/admin/classes/core/sha256.php");
include_once("../include/sha256.php");
//Insert into lime_users
$sql = "INSERT INTO " . LIME_PREFIX . "users (`users_name`,`password`,`full_name`,`parent_id`,`superadmin`,`email`,`lang`)

View File

@@ -76,7 +76,7 @@ if (isset($_POST['submit']))
if (!empty($_POST['password']))
{
include_once("../include/limesurvey/admin/classes/core/sha256.php");
include_once("../include/sha256.php");
$sql .= ", password = '" . SHA256::hashing($_POST['password']) . "' ";
}

View File

@@ -115,7 +115,7 @@ if (isset($_POST['operator']) && isset($_POST['adduser']))
{
$oid = $db->Insert_ID();
include_once("../include/limesurvey/admin/classes/core/sha256.php");
include_once("../include/sha256.php");
//Insert into lime_users
$sql = "INSERT INTO " . LIME_PREFIX . "users (`users_name`,`password`,`full_name`,`parent_id`,`superadmin`,`email`,`lang`)