/** * Run the Install_Check.php file if it exists * @return bool */ function Install_CheckFile($dir) { $check_file = $dir . '/Install_Check.php'; if (!file_exists($check_file)) { return true; } include $check_file; if (!function_exists('Install_Check')) { return true; } if (!Install_Check()) { return false; } return true; }
/** * Run the Install_Check.php file if it exists * @return bool * */ public function CheckFile() { $check_file = $this->source . '/Install_Check.php'; if (!file_exists($check_file)) { return true; } $success = true; ob_start(); include $check_file; if (function_exists('Install_Check')) { $success = Install_Check(); } $msg = ob_get_clean(); if (!empty($msg)) { $this->message($msg); } return $success; }