One Hat Cyber Team
Your IP :
216.73.216.14
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
/
upgrade
/
View File Name :
functions.php
<?php /* ||========================================================== || Fusion News 3.x ||---------------------------------------------------------- || File Version : $Id: functions.php 205 2008-02-15 20:02:29Z xycaleth $ || Contact : xycaleth@gmail.com || Copyright: : (c) 2006 - 2008, FusionNews.net || License Info : http://www.gnu.org/copyleft/gpl.html ||========================================================== */ define ('DIE_MESSAGE', '<?php die (\'You may not access this file.\'); ?>' . "\n"); set_error_handler ('fn_error_handler'); $error = false; function get_file_lines ( $filename, $directory = '../' ) { $handle = @file ($directory . $filename); if ( $handle === false ) { trigger_error ('Failed to open file \'' . $filename . '\'.', E_USER_ERROR); } return $handle; } function write_file ( $data, $filename, $directory = '../' ) { if ( ($fp = @fopen ($directory . $filename, 'wb')) === false ) { trigger_error ('Failed to open \'' . $filename . '\' for writing.', E_USER_ERROR); fclose ($fp); return false; } @flock ($fp, LOCK_EX); if ( fwrite ($fp, $data, strlen ($data)) === false ) { trigger_error ('Failed to write to \'' . $filename . '\'.', E_USER_ERROR); fclose ($fp); return false; } @flock ($fp, LOCK_UN); fclose ($fp); return true; } function update_config() { include '../config.php'; $config_array = array ( 'fusion_id' => '\'' . $fusion_id . '\'', 'site' => '\'' . $site . '\'', 'furl' => '\'' . $furl . '\'', 'hurl' => '\'' . $hurl . '\'', 'datefor' => '\'' . $datefor . '\'', 'numofposts' => $numofposts, 'numofh' => $numofh, 'bb' => ( $bb == 'no' || !$bb ) ? 0 : 1, 'ht' => ( $ht == 'no' || !$ht ) ? 0 : 1, 'post_per_day' => ( $post_per_day == 'no' || !$post_per_day ) ? 0 : 1, 'wfpost' => ( $wfpost == 'no' || !$wfpost ) ? 0 : 1, 'wfcom' => ( $wfcom == 'no' || !$wfcom ) ? 0 : 1, 'skin' => '\'' . $skin . '\'', 'cbwordwrap' => ( $cbwordwrap == 'no' || !$cbwordwrap ) ? 0 : 1, 'wwwidth' => ( $wwwidth ) ? $wwwidth : 10, 'smilies' => ( $smilies == 'no' || !$smilies ) ? 0 : 1, 'stfpop' => ( $stfpop == 'no' || !$stfpop ) ? 0 : 1, 'comallowbr' => ( $comallowbr == 'no' || !$comallowbr ) ? 0 : 1, 'stfwidth' => ( $stfwidth ) ? $stfwidth : 640, 'stfheight' => ( $stfheight ) ? $stfheight : 480, 'fslink' => '\'' . $fslink . '\'', 'stflink' => '\'' . $stflink . '\'', 'pclink' => '\'' . $pclink . '\'', 'fsnw' => ( $fsnw == 'no' || !$fsnw ) ? 0 : 1, 'cbflood' => ( $cbflood == 'no' || !$cbflood ) ? 0 : 1, 'floodtime' => ( $floodtime ) ? $floodtime : 0, 'comlength' => ( $comlength ) ? $comlength : 300, 'fullnewsw' => ( $fullnewsw ) ? $fullnewsw : 640, 'fullnewsh' => ( $fullnewsh ) ? $fullnewsh : 480, 'fullnewss' => ( $fullnewss ) ? $fullnewss : 1, 'stfresize' => ( $stfresize == 'no' || !$stfresize ) ? 0 : 1, 'stfscrolls' => ( $stfscrolls == 'no' || !$stfscrolls ) ? 0 : 1, 'fullnewsz' => ( $fullnewsz == 'no' || !$fullnewsz ) ? 0 : 1, 'htc' => ( $htc == 'no' || !$htc ) ? 0 : 1, 'smilcom' => ( $smilcom == 'no' || !$smilcom ) ? 0 : 1, 'bbc' => ( $bbc == 'no' || !$bbc ) ? 0 : 1, 'compop' => ( $compop == 'no' || !$compop ) ? 0 : 1, 'comscrolls' => ( $comscrolls == 'no' || !$comscrolls ) ? 0 : 1, 'comresize' => ( $comresize == 'no' || !$comresize ) ? 0 : 1, 'comheight' => ( $comheight ) ? $comheight : 480, 'comwidth' => ( $comwidth ) ? $comwidth : 640, 'uploads_active' => ( $uploads_active == 'no' || !$uploads_active ) ? 0 : 1, 'uploads_size' => ( $uploads_size ) ? $uploads_size : 1048576, 'uploads_ext' => '\'' . $uploads_ext . '\'', 'enable_rss' => ( $enable_rss == 'no' || !$enable_rss ) ? 0 : 1, 'link_headline_fullstory' => ( $link_headline_fullstory == 'no' || !$link_headline_fullstory ) ? 0 : 1, 'flip_news' => ( $flip_news == 'no' || !$flip_news ) ? 0 : 1, 'rss_title' => '\'' . (( isset ($rss_title) ) ? $rss_title : 'My website name!') . '\'', 'rss_description' => '\'' . (( isset ($rss_description) ) ? $rss_description : 'Website description') . '\'', 'rss_encoding' => '\'' . (( isset ($rss_encoding) ) ? $rss_encoding : 'utf-8') . '\'', 'com_validation' => ( isset ($com_validation) ) ? $com_validation : 1, 'com_captcha' => ( isset ($com_captcha) ) ? $com_captcha : 1, 'news_pagination' => 1, 'news_pagination_prv' => '\'<< Prev\'', 'news_pagination_nxt' => '\'Next >>\'', 'news_pagination_numbers' => 1, 'news_pagination_arrows' => 1, 'ppp_date' => '\'jS F Y\'', 'comments_pages' => 1, 'comments_per_page' => 2, ); $write = '<' . '?php' . "\n\n"; $write .= "\n" . '// Auto-generated by Fusion News' . "\n"; foreach ( $config_array as $key => $value ) { $write .= '$' . $key . ' = ' . $value . ';' . "\n"; } $write .= "\n" . '?' . '>'; write_file ($write, 'config.php'); } function fn_error_handler ( $errno, $errstr, $errfile, $errline ) { switch ( $errno ) { case E_USER_ERROR: case E_USER_WARNING: echo '<p class="error">' . $errstr . '</p>'; echo '<p class="error">You should restore all the files that you have backed up before attempting to upgrade again.</p>'; include 'footer.php'; die(); break; case E_USER_NOTICE: echo '<p class="notice">' . $errstr . '</p>'; break; default: return false; break; } return true; } ?>