FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Test/articleread.php at master · JavaDevl/Test · GitHub
JavaDevl
/
Test
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Test
/
articleread.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
108 lines (91 loc) · 3.48 KB
Breadcrumbs
Test
/
articleread.php
Copy path
File metadata and controls
108 lines (91 loc) · 3.48 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<?php
$
id
=
$
_GET
[
'
id
'
];
if
(
is_null
(
$
id
))
header
(
'
Location: http://localhost/PhpProject5/homepage.php
'
) ;
else
session_start
();
?>
<html>
<head>
<script src="ckeditor_fine/ckeditor.js"></script>
<?php
include
'
alertify.js0/alertlibrary.html
'
?>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/articleread.css" rel="stylesheet"/>
<title></title>
</head>
<style>
#detailarticle
{
margin:0px 10px 30px 250px;
border:solid 2px #cecece;
display:inline-block;
padding:10px;
}
</style>
<body>
<?php
include
'
menubar/index.php
'
;
$
userlevel
=
$
_SESSION
[
'
user_level
'
]
+
3
;
?>
<div id="wholepage">
<?php
if
(
$
userlevel
>
5
){
?>
<div id="adminfeature">
<input type="button" id="unfeature" value="Unfeature"/>
<input type="button" id="reject" value="Reject"/> </div>
<?php
}
include
"
countrylist.php
"
;
$
db
=
$
dbcach
;
$
username
=
$
_SESSION
[
'
username
'
];
$
fc
=
$
db
->
fetchmyArray
(
"
select title, body, writer, date(pubdate), eventlocation, category, confirmed, keywords from articles where id=
$
id
"
);
?>
<?php
$
db
->
query
(
"
update articles set hits=hits+1 where id=
$
id
"
);
?>
<input type="hidden" id="userwriter" value="ksega"/>
<input type="hidden" id="usernameid" value="
<?php
echo
$
username
?>
"/>
<input type="hidden" id="wordcounters"/>
<input type="hidden" id="charcounters" />
<input type="hidden" id="articleid" value="
<?php
echo
$
id
;
?>
"/>
<div id="title">
<?php
echo
$
fc
[
0
][
0
];
?>
</div>
<?php
if
(
$
userlevel
>
5
)
echo
'
<div id="body" contenteditable="true">
'
;
else
echo
'
<div>
'
;
echo
$
fc
[
0
][
1
].
"
</div>
"
;
$
deckeyword
=
explode
(
"
&
"
,
$
fc
[
0
][
"
keywords
"
]);
?>
<div class="clearfix"></div>
<div id="detailarticle">
<div class="detailinsider" > <b>Keywords:</b>
<?php
$
i
=
0
;
foreach
(
$
deckeyword
as
$
value
) {
if
(
$
i
!=
0
)
echo
"
,
"
;
echo
$
value
;
$
i
++;
}
?>
</div> <b>Status: </b>
<?php
$
conf
=
$
fc
[
0
][
"
confirmed
"
] ;
if
(
$
conf
==
1
)
echo
"
Confirmed
"
;
else
if
(
$
conf
==
2
)
echo
"
Featured
"
;
?>
<br>
<div class="detailinsider"> <b>Event Location: </b>
<?php
echo
country::
GetCountryFlagbyKey
(
$
fc
[
0
][
"
eventlocation
"
])
?>
</div > <b >Category: </b>
<?php
echo
$
fc
[
0
][
"
category
"
]
?>
<br>
<div class="detailinsider"> <b >Date: </b>
<?php
echo
$
fc
[
0
][
3
];
?>
</div > <b>Poster: </b>
<?php
echo
$
fc
[
0
][
2
]
?>
</div>
<?php
include
'
userinteraction/getanalysis.php
'
;
?>
<div class="clearfix"></div>
<?php
include
'
userinteraction/comments.php
'
;
?>
</div>
<script src="userinteraction/js/getanalysis.js"></script>
<?php
include
'
menubar/footer.php
'
;
?>
</body>
</html>
Back
|
FazBrowse Home
|
New Git URL