File: /home/httpd/html/baretube.com.new/admin/config.php
<?php
/* DATABASE INFORMATION */
$dbserver = 'dbserver';
$dbname = 'baretube_db';
$dbuser = 'baretube_db';
$dbpass = 'MDCUHh0KLnU4syCR';
/* LICENSE KEY */
$licenseKey = "e9f348362a2d46d4-5999fd4b110e1cef-7f2efb9868d2599f-18b3c6a2ff986d0a-c1ac5588cfa77361-1911775d0a67b542-8411c335b0ab5d74-11f6e05e593d8612";
/* ADMIN ACCESS */
$admin_username = 'admin'; //admin area username
$admin_password = 'HQz9LeCFfkWT9yuA'; //admin area password
/* WEBSITE INFORMATION */
$sitename = 'baretube.com'; //website name
$basepath = '/home/httpd/html/baretube.com'; //base absolutely linux path
$basehttp = 'http://www.baretube.com' . $_SERVER['HTTP_HOST']; //base http path
$mediadomain = 'www.baretube.com:81/media'; //lighttpd install domain, usually media.domain.com
$content_path = $basepath . '/content'; //full unix path to upload dir, must be chmod 777
$temp_users_uploads = $basepath . '/temp_users_uploads'; //full unix path to upload dir, must be chmod 777
$video_path = $basepath . '/media/videos'; //full unix path for flv storage
$thumb_path = $basepath . '/media/thumbs'; //full unix path for thumb storage
$misc_path = $basepath . '/media/misc'; //miscelanious image path
$gallery_path = $basepath . '/media/galleries'; //gallery image path
$ftp_path = $basepath . '/ftp_content'; //directory to ftp uploads
$cache_path = $basepath . '/cache'; //directory for cached files
$thumb_url = 'http://' . $mediadomain . '/thumbs'; //url to $thumb_path
$video_url = 'http://' . $mediadomain . '/videos'; //url to $flv_path
$ad_url = 'http://' . $mediadomain . '/ads'; //url to $flv_path
$misc_url = 'http://' . $mediadomain . '/misc'; //url to $misc_path
$gallery_url = 'http://' . $mediadomain . '/galleries'; //url to $gallery_path
/* Process admin area variables */
$config = json_decode(file_get_contents($basepath . '/admin/scripts/config.json'), true);
extract($config, EXTR_OVERWRITE);
/* EOF */
$config['display_query_log'] = false;
$config['long_query_time'] = 0.05;
$template_path = $basepath . '/templates/' . $template_name;
$template_url = $basehttp . '/templates/' . $template_name;
$email_notifications_triggers = array(
'new-message' => 'new_message',
'new-post' => 'new_post',
'new-comment' => 'new_comment',
'friend-request' => 'friend_request',
);
$custom_user_fields = array(
"Sexual Orientation" => array("Straight", "Gay", "Bi-Sexual"),
"City" => "",
"State" => ""
);
$custom_pornstar_fields = array(
"Sexual Orientation" => array("Straight", "Gay", "Bi-Sexual"),
"City" => "",
"State" => ""
);
/* LIGHTTPD MOD_SECDOWNLOAD SETUP */
/*
For this to work, you must have lighttpd setup with mod_secdownload. Please refer to the guide here: http://redmine.lighttpd.net/projects/1/wiki/Docs_ModSecDownload
- secdownload.document-root in lighttpd.conf should refer to your /media/videos/ directory.
- secdownload.timeout should be at least 600 to allow your users to skip ahead in videos
*/
$modsec_enabled = false; // lighttpd mod_secdownload on or off. Your lighttpd must be configured properly for this to work.
$modsec_secret = 'verysecret'; // example: s3cr3tk3y (secdownload.secret from lighttpd)
$modsec_url = 'http://media.baretube.com/dl/'; // example: http://media.asfd.com/dl/ with trailing slash (url that reflects secdownload.uri-prefix in lighttpd)