Server IP : 103.119.228.120 / Your IP : 3.138.135.4 Web Server : Apache System : Linux v8.techscape8.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : nobody ( 99) PHP Version : 5.6.40 Disable Function : shell_exec,symlink,system,exec,proc_get_status,proc_nice,proc_terminate,define_syslog_variables,syslog,openlog,closelog,escapeshellcmd,passthru,ocinum cols,ini_alter,leak,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dl,dll,myshellexec,proc_open,socket_bind,proc_close,escapeshellarg,parse_ini_filepopen,fpassthru,exec,passthru,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,popen,show_source,proc_nice,proc_terminate,proc_get_status,proc_close,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,dl,symlink,shell_exec,system,dl,passthru,escapeshellarg,escapeshellcmd,myshellexec,c99_buff_prepare,c99_sess_put,fpassthru,getdisfunc,fx29exec,fx29exec2,is_windows,disp_freespace,fx29sh_getupdate,fx29_buff_prepare,fx29_sess_put,fx29shexit,fx29fsearch,fx29ftpbrutecheck,fx29sh_tools,fx29sh_about,milw0rm,imagez,sh_name,myshellexec,checkproxyhost,dosyayicek,c99_buff_prepare,c99_sess_put,c99getsource,c99sh_getupdate,c99fsearch,c99shexit,view_perms,posix_getpwuid,posix_getgrgid,posix_kill,parse_perms,parsesort,view_perms_color,set_encoder_input,ls_setcheckboxall,ls_reverse_all,rsg_read,rsg_glob,selfURL,dispsecinfo,unix2DosTime,addFile,system,get_users,view_size,DirFiles,DirFilesWide,DirPrintHTMLHeaders,GetFilesTotal,GetTitles,GetTimeTotal,GetMatchesCount,GetFileMatchesCount,GetResultFiles,fs_copy_dir,fs_copy_obj,fs_move_dir,fs_move_obj,fs_rmdir,SearchText,getmicrotime MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/hendraso/public_html/old/wp-content/plugins/secure-wordpress/res/pages/ |
Upload File : |
<?php if(! SwpaUtil::canLoad()) { return; } ?> <?php wp_enqueue_style('wsdplugin_css_blog', SwpaUtil::cssUrl('blog.css'), array(), '1.0'); ?> <div class="wrap wsdplugin_content"> <div id="pageblog" class="wrap wsdplugin_content"> <div id="header"> <div class="wrapper"> <div id="logo"><a href="http://www.acunetix.com" target="_blank">Acunetix</a></div> <div id="main-nav"> <a class="twitter" target="_blank" href="http://twitter.com/acunetix" title="<?php echo __('Follow us on Twitter');?>">Twitter</a> <a class="facebook" target="_blank" href="http://www.facebook.com/Acunetix" title="<?php echo __('Follow us on Facebook');?>">Facebook</a> </div> </div> </div> <div id="content"> <ul id="feed-list"> <?php /** * @internal * @param int $maxItems * @return string */ function swpaplugin_GetFeedData($maxItems = 10) { $rss = fetch_feed(SWPA_PLUGIN_BLOG_FEED); $out = ''; if (is_wp_error( $rss ) ) { return '<li>'.__('An error has occurred while trying to load the rss feed!').'</li>'; } else{ // Limit to $maxItems entries. $maxitems = $rss->get_item_quantity($maxItems); // Build an array of all the items, $rss_items = $rss->get_items(0, $maxitems); if ($maxitems == 0){ $out.= '<li>'.__('There are no entries for this feed!').'</li>'; } else { foreach ( $rss_items as $item ) : $url = esc_url($item->get_permalink()); $out.= '<li>'; $out.= '<h4><a href="'.$url.'" target="_blank" title="'.__('Posted on ').$item->get_date('F j, Y | g:i a').'">'; $out.= esc_html( $item->get_title() ); $out.= '</a></h4>'; $out.= '<div>' . $item->get_description() . '</div>'; $out.= '</li>'; endforeach; } $out .= '<div style="border-top: solid 1px #ccc; margin-top: 4px; padding: 2px 0;">'; $out .= '<p style="margin: 5px 0 0 0; padding: 0 0; line-height: normal; overflow: hidden;">'; $out .= '<a href="http://feeds.acunetix.com/acunetixwebapplicationsecurityblog" style="float: left; display: block; width: 50%; text-align: right; margin-left: 30px; padding-right: 22px; background: url(\'rss.png\') no-repeat right center;" target="_blank">'.__('Follow us on RSS').'</a>'; $out .= '</p>'; $out .= '</div>'; } return $out; } /** * @internal * @param $optName * @param $optData */ function swpaplugin_updateRssFeedOption($optName, $optData) { $obj = new stdClass(); $obj->expires = time() + (24*60*60); $obj->data = $optData; update_option($optName, $obj); } /** * @public * @param $optName * @param $getMaxRssEntries */ function swpaplugin_handleDisplayRssData($optName, $getMaxRssEntries) { $data = swpaplugin_GetFeedData($getMaxRssEntries); swpaplugin_updateRssFeedOption($optName, $data); echo str_ireplace("url('rss.png')", "url('".SwpaUtil::imageUrl('rss.png')."')", $data); } $optName = 'WSD-FEED-DATA'; $getMaxRssEntries = 10; //@ check cache $optData = get_option($optName); if(empty($optData)) { swpaplugin_handleDisplayRssData($optName, $getMaxRssEntries); } else{ // check cache expiry date if (is_object($optData)) { $lastUpdateTime = @$optData->expires; // invalid cache: UPDATE if (empty($lastUpdateTime)) { swpaplugin_handleDisplayRssData($optName, $getMaxRssEntries); } else { $nextUpdateTime = $lastUpdateTime+(24*60*60); if ($nextUpdateTime >= $lastUpdateTime){ $data = @$optData->data; if (empty($data)) { swpaplugin_handleDisplayRssData($optName, $getMaxRssEntries); } // still a valid cache: DISPLAY else { echo str_ireplace("url('rss.png')", "url('".SwpaUtil::imageUrl('rss.png')."')", $data); } } else { swpaplugin_handleDisplayRssData($optName, $getMaxRssEntries); } } } else { swpaplugin_handleDisplayRssData($optName, $getMaxRssEntries); } } ?> </ul> </div> </div> </div>