403Webshell
Server IP : 10.19.1.101  /  Your IP : 216.73.216.158
Web Server : Apache
System : Linux web1f13.kinghost.net 5.4.282-1.el8.elrepo.x86_64 #1 SMP Mon Aug 19 18:33:22 EDT 2024 x86_64
User : schererimoveisrs ( 170628)
PHP Version : 7.4.33
Disable Function : apache_child_terminate,c99_buff_prepare,c99_sess_put,dl,exec,leak,link,myshellexec,openlog,passthru,pclose,pcntl_exec,php_check_syntax,php_strip_whitespace,popen,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,symlink,system,socket_listen,socket_create_listen,putenv
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/schererimoveisrs/www/pre backup/wp-content/plugins/wp-forecast/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/schererimoveisrs/www/pre backup/wp-content/plugins/wp-forecast//wpf_autoupdate.php
<?php

/* This file is part of the wp-monalisa plugin for wordpress */

/*  Copyright 2010  Hans Matzen  (email : webmaster at tuxlog.de)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/


function hm_backup_wpf()
{
    global $wp_filesystem;

    // name for backup directory
    $backupdir = $wp_filesystem->wp_content_dir()."/upgrade/wpf_update/";
     
    // wenn vorhanden, altes backup verzeichnis löschen
    if (is_dir($backupdir)) {
	$wp_filesystem->delete($backupdir,true);
    }

    // backupdir anlegen
    $wp_filesystem->mkdir($backupdir);

    // individuelle css datei sichern
    if ($wp_filesystem->is_file(dirname(__FILE__)."/wp-forecast.css"))
	$wp_filesystem->copy(dirname(__FILE__)."/wp-forecast.css",
			     $backupdir."/wp-forecast.css");

    // individuelle css datei sichern
    if ($wp_filesystem->is_file(dirname(__FILE__)."/wp-forecast-nowp.css"))
	$wp_filesystem->copy(dirname(__FILE__)."/wp-forecast-nowp.css",
			     $backupdir."/wp-forecast-nowp.css");

}

function hm_recover_wpf()
{
    global $wp_filesystem;

    $backupdir = $wp_filesystem->wp_content_dir()."/upgrade/wpf_update/";
    $pdir = dirname(__FILE__);

    // individuelle css datei zurück holen
    if ($wp_filesystem->is_file($backupdir."/wp-forecast.css"))
	$wp_filesystem->copy( $backupdir."/wp-forecast.css",
			      $pdir."/wp-forecast.css");

    // individuelle css datei zurück holen
    if ($wp_filesystem->is_file($backupdir."/wp-forecast-nowp.css"))
	$wp_filesystem->copy( $backupdir."/wp-forecast-nowp.css",
			      $pdir."/wp-forecast-nowp.css");
    
    // backup verzeichnis löschen
    $wp_filesystem->delete($backupdir,true);
}

// add filter
add_filter('upgrader_pre_install' , 'hm_backup_wpf' , 10, 2);
add_filter('upgrader_post_install', 'hm_recover_wpf', 10, 2);

?>

Youez - 2016 - github.com/yon3zu
LinuXploit