if (isset($p1) and $p1) { define('P1',$p1); } else { define('P1',false); } if (isset($p2) and $p2) { define('P2',$p2); } else { define('P2',false); } if (isset($p3) and $p3) { define('P3',$p3); } else { define('P3',false); } if (isset($p4) and $p4) { define('P4',$p4); } else { define('P4',false); } if (isset($p5) and $p5) { define('P5',$p5); } else { define('P5',false); } if (isset($p5) and $p5) { $psor='/'.$p1.'/'.$p2.'/'.$p3.'/'.$p4.'/'.$p5; } else if (isset($p4) and $p4) { $psor='/'.$p1.'/'.$p2.'/'.$p3.'/'.$p4; } else if (isset($p3) and $p3) { $psor='/'.$p1.'/'.$p2.'/'.$p3; } else if (isset($p2) and $p2) { $psor='/'.$p1.'/'.$p2; } else if (isset($p1) and $p1) { $psor='/'.$p1; } else { $psor=''; } define('PSOR',$psor);$smarty->assign("psor",PSOR); if (isset($p5) and $p5) { $p5sor='/'.$p1.'/'.$p2.'/'.$p3.'/'.$p4.'/'.$p5; } else { $p5sor=false; } define('P5SOR',$p5sor); $smarty->assign("p5sor",P5SOR); if (isset($p4) and $p4) { $p4sor='/'.$p1.'/'.$p2.'/'.$p3.'/'.$p4; } else { $p4sor=false; } define('P4SOR',$p4sor); $smarty->assign("p4sor",P4SOR); if (isset($p3) and $p3) { $p3sor='/'.$p1.'/'.$p2.'/'.$p3; } else { $p3sor=false; } define('P3SOR',$p3sor); $smarty->assign("p3sor",P3SOR); if (isset($p2) and $p2) { $p2sor='/'.$p1.'/'.$p2; } else { $p2sor=false; } define('P2SOR',$p2sor); $smarty->assign("p2sor",P2SOR);