-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/inc/class/
File Upload :
Current File : /var/www/html/inc/class/class.skin.php

<?php

class skins
{
	var $skin_file_path = '' ;
	var $skin = array() ;
	function skin ( $skin_names , $skin_file_path )
	{
		$this->skin_file_path = $skin_file_path ;
		if ( empty($this->skin_file_path)) return ;
		$this->skin_file_path = ( substr($this->skin_file_path, 0, 1) == '/' )?$_SERVER['DOCUMENT_ROOT'] . $this->skin_file_path:$_SERVER['DOCUMENT_ROOT'] . '/' . $this->skin_file_path ;
		if ( !is_file($this->skin_file_path)) return ;
		$fp = fopen($this->skin_file_path , 'r') ;
		foreach ( $skin_names as $key=>$val )
		{
			$tmp = false ;
			$val = strtoupper($val) ;
			$begin = '<!-- BEGIN OF ' . $val . ' -->' ;
			$end = '<!-- END OF ' . $val . ' -->' ;
			while ( !feof($fp))
			{
				$html = fgets($fp) ;
				if ( strpos(' ' . $html , $begin) > 0) { $tmp = true ; continue ; }
				if ( strpos(' ' . $html , $end ) > 0) break ;
				if ( $tmp ) $this->skin[$key] .= $html ;
			}
		}
		fclose($fp) ;
		$return_skin = $this->skin ;
		unset($this->skin) ;
		return  $return_skin ;
	}
}

class defaultHtmlEditor
{
	var $Value = '' ;
	var $name = 'contents' ;
	var $Width = '100%' ;
	var $Height = '200' ;
	function Create () {
		$result_html = '
			<table width="100%" cellpadding=0 cellspacing=0 border=0>
			  <tr>
				<td align="left" colspan="2" height="' . ($this->Height+40) . '" valign="top">
				<!-- ¿©±â¼­ºÎÅÍ ÆíÁý±â -->
				<textarea name="' . $this->name . '" style="display:none; width:' . $this->Width . '; height:' . $this->Height . '" class="form" htmlmode>' . $this->Value . '</textarea>
				<script> editor01 = new HTMLeditor("' . $this->name . '");  </script>
				<!-- ¿©±â±îÁö ÆíÁý±â -->
				</td>
			  </tr>
			</table>
		' ;
		return $result_html ;
	}
}
?>

Copyright © 2017 || Recoded By Mr.Bumblebee