⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 astrocam.cgi

📁 mod_astrocam允许通过网络来控制网络摄像机、视频摄像机或是其它类似使用步进马达的设备。它作为一个Apache模块运行。
💻 CGI
字号:
#!/bin/sh# this is the astrocam webinterface# written and copyright (c) 2001,2002,2003 by Steffen Wendzel# Steffen Wendzel: <astrocam@doomed-reality.org>## LICENSE: GPLecho 'Content-type: text/html'echoecho '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 'echo ' "http://www.w3.org/TR/html4/loose.dtd">'echo '<html>'echo '<head>'echo '<title>AstroCam Webinterface</title>'echo '<link rel=stylesheet type="text/css" href="/design.css">'echo '<meta http-equiv="express" content="0">'echo '<meta http-equiv="cache-control" content="no-cache">'echo '</head><body bgcolor="#ffffff">'echo '<table border=0 align=center>'echo '<tr>'echo '        <td align=center width="390px" class="body">'export MAXDREH=`cat /etc/astrocam/maxdreh`export MINDREH=`cat /etc/astrocam/mindreh`export STATUS=`cat /etc/astrocam/posfile`if [ $STATUS -lt $MAXDREH ]; then   if [ $QUERY_STRING = "I=L" ]; then       echo "L">/etc/acam       echo "$STATUS+30"|bc>/etc/astrocam/posfile   fi   if [ $QUERY_STRING = "I=l" ]; then       echo "l">/etc/acam       echo "$STATUS+10"|bc>/etc/astrocam/posfile   fifiif [ $STATUS -gt $MINDREH ]; then   if [ $QUERY_STRING = "I=r" ]; then       echo "r">/etc/acam       echo "$STATUS-10"|bc>/etc/astrocam/posfile   fi   if [ $QUERY_STRING = "I=R" ]; then       echo "R">/etc/acam       echo "$STATUS-30"|bc>/etc/astrocam/posfile   fifi   if [ $QUERY_STRING = "I=u" ]; then       echo "u">/etc/acam   fi   if [ $QUERY_STRING = "I=d" ]; then       echo "d">/etc/acam   fisleep 1.7echo "0">/etc/acamTABLEHEAD='		<table align="center" width="100%">		<tr>			<td align="center" width="100%" class="menu">			The AstroCam Webinterface v. 2.3.0			</td>		</tr>		<tr>			<td align="center" width="100%" class="sub">			<iframe src="/pic.html" name="Bildframe" width="390px"			height="300px" align="center" valign="center" scrolling="no"			marginheight="0" marginwidth="0" frameborder="0">			Your Browser Doesn\`t support IFrames !			</iframe>			</td>		</tr>		<tr>			<td align="center" width="100%" class="sub">			<table width="100%" align="center">			<tr>				<td align="center" class="menu" width="25%">				<a href="/cgi-bin/astrocam.cgi?I=L">&lt;&lt;</a>				</td>				<td align="center" class="menu" width="25%">				<a href="/cgi-bin/astrocam.cgi?I=l">&lt;</a>				</td>				<td align="center" class="menu" width="25%">				<a href="/cgi-bin/astrocam.cgi?I=r">&gt;</a>				</td>				<td align="center" class="menu" width="25%">				<a href="/cgi-bin/astrocam.cgi?I=R">&gt;&gt;</a>				</td>			</tr>			<tr>				<td align="center" class="menu" width="25%">				<a href="/cgi-bin/astrocam.cgi?I=u">up</a>				</td>				<td align="center" class="menu" width="25%">				<a href="/cgi-bin/astrocam.cgi?I=d">down</a>				</td>				<td align="right" class="sub" width="50%" colspan="2">				<a href="http://astrocam.doomed-reality.org">				powered by <b>astrocam</b></a>				</td>			</tr>			</table>			</td>		</tr>		<tr>			<td height="20px" class="body">			</td>		</tr>		<tr>			<td align="center" height="30px" class="body">			<a href="http://astrocam.doomed-reality.org">			<img src="/acam_h.gif" alt="powered by astrocam"></a>			</td>		</tr>		</table>'echo $TABLEHEADecho '        </td>'echo '</tr>'echo '</body>'echo '</html>'

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -