* @copyright (C) Copyright 2015 Audio Merchant, MyAudioMerchant.com. All rights reserved.
* @license GNU/GPL http://www.gnu.org/licenses/gpl-3.0.txt
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see .
*/
defined('ABSPATH') or die('No direct access!');
audio_merchant_db_install();
$supportedImageTypes = array('jpg', 'jpeg', 'png', 'gif');
$supportedAudioExtensions = wp_get_audio_extensions();
$uploadDir = wp_upload_dir();
$uploadUrl = $uploadDir['baseurl'].'/audio/'.get_current_blog_id();
$uploadDir = $uploadDir['basedir'].DIRECTORY_SEPARATOR.'audio'.DIRECTORY_SEPARATOR.get_current_blog_id();
$tempLinkExpirationsDays = (int)audio_merchant_get_setting('temp_download_link_expiration');
$currency = audio_merchant_get_setting('currency');
$downloadRequiresRegistration = (int)audio_merchant_get_setting('download_user_login_required');
$purchaseRequiresRegistration = (int)audio_merchant_get_setting('purchase_user_login_required');
$audioFiles = audio_merchant_get_audio(false);
if(!get_option('css_frontend_default'))
{
update_option('css_frontend_default', file_get_contents(plugin_dir_path( __FILE__ ).'audio-merchant-html-player-frontend.css'));
}
?>
click here to upgrade for a $25 one-time fee >>', 'audio-merchant'); ?>