Exemplo n.º 1
0
	setTimeout( function() {
		location.href = '<?php 
    echo $link;
    ?>
';
	}, 100);
</script>
<?php 
} else {
    require 'include/class.mailing.php';
    require 'include/class.settings.php';
    $settings = new Settings($db);
    $interval = $settings->getSetting('autosub_interval');
    $lists = explode(",", $product['auto_subscribe_lists']);
    $m = new Mailing($db);
    $lists = $m->getMailingsById($lists);
    $outHtml = "";
    $outScript = "";
    ?>
	<script type="text/javascript">
		var totalFrames = <?php 
    echo count($lists);
    ?>
;
		var loadedFrames = 0;
		var started = false;
		var pauseInterval = <? echo $interval['value']; ?>;
		
		function loadFrame(f) {
			if (started) {
				loadedFrames++;