/[health_html]/inc/util.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /inc/util.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by ravilov, Thu Aug 30 16:35:36 2001 UTC revision 1.2 by ravilov, Wed Sep 19 12:23:57 2001 UTC
# Line 14  Line 14 
14                  @unlink($src);                  @unlink($src);
15          }          }
16    
17          function PicSize($pic) {          function PicSize($pic, $dir = "") {
                 global $syspicdir;  
18                  $ret = array(0, 0);                  $ret = array(0, 0);
19                  if ($pic) {                  if ($pic) {
20                          @$size = GetImageSize($syspicdir."/".$pic);                          if (!$dir) {
21                                    global $syspicdir;
22                                    $dir = $syspicdir;
23                            }
24                            @$size = GetImageSize($dir."/".$pic);
25                          $ret = array($size[0], $size[1]);                          $ret = array($size[0], $size[1]);
26                  }                  }
27                  return $ret;                  return $ret;
28          }          }
29    
30          $isEdit = stristr($PHP_SELF, "/edit/") ? true : false;          $isEdit = stristr($PHP_SELF, "/edit/") ? true : false;
31          $isMed = false; /* */          $isMed = stristr($PHP_SELF, "/med/") ? true : false;
32  header("Content-Type: text/html; charset=ISO-8859-2");  header("Content-Type: text/html; charset=ISO-8859-2");
33  ?>  ?>

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.26