/[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

Annotation of /inc/util.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations)
Wed Sep 19 12:23:57 2001 UTC (17 years, 11 months ago) by ravilov
Branch: MAIN
Changes since 1.1: +7 -4 lines
Added thefilez/med/ (PLIVAmed site). Other major changes...

1 ravilov 1.1 <?php
2     function MyQuote($str) {
3     global $dbh;
4     if (!$dbh) return "'$str'";
5     return $dbh->quote($str);
6     }
7    
8     function MyMove($src, $dest) {
9     $cmd = "mv -f '".EscapeShellCmd($src)."' '".EscapeShellCmd($dest)."'";
10     return exec($cmd);
11     }
12    
13     function MyDelete($src) {
14     @unlink($src);
15     }
16    
17 ravilov 1.2 function PicSize($pic, $dir = "") {
18 ravilov 1.1 $ret = array(0, 0);
19     if ($pic) {
20 ravilov 1.2 if (!$dir) {
21     global $syspicdir;
22     $dir = $syspicdir;
23     }
24     @$size = GetImageSize($dir."/".$pic);
25 ravilov 1.1 $ret = array($size[0], $size[1]);
26     }
27     return $ret;
28     }
29    
30     $isEdit = stristr($PHP_SELF, "/edit/") ? true : false;
31 ravilov 1.2 $isMed = stristr($PHP_SELF, "/med/") ? true : false;
32 ravilov 1.1 header("Content-Type: text/html; charset=ISO-8859-2");
33     ?>

  ViewVC Help
Powered by ViewVC 1.1.26