diff --git a/objects/configurationUpdate.json.php b/objects/configurationUpdate.json.php index b4011dfe6..93e10a57b 100644 --- a/objects/configurationUpdate.json.php +++ b/objects/configurationUpdate.json.php @@ -1,111 +1,112 @@ setContactEmail($_POST['contactEmail']); $config->setLanguage($_POST['language']); $config->setWebSiteTitle($_POST['webSiteTitle']); $config->setAuthCanComment($_POST['authCanComment']); $config->setAuthCanUploadVideos($_POST['authCanUploadVideos']); $config->setAuthCanViewChart($_POST['authCanViewChart']); if (empty($global['disableAdvancedConfigurations'])) { $config->setDisable_analytics($_POST['disable_analytics']); $config->setDisable_youtubeupload($_POST['disable_youtubeupload']); $config->setAllow_download($_POST['allow_download']); $config->setSession_timeout($_POST['session_timeout']); $config->setEncoderURL($_POST['encoder_url']); $config->setSmtp($_POST['smtp']); $config->setSmtpAuth($_POST['smtpAuth']); $config->setSmtpSecure($_POST['smtpSecure']); $config->setSmtpHost($_POST['smtpHost']); $config->setSmtpUsername($_POST['smtpUsername']); $config->setSmtpPassword($_POST['smtpPassword']); $config->setSmtpPort($_POST['smtpPort']); } $config->setHead($_POST['head']); $config->setAdsense($_POST['adsense']); $config->setMode('Youtube'); $config->setAutoplay($_POST['autoplay']); $config->setTheme($_POST['theme']); $imagePath = "videos/userPhoto/"; //Check write Access to Directory if (!file_exists($global['systemRootPath'] . $imagePath)) { mkdir($global['systemRootPath'] . $imagePath, 0755, true); } if (!is_writable($global['systemRootPath'] . $imagePath)) { $response = Array( "status" => 'error', "message" => 'No write Access' ); print json_encode($response); return; } $response = array(); if (!empty($_POST['logoImgBase64'])) { $fileData = base64DataToImage($_POST['logoImgBase64']); $fileName = 'logo.png'; $photoURL = $imagePath . $fileName; $bytes = file_put_contents($global['systemRootPath'] . $photoURL, $fileData); if ($bytes > 10) { $response = array( "status" => 'success', "url" => $global['systemRootPath'] . $photoURL ); $config->setLogo($photoURL); } else { $response = array( "status" => 'error', "msg" => 'We could not save logo', "url" => $global['systemRootPath'] . $photoURL ); } } if (!empty($_POST['faviconBase64'])) { $imagePath = "videos/"; $fileData = base64DataToImage($_POST['faviconBase64']); $fileName = 'favicon.png'; $photoURL = $imagePath . $fileName; $bytes = file_put_contents($global['systemRootPath'] . $photoURL, $fileData); if ($bytes > 10) { $response2 = array( "status" => 'success', "url" => $global['systemRootPath'] . $photoURL ); require( $global['systemRootPath'] . 'objects/php-ico/class-php-ico.php' ); $sizes = array( array(16, 16), array(24, 24), array(32, 32), array(48, 48), + array(144, 144), ); $ico_lib = new PHP_ICO($global['systemRootPath'] . $photoURL, $sizes); $ico_lib->save_ico($global['systemRootPath'] . $imagePath.'favicon.ico'); } else { $response2 = array( "status" => 'error', "msg" => 'We could not save favicon', "url" => $global['systemRootPath'] . $photoURL ); } } echo '{"status":"' . $config->save() . '", "respnseLogo": ' . json_encode($response) . ', "respnseFavicon": ' . json_encode($response2) . '}'; diff --git a/view/configurations_body.php b/view/configurations_body.php index e7a9f4afe..4083c3757 100644 --- a/view/configurations_body.php +++ b/view/configurations_body.php @@ -1,812 +1,812 @@

getTheme(); if ($fileEx == $savedTheme) { ?>
" class="img-responsive img-radio">
$secondsTotal) { $percent = intval($secondsTotal / $secondsLimit * 100); } else { $percent = 100; } ?> and you have minutes of storage
% of your storage limit used
is Present
Your server is , you must install Apache
PHP is Present
Your PHP version is , you must install PHP 5.6.x or greater
Your videos directory is writable
Your videos directory must be writable
The video directory does not exists, YouPHPTube had no permition to create it, you must create it manualy!
sudo mkdir 

Then you can set the permissions.
sudo chmod -R 777 
Your post_max_size is
Your post_max_size is , it must be at least 100M
Edit the php.ini file
sudo nano 
Your upload_max_filesize is
Your upload_max_filesize is , it must be at least 100M
Edit the php.ini file
sudo nano 

" class="form-control" type="text" value="getLanguage(); ?>" >
locale
" class="form-control" type="email" value="getContactEmail(); ?>" >
getAutoplay())) { echo "checked"; } ?> >

" class="form-control" type="text" value="getWebSiteTitle(); ?>" >

the sitemap file must be writable sudo chmod 777

: https://encoder.youphptube.com/ or
getDisable_analytics())) { echo "checked"; } ?> aria-describedby="disable_analyticsHelp">
getDisable_youtubeupload())) { echo "checked"; } ?> >
getAllow_download())) { echo "checked"; } ?> aria-describedby="allow_downloadHelp">

Email Configuration

If you are not sure how to configure your email, please try this help

getSmtp())) { echo "checked"; } ?> >
getSmtpAuth())) { echo "checked"; } ?> >

For Google Analytics code: https://analytics.google.com
Leave blank for native code
Google AD Sense and any other Ads provider are moved to the plugins'>ADs plugin
\ No newline at end of file diff --git a/view/include/head.php b/view/include/head.php index 8da3f3533..7b4a22b4d 100644 --- a/view/include/head.php +++ b/view/include/head.php @@ -1,114 +1,119 @@ getDescription(); } $theme = $config->getTheme(); ?> - + + + + + + getDisable_analytics()) { ?> getHead(); echo $head; if (!empty($video['users_id'])) { if (!empty($video)) { $userAnalytics = new User($video['users_id']); echo $userAnalytics->getAnalytics(); unset($userAnalytics); } } ?>