<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.midsouthmakers.org/index.php?action=history&amp;feed=atom&amp;title=Motion_Scripts</id>
	<title>Motion Scripts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.midsouthmakers.org/index.php?action=history&amp;feed=atom&amp;title=Motion_Scripts"/>
	<link rel="alternate" type="text/html" href="http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;action=history"/>
	<updated>2026-05-01T09:49:55Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8469&amp;oldid=prev</id>
		<title>Jferguson at 13:39, 25 May 2011</title>
		<link rel="alternate" type="text/html" href="http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8469&amp;oldid=prev"/>
		<updated>2011-05-25T13:39:22Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:39, 25 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Main Article: [[MidsouthMakers_Webcams]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Motion Scripts =&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;= Motion Scripts =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We use two bash scripts to manage motion data. One simply copies the last snapshot to the live web server for the main domain to link to.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;We use two bash scripts to manage motion data. One simply copies the last snapshot to the live web server for the main domain to link to.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jferguson</name></author>
	</entry>
	<entry>
		<id>http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8466&amp;oldid=prev</id>
		<title>Jferguson at 13:37, 25 May 2011</title>
		<link rel="alternate" type="text/html" href="http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8466&amp;oldid=prev"/>
		<updated>2011-05-25T13:37:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;amp;diff=8466&amp;amp;oldid=8465&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Jferguson</name></author>
	</entry>
	<entry>
		<id>http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8465&amp;oldid=prev</id>
		<title>Jferguson: /* Gallery Sciprts */</title>
		<link rel="alternate" type="text/html" href="http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8465&amp;oldid=prev"/>
		<updated>2011-05-25T13:33:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Gallery Sciprts&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:33, 25 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l124&quot;&gt;Line 124:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;closedir($handle);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;closedir($handle);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;?&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;?&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* galleryarchive.php&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* galleryarchive.php&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l191&quot;&gt;Line 191:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 192:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;closedir($handle);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;closedir($handle);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;?&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;?&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/pre&amp;gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jferguson</name></author>
	</entry>
	<entry>
		<id>http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8464&amp;oldid=prev</id>
		<title>Jferguson: /* Gallery Sciprts */</title>
		<link rel="alternate" type="text/html" href="http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8464&amp;oldid=prev"/>
		<updated>2011-05-25T13:32:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Gallery Sciprts&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:32, 25 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l115&quot;&gt;Line 115:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sort($images);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sort($images);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//ksort($videos);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//ksort($videos);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//echo(&quot;&amp;lt;pre&amp;gt;&quot;); print_r($images); echo(&quot;&amp;lt;/pre&amp;gt;&quot;);&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;foreach ($images as $imagelink) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;foreach ($images as $imagelink) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//echo(&amp;quot;$imagelink&amp;quot;);	&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//echo(&amp;quot;$imagelink&amp;quot;);	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l182&quot;&gt;Line 182:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 182:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sort($images);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;sort($images);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//ksort($videos);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;//ksort($videos);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;//echo(&quot;&amp;lt;pre&amp;gt;&quot;); print_r($images); echo(&quot;&amp;lt;/pre&amp;gt;&quot;);&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;foreach ($images as $imagelink) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;foreach ($images as $imagelink) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//echo(&amp;quot;$imagelink&amp;quot;);	&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	//echo(&amp;quot;$imagelink&amp;quot;);	&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jferguson</name></author>
	</entry>
	<entry>
		<id>http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8463&amp;oldid=prev</id>
		<title>Jferguson: /* Motion Scripts */</title>
		<link rel="alternate" type="text/html" href="http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8463&amp;oldid=prev"/>
		<updated>2011-05-25T13:30:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Motion Scripts&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:30, 25 May 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l14&quot;&gt;Line 14:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 14:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* archivemotion.sh&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* archivemotion.sh&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;TE&lt;/del&gt;=`date -d &#039;1 day ago&#039; +%Y-%m-%d`&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;#!/bin/bash&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;DATE&lt;/ins&gt;=`date -d &#039;1 day ago&#039; +%Y-%m-%d`&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;echo $DATE&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;echo $DATE&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;PATH1=&amp;quot;/motion/1.camera.midsouthmakers.org/$DATE&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;PATH1=&amp;quot;/motion/1.camera.midsouthmakers.org/$DATE&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jferguson</name></author>
	</entry>
	<entry>
		<id>http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8462&amp;oldid=prev</id>
		<title>Jferguson: Created page with &quot;= Motion Scripts = We use two bash scripts to manage motion data. One simply copies the last snapshot to the live web server for the main domain to link to. * imagedelay.sh  &lt;pre...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.midsouthmakers.org/index.php?title=Motion_Scripts&amp;diff=8462&amp;oldid=prev"/>
		<updated>2011-05-25T13:29:45Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Motion Scripts = We use two bash scripts to manage motion data. One simply copies the last snapshot to the live web server for the main domain to link to. * imagedelay.sh  &amp;lt;pre...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Motion Scripts =&lt;br /&gt;
We use two bash scripts to manage motion data. One simply copies the last snapshot to the live web server for the main domain to link to.&lt;br /&gt;
* imagedelay.sh&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cp /motion/1.camera.midsouthmakers.org/lastsnap.jpg /motion/camera.midsouthmakers.org/delayed-1.jpg&lt;br /&gt;
cp /motion/2.camera.midsouthmakers.org/lastsnap.jpg /motion/camera.midsouthmakers.org/delayed-2.jpg&lt;br /&gt;
cp /motion/3.camera.midsouthmakers.org/lastsnap.jpg /motion/camera.midsouthmakers.org/delayed-3.jpg&lt;br /&gt;
cp /motion/4.camera.midsouthmakers.org/lastsnap.jpg /motion/camera.midsouthmakers.org/delayed-4.jpg&lt;br /&gt;
cp /motion/5.camera.midsouthmakers.org/lastsnap.jpg /motion/camera.midsouthmakers.org/delayed-5.jpg&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Our second script rotates the previous day&amp;#039;s images into it&amp;#039;s own archive folder and copies an easy to view gallery.&lt;br /&gt;
* archivemotion.sh&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
TE=`date -d &amp;#039;1 day ago&amp;#039; +%Y-%m-%d`&lt;br /&gt;
echo $DATE&lt;br /&gt;
PATH1=&amp;quot;/motion/1.camera.midsouthmakers.org/$DATE&amp;quot;&lt;br /&gt;
echo $PATH1&lt;br /&gt;
mkdir $PATH1&lt;br /&gt;
mv /motion/1.camera.midsouthmakers.org/$DATE-* $PATH1/.&lt;br /&gt;
cp /motion/1.camera.midsouthmakers.org/galleryarchive.php /motion/1.camera.midsouthmakers.org/$DATE/index.php&lt;br /&gt;
#&lt;br /&gt;
PATH2=&amp;quot;/motion/2.camera.midsouthmakers.org/$DATE&amp;quot;&lt;br /&gt;
echo $PATH2&lt;br /&gt;
mkdir $PATH2&lt;br /&gt;
mv /motion/2.camera.midsouthmakers.org/$DATE-* $PATH2/.&lt;br /&gt;
cp /motion/1.camera.midsouthmakers.org/galleryarchive.php /motion/2.camera.midsouthmakers.org/$DATE/index.php&lt;br /&gt;
#&lt;br /&gt;
PATH3=&amp;quot;/motion/3.camera.midsouthmakers.org/$DATE&amp;quot;&lt;br /&gt;
echo $PATH3&lt;br /&gt;
mkdir $PATH3&lt;br /&gt;
mv /motion/3.camera.midsouthmakers.org/$DATE-* $PATH3/.&lt;br /&gt;
cp /motion/1.camera.midsouthmakers.org/galleryarchive.php /motion/3.camera.midsouthmakers.org/$DATE/index.php&lt;br /&gt;
#&lt;br /&gt;
PATH4=&amp;quot;/motion/4.camera.midsouthmakers.org/$DATE&amp;quot;&lt;br /&gt;
echo $PATH4&lt;br /&gt;
mkdir $PATH4&lt;br /&gt;
mv /motion/4.camera.midsouthmakers.org/$DATE-* $PATH4/.&lt;br /&gt;
cp /motion/1.camera.midsouthmakers.org/galleryarchive.php /motion/4.camera.midsouthmakers.org/$DATE/index.php&lt;br /&gt;
#&lt;br /&gt;
PATH5=&amp;quot;/motion/5.camera.midsouthmakers.org/$DATE&amp;quot;&lt;br /&gt;
echo $PATH5&lt;br /&gt;
mkdir $PATH5&lt;br /&gt;
mv /motion/5.camera.midsouthmakers.org/$DATE-* $PATH5/.&lt;br /&gt;
cp /motion/1.camera.midsouthmakers.org/galleryarchive.php /motion/5.camera.midsouthmakers.org/$DATE/index.php&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Gallery Sciprts =&lt;br /&gt;
&lt;br /&gt;
We use 2 gallery scripts, one lists folders to be placed in the root of the individual camera folder, the other is to be copied into each archived folder.&lt;br /&gt;
* gallery.php&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
ini_set (&amp;#039;display_errors&amp;#039;, 1);&lt;br /&gt;
error_reporting (E_ALL &amp;amp; ~E_NOTICE);&lt;br /&gt;
function folderlist(){&lt;br /&gt;
  $startdir = &amp;#039;./&amp;#039;;&lt;br /&gt;
  $ignoredDirectory[] = &amp;#039;.&amp;#039;; &lt;br /&gt;
  $ignoredDirectory[] = &amp;#039;..&amp;#039;;&lt;br /&gt;
   if (is_dir($startdir)){&lt;br /&gt;
       if ($dh = opendir($startdir)){&lt;br /&gt;
           while (($folder = readdir($dh)) !== false){&lt;br /&gt;
               if (!(array_search($folder,$ignoredDirectory) &amp;gt; -1)){&lt;br /&gt;
                 if (filetype($startdir . $folder) == &amp;quot;dir&amp;quot;){&lt;br /&gt;
                       $directorylist[$startdir . $folder][&amp;#039;name&amp;#039;] = $folder;&lt;br /&gt;
                       $directorylist[$startdir . $folder][&amp;#039;path&amp;#039;] = $startdir;&lt;br /&gt;
                   }&lt;br /&gt;
               }&lt;br /&gt;
           }&lt;br /&gt;
           closedir($dh);&lt;br /&gt;
       }&lt;br /&gt;
   }&lt;br /&gt;
return($directorylist);&lt;br /&gt;
}&lt;br /&gt;
echo(&amp;quot;&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Past Archives&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;quot;);&lt;br /&gt;
$folders = folderlist();&lt;br /&gt;
  foreach ($folders as $folder){&lt;br /&gt;
    $path = $folder[&amp;#039;path&amp;#039;];&lt;br /&gt;
    $name = $folder[&amp;#039;name&amp;#039;];&lt;br /&gt;
&lt;br /&gt;
    echo &amp;#039;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;a href=&amp;quot;&amp;#039;. $path . $name .&amp;#039;&amp;quot;&amp;gt;&amp;#039; . $name . &amp;#039;&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;#039;;&lt;br /&gt;
  }&lt;br /&gt;
echo(&amp;quot;&amp;lt;/table&amp;gt;&amp;quot;);  &lt;br /&gt;
// open the current directory by opendir&lt;br /&gt;
$handle=opendir(&amp;quot;.&amp;quot;);&lt;br /&gt;
	$images = array();&lt;br /&gt;
	$videos = array();&lt;br /&gt;
	$imagestring = &amp;quot;.jpg&amp;quot;;&lt;br /&gt;
	$videostring = &amp;quot;.mov&amp;quot;;&lt;br /&gt;
while (($file = readdir($handle))!==false) {&lt;br /&gt;
if ($file == &amp;quot;.&amp;quot; || $file == &amp;quot;..&amp;quot;){&lt;br /&gt;
	//nothing&lt;br /&gt;
} else {&lt;br /&gt;
	&lt;br /&gt;
	//echo &amp;quot;$file &amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
	if(strstr($file,$imagestring)) {&lt;br /&gt;
		//echo &amp;quot;found it.&amp;quot;;&lt;br /&gt;
		//echo(&amp;quot;$file : &amp;quot; . date (&amp;quot;Ymd Gis&amp;quot;, filemtime($file)) . &amp;quot;&amp;lt;BR&amp;gt;&amp;quot;);&lt;br /&gt;
		$imagedate = date(&amp;quot;Ymd Gis&amp;quot;, filemtime($file));&lt;br /&gt;
		$images[&amp;quot;$imagedate&amp;quot;][] = &amp;quot;&amp;lt;img src=\&amp;quot;&amp;quot; . $file . &amp;quot;\&amp;quot;&amp;gt;&amp;quot;;&lt;br /&gt;
		//$images[] = $file;&lt;br /&gt;
	} else {&lt;br /&gt;
		//echo &amp;quot;not found.&amp;quot;;&lt;br /&gt;
	}&lt;br /&gt;
	if(strstr($file,$videostring)) {&lt;br /&gt;
		//echo &amp;quot;found it.&amp;quot;;&lt;br /&gt;
		$videos[] = $file;&lt;br /&gt;
	} else {&lt;br /&gt;
		//echo &amp;quot;not found.&amp;quot;;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
sort($images);&lt;br /&gt;
//ksort($videos);&lt;br /&gt;
//echo(&amp;quot;&amp;lt;pre&amp;gt;&amp;quot;); print_r($images); echo(&amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;);&lt;br /&gt;
foreach ($images as $imagelink) {&lt;br /&gt;
	//echo(&amp;quot;$imagelink&amp;quot;);	&lt;br /&gt;
	foreach ($imagelink as $key=&amp;gt;$temptwo) {&lt;br /&gt;
      echo &amp;quot;$temptwo&amp;quot;, &amp;quot;\n&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
closedir($handle);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* galleryarchive.php&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;?php&lt;br /&gt;
ini_set (&amp;#039;display_errors&amp;#039;, 1);&lt;br /&gt;
error_reporting (E_ALL &amp;amp; ~E_NOTICE);&lt;br /&gt;
function folderlist(){&lt;br /&gt;
  $startdir = &amp;#039;./&amp;#039;;&lt;br /&gt;
  $ignoredDirectory[] = &amp;#039;.&amp;#039;; &lt;br /&gt;
  $ignoredDirectory[] = &amp;#039;..&amp;#039;;&lt;br /&gt;
   if (is_dir($startdir)){&lt;br /&gt;
       if ($dh = opendir($startdir)){&lt;br /&gt;
           while (($folder = readdir($dh)) !== false){&lt;br /&gt;
               if (!(array_search($folder,$ignoredDirectory) &amp;gt; -1)){&lt;br /&gt;
                 if (filetype($startdir . $folder) == &amp;quot;dir&amp;quot;){&lt;br /&gt;
                       $directorylist[$startdir . $folder][&amp;#039;name&amp;#039;] = $folder;&lt;br /&gt;
                       $directorylist[$startdir . $folder][&amp;#039;path&amp;#039;] = $startdir;&lt;br /&gt;
                   }&lt;br /&gt;
               }&lt;br /&gt;
           }&lt;br /&gt;
           closedir($dh);&lt;br /&gt;
       }&lt;br /&gt;
   }&lt;br /&gt;
return($directorylist);&lt;br /&gt;
}&lt;br /&gt;
  &lt;br /&gt;
// open the current directory by opendir&lt;br /&gt;
$handle=opendir(&amp;quot;.&amp;quot;);&lt;br /&gt;
	$images = array();&lt;br /&gt;
	$videos = array();&lt;br /&gt;
	$imagestring = &amp;quot;.jpg&amp;quot;;&lt;br /&gt;
	$videostring = &amp;quot;.mov&amp;quot;;&lt;br /&gt;
while (($file = readdir($handle))!==false) {&lt;br /&gt;
if ($file == &amp;quot;.&amp;quot; || $file == &amp;quot;..&amp;quot;){&lt;br /&gt;
	//nothing&lt;br /&gt;
} else {&lt;br /&gt;
	&lt;br /&gt;
	//echo &amp;quot;$file &amp;lt;br&amp;gt;&amp;quot;;&lt;br /&gt;
	if(strstr($file,$imagestring)) {&lt;br /&gt;
		//echo &amp;quot;found it.&amp;quot;;&lt;br /&gt;
		//echo(&amp;quot;$file : &amp;quot; . date (&amp;quot;Ymd Gis&amp;quot;, filemtime($file)) . &amp;quot;&amp;lt;BR&amp;gt;&amp;quot;);&lt;br /&gt;
		$imagedate = date(&amp;quot;Ymd Gis&amp;quot;, filemtime($file));&lt;br /&gt;
		$images[&amp;quot;$imagedate&amp;quot;][] = &amp;quot;&amp;lt;img src=\&amp;quot;&amp;quot; . $file . &amp;quot;\&amp;quot;&amp;gt;&amp;quot;;&lt;br /&gt;
		//$images[] = $file;&lt;br /&gt;
	} else {&lt;br /&gt;
		//echo &amp;quot;not found.&amp;quot;;&lt;br /&gt;
	}&lt;br /&gt;
	if(strstr($file,$videostring)) {&lt;br /&gt;
		//echo &amp;quot;found it.&amp;quot;;&lt;br /&gt;
		$videos[] = $file;&lt;br /&gt;
	} else {&lt;br /&gt;
		//echo &amp;quot;not found.&amp;quot;;&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
}&lt;br /&gt;
sort($images);&lt;br /&gt;
//ksort($videos);&lt;br /&gt;
//echo(&amp;quot;&amp;lt;pre&amp;gt;&amp;quot;); print_r($images); echo(&amp;quot;&amp;lt;/pre&amp;gt;&amp;quot;);&lt;br /&gt;
foreach ($images as $imagelink) {&lt;br /&gt;
	//echo(&amp;quot;$imagelink&amp;quot;);	&lt;br /&gt;
	foreach ($imagelink as $key=&amp;gt;$temptwo) {&lt;br /&gt;
      echo &amp;quot;$temptwo&amp;quot;, &amp;quot;\n&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
closedir($handle);&lt;br /&gt;
?&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jferguson</name></author>
	</entry>
</feed>