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

Contents of /inc/util.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations)
Thu Aug 30 16:35:36 2001 UTC (17 years, 8 months ago) by ravilov
Branch: MAIN
Started major site rearrangement. Minor bugfixes.

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 function PicSize($pic) {
18 global $syspicdir;
19 $ret = array(0, 0);
20 if ($pic) {
21 @$size = GetImageSize($syspicdir."/".$pic);
22 $ret = array($size[0], $size[1]);
23 }
24 return $ret;
25 }
26
27 $isEdit = stristr($PHP_SELF, "/edit/") ? true : false;
28 $isMed = false; /* */
29 header("Content-Type: text/html; charset=ISO-8859-2");
30 ?>

  ViewVC Help
Powered by ViewVC 1.1.26