jayesh_akbari Posted September 15, 2017 Share Posted September 15, 2017 Hello guys, my developer run away from project and what he made are following in header.tpl file... can anyone explain me what it mean? *New page style*} {if $SCRIPT_NAME == "/Lisa-style-guid.php" || $SCRIPT_NAME == "/index.php" || $SCRIPT_NAME == "/hosting.php" || $SCRIPT_NAME == "/styleguide.php" || $SCRIPT_NAME == "/reseller-fibre.php" || $SCRIPT_NAME == "/serverstatus.php" || $SCRIPT_NAME == "/live-chat.php" || $SCRIPT_NAME == "/about/legal.php" || $SCRIPT_NAME == "/about.php" || $SCRIPT_NAME == "/about/careers.php" || $SCRIPT_NAME == "/get-more-data.php" || $SCRIPT_NAME == "/concurrent-free-accounts.php" || $SCRIPT_NAME == "/clientvoip.php" && $loggedin eq false || $SCRIPT_NAME == "/clientrica.php" && $loggedin eq false || $SCRIPT_NAME == "/debitmandate.php" && $loggedin eq false } {assign var="isWaLisaPage" value= true} {else} {*All other older pages*} {*Website static php pages*} {if $SCRIPT_NAME == "/announcementsrss.php" || $SCRIPT_NAME == "/banned.php" || $SCRIPT_NAME == "/fax-solutions.php" || $SCRIPT_NAME == "/midnight.php" || $SCRIPT_NAME == "/geodomain.php" || $SCRIPT_NAME == "/fibre/parkhurst.php" || $SCRIPT_NAME == "/fibre/parkhurst.php" || $SCRIPT_NAME == "/fibre/suburb.php" || $SCRIPT_NAME == "/web-design.php" || $SCRIPT_NAME == "/fibre-sub-new.php" || $SCRIPT_NAME == "/uncapped-lisa.php" || $SCRIPT_NAME == "/wa-elements.php" || $SCRIPT_NAME == "/web-design-v2.php" } {assign var="isWebsitePage" value=true} 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Developer WHMCS Andrew Posted September 15, 2017 WHMCS Developer Share Posted September 15, 2017 The code is checking the current page being loaded and assigning a variable depending on what it is. I would guess this variable ( {$isWaLisaPage} or {$isWebsitePage} ) is used elsewhere in your template? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.