Pastoid

The page you are looking at now is at this URL: http://pastoid.com/b2

This paste was last updated on December 31, 1969 at 7:00 pm.

php coderaw

public static function get_all_data()
	{
		if ( !isset( self::$all_data ) ) {
			$themedata = array();
			foreach(self::get_all() as $theme_dir => $theme_path ) {
				$themedata['dir'] = $theme_dir;
				$themedata['path'] = $theme_path;
 
				$themedata['info'] = simplexml_load_file( $theme_path . '/theme.xml' );
				//if GLOB_BRACE not available 
				if ( !defined("GLOB_BRACE") )
				{
				  if ( $screenshot = glob("$theme_path/*.jpg") );
				  elseif ( $screenshot = glob("$theme_path/*.jpeg") );
				  elseif ( $screenshot = glob("$theme_path/*.png") );
				  elseif ( $screenshot = glob("$theme_path/*.gif") );
				}
				else {
 
				if ( $screenshot= Utils::glob( $theme_path . '/screenshot.{png,jpg,gif}' , GLOB_BRACE) ) {
					$themedata['screenshot'] = Site::get_url( 'habari' ) . "/" . dirname(str_replace( HABARI_PATH, '', $theme_path )) . '/' . basename( $theme_path ) . "/" . basename(reset($screenshot));
				}
				else {
					$themedata['screenshot'] = Site::get_url( 'habari' ) . "/system/admin/images/screenshot_default.png";
				}
				}
 
				self::$all_data[$theme_dir] = $themedata;
			}
		}
		return self::$all_data;
	}
 
 

Toggle wordwrap

Referring DomainHits
Unknown Referer 106
pastoid.com 8
search.live.com 1
Is this paste spam?
<Hide