X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=web%2Fcommon_php.inc;fp=web%2Fcommon_php.inc;h=0000000000000000000000000000000000000000;hb=39f4c44e000d410b4f63ab1fcdc4b04273ff0a83;hp=b2a4037531be800fcd79e27fdc218591af9fd779;hpb=afa4a2a62381d2502254a8928216f11509aa1b7d;p=glabels
diff --git a/web/common_php.inc b/web/common_php.inc
deleted file mode 100644
index b2a40375..00000000
--- a/web/common_php.inc
+++ /dev/null
@@ -1,255 +0,0 @@
-\n";
- ?>
-
-";
- print "root_dir = \"$root_dir\"
";
- print "htroot = \"$htroot\"
";
- print "root = \"$root\"
";
- }
-
- #-------------------------------------------------------
- # Print root URL
- #-------------------------------------------------------
- function root()
- {
- global $root;
-
- print $root;
- }
-
- #-------------------------------------------------------
- # Construct and print img tag
- #-------------------------------------------------------
- function img($src, $alt)
- {
- global $root;
- global $root_dir;
-
- if (substr($src,0,1) == "/") {
- $size = GetImageSize("$root_dir$src");
- print "";
- } else {
- $size = GetImageSize("$src");
- print "";
- }
- }
-
- #-------------------------------------------------------
- # Construct and print img tag with explicit size, NULL alt
- #-------------------------------------------------------
- function img_size($src, $w, $h)
- {
- global $root;
-
- $alt = "";
-
- if (substr($src,0,1) == "/") {
- print "";
- } else {
- print "";
- }
- }
-
- #-------------------------------------------------------
- # Construct and print link (a) tag
- #-------------------------------------------------------
- function a($href, $text)
- {
- global $root;
-
- if (substr($href,0,1) == "/") {
- print "$text";
- } else {
- print "$text";
- }
- }
-
- #-------------------------------------------------------
- # Construct and print link (a) tag to a downloadable file
- #-------------------------------------------------------
- function a_file($href)
- {
- global $root;
-
- $text = basename($href);
-
- if (substr($href,0,1) == "/") {
- print "$text";
- } else {
- print "$text";
- }
- }
-
- #-------------------------------------------------------
- # Construct and print link (a) tag to a sf dl file
- #-------------------------------------------------------
- function a_sfdownload($file)
- {
- print "$file";
- }
-
- #-------------------------------------------------------
- # Construct and print link (a) tag to a web address
- #-------------------------------------------------------
- function a_host($host)
- {
- global $root;
-
- print "$host";
- }
-
- #-------------------------------------------------------
- # Construct and print mailto (a) tag
- #-------------------------------------------------------
- function a_mailto($email)
- {
- print "$email";
- }
-
- #-------------------------------------------------------
- # Common Header and navigation
- #-------------------------------------------------------
- function gLabelsHeader($tab)
- {
- global $root;
-
- $tabs["$root/"] = "home";
- $tabs["$root/news/"] = "news";
- $tabs["$root/screenshots/"] = "screenshots";
- $tabs["$root/download/"] = "download";
- $tabs["$root/doc/"] = "docs";
- $tabs["$root/faq/"] = "FAQ";
- $tabs["$root/contact/"] = "contact";
- $tabs["$root/links/"] = "links";
-
-?>
-
-
-
-
-