403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /Old Sites/repository/wp-content/plugins/yop-poll/admin/models/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /Old Sites/repository/wp-content/plugins/yop-poll/admin/models/templates.php
<?php
class YOP_Poll_Templates {
	public static function get_templates() {
		$templates = $GLOBALS['wpdb']->get_results( "SELECT * FROM {$GLOBALS['wpdb']->yop_poll_templates}", OBJECT );
		return $templates;
	}
	public static function get_template( $template_id ) {
		$sql_query = $GLOBALS['wpdb']->prepare( "SELECT * FROM {$GLOBALS['wpdb']->yop_poll_templates} WHERE `id`=%s", $template_id );
		return $GLOBALS['wpdb']->get_row( $sql_query, OBJECT );
	}
	public static function template_already_exists( $base, $available_templates ) {
		$template_exists = false;
		foreach ( $available_templates as $available_template ) {
			if ( $available_template->base === $base  ) {
				$template_exists = true;
			}
		}
		return $template_exists;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit