Пример #1
0
 $output = str_replace("{rssmail}", $rssmail, $output);
 $output = str_replace("{rssdate}", date("r", $news_arr[0]), $output);
 $output = str_replace("{rssauthor}", $name_to_nick[$news_arr[1]], $output);
 # end rss
 $output = str_replace("{news-id}", $news_arr[0], $output);
 $output = str_replace("{archive-id}", $archive, $output);
 $output = str_replace("{php-self}", $PHP_SELF, $output);
 $output = str_replace("{cute-http-path}", $config_http_script_dir, $output);
 # XFields v2.1 - addblock
 $xfieldsaction = "templatereplace";
 $xfieldsinput = $output;
 $xfieldsid = $news_arr[0];
 include "xfields.mdu";
 $output = $xfieldsoutput;
 # XFields v2.1 - End addblock
 $output = run_filters('news-entry', $output);
 $output = replace_news("show", $output);
 if ($action == "showheadlines" or $content[1]) {
     #if full story
     if ($config_full_popup == "yes") {
         $output = preg_replace("/\\[full-link\\]/", "<a href=\"#\" onclick=\"window.open('{$config_http_script_dir}/show_news.php?aj_go=more&amp;id={$news_arr['0']}&amp;archive={$archive}&amp;template={$template}', '_News', '{$config_full_popup_string}');return false;\">", $output);
     } else {
         $output = str_replace("[full-link]", "<a href=\"{$PHP_SELF}?aj_go=more&amp;id={$news_arr['0']}&amp;archive={$archive}&amp;start_from={$my_start_from}&amp;ucat={$news_arr['6']}&amp;{$user_query}\">", $output);
     }
     $output = str_replace("[/full-link]", "</a>", $output);
 } else {
     $output = preg_replace("'\\[full-link\\].*?\\[/full-link\\]'si", "<!-- no full story-->", $output);
 }
 #		$output = run_filters('news-active-comlink', $output);
 if ($config_comments_popup == "yes") {
     $output = str_replace("[com-link]", "<a href=\"#\" onclick=\"window.open('{$config_http_script_dir}/show_news.php?aj_go=more&amp;template={$template}&amp;id={$news_arr['0']}&amp;archive={$archive}&amp;start_from={$my_start_from}&amp;ucat={$news_arr['6']}', '_News', '{$config_comments_popup_string}');return false;\">", $output);
Пример #2
0
     #$last = $count-1;
     #$first_news_arr = explode("|", $news_lines[$last]);
     #$last_news_arr	= explode("|", $news_lines[0]);
     #$first_timestamp = $first_news_arr[0];
     #$last_timestamp	 = $last_news_arr[0];
     $everything = aj_archivelist("{$cutepath}/data/archives/{$arch_file}.news.arch", $arch_file, $everything);
 }
 $totalt = count($everything);
 $i = 0;
 $mc = 0;
 $ma = 1;
 krsort($everything);
 reset($everything);
 foreach ($everything as $date => $info) {
     $archivelink = "<a href=\"{$PHP_SELF}?archive={$info['home']}&amp;ucat={$info['category']}&amp;aj_go=more&amp;id={$date}&amp;{$user_query}\">{$info['title']}</a>";
     $archivelink = run_filters('monthly-link-title-url', $archivelink);
     if ($i != 0) {
         $opener = "\t</ul>\n";
         $openertwo = "</li>";
     } else {
         $opener = "";
         $opener2 = "";
     }
     # Monthly headers
     if ($dateheader_S != date("mY", $date)) {
         if ($num_months && $ma > $num_months) {
             break 1;
         }
         $m_amount = $mc;
         $mc = 0;
         $dateheader_S = date("mY", $date);
Пример #3
0
<?php

$skin_prefix = "";
// ********************************************************************************
// Skin MENU
// ********************************************************************************
$skin_menu = array(array('name' => "Home", 'url' => "{$PHP_SELF}?mod=main", 'access' => "4"), array('name' => "Write", 'url' => "{$PHP_SELF}?mod=addnews&amp;action=addnews", 'access' => "3"), array('name' => "Edit", 'url' => "{$PHP_SELF}?mod=editnews&amp;action=list", 'access' => "3"), array('name' => "Categories", 'url' => "{$PHP_SELF}?mod=categories", 'access' => "1"), array('name' => "Templates", 'url' => "{$PHP_SELF}?mod=options&action=templates", 'access' => "1"), array('name' => "Personal Options", 'url' => "{$PHP_SELF}?mod=options&action=personal", 'access' => "4"), array('name' => "All Options", 'url' => "{$PHP_SELF}?mod=options&amp;action=options", 'access' => "4"), array('name' => "System Configuration", 'url' => "{$PHP_SELF}?mod=options&action=syscon&rand=" . time(), 'access' => "1"), array('name' => "Manage Users", 'url' => "{$PHP_SELF}?mod=editusers&action=list", 'access' => "1"), array('name' => "Help / About", 'url' => "{$PHP_SELF}?mod=about&amp;action=about", 'access' => "4"), array('name' => "Credits", 'url' => "{$PHP_SELF}?mod=credits", 'access' => "4"), array('name' => "Readme", 'url' => "readme.htm", 'access' => "4"), array('name' => "View site", 'url' => "{$config_http_home_url}", 'access' => "4"), array('name' => "Plugin Manager", 'url' => "{$PHP_SELF}?mod=options&action=plugins", 'access' => "1"));
$skin_menu = run_filters('cutenews-options', $skin_menu);
// ********************************************************************************
// Skin HEADER
// ********************************************************************************
$skin_header = <<<HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
\t<head>
\t\t<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
\t\t<link rel="stylesheet" type="text/css" href="skins/default.css" media="all" />
\t\t<title>AJ-Fork</title>
\t\t<script type="text/javascript" src="skins/cute.js"></script>\t
\t</head>

<body>
<!--tyle="position:absolute; left:25px; top:10px; height:13px; z-index:3"  -->

<div id="mainframe">
\t\t<div id="main_head">
\t\t<!-- appelsinholder-->
\t\t</div>

\t\t<div id="main_menu">