Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
Tim11
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dragutin Ostojic
Tim11
Commits
633c75bf
Commit
633c75bf
authored
Jan 28, 2021
by
Krunoslav Velfel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ContentDelivery.java
parent
c91a20e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
+20
-20
src/main/java/com/imi/informacionisistem/Server/ContentDelivery.java
+20
-20
No files found.
src/main/java/com/imi/informacionisistem/Server/ContentDelivery.java
View file @
633c75bf
...
...
@@ -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
(
"_"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment