File: /home/httpd/html/freecams1.com/public_html/admin/checkDependancies.php
<?
if(!file_exists($convert_path)) {
$loadErrors[] = 'CONVERT: Missing or incorrect path to ImageMagick\'s "convert" command. Please correct this in admin area settings tab.';
}
if(!file_exists($mogrify_path)) {
$loadErrors[] = 'MOGRIFY: Missing or incorrect path to ImageMagick\'s "mogrify" command. Please correct this in admin area settings tab.';
}
if(!file_exists($ffmpeg_path)) {
$loadErrors[] = 'FFMPEG: Missing or incorrect path. Please correct this in admin area settings tab.';
}
if(!file_exists($wget_path)) {
$loadErrors[] = 'WGET: Missing or incorrect path. Please correct this in admin area settings tab.';
}
if(!file_exists($mp4box_path)) {
$loadErrors[] = 'MP4Box: Missing or incorrect path. Please correct this in admin area settings tab.';
}
if(!file_exists($php_path)) {
$loadErrors[] = 'PHP CLI BINARY: Missing or incorrect path. Please correct this in admin area settings tab.';
}
if(@isChmod($basepath.'/admin/scripts') != '777') {
$loadErrors[] = 'CHMOD: '.$basepath.'/admin/scripts directory not writable! Please chmod it to 777.';
}
if(@isChmod($content_path) != '777') {
$loadErrors[] = 'CHMOD: '.$basepath.'/content/ directory not writable! Please chmod it to 777.';
}
if(@isChmod($ftp_path) != '777') {
$loadErrors[] = 'CHMOD: '.$basepath.'/ftp_content/ directory not writable! Please chmod it to 777.';
}
if(@isChmod($basepath.'/admin/logs') != '777') {
$loadErrors[] = 'CHMOD: '.$basepath.'/admin/logs/ directory not writable! Please chmod it to 777.';
}
if(@isChmod($video_path) != '777') {
$loadErrors[] = 'CHMOD: '.$basepath.'/media/videos/ directory not writable! Please chmod it to 777.';
}
if(@isChmod($basepath.'/csv_photos') != '777') {
$loadErrors[] = 'CHMOD: '.$basepath.'/csv_photos directory not writable! Please chmod it to 777.';
}
if(@isChmod($thumb_path) != '777') {
$loadErrors[] = 'CHMOD: '.$basepath.'/media/thumbs/ directory not writable! Please chmod it to 777.';
}
if(@isChmod($misc_path) != '777') {
$loadErrors[] = 'CHMOD: '.$basepath.'/media/misc/ directory not writable! Please chmod it to 777.';
}
if(@is_dir("$basepath/includes/ckeditor")) {
$loadErrors[] = "DELETE: Please delete the entire $basepath/includes/ckeditor directory for security reasons.";
}
if(@file_exists("$basepath/upgrade.php")) {
$loadErrors[] = 'DELETE: Please delete upgrade.php';
}
if(@isChmod($cache_path) != '777') {
$loadErrors[] = 'CHMOD: '.$basepath.'/cache/ directory not writable! Please chmod it to 777.';
}
if($admin_password == 'admin') {
$loadErrors[] = "Please set your admin password in admin/config.php (via ftp/ssh).";
}
if($admin_email == '') {
$loadErrors[] = "Please set your admin email in admin area settings tab.";
}
$sqlMode = dbQuery("SELECT @@sql_mode AS sql_mode",false);
if(stripos($sqlMode[0]['sql_mode'],'STRICT_TRANS_TABLES') !== false) {
$loadErrors[] = "Please disable STRICT_TRANS_TABLES in MySQL. This is action is critical to operation of almost all script functions. It will be found in your my.cnf file.";
}
?>