HEX
Server: Apache
System: Linux dotw660 5.10.0-37-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User: web350 (1012)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/clients/client125/web350/web/wp-content/plugins/wp-automatic/p_rating.php
<?php 


function wp_automatic_rating_notice() {
	
	if(! function_exists('curl_init') ){
		
		?>
		
		<div class="error">
		        <p><a href="http://curl.haxx.se/">cURL</a> is not installed. you must install it for wordpress automatic plugin to function.</p>
		</div>
		
		<?php
		
	}
	
	//if the user ftped the plugin without running the table modification via activation hook
	$tableversion = get_option('wp_automatic_version');
	
	if($tableversion < 15 ) {
		
		?>
		
		 <div class="error">
		        <p><?php echo 'Wordpress automatic plugin must be deactivated and activated again for correct upgrade' ; ?></p>
		    </div>
		
		<?php
	}
	 
	$uri=$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
	
	if(stristr($uri, '?')){
		$uri.='&wp_automatic_rating=cancel';
	}else{
		$uri.='?wp_automatic_rating=cancel';
	}
	
	if(! stristr($uri,'http')){
		$uri='http://'.$uri;
	}
	
	if  ( isset($_GET['wp_automatic_rating']) ) {
		 update_option('wp_deandev_automatic_rating','cancel');
	 
	}
	
	$wp_automatic_rating=get_option('wp_deandev_automatic_rating','');
	
	if(trim($wp_automatic_rating) == ''){
		//get count of successful pins 
		global $wpdb;
		$query="SELECT count(*) as count FROM {$wpdb->prefix}automatic_log where action like 'Posted:%' and date > '2014-01-12 11:05:27' ";
		$rows=$wpdb->get_results($query);
		$row=$rows[0];
		$count=$row->count;
		
	
		 ;
		 
		if($count > 10 ){
			
			?>
			
			
		    <div class="updated">
		        <p><?php echo 'Do you mind helping (<a href="http://deandev.com/">ValvePress</a>) by rating  "Wordpress automatic plugin" ? your high rating will <strong>help us improve</strong> the plugin <a style="text-decoration: underline;" href="http://codecanyon.net/downloads">Rate Now ยป</a> <a  style="float:right"  href="'.$uri.'">(x) </a> '; ?></p>
		    </div>
		    <?php
		
		}//count ok
	}//rating yes
	 
}
add_action( 'admin_notices', 'wp_automatic_rating_notice' );