<?php function JSSnow_set_default_config(&$configxml) { if (!$configxml->maxpoints) $configxml->maxpoints=20; if (!$configxml->pointspersec) $configxml->pointspersec=5; if (!$configxml->zIndex) $configxml->zIndex=-9999; if (!$configxml->gravitydx) $configxml->gravitydx=5; if (!$configxml->gravitydy) $configxml->gravitydy=7; if (!$configxml->rightmargin) $configxml->rightmargin=5; if (!$configxml->bottommargin) $configxml->bottommargin=5; if (!$configxml->snowpicurl) $configxml->snowpicurl=''; } function JSSnow_load_config($pluginEnv) { $configxml=@simplexml_load_file($pluginEnv->datapath.'/config.xml'); if (!$configxml) $configxml=@simplexml_load_file($pluginEnv->root.'/config.xml'); if (!$configxml) $configxml=@simplexml_load_string('<?xml version="1.0" encoding="utf-8" standalone="yes"?>
	<JSSnow/>'); JSSnow_set_default_config($configxml); return $configxml; } ?>