Beispiel #1
0
    $colors = new Colors();
    $feed1_title = $colors->getColoredString($feed1_title, "yellow");
    $feed1_desc = $colors->getColoredString($feed1_desc, "blue", "light_gray");
    $source = strtoupper($source);
    $source = $colors->getColoredString($source, "white", "red");
    print $feed1_title;
    print $feed1_pubdate->format('d-m-Y H:i A') . "\n";
    print $feed1_desc;
    print "Source :" . $source . "\n";
}
$feed1_title = "";
$feed1_desc = "";
$feed1_pubdate = "";
$feed1_from = "";
$totalfeedNews = 0;
$objConfig = new RssConfig();
$functionArray = $objConfig->getAllFunctions();
$feed_rss_type = $objConfig->getRandomRssReader($feed_rssObj);
$feed_rss = $feed_rssObj->getFeedArray();
//print$feed_rss_type."\n";
//print_r($feed_rss);
//print_r($functionArray);
// print("
// __        __   _
// \ \      / /__| | ___ ___  _ __ ___   ___
//  \ \ /\ / / _ \ |/ __/ _ \| '_ ` _ \ / _ \
//   \ V  V /  __/ | (_| (_) | | | | | |  __/
//    \_/\_/ \___|_|\___\___/|_| |_| |_|\___|
// \n ");
if (array_key_exists($feed_rss_type, $functionArray)) {
    $functionArray[$feed_rss_type]($feed1_title, $feed1_pubdate, $feed1_desc, $totalfeedNews, $feed_rss);
Beispiel #2
0
<?php

include_once 'connect.php';
include_once 'RssConfig.php';
$obj = new RssConfig();
print "Please wait We are setting up this for you ";
if (is_connected()) {
    $obj->callOnLoadALL();
}
print "Its Done! Enjoy this :)  ";