Skip to content

Commit

Permalink
Almost at 1.3-6
Browse files Browse the repository at this point in the history
  • Loading branch information
GM-Script-Writer-62850 committed Jun 29, 2013
1 parent ce54a85 commit e57494c
Show file tree
Hide file tree
Showing 12 changed files with 172 additions and 85 deletions.
4 changes: 4 additions & 0 deletions .htaccess
@@ -0,0 +1,4 @@
php_value output_handler ob_gzhandler
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript application/json
</IfModule>
14 changes: 9 additions & 5 deletions README
Expand Up @@ -126,12 +126,12 @@ Supported Browsers:
http://www.chromium.org/getting-involved/dev-channel
Safari
http://www.apple.com/safari/download/
Opera
Opera (NOT Opera Mini)
http://www.opera.com/browser/
IE 10+
http://windows.microsoft.com/en-us/internet-explorer/ie-10-worldwide-languages
IE 6-9 with google chrome frame installed
http://code.google.com/chrome/chromeframe/
http://code.google.com/chrome/chromeframe/ (EOL: January 2014)

Enabling Auto-Deletion of old scans:
cleaner.php: Old scan auto-deletion tool.
Expand All @@ -144,8 +144,8 @@ Enabling Auto-Deletion of old scans:
or this line (Will not require root unless yuo want it to work when you are not loged in)
*/5 * * * * curl http://localhost/path/to/cleaner.php

It will Check every 5 minutes for scans older than 1 hour (3600 seconds value
in cleaner.php) and deletes them.
It will Check every 5 minutes for scans older than 1 day (86400 seconds value
in cleaner.php) and deletes them.

Frequently asked questions/issues:
The brightness and contrast options do not work on lucid lynx.
Expand All @@ -162,6 +162,8 @@ Frequently asked questions/issues:
https://launchpad.net/~ubuntu-security/+archive/ppa/+buildjob/2086533/+files/imagemagick_6.6.2.6-1ubuntu1.1_i386.deb
Why should I enable auto delete?
So your Hard Drive does not end up full of scans
What does EOL stand for
End Of Life, meaning it will no longer receive updates
Every time I load a page it is blank.
Somehow there is a error somewhere check your apache error log for
for me the file was located at
Expand All @@ -177,6 +179,8 @@ Frequently asked questions/issues:
Try making the image larger the text is probably too small for tesseract-ocr to read
How can I change the amount of free disk space to warn at
It is set on line 3 of index.php
How can I turn the auto update checker off
It is set on line 6 of index.php
How can I change the time files are kept with auto-delete enabled
Open cleaner.php and change the 3600 on line 7 to a different number (3600 is one hour in seconds)
I see my scanner with the command "scanimage -L" but it is not being detected
Expand All @@ -188,7 +192,7 @@ Frequently asked questions/issues:
scanner-access-enabler-1.4.tar.bz2 (http://www.mediafire.com/?4r1aw9ix9ayb0u0)
Why can't I change the orientation on the scan page
because the selected paper size will not fit in the scanner one way
Why is the pdf download not working I keep getting a file with a error in it
Why is the pdf download (single page) not working I keep getting a file with a error in it
The script assumes fpdf.php is located in /usr/share/php/fpdf/ this is set on line 2 of download.php

Credit where credit is due:
Expand Down
2 changes: 1 addition & 1 deletion download.php
Expand Up @@ -17,7 +17,7 @@ function ext2mime($ext){
header("Content-type: application/x-bzip");
$t=time();
header("Content-Disposition: attachment; filename=\"PHP-Scanner-Server".addslashes($_GET['ver']).".tar.bz2\"");
shell_exec("tar cjf /tmp/scanner-$t.tar.bz2 --exclude=\"scans/*\" --exclude=\"config/*.json\" --exclude=\"IMGUR_API_KEY.txt\" --exclude=\"password.md5\" ./");
shell_exec("tar cjf /tmp/scanner-$t.tar.bz2 --exclude=\"scans/*\" --exclude=\"config/*.json\" --exclude=\"config/*.txt\" ./");// '--exclude=\"password.md5\"' What was this in there for?
$file=file_get_contents("/tmp/scanner-$t.tar.bz2");
header('Content-Length: '.strlen($file));
echo $file;
Expand Down
2 changes: 1 addition & 1 deletion inc/config.php
Expand Up @@ -13,7 +13,7 @@
Make sure all scanners are plugged in and turned on.
<br/><input type="hidden" name="action" value="Search-For-Scanners">
<input type="submit" value="Search For Scanners" onclick="printMsg('Searching For Scanners','Please Wait...','center',0);"/>
<br/><a href="index.php?action=Parallel-Form">Parallel Scanner Configuration</a>
<br/><a href="index.php?page=Parallel-Form">Parallel Scanner Configuration</a>
<br/><a href="index.php?page=Device%20Notes">Scanner List</a> | <a href="index.php?page=Access%20Enabler" title="For stubborn scanners">Access Enabler</a>
</p>
</form>
Expand Down
31 changes: 23 additions & 8 deletions inc/header.php
Expand Up @@ -16,24 +16,37 @@
<script type="text/javascript" src="jquery.imgareaselect-0.9.10/scripts/jquery.min.js"></script>
<script type="text/javascript" src="jquery.imgareaselect-0.9.10/scripts/jquery.imgareaselect.pack.js"></script>
<script type="text/javascript" src="inc/main.js"></script>
<!--[if lt IE 9]><script type="text/javascript">TC='innerText';</script>
<style type="text/css">.imgareaselect-handle,.imgareaselect-outer{filter:alpha(opacity=50);}</style><![endif]-->
</head>

<body>
<div id="blanket" style="display:none;background-color:transparent;"><div id="popUpDiv" style="opacity:0;"></div></div>
<div id="container">

<div id="header">

<div class="tab">
<div class="tab<?php echo in_array($GLOBALS['PAGE'],Array("Config","About","Paper Manager","Access Enabler","Device Notes","Parallel-Form"))?' active':''; ?>">
<a href="index.php?page=Config">Configure</a>
<div class="topleft top"></div>
<div class="bottomleft bottom"></div>
<div class="topright top"></div>
<div class="bottomright bottom"></div>
</div>

<div class="tab">
<div class="tab<?php echo in_array($GLOBALS['PAGE'],Array("Scans","View","Edit"))?' active':''; ?>">
<a href="index.php?page=Scans">Scanned Files</a>
<div class="topleft top"></div>
<div class="bottomleft bottom"></div>
<div class="topright top"></div>
<div class="bottomright bottom"></div>
</div>

<div class="tab">
<div class="tab<?php echo $GLOBALS['PAGE']=="Scan"?' active':''; ?>">
<a href="index.php?page=Scan">Use Scanner</a>
<div class="topleft top"></div>
<div class="bottomleft bottom"></div>
<div class="topright top"></div>
<div class="bottomright right bottom"></div>
</div>

<div class="tab">
Expand All @@ -47,14 +60,16 @@
<noscript id="nojs">
<div style="height:auto;" class="message">
<h2>JavaScript Disabled</h2>
<p>This application requires JavaScript to function. Please enable JavaScript, then reload this page.
</p>
<p>This application requires JavaScript to function. Please enable JavaScript, then reload this page.</p>
</div>
</noscript>

<!--[if lt IE 9]>
<div style="height:auto;text-align:center;" class="message ie">
<h2>Error: Legacy browsers are not supported</h2>
<p>Please install <a href="http://www.mozilla.com/firefox/">Mozilla Firefox</a> (Recommended) alternatively, you may use<br/><a href="http://lmgtfy.com/?q=Internet+Explorer+9+Download&l=1">Internet Explorer 9</a> (Windows Vista and 7 only) or <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a>.</p>
<h2>Error: Legacy Browsers are NOT Supported</h2>
<p>You can view the list of supported browsers in the <a href="index.php?page=About">release notes</a>.<br/>
Please install <a href="http://www.mozilla.com/firefox/">Mozilla Firefox</a> (Recommended) alternatively, you may use<br/>
<a href="http://lmgtfy.com/?q=Internet+Explorer+10+Download&l=1">Internet Explorer 10</a> (Windows 7 and 8 only) or <a href="http://code.google.com/chrome/chromeframe/">Google Chrome Frame</a> <sup><i>EOL January 2014</i></sup> for Internet Explorer.
</p>
</div>
<![endif]-->

0 comments on commit e57494c

Please sign in to comment.