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
Show 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 {
...
@@ -44,7 +44,7 @@ public class ContentDelivery {
public
String
Panel
(
@RequestParam
(
name
=
"token"
)
String
t
,
Model
model
)
public
String
Panel
(
@RequestParam
(
name
=
"token"
)
String
t
,
Model
model
)
throws
SQLException
{
throws
SQLException
{
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
sql
=
"SELECT * FROM tokens WHERE token="
+
"\""
+
t
+
"\""
;
sql
=
"SELECT * FROM tokens WHERE token="
+
"\""
+
t
+
"\""
;
...
@@ -68,7 +68,7 @@ public class ContentDelivery {
...
@@ -68,7 +68,7 @@ public class ContentDelivery {
public
String
Overview
(
@RequestParam
(
name
=
"token"
)
String
t
)
public
String
Overview
(
@RequestParam
(
name
=
"token"
)
String
t
)
throws
SQLException
{
throws
SQLException
{
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
int
entityID
;
int
entityID
;
...
@@ -89,7 +89,7 @@ public class ContentDelivery {
...
@@ -89,7 +89,7 @@ public class ContentDelivery {
String
fullName
;
String
fullName
;
String
degree
;
String
degree
;
String
title
;
String
title
;
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
sql
=
"SELECT * FROM professors WHERE id="
+
entityID
;
sql
=
"SELECT * FROM professors WHERE id="
+
entityID
;
rs
=
statement
.
executeQuery
(
sql
);
rs
=
statement
.
executeQuery
(
sql
);
...
@@ -131,7 +131,7 @@ public class ContentDelivery {
...
@@ -131,7 +131,7 @@ public class ContentDelivery {
int
semno
=
0
;
int
semno
=
0
;
int
tmpYr
;
int
tmpYr
;
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
sql
=
"SELECT * FROM students WHERE id="
+
entityID
;
sql
=
"SELECT * FROM students WHERE id="
+
entityID
;
rs
=
statement
.
executeQuery
(
sql
);
rs
=
statement
.
executeQuery
(
sql
);
...
@@ -285,7 +285,7 @@ public class ContentDelivery {
...
@@ -285,7 +285,7 @@ public class ContentDelivery {
public
String
Passed
(
@RequestParam
(
name
=
"token"
)
String
t
)
public
String
Passed
(
@RequestParam
(
name
=
"token"
)
String
t
)
throws
SQLException
{
throws
SQLException
{
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
int
studentID
;
int
studentID
;
...
@@ -318,7 +318,7 @@ public class ContentDelivery {
...
@@ -318,7 +318,7 @@ public class ContentDelivery {
" <tbody class=\"spectrum-Table-body\">"
;
" <tbody class=\"spectrum-Table-body\">"
;
String
fileNumber
;
String
fileNumber
;
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
sql
=
"SELECT * FROM students WHERE id="
+
studentID
;
sql
=
"SELECT * FROM students WHERE id="
+
studentID
;
rs
=
statement
.
executeQuery
(
sql
);
rs
=
statement
.
executeQuery
(
sql
);
...
@@ -372,7 +372,7 @@ public class ContentDelivery {
...
@@ -372,7 +372,7 @@ public class ContentDelivery {
@ResponseBody
@ResponseBody
public
String
Cheque
(
@RequestParam
(
name
=
"token"
)
String
t
)
public
String
Cheque
(
@RequestParam
(
name
=
"token"
)
String
t
)
throws
SQLException
{
throws
SQLException
{
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
int
studentID
;
int
studentID
;
...
@@ -388,7 +388,7 @@ public class ContentDelivery {
...
@@ -388,7 +388,7 @@ public class ContentDelivery {
statement
.
close
();
statement
.
close
();
connection
.
close
();
connection
.
close
();
}
}
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
sql
=
"SELECT DISTINCT name, surname FROM students WHERE id="
+
studentID
;
sql
=
"SELECT DISTINCT name, surname FROM students WHERE id="
+
studentID
;
...
@@ -438,7 +438,7 @@ public class ContentDelivery {
...
@@ -438,7 +438,7 @@ public class ContentDelivery {
public
String
Enroll
(
@RequestParam
(
name
=
"token"
)
String
t
)
public
String
Enroll
(
@RequestParam
(
name
=
"token"
)
String
t
)
throws
SQLException
{
throws
SQLException
{
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
String
result
=
new
String
();
String
result
=
new
String
();
...
@@ -458,7 +458,7 @@ public class ContentDelivery {
...
@@ -458,7 +458,7 @@ public class ContentDelivery {
connection
.
close
();
connection
.
close
();
}
}
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
sql
=
"SELECT file_number, enrollment_year FROM students WHERE id="
+
studentID
;
sql
=
"SELECT file_number, enrollment_year FROM students WHERE id="
+
studentID
;
...
@@ -545,7 +545,7 @@ result +=
...
@@ -545,7 +545,7 @@ result +=
public
String
Submit
(
@RequestParam
(
name
=
"token"
)
String
t
,
public
String
Submit
(
@RequestParam
(
name
=
"token"
)
String
t
,
@RequestParam
(
name
=
"arg"
)
String
a
)
throws
SQLException
{
@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
();
statement
=
connection
.
createStatement
();
int
studentID
;
int
studentID
;
...
@@ -563,7 +563,7 @@ result +=
...
@@ -563,7 +563,7 @@ result +=
connection
.
close
();
connection
.
close
();
}
}
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
String
[]
vals
=
a
.
split
(
"__"
);
String
[]
vals
=
a
.
split
(
"__"
);
...
@@ -585,7 +585,7 @@ result +=
...
@@ -585,7 +585,7 @@ result +=
@ResponseBody
@ResponseBody
public
String
Eregister
(
@RequestParam
(
name
=
"token"
)
String
t
)
throws
SQLException
{
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
();
statement
=
connection
.
createStatement
();
int
studentID
;
int
studentID
;
...
@@ -604,7 +604,7 @@ result +=
...
@@ -604,7 +604,7 @@ result +=
connection
.
close
();
connection
.
close
();
}
}
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
int
month
=
Calendar
.
getInstance
().
get
(
Calendar
.
MONTH
);
int
month
=
Calendar
.
getInstance
().
get
(
Calendar
.
MONTH
);
...
@@ -679,7 +679,7 @@ result +=
...
@@ -679,7 +679,7 @@ result +=
public
String
EregisterSubmit
(
@RequestParam
(
name
=
"token"
)
String
t
,
public
String
EregisterSubmit
(
@RequestParam
(
name
=
"token"
)
String
t
,
@RequestParam
(
name
=
"arg"
)
String
a
)
throws
SQLException
{
@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
();
statement
=
connection
.
createStatement
();
int
studentID
;
int
studentID
;
...
@@ -697,7 +697,7 @@ result +=
...
@@ -697,7 +697,7 @@ result +=
connection
.
close
();
connection
.
close
();
}
}
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
int
month
=
Calendar
.
getInstance
().
get
(
Calendar
.
MONTH
);
int
month
=
Calendar
.
getInstance
().
get
(
Calendar
.
MONTH
);
...
@@ -725,7 +725,7 @@ result +=
...
@@ -725,7 +725,7 @@ result +=
@ResponseBody
@ResponseBody
public
String
Waitlist
(
@RequestParam
(
name
=
"token"
)
String
t
)
throws
SQLException
{
public
String
Waitlist
(
@RequestParam
(
name
=
"token"
)
String
t
)
throws
SQLException
{
String
result
;
String
result
;
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/security"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
int
ID
;
int
ID
;
...
@@ -743,7 +743,7 @@ public String Waitlist(@RequestParam(name = "token") String t) throws SQLExcepti
...
@@ -743,7 +743,7 @@ public String Waitlist(@RequestParam(name = "token") String t) throws SQLExcepti
connection
.
close
();
connection
.
close
();
}
}
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
sql
=
"SELECT * FROM submitted_subjects"
;
sql
=
"SELECT * FROM submitted_subjects"
;
...
@@ -823,7 +823,7 @@ public String Waitlist(@RequestParam(name = "token") String t) throws SQLExcepti
...
@@ -823,7 +823,7 @@ public String Waitlist(@RequestParam(name = "token") String t) throws SQLExcepti
@ResponseBody
@ResponseBody
public
String
RegisterMarks
(
@RequestParam
(
name
=
"token"
)
String
t
,
public
String
RegisterMarks
(
@RequestParam
(
name
=
"token"
)
String
t
,
@RequestParam
(
name
=
"arg"
)
String
a
)
throws
SQLException
{
@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
();
statement
=
connection
.
createStatement
();
int
ID
;
int
ID
;
...
@@ -841,7 +841,7 @@ public String Waitlist(@RequestParam(name = "token") String t) throws SQLExcepti
...
@@ -841,7 +841,7 @@ public String Waitlist(@RequestParam(name = "token") String t) throws SQLExcepti
connection
.
close
();
connection
.
close
();
}
}
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
klaric314
"
);
connection
=
DriverManager
.
getConnection
(
"jdbc:mariadb://localhost/studies"
,
"root"
,
"
*****
"
);
statement
=
connection
.
createStatement
();
statement
=
connection
.
createStatement
();
String
[]
vals
=
a
.
split
(
"_"
);
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