| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/coaching_sites/usbusinessfundingsolutions.com/inc/ |
Upload File : |
<?php
function print_articles($max=1){
$xml = getrand($max,'articles');
//echo"<pre>";print_r($xml);
foreach($xml as $article){
echo "<div class='stories'>";
echo "<div>";
echo '<a href="news_article.php?a_id='.$article->article_id.'"><img src="http://cms.surfercrm.com/article_images/thumbs/'.$article->image.'" /></a>';
echo "<h3>".$article->title."</h3>";
echo "<p>".$article->data."</p>";
echo"</div>";
echo'<span><a href="news_article.php?a_id='.$article->article_id.'">Click here to View Complete Story</a></span>';
echo"</div>";
}
}
/***************************************************
* Use this call for both testimonials and articles
****************************************************/
function getrand($max=1, $type='articles'){
$xml = @simplexml_load_file('http://cms.surfercrm.com/api/' . $type . '/getrand/'. $max . '/.xml?user=synContent&pass=synPass','SimpleXMLElement', LIBXML_NOCDATA);
return $xml;
}
?>