Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Took out functions that aren't currently being used anymore.
  • Loading branch information
emrickj committed May 5, 2018
1 parent fb8304b commit 3d6a5b1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 67 deletions.
8 changes: 0 additions & 8 deletions dspcnt.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
59 changes: 0 additions & 59 deletions dspmenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<li".$bs."><a href='?".$us."p=".$i."'>"
. str_replace('"fa','"fa fa-fw',ic_html($x->page[$i-1]->name)) . "</a></li>\n";
if(intval($ws)==2 && strlen($x2->page[$i-1]->name)>2)
echo "<li".$bs2."><a href='?".$us."w=2&p=".$i."'>"
. str_replace('"fa','"fa fa-fw',ic_html($x2->page[$i-1]->name)) . "</a></li>\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 "<li><a class='dropdown-item".$bs."' href='?".$us."p=".$i."'>"
. str_replace('"fa','"fa fa-fw',ic_html($x->page[$i-1]->name)) . "</a></li>\n";
if(intval($ws)==2 && strlen($x2->page[$i-1]->name)>2)
echo "<li><a class='dropdown-item".$bs2."' href='?".$us."w=2&p=".$i."'>"
. str_replace('"fa','"fa fa-fw',ic_html($x2->page[$i-1]->name)) . "</a></li>\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 "<li class='nav-item'><a class='nav-link".$bs."' href='?".$us."p=".$i."'>"
. str_replace('"fa','"fa fa-fw',ic_html($x->page[$i-1]->name)) . "</a></li>\n";
if(intval($ws)==2 && strlen($x2->page[$i-1]->name)>2)
echo "<li class='nav-item'><a class='nav-link".$bs2."' href='?".$us."w=2&p=".$i."'>"
. str_replace('"fa','"fa fa-fw',ic_html($x2->page[$i-1]->name)) . "</a></li>\n";
}
}

function displayMenu_a() {
$pn = $GLOBALS['page'];
$i=1;
Expand Down

0 comments on commit 3d6a5b1

Please sign in to comment.