First customizations
- Move credentials.php to be a sample file.
- Change timezone to Europe/Madrid.
- Change event name.
Change-Id: Ia857dff139adf26fcab5a4be0c246fed1c56a42e
diff --git a/credentials.php b/credentials.php
deleted file mode 100644
index e50c524..0000000
--- a/credentials.php
+++ /dev/null
@@ -1,12 +0,0 @@
-<?php
-
-class Credentials {
- public $servername = "fdb30.awardspace.net";
- public $username = "3580259_pastanaga";
- public $password = "CA-btEjC3,v{PV,%";
- public $dbname = "pastanaga";
- public $usersdb = "pastanaga";
- public $mortsdb = "pastanaga_morts";
-};
-
-?>
diff --git a/credentials.sample.php b/credentials.sample.php
new file mode 100644
index 0000000..a82816e
--- /dev/null
+++ b/credentials.sample.php
@@ -0,0 +1,10 @@
+<?php
+
+class Credentials {
+ public $servername = "";
+ public $username = "";
+ public $password = "";
+ public $dbname = "pastanaga";
+ public $usersdb = "pastanaga";
+ public $mortsdb = "pastanaga_morts";
+};
diff --git a/dead.php b/dead.php
index 0c3c758..294a6e5 100644
--- a/dead.php
+++ b/dead.php
@@ -1,5 +1,5 @@
<?php
- date_default_timezone_set("Europe/Berlin");
+ date_default_timezone_set("Europe/Madrid");
// Forget cookies
setcookie('user', '', -1, "/");
diff --git a/index.php b/index.php
index a29f52b..ad7b1ea 100644
--- a/index.php
+++ b/index.php
@@ -28,7 +28,7 @@
<div id="inner-container">
<header>
<h2>Pastanaga Assassina</h2>
- <h3>Facultat de Matemàtiques i Estadística - Tardor 2019</h3>
+ <h3>Facultat de Física - Tardor 2022</h3>
</header>
<form action="./php/login.php" method="POST">
<input type="hidden" name="user" id="user">
@@ -69,7 +69,6 @@
<script>
fetch("./ajax/getusers.php").then(result => result.json()).then(users => {
autocomplete(document.getElementById("search-input"), users, "search");
- console.log(users);
userid = <?=isset($_COOKIE['user']) ? (int)$_COOKIE['user'] : -1 ?>;
username = get_user_name(users, userid);
diff --git a/js/utils.js b/js/utils.js
index 315cf19..0e0922a 100644
--- a/js/utils.js
+++ b/js/utils.js
@@ -23,7 +23,7 @@
console.log(data);
},
'error': function(xhr, status, error) {
- $.notify('Error! Torna-ho a intentar o contacta amb l\'Andreu: +34681236024');
+ $.notify('Error! Torna-ho a intentar o contacta\'ns: operacio236@avm99963.com');
console.log(error);
}
});
diff --git a/killer-chat.php b/killer-chat.php
index c44158e..e167404 100644
--- a/killer-chat.php
+++ b/killer-chat.php
@@ -11,7 +11,7 @@
$usersdb = $credentials->usersdb;
$mortsdb = $credentials->mortsdb;
- date_default_timezone_set("Europe/Berlin");
+ date_default_timezone_set("Europe/Madrid");
$user = $_COOKIE['user']; // (int)$_POST['user'];
$password = $_COOKIE['password']; // isset($_POST['password']) ? md5($_POST['password']) : '';
@@ -100,4 +100,4 @@
</div>
</div>
</div>
-</body>
\ No newline at end of file
+</body>
diff --git a/main.php b/main.php
index d9d0ae8..146237b 100644
--- a/main.php
+++ b/main.php
@@ -6,7 +6,7 @@
$usersdb = $credentials->usersdb;
$mortsdb = $credentials->mortsdb;
- date_default_timezone_set("Europe/Berlin");
+ date_default_timezone_set("Europe/Madrid");
$user = $_COOKIE['user']; // (int)$_POST['user'];
$password = $_COOKIE['password']; // isset($_POST['password']) ? md5($_POST['password']) : '';
diff --git a/php/change_password.php b/php/change_password.php
index 315d08e..819d388 100644
--- a/php/change_password.php
+++ b/php/change_password.php
@@ -6,7 +6,7 @@
$usersdb = $credentials->usersdb;
$mortsdb = $credentials->mortsdb;
- date_default_timezone_set("Europe/Berlin");
+ date_default_timezone_set("Europe/Madrid");
// Check if confirmation is the same
if ($_POST['password'] != $_POST['confirmation']) {
diff --git a/php/login.php b/php/login.php
index 00c18e0..79730dd 100644
--- a/php/login.php
+++ b/php/login.php
@@ -6,7 +6,7 @@
$usersdb = $credentials->usersdb;
$mortsdb = $credentials->mortsdb;
- date_default_timezone_set("Europe/Berlin");
+ date_default_timezone_set("Europe/Madrid");
// Set the 'user' POST and COOKIE variable
$user = '';
diff --git a/victim-chat.php b/victim-chat.php
index 4987489..e426d60 100644
--- a/victim-chat.php
+++ b/victim-chat.php
@@ -11,7 +11,7 @@
$usersdb = $credentials->usersdb;
$mortsdb = $credentials->mortsdb;
- date_default_timezone_set("Europe/Berlin");
+ date_default_timezone_set("Europe/Madrid");
$user = $_COOKIE['user']; // (int)$_POST['user'];
$password = $_COOKIE['password']; // isset($_POST['password']) ? md5($_POST['password']) : '';
@@ -99,4 +99,4 @@
</div>
</div>
-</body>
\ No newline at end of file
+</body>