One Hat Cyber Team
Your IP :
216.73.216.216
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
/
web
/
modules
/
View File Name :
mod_jw_cifs.php
<?php /* // Content Item Fader Module for Joomla 1.0.x Version 1.0.2 // License: http://www.gnu.org/copyleft/gpl.html // Authors: George Chouliaras (PHP), Fotis Evangelou (XHTML/CSS) // Copyright (c) 2006 web|PR - http://www.webpr.gr // Project page at http://www.webpr.gr/joomla // Feel free to modify as you wish! // ***Last update: August 15th, 2006*** */ /** ensure this file is being included by a parent file */ defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); global $mosConfig_offset, $mosConfig_live_site, $mosConfig_locale, $mainframe; // parameters for content handling $count = intval( $params->get( 'count', 5 ) ); $catid = trim( $params->get( 'catid' ) ); $secid = trim( $params->get( 'secid' ) ); $show_front = intval($params->get( 'show_front', 1 ) ); $show_section_title = intval($params->get( 'show_section_title', 0 ) ); $show_category_title = intval($params->get( 'show_category_title', 1 ) ); $show_title = intval($params->get( 'show_title', 1 ) ); $show_date = intval($params->get( 'show_date', 1 ) ); $show_readmore = intval($params->get( 'show_readmore', 1 ) ); $seperator = trim( $params->get( 'seperator' ) ); // parameters for the fading scroller script $uniqueid = trim( $params->get( 'uniqueid' ) ); $cifswidth = trim( $params->get( 'cifswidth' ) ); $cifsheight = trim( $params->get( 'cifsheight' ) ); $delay = trim( $params->get( 'delay' ) ); $maxsteps = trim( $params->get( 'maxsteps' ) ); $stepdelay = trim( $params->get( 'stepdelay' ) ); $startcolor = trim( $params->get( 'startcolor' ) ); $endcolor = trim( $params->get( 'endcolor' ) ); $fadelinks = trim( $params->get( 'fadelinks' ) ); if ( $secid ) { $rows = array(); if (substr_count($secid,",") != 0) { $seca = explode (",", $secid); } else { $seca = array($secid); } $now = date( 'Y-m-d H:i:s', time()+$mosConfig_offset*60*60 ); foreach ($seca as $sec) { // Get categories if ( $catid ) { if (substr_count($catid,",") != 0) { $cata = explode (",", $catid); } else { $cata = array($catid); } } else { $query= "SELECT id FROM #__categories" . "\n WHERE section = '".$sec."' AND published = '1'" . "\n ORDER BY ordering"; $database->setQuery( $query ); $cata = $database->loadResultArray(); } foreach ($cata as $cat) { $query = "SELECT a.id, a.title, a.created, s.title AS section, c.title AS category, a.introtext, a.fulltext, a.attribs" . "\n FROM #__sections AS s, #__categories AS c, #__content AS a" . "\n LEFT JOIN #__content_frontpage AS f ON f.content_id = a.id" . "\n WHERE a.sectionid = s.id AND a.catid = c.id" . "\n AND ( a.state = '1' AND a.checked_out = '0' AND a.sectionid > '0' )" . "\n AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '". $now ."' )" . "\n AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '". $now ."' )" . "\n AND a.catid = ". $cat . "\n AND a.sectionid = ". $sec . ( $show_front == "0" ? "\n AND f.content_id IS NULL" : '' ) . "\n ORDER BY a.ordering LIMIT $count"; $database->setQuery( $query ); $rows = $database->loadObjectList(); $numRows=count($rows); if ( $numRows < $count ) { $acount = $numRows; } else { $acount = $count; } reset ($rows); list(,$r) = each($rows); $sectiontext =$r->section; $categorytext =$r->category; reset ($rows); if ($acount) { for ($i=1; $i <= $acount; $i++) { // html output for each content item displayed STARTS here // Remember not to use any css classes in the html below because the Fading Scroller script fails to work! $html = ''; // Section/Category output if ($show_section_title || $show_category_title) { $html .= '<h1>'; if ($show_section_title) { $html .= $sectiontext; if ($show_category_title) { $html .= ' '.$seperator.' '.$categorytext;} } else { if ($show_category_title) { $html .= $categorytext;} } $html .= '</h1>'; } list(,$r) = each($rows); // get itemid if contentitem in menu $contentid = $r->id; $query = "select id from #__menu where published = '1' and type = 'content_item_link' and componentid='$contentid';"; $database->setQuery( $query ); $Itemid = $database->loadresult(); if (!$Itemid) { // needed to reduce queries used by getItemid $bs = $mainframe->getBlogSectionCount(); $bc = $mainframe->getBlogCategoryCount(); $gbs = $mainframe->getGlobalBlogSectionCount(); // get Itemid $Itemid = $mainframe->getItemid( $r->id, 0, 0, $bs, $bc, $gbs ); } // Blank itemid checker for SEF if ($Itemid == NULL) { $Itemid = ''; } else { $Itemid = '&Itemid='. $Itemid; } $aparams = new mosParameters($r->attribs); $compact = intval($aparams->get('compactarticle',0) ); // title link if ($show_title) { $tmpr = preg_replace("/\"/", "''", $r->title); $html .= "<h2><a href='". sefRelToAbs( "index.php?option=com_content&task=view&id=". $r->id . $Itemid ) ."' class='contentpagetitle'>". $tmpr ."</a></h2>"; } // date setlocale (LC_TIME, $mosConfig_locale); if ($show_date) { $html .= '<h4>'.strftime("%d.%m.%y", strtotime($r->created)).'</h4>'; } // content item introtext $html .= "<div class='cifs_introtext'>"; $allowed_tags = "<em><br><br /><a><b><i><u>"; $tmp = preg_replace("/{.+?}/", "", $r->introtext); //hide bot strings //strip html tags below $tmp = preg_replace("/style=\".+?\"/", "", $tmp); $tmp = preg_replace("/style='.+?'/", "", $tmp); $tmp = preg_replace("/class=\".+?\"/", "", $tmp); $tmp = preg_replace("/class='.+?'/", "", $tmp); $tmp = preg_replace("/\"/", "'", $tmp); $tmp = preg_replace("/<img.+?>/", "", $tmp); // hide images $tmp = preg_replace("/\r\n|\n|\r/", "<br />", $tmp); $tmp = strip_tags($tmp, $allowed_tags); $html .= $tmp; $html .= "</div>"; // readmore button if ($r->fulltext) { if ($show_readmore) { $html .= "<span><a href='". sefRelToAbs( "index.php?option=com_content&task=view&id=". $r->id . $Itemid ) ."' title='".$r->title."'>"._READ_MORE."</a></span>"; } } $html .= ''; // html output for each content item displayed ENDS here $html2out[$i-1] = $html; } } } } } ?> <!-- Content Items Fading Scroller Module starts here --> <style type="text/css" media="all"> <!-- #<?php echo $uniqueid; ?> { width:<?php echo $cifswidth; ?>; height:<?php echo $cifsheight; ?>; margin:0px; padding:0px 4px; overflow:hidden; } /* If you want to add custom styling, simply modify or comment out -and replace with your own- all the css code below. Do not use any "color" attributes or else the Fading Scroller script will not work! */ #<?php echo $uniqueid; ?> {} /* Fading Scroller box outer container */ #<?php echo $uniqueid; ?> h1 {font-size:10px;padding:0px;margin:0px;font-weight:normal;background:none;border:none;} /* Section/Category */ #<?php echo $uniqueid; ?> h2 {font-size:12px;padding:0px;margin:4px 0px 4px 0px;} /* Item title */ #<?php echo $uniqueid; ?> h4 {font-size:9px;padding:0px;margin:0px 0px 4px 0px;font-weight:normal;background:none;border:none;} /* Date */ #<?php echo $uniqueid; ?> div.cifs_introtext {padding:0px;margin:0px;} /* Style the introtext here */ #<?php echo $uniqueid; ?> div.cifs_introtext p {padding:0px;margin:0px;} /* Remove paragraph spacing */ #<?php echo $uniqueid; ?> span {display:block;font-size:10px;padding:0px;margin:4px 0px 0px 0px;text-align:right;} /* "Readmore" button */ --> </style> <script type="text/javascript" language="javascript"> /*********************************************** * Fading Scroller © Dynamic Drive DHTML code library (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code ***********************************************/ //html output starts here var fcontent=new Array(); begintag=''; <?php for($j=0; $j<count($html2out); $j++) { ?> fcontent[<?php echo $j; ?>] = "<?php echo $html2out[$j]; ?>"; <?php } ?> closetag=''; //html output ends here //javascript magic starts here var delay=<?php echo $delay; ?>; var maxsteps=<?php echo $maxsteps; ?>; var stepdelay=<?php echo $stepdelay; ?>; var startcolor= new Array(<?php echo $startcolor; ?>); var endcolor=new Array(<?php echo $endcolor; ?>); var fadelinks=<?php echo $fadelinks; ?>; var ie4=document.all&&!document.getElementById; var DOM2=document.getElementById; var faderdelay=0; var index=0; function changecontent(){ if (index>=fcontent.length) index=0 if (DOM2){ document.getElementById("<?php echo $uniqueid; ?>").style.color="rgb("+startcolor[0]+", "+startcolor[1]+", "+startcolor[2]+")" document.getElementById("<?php echo $uniqueid; ?>").innerHTML=begintag+fcontent[index]+closetag if (fadelinks) linkcolorchange(1); colorfade(1, 15); } else if (ie4) document.all.<?php echo $uniqueid; ?>.innerHTML=begintag+fcontent[index]+closetag; index++ } function linkcolorchange(step){ var obj=document.getElementById("<?php echo $uniqueid; ?>").getElementsByTagName("A"); if (obj.length>0){ for (i=0;i<obj.length;i++) obj[i].style.color=getstepcolor(step); } } var fadecounter; function colorfade(step) { if(step<=maxsteps) { document.getElementById("<?php echo $uniqueid; ?>").style.color=getstepcolor(step); if (fadelinks) linkcolorchange(step); step++; fadecounter=setTimeout("colorfade("+step+")",stepdelay); }else{ clearTimeout(fadecounter); document.getElementById("<?php echo $uniqueid; ?>").style.color="rgb("+endcolor[0]+", "+endcolor[1]+", "+endcolor[2]+")"; setTimeout("changecontent()", delay); } } function getstepcolor(step) { var diff var newcolor=new Array(3); for(var i=0;i<3;i++) { diff = (startcolor[i]-endcolor[i]); if(diff > 0) { newcolor[i] = startcolor[i]-(Math.round((diff/maxsteps))*step); } else { newcolor[i] = startcolor[i]+(Math.round((Math.abs(diff)/maxsteps))*step); } } return ("rgb(" + newcolor[0] + ", " + newcolor[1] + ", " + newcolor[2] + ")"); } if (ie4||DOM2) document.write('<div id="<?php echo $uniqueid; ?>"></div>'); if (window.addEventListener) window.addEventListener("load", changecontent, false) else if (window.attachEvent) window.attachEvent("onload", changecontent) else if (document.getElementById) window.onload=changecontent //javascript magic ends here </script> <!-- Content Items Fading Scroller Module ends here -->