/[fcproducts]/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 /util.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Wed Jun 6 03:18:29 2001 UTC (22 years, 9 months ago) by ravilov
Branch: pliva
CVS Tags: r0
Changes since 1.1: +0 -0 lines
first import

1 ravilov 1.1 <?
2     $msg_no_data = "<FONT SIZE=\"3\"><B><I>Access not granted.</I></B></FONT>";
3     function CheckURL($url) {
4     if ($url == "") return true;
5     $fp = @fopen($url, "r");
6     if ($fp) { fclose($fp); return true; }
7     return false;
8     }
9     function bool_fix_backend(&$val) {
10     if ($val == "") { $val = -1; return; }
11     switch ($val[0]) {
12     case 't': case 'T': $val = 1; break;
13     case 'f': case 'F': $val = 0; break;
14     default: $val = -1; break;
15     }
16     }
17     function bool_fix(&$what) {
18     array_walk($what, 'bool_fix_backend');
19     }
20     ?>

  ViewVC Help
Powered by ViewVC 1.1.26