<?php

$this->data['header'] = 'Cron information page';
$this->includeAtTemplateBase('includes/header.php');

?>
<div id="content">

	<p>Cron is a way to run things regularly on unix systems.</p>
	
	<p>Here is a suggestion for a crontab file:</p>
	<pre style="font-size: x-small; color: #444; padding: 1em; border: 1px solid #eee; margin: .4em "><code><?php
		
		foreach ($this->data['urls'] AS $url ) {
			echo "# " . $url['title'] . "\n";
			echo "" . $url['int'] . " curl --silent --compressed " . $url['href'] . " > /dev/null 2>&1\n";
		}
		
		?>
	</code></pre>
	
	<p>Click here to run the cron jobs:
	<ul>
		<?php
		
		foreach ($this->data['urls'] AS $url ) {
			echo '<li><a href="' . $url['href'] . '">' . $url['title'] . '</a></li>';
		}
		
		?>
		
	</ul>

    
</div>

<?php
$this->includeAtTemplateBase('includes/footer.php');
?>
<?php

$this->data['header'] = 'Cron information page';
$this->includeAtTemplateBase('includes/header.php');

?>
<div id="content">

	<p>Cron is a way to run things regularly on unix systems.</p>
	
	<p>Here is a suggestion for a crontab file:</p>
	<pre style="font-size: x-small; color: #444; padding: 1em; border: 1px solid #eee; margin: .4em "><code><?php
		
		foreach ($this->data['urls'] AS $url ) {
			echo "# " . $url['title'] . "\n";
			echo "" . $url['int'] . " curl --silent \"" . $url['href'] . "\" > /dev/null 2>&1\n";
		}
		
		?>
	</code></pre>
	
	<p>Click here to run the cron jobs:
	<ul>
		<?php
		
		foreach ($this->data['urls'] AS $url ) {
			echo '<li><a href="' . $url['href'] . '">' . $url['title'] . '</a></li>';
		}
		
		?>
		
	</ul>

    
</div>

<?php
$this->includeAtTemplateBase('includes/footer.php');
?>
Add quotes to cron information page, for the example crontab file
Add quotes to cron information page, for the example crontab file

git-svn-id: a243b28a2a52d65555a829a95c8c333076d39ae1@1012 44740490-163a-0410-bde0-09ae8108e29a
