]> git.plutz.net Git - busy/blobdiff - Error.page
started Admin interface, integrated flattr
[busy] / Error.page
index 519dfbb1b26a9e6a5bbcfba1c0ca305e79f45a43..98538b9b480dedcbf906b023ef963af273359c11 100644 (file)
 # You should have received a copy of the GNU Affero General Public License
 # along with Busy.  If not, see <http://www.gnu.org/licenses/>.
  
-reason=$(egrep -o '(^|&)r=.+(&|$)' <<<"${QUERY_STRING}" |sed 's,&,,g;s,r=,,')
+[ -z "$reason" ] && reason=$(egrep -o '(^|&)r=.+(&|$)' <<<"${QUERY_STRING}" |sed 's,&,,g;s,r=,,')
 [ -z "$reason" ] && reason="other"
 
-echo '<h2>Error</h2>'
+echo "
+<div id='MAIN'>
+<h2>Error</h2>
+"
 case "${reason}" in
   tooSmall) echo 'You need to select a file for uploading.'
     ;;
@@ -33,3 +36,4 @@ case "${reason}" in
   *) echo 'Unknown generic fuckup :-('
     ;;
 esac
+echo "</div>"