~adamzammit/quexf/main

« back to all changes in this revision

Viewing changes to showpage.php

  • Committer: Adam Zammit
  • Date: 2014-07-16 02:28:24 UTC
  • Revision ID: adam.zammit@acspri.org.au-20140716022824-sjgipkswkfwyi5ij
New Feature: Allow for images from scanned forms to be stored as files instead of in the database

Show diffs side-by-side

added added

removed removed

Lines of Context:
98
98
 
99
99
                if (empty($row)) exit;
100
100
 
101
 
                $im = imagecreatefromstring($row['image']);
 
101
    if ($row['filename'] == '')
 
102
    {
 
103
      $im = imagecreatefromstring($row['image']);
 
104
    }
 
105
    else
 
106
    {
 
107
      $im = imagecreatefrompng(IMAGES_DIRECTORY . $row['filename']);
 
108
    }
102
109
 
103
110
                if (isset($_GET['bid']))
104
111
                {