Pastoid

Stupid plugin update thing

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

This paste was last updated on April 20, 2009 at 6:49 pm.

installhandler.phpraw

	private function upgrade_db_post_3484()
	{
		$new_plugins = array();
		$plugins = Options::get( 'active_plugins' );
		if( is_array($plugins) ) {
			foreach( $plugins as $filename ) {
				if(!file_exists($filename)) {
					// try adding base path to stored path
					$filename = HABARI_PATH . $filename;
				}
				if(file_exists($filename)) {
					require_once $filename;
					$class = Plugins::class_from_filename($filename);
					$short_file = substr( $filename, strlen( HABARI_PATH ) );
				}
 
				if( file_exists($filename) && $class ) {
					$new_plugins[$class] = $short_file;
				}
			}
		}
		Options::set('active_plugins', $new_plugins);
	}
 
 

Toggle wordwrap

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