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

Contents of /util.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations)
Wed Jun 6 08:37:01 2001 UTC (18 years ago) by ravilov
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -0 lines
Mijenjanje product-a, logout...

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

  ViewVC Help
Powered by ViewVC 1.1.26