Skip to content
This repository has been archived by the owner on Jun 8, 2018. It is now read-only.

Commit

Permalink
Add user fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dylangallin committed Feb 14, 2018
1 parent dd4bae0 commit 23a2b76
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions addMember.php → addUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
<html>
<head>
<meta charset="utf-8" />
<title>Admin Panel - Add member</title>
<title>Admin Panel - Add user</title>
<link href="./assets/css/css.css" rel="stylesheet">
</head>

<body>
<?php include("./includes/navbar.php"); ?>
<header>
<h1>Add member</h1>
<h1>Add user</h1>
</header>
<div>
<fieldset>
<legend>Add member</legend>
<legend>Add user</legend>
<div>
<label for="field_mail">Mail</label>
<div>
Expand Down Expand Up @@ -54,7 +54,7 @@
</div>
</div>
<?php include("./includes/footer.php"); ?>
<script src="./assets/js/addAccount.js"></script>
<script src="./assets/js/addUser.js"></script>
<script src="./assets/js/sjcl.js"></script>
<script src="./assets/js/base64.js"></script>
<script src="./assets/js/sha512.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions addMemberResult.php → addUserResult.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
if(empty($_POST)) {
header('Location: ./addMember.php');
header('Location: ./addUser.php');
exit();
}
define('ROOT', dirname(dirname(__DIR__)));
Expand Down Expand Up @@ -51,7 +51,7 @@


mkdir(NOVA.'/'.$id_user, 0770);
echo "ok@".htmlentities("Success");
echo "ok@".htmlentities("User successfully created");
}
else {
// "loginExists" response
Expand Down
2 changes: 1 addition & 1 deletion assets/js/addAccount.js → assets/js/addUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ var sendRegisterRequest = function()
else {

var xhr = new XMLHttpRequest();
xhr.open("POST", "./addMemberResult.php", true);
xhr.open("POST", "./addUserResult.php", true);
xhr.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

xhr.onreadystatechange = function()
Expand Down
2 changes: 1 addition & 1 deletion includes/navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ul>
<li><a href="./index.php">AdminPanel</a></li>
<li><a href="./stats.php">Stats</a></li>
<li><a href="./addMember.php">Add member</a></li>
<li><a href="./addUser.php">Add user</a></li>
<li><a href="./userDetails.php">User's details & Change max storage</a></li>
<li><a href="./plansManagement.php">Plans management</a></li>
<li><a href="./runCron.php">Run crons</a></li>
Expand Down

0 comments on commit 23a2b76

Please sign in to comment.