Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F13400538
like.json.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Authored By
Unknown
Size
664 B
Referenced Files
None
Subscribers
None
like.json.php
View Options
<?php
global
$global
,
$config
;
if
(
!
isset
(
$global
[
'systemRootPath'
]
)
)
{
require_once
'../videos/configuration.php'
;
}
require_once
$global
[
'systemRootPath'
]
.
'objects/like.php'
;
require_once
$global
[
'systemRootPath'
]
.
'objects/user.php'
;
header
(
'Content-Type: application/json'
)
;
if
(
!
empty
(
$_GET
[
'user'
]
)
&&
!
empty
(
$_GET
[
'pass'
]
)
)
{
$user
=
new
User
(
0
,
$_GET
[
'user'
]
,
$_GET
[
'pass'
]
)
;
$user
->
login
(
false
,
true
)
;
}
if
(
empty
(
$_POST
[
'videos_id'
]
)
&&
!
empty
(
$_GET
[
'videos_id'
]
)
)
{
$_POST
[
'videos_id'
]
=
$_GET
[
'videos_id'
]
;
}
$like
=
new
Like
(
$_GET
[
'like'
]
,
$_POST
[
'videos_id'
]
)
;
echo
json_encode
(
Like
::
getLikes
(
$_POST
[
'videos_id'
]
)
)
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Jun 4, 20:20 (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1900324
Default Alt Text
like.json.php (664 B)
Attached To
Mode
R58 TurboFlop
Attached
Detach File
Event Timeline