Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F15184864
index.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Unknown
Size
7 KB
Referenced Files
None
Subscribers
None
index.php
View Options
<?php
global
$global
,
$config
;
ini_set
(
'error_log'
,
$global
[
'systemRootPath'
]
.
'videos/youphptube.log'
)
;
require_once
'objects/simple-php-router/vendor/autoload.php'
;
require_once
'videos/configuration.php'
;
require_once
'objects/configuration.php'
;
$basePath
=
parse_url
(
$global
[
'webSiteRootURL'
]
,
PHP_URL_PATH
)
;
use
Pecee
\
SimpleRouter
\
SimpleRouter
;
$config
=
new
Configuration
(
)
;
// echo $global['webSiteRootURL'];
SimpleRouter
::
get
(
$basePath
,
function
(
)
{
require_once
"view/index.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
,
function
(
)
{
require_once
"view/index.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"info"
,
function
(
)
{
require_once
"view/info.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"signUp"
,
function
(
)
{
require_once
"view/signUp.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"addNewAd"
,
function
(
)
{
require_once
"objects/video_adsAddNew.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"addNewVideo"
,
function
(
)
{
require_once
"objects/videoAddNew.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"createUser"
,
function
(
)
{
require_once
"objects/userCreate.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"ads"
,
function
(
)
{
require_once
"view/managerAds.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"about"
,
function
(
)
{
require_once
"view/about.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"contact"
,
function
(
)
{
require_once
"view/contact.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"user"
,
function
(
)
{
require_once
"view/user.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"users"
,
function
(
)
{
require_once
"view/managerUsers.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"mvideos"
,
function
(
)
{
require_once
"view/managerVideos.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"videos.json"
,
function
(
)
{
require_once
"objects/videos.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"videosAndroid.json"
,
function
(
)
{
require_once
"objects/videosAndroid.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"videoAndroid.json"
,
function
(
)
{
require_once
"objects/videoAndroid.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"deleteVideo"
,
function
(
)
{
require_once
"objects/videoDelete.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"updateUser"
,
function
(
)
{
require_once
"objects/userUpdate.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"savePhoto"
,
function
(
)
{
require_once
"objects/userSavePhoto.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"saveBackground"
,
function
(
)
{
require_once
"objects/userSaveBackground.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"users.json"
,
function
(
)
{
require_once
"objects/users.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"captcha"
,
function
(
)
{
require_once
"objects/getCaptcha.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"login"
,
function
(
)
{
require_once
"objects/login.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"logoff"
,
function
(
)
{
require_once
"objects/logoff.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"charts"
,
function
(
)
{
require_once
"view/charts.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"update"
,
function
(
)
{
require_once
"update/update.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"youtubeUpload"
,
function
(
)
{
require_once
"objects/youtubeUpload.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"googleAdView"
,
function
(
)
{
require_once
"view/googleAdView.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"notifications.json"
,
function
(
)
{
require_once
"objects/notifications.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"subscribes.json"
,
function
(
)
{
require_once
"objects/subscribes.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"subscribe.json"
,
function
(
)
{
require_once
"objects/subscribe.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"notifySubscribers.json"
,
function
(
)
{
require_once
"objects/notifySubscribers.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"subscribes"
,
function
(
)
{
require_once
"view/managerSubscribes.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"addViewCountVideo"
,
function
(
)
{
require_once
"objects/videoAddViewCount.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"rotateVideo"
,
function
(
)
{
require_once
"objects/videoRotate.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"reencodeVideo"
,
function
(
)
{
require_once
"objects/videoReencode.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"setCategoryVideo"
,
function
(
)
{
require_once
"objects/videoCategory.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"setStatusVideo"
,
function
(
)
{
require_once
"objects/videoStatus.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"refreshVideo"
,
function
(
)
{
require_once
"objects/videoRefresh.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"videosList"
,
function
(
)
{
require_once
"view/videosList.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"getDownloadProgress"
,
function
(
)
{
require_once
"objects/downloadVideoProgress.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"downloadNow"
,
function
(
)
{
require_once
"objects/downloadVideo.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"comments"
,
function
(
)
{
require_once
"view/managerComments.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"saveComment"
,
function
(
)
{
require_once
"objects/commentAddNew.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"comments.json/{videoId}"
,
function
(
$videoId
)
{
$_GET
[
'video_id'
]
=
$videoId
;
require_once
"objects/comments.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"status"
,
function
(
)
{
require_once
"objects/status.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"plugins"
,
function
(
)
{
require_once
"view/managerPlugins.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"youPHPTubeQueueEncoder.json"
,
function
(
)
{
require_once
"objects/youPHPTubeQueueEncoder.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"youPHPTubeEncoder.json"
,
function
(
)
{
require_once
"objects/youPHPTubeEncoder.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"pluginsAvailable.json"
,
function
(
)
{
require_once
"objects/pluginsAvailable.json.php"
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"plugins.json"
,
function
(
)
{
require_once
"objects/plugins.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"channels"
,
function
(
)
{
require_once
"view/channels.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"help"
,
function
(
)
{
require_once
"view/help.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"like"
,
function
(
)
{
$_GET
[
'like'
]
=
"1"
;
require_once
"objects/like.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"dislike"
,
function
(
)
{
$_GET
[
'like'
]
=
"-1"
;
require_once
"objects/like.json.php"
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"channel/{channelName?}"
,
function
(
$channelName
=
''
)
{
$_GET
[
'channelName'
]
=
$channelName
;
require_once
'view/channel.php'
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"cat/{catName?}"
,
function
(
$catName
=
''
)
{
$_GET
[
'catName'
]
=
$catName
;
require_once
'view/index.php'
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"upload"
,
function
(
)
{
require_once
'view/mini-upload-form/index.php'
;
}
)
;
SimpleRouter
::
post
(
$basePath
.
"fileUpload"
,
function
(
)
{
require_once
'view/mini-upload-form/upload.php'
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"cat/{catName?}"
,
function
(
$catName
=
''
)
{
$_GET
[
'catName'
]
=
$catName
;
require_once
'view/index.php'
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"video/{videoName?}"
,
function
(
$videoName
=
''
)
{
$_GET
[
'videoName'
]
=
$videoName
;
require_once
'view/index.php'
;
}
)
;
SimpleRouter
::
get
(
$basePath
.
"v/{videoName?}"
,
function
(
$videoName
=
''
)
{
$_GET
[
'v'
]
=
$videoName
;
require_once
'view/index.php'
;
}
)
;
SimpleRouter
::
start
(
)
;
?>
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Nov 19, 08:09 (5 h, 43 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2265398
Default Alt Text
index.php (7 KB)
Attached To
Mode
R58 TurboFlop
Attached
Detach File
Event Timeline