function generate_output($symbols, $time)
{
    $var = "";
    foreach ($symbols as $s) {
        $sym = get_symbol_name($s);
        $var .= "{$sym}>";
        $var .= print_news($s, $time);
        $var .= "\n";
    }
    apc_add("key:" . $time, $var);
    echo $var;
}
Example #2
0
<?php

$_SERVER['BASE_PAGE'] = 'archive/2016.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
news_archive_sidebar();
site_header("News Archive - 2016");
//site_header("News Archive - 2016", array("cache" => true));
?>

<h1>News Archive - 2016</h1>

<p>
 Here are the most important news items we have published in 2016 on PHP.net.
</p>

<hr>

<?php 
print_news($NEWS_ENTRIES, array("conferences", "cfp", "frontpage", "nofrontpage"), 500, 2016);
/* %s/<a href="\(.*\)"><img src="\/images\/news\/\(.*\)" alt="\(.*\)" width.*><\/a>/<?php news_image("\1", "\2", "\3"); ?>/g */
site_footer(array('elephpants' => true, 'sidebar' => $SIDEBAR_DATA));
Example #3
0
    echo '  <div id="confTeaser">' . "\n";
    echo "   <table>\n";
    foreach ($CONF_TEASER as $k => $a) {
        if (is_array($a) && count($a)) {
            echo "    <tr>\n     <td valign='top' style='white-space: nowrap'>" . $categories[$k] . ":</td>\n";
            echo "     <td valign='top'>\n";
            echo '      <ul class="' . $k . '">' . "\n";
            $count = 0;
            $a = preg_replace("'([A-Za-z0-9])([\\s\\:\\-\\,]*?)call for(.*?)\$'i", "\$1", $a);
            foreach ($a as $url => $title) {
                if ($count++ >= 4) {
                    break;
                }
                echo '       <li><a href="' . $url . '">' . $title . '</a></li>' . "\n";
            }
            echo "      </ul>\n     </td>\n    </tr>\n";
        }
        // if set
    }
    echo "   </table>\n  </div>\n\n<br />\n";
}
/* Where the h*ll did all the news go?
 * See archives/2007.xml
 */
print_news($NEWS_ENTRIES, "frontpage");
?>

<p class="center"><a href="/archive/index.php">News Archive</a></p>

<?php 
site_footer(array("atom" => "/feed.atom"));
Example #4
0
function content($id, $news)
{
    array_key_exists($id, $news) ? print_news($id, $news) : print_news_all($news);
}
Example #5
0
<?php

/*
* BtiTracker v1.5.0 is a php tracker system for BitTorrent, easy to setup and configure.
* This tracker is a frontend for DeHackEd's tracker, aka phpBTTracker (now heavely modified). 
* Updated and Maintained by Yupy.
* Copyright (C) 2004-2014 Btiteam.org
*/
require_once INCL_PATH . 'functions.php';
require_once INCL_PATH . 'blocks.php';
if (!user::$current || user::$current["view_news"] == "no") {
    #Do Nothing...
} else {
    block_begin(LAST_NEWS);
    print_news($GLOBALS['block_newslimit']);
    block_end();
}
Example #6
0
<?php

/*
* BtiTracker v1.5.1 is a php tracker system for BitTorrent, easy to setup and configure.
* This tracker is a frontend for DeHackEd's tracker, aka phpBTTracker (now heavely modified). 
* Updated and Maintained by Yupy.
* Copyright (C) 2004-2015 Btiteam.org
*/
require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'include' . DIRECTORY_SEPARATOR . 'functions.php';
dbconn();
standardheader('News');
if (user::$current['view_news'] == 'no') {
    err_msg(ERROR, NOT_AUTH_VIEW_NEWS);
    stdfoot();
    exit;
} else {
    block_begin('News');
    print_news();
    block_end();
}
stdfoot();
Example #7
0
<?php

// $Id$
$_SERVER['BASE_PAGE'] = 'conferences/index.php';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/prepend.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-events.inc';
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/pregen-news.inc';
$layout_workaround = <<<EOT
<div id="conferencesSidebar">
    <div id="contact">
        <p>
            Are you planning a PHP related conference and want it listed here?
            <a href="mailto:php-webmaster@lists.php.net">Let us know.</a>
        </p>
    </div>
    {$RSIDEBAR_DATA}
</div>
EOT;
unset($RSIDEBAR_DATA);
site_header("PHP Conferences around the world", array("layout_workaround" => $layout_workaround, 'headtags' => '<link rel="alternate" type="application/atom+xml" title="PHP: Conference announcements" href="' . $MYSITE . 'feed.atom" />'));
print_news($NEWS_ENTRIES, array("conferences", "cfp"), 10);
site_footer(array("atom" => "/feed.atom"));