One Hat Cyber Team
Your IP :
216.73.216.115
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
sam
/
public_html
/
go
/
news
/
View File Name :
archive.php
<?php /* ||========================================================== || Fusion News 3.x ||---------------------------------------------------------- || File Version : $Id: archive.php 210 2008-02-20 12:22:32Z xycaleth $ || Contact : xycaleth@gmail.com || Copyright: : (c) 2006 - 2008, FusionNews.net || License Info : http://www.gnu.org/copyleft/gpl.html ||========================================================== */ if ( !defined ('FNEWS_ROOT_PATH') ) { define ('FNEWS_ROOT_PATH', str_replace ('\\', '/', dirname (__FILE__)) . '/'); include_once FNEWS_ROOT_PATH . 'common.php'; } $month = ( isset ($VARS['fn_month']) ) ? intval ($VARS['fn_month']) : ''; $year = ( isset ($VARS['fn_year']) ) ? intval ($VARS['fn_year']) : ''; echo get_template ('header.php', true); if ( $month == '' || $month <= 0 || $month > 12 || $year == '' ) { $file = arrange_by_date (); if( $flip_news ) { $file = array_reverse ($file); } $array = array(); $current_time = time(); foreach ( $file as $value ) { list($news_id,$news_date,$news_writer,$news_subject) = explode("|<|", $value); $news_date = intval($news_date); if ( $news_date > $current_time ) { // This is an ARCHIVE, not something that displays all posted news. continue; } $time = mktime (0, 0, 0, date ('n', $news_date), 1, date ('y', $news_date)); $allready_added = FALSE; $result = array_search ($time, $array); if ( $result === NULL || $result === false ) { $array[] = $time; } } $qs = clean_query_string(); foreach ( $array as $val ) { $month = date ('n', $val); $year = date ("Y", $val); echo '<a href="?fn_month=' . $month .'&fn_year=' . $year . $qs . '">' . $months[$month] . ' ' . $year . '</a><br />' . "\n"; } } else { /*id Month*/ $file = arrange_by_date (); if( $flip_news ) { $file = array_reverse($file); } if ( $post_per_day ) { $ppp_data = array(); } foreach( $file as $value) { list($news_id,$news_date,$news_writer,$news_subject) = explode("|<|", $value); $time = mktime (0, 0, 0, date ('n', $news_date), 1, date ('y', $news_date)); if( $time == mktime (0, 0, 0, $month, 1, $year) ) { if ( file_exists (FNEWS_ROOT_PATH . 'news/news.' . $news_id . '.php') ) { $file_news = file( FNEWS_ROOT_PATH . "news/news.".$news_id.".php" ); list($news_short,$news_full,$news_writer,$news_subject,$news_description,$news_categories,$news_date,$news_comment_count,$news_item) = explode("|<|", $file_news[1]); $news_info = parse_news_to_view ($file_news[1]); $tem = get_template ('arch_news_temp.php', TRUE); $tem = str_replace ('{post_id}', $news_info['post_id'], $tem); $tem = str_replace ('{user}', $news_info['writer'], $tem); $tem = str_replace ('{date}', $news_info['date'], $tem); $tem = str_replace ('{icon}', $news_info['icon'], $tem); $tem = str_replace ('{nrc}', $news_info['nrc'], $tem); $tem = str_replace ('{comments}', $news_info['link_comments'], $tem); $tem = str_replace ('{send}', $news_info['link_tell_friend'], $tem); $tem = str_replace ('{cat_icon}', $news_info['cat_icon'], $tem); $tem = str_replace ('{cat_id}', $news_info['cat_id'], $tem); $tem = str_replace ('{cat_name}', $news_info['cat_name'], $tem); $tem = str_replace ('{news}', $news_info['news'], $tem); $tem = str_replace ('{fullstory}', $news_info['link_full_news'], $tem); $tem = str_replace ('{subject}', $news_info['subject'], $tem); $tem = str_replace ('{description}', $news_info['subject'], $tem); if ( $post_per_day ) { $day_time = mktime (0, 0, 0, date('n', $news_date), date('j', $news_date), date('y', $news_date)); if( !isset($ppp_data[$day_time]) ) { $ppp_data[$day_time] = ''; } $ppp_data[$day_time] .= $tem; } else { echo $tem; } } } } if ( $post_per_day ) { krsort( $ppp_data ); $temp = get_template('news_a_day_temp.php', TRUE); foreach ( $ppp_data as $key => $value ) { $insert_date = str_replace('{date}', date('l', $key) . ', ' . $months[date ('n', $key)] . ' ' . date ('d', $key) . ' ' . date ('Y', $key), $temp); echo str_replace('{news_a_day}', $value, $insert_date); } } } echo get_template ('footer.php', true); ?>