From 3d6a5b160d2b318f508c39365e02d5492b514361 Mon Sep 17 00:00:00 2001 From: John Emrick Date: Sat, 5 May 2018 10:51:43 -0400 Subject: [PATCH] Add files via upload Took out functions that aren't currently being used anymore. --- dspcnt.php | 8 -------- dspmenu.php | 59 ----------------------------------------------------- 2 files changed, 67 deletions(-) diff --git a/dspcnt.php b/dspcnt.php index 18a882a..7ad9d14 100644 --- a/dspcnt.php +++ b/dspcnt.php @@ -34,14 +34,6 @@ function paginatePage($pn) { } } -function dispContents($pn,$u="",$wn=1) { - $x = $GLOBALS['xml']; - $x2 = $GLOBALS['xml2']; - if($u!="") $us="u=".$u."&"; else $us=""; - if (intval($wn)==1) echo str_replace('"?p=','"?'.$us.'p=',trim($x->page[$pn-1]->contents)); - if (intval($wn)==2) echo str_replace('"?p=','"?'.$us.'w=2&p=',trim($x2->page[$pn-1]->contents)); -} - function sendEmail($n,$e,$s,$m) { mail("emrickj248@comcast.net",$s,$m,"From: ".$n." <".$e.">"); return true; diff --git a/dspmenu.php b/dspmenu.php index accf2f1..cf8e0f6 100644 --- a/dspmenu.php +++ b/dspmenu.php @@ -52,65 +52,6 @@ function displayMenu_xn($pname,$ws=1) { } } - -function displayMenu($pn,$as="active",$wn=1,$ws=1) { - $x = $GLOBALS['xml']; - $x2 = $GLOBALS['xml2']; - $u = $GLOBALS['b']; - $n = $GLOBALS['name']; - if($u!="") $us="u=".ltrim($u,"_")."&"; else $us=""; - for($i=1;$i<=6;$i++) { - if($i==$pn && intval($wn)==1 && $n=="") $bs=" class='".$as."'"; else $bs=""; - if($i==$pn && intval($wn)==2 && $n=="") $bs2=" class='".$as."'"; else $bs2=""; - if(intval($ws)==1 && strlen($x->page[$i-1]->name)>2) - echo "" - . str_replace('"fa','"fa fa-fw',ic_html($x->page[$i-1]->name)) . "\n"; - if(intval($ws)==2 && strlen($x2->page[$i-1]->name)>2) - echo "" - . str_replace('"fa','"fa fa-fw',ic_html($x2->page[$i-1]->name)) . "\n"; - } -} - -// function below is used for Bootstrap 4.0 Dropdowns - -function displayMenu_dd($pn,$wn=1,$ws=1) { - $x = $GLOBALS['xml']; - $x2 = $GLOBALS['xml2']; - $u = $GLOBALS['b']; - $n = $GLOBALS['name']; - if($u!="") $us="u=".ltrim($u,"_")."&"; else $us=""; - for($i=1;$i<=6;$i++) { - if($i==$pn && intval($wn)==1 && $n=="") $bs=" active"; else $bs=""; - if($i==$pn && intval($wn)==2 && $n=="") $bs2=" active"; else $bs2=""; - if(intval($ws)==1 && strlen($x->page[$i-1]->name)>2) - echo "
  • " - . str_replace('"fa','"fa fa-fw',ic_html($x->page[$i-1]->name)) . "
  • \n"; - if(intval($ws)==2 && strlen($x2->page[$i-1]->name)>2) - echo "
  • " - . str_replace('"fa','"fa fa-fw',ic_html($x2->page[$i-1]->name)) . "
  • \n"; - } -} - -// function below is used for Bootstrap 4.0 Navigation Bars - -function displayMenu_nb($pn,$wn=1,$ws=1) { - $x = $GLOBALS['xml']; - $x2 = $GLOBALS['xml2']; - $u = $GLOBALS['b']; - $n = $GLOBALS['name']; - if($u!="") $us="u=".ltrim($u,"_")."&"; else $us=""; - for($i=1;$i<=6;$i++) { - if($i==$pn && intval($wn)==1 && $n=="") $bs=" active"; else $bs=""; - if($i==$pn && intval($wn)==2 && $n=="") $bs2=" active"; else $bs2=""; - if(intval($ws)==1 && strlen($x->page[$i-1]->name)>2) - echo "\n"; - if(intval($ws)==2 && strlen($x2->page[$i-1]->name)>2) - echo "\n"; - } -} - function displayMenu_a() { $pn = $GLOBALS['page']; $i=1;