Commit 633c75bf by Krunoslav Velfel

Update ContentDelivery.java

parent c91a20e8
......@@ -44,7 +44,7 @@ public class ContentDelivery {
public String Panel(@RequestParam(name="token") String t, Model model)
throws SQLException {
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement();
sql="SELECT * FROM tokens WHERE token=" + "\"" + t + "\"";
......@@ -68,7 +68,7 @@ public class ContentDelivery {
public String Overview(@RequestParam(name="token") String t)
throws SQLException {
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement();
int entityID;
......@@ -89,7 +89,7 @@ public class ContentDelivery {
String fullName;
String degree;
String title;
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "*****");
statement = connection.createStatement();
sql = "SELECT * FROM professors WHERE id=" + entityID;
rs = statement.executeQuery(sql);
......@@ -131,7 +131,7 @@ public class ContentDelivery {
int semno = 0;
int tmpYr;
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "*****");
statement = connection.createStatement();
sql="SELECT * FROM students WHERE id=" + entityID;
rs = statement.executeQuery(sql);
......@@ -285,7 +285,7 @@ public class ContentDelivery {
public String Passed(@RequestParam(name="token") String t)
throws SQLException {
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement();
int studentID;
......@@ -318,7 +318,7 @@ public class ContentDelivery {
" <tbody class=\"spectrum-Table-body\">";
String fileNumber;
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "*****");
statement = connection.createStatement();
sql="SELECT * FROM students WHERE id=" + studentID;
rs = statement.executeQuery(sql);
......@@ -372,7 +372,7 @@ public class ContentDelivery {
@ResponseBody
public String Cheque(@RequestParam(name="token") String t)
throws SQLException {
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement();
int studentID;
......@@ -388,7 +388,7 @@ public class ContentDelivery {
statement.close();
connection.close();
}
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "*****");
statement = connection.createStatement();
sql = "SELECT DISTINCT name, surname FROM students WHERE id=" + studentID;
......@@ -438,7 +438,7 @@ public class ContentDelivery {
public String Enroll(@RequestParam(name="token") String t)
throws SQLException {
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement();
String result = new String();
......@@ -458,7 +458,7 @@ public class ContentDelivery {
connection.close();
}
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "*****");
statement = connection.createStatement();
sql = "SELECT file_number, enrollment_year FROM students WHERE id=" + studentID;
......@@ -545,7 +545,7 @@ result +=
public String Submit(@RequestParam(name = "token") String t,
@RequestParam(name = "arg") String a ) throws SQLException {
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement();
int studentID;
......@@ -563,7 +563,7 @@ result +=
connection.close();
}
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "*****");
statement = connection.createStatement();
String [] vals = a.split("__");
......@@ -585,7 +585,7 @@ result +=
@ResponseBody
public String Eregister(@RequestParam(name = "token") String t) throws SQLException {
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement();
int studentID;
......@@ -604,7 +604,7 @@ result +=
connection.close();
}
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "*****");
statement = connection.createStatement();
int month = Calendar.getInstance().get(Calendar.MONTH);
......@@ -679,7 +679,7 @@ result +=
public String EregisterSubmit(@RequestParam(name = "token") String t,
@RequestParam(name = "arg") String a ) throws SQLException {
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement();
int studentID;
......@@ -697,7 +697,7 @@ result +=
connection.close();
}
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "*****");
statement = connection.createStatement();
int month = Calendar.getInstance().get(Calendar.MONTH);
......@@ -725,7 +725,7 @@ result +=
@ResponseBody
public String Waitlist(@RequestParam(name = "token") String t) throws SQLException {
String result;
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement();
int ID;
......@@ -743,7 +743,7 @@ public String Waitlist(@RequestParam(name = "token") String t) throws SQLExcepti
connection.close();
}
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "*****");
statement = connection.createStatement();
sql = "SELECT * FROM submitted_subjects";
......@@ -823,7 +823,7 @@ public String Waitlist(@RequestParam(name = "token") String t) throws SQLExcepti
@ResponseBody
public String RegisterMarks(@RequestParam(name = "token") String t,
@RequestParam(name = "arg") String a ) throws SQLException {
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/security", "root", "*****");
statement = connection.createStatement();
int ID;
......@@ -841,7 +841,7 @@ public String Waitlist(@RequestParam(name = "token") String t) throws SQLExcepti
connection.close();
}
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "klaric314");
connection = DriverManager.getConnection("jdbc:mariadb://localhost/studies", "root", "*****");
statement = connection.createStatement();
String [] vals = a.split("_");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment