Link to admin

sultime3732

Member
YetiShare User
Wurlie User
Mar 13, 2014
48
0
6
56
France
Hello,

I would like to put a link to the administration in the footer, can you tell me how I can add this

thank you
 

ysmods

New Member
Jan 29, 2013
860
1
0
UK
www.ysmods.com
Open _footer.php

Find:
Code:
<a href="<?php echo WEB_ROOT; ?>/terms_and_conditions.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>"><?php echo t("term_and_conditions"); ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<?php echo WEB_ROOT; ?>/contact.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>"><?php echo t("contact_us"); ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.mfscripts.com/fonts_website_script.html" target="_blank">Font Site Script</a> by <a href="http://www.mfscripts.com" target="_blank">MFScripts</a><br/><br/>
    <a href="#pageTop" style="text-decoration:none;"><?php echo t("page_top"); ?></a>
</div>
Replace with:
Code:
<?php
	if($Auth->level == 'admin')
	{
		echo '<a href="'.WEB_ROOT.'/admin/login.php" target="_blank">Admin</a>&nbsp;&nbsp;|&nbsp;&nbsp;';	
	} 
	?>    
    <a href="<?php echo WEB_ROOT; ?>/terms_and_conditions.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>"><?php echo t("term_and_conditions"); ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<?php echo WEB_ROOT; ?>/contact.<?php echo SITE_CONFIG_PAGE_EXTENSION; ?>"><?php echo t("contact_us"); ?></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://www.mfscripts.com/fonts_website_script.html" target="_blank">Font Site Script</a> by <a href="http://www.mfscripts.com" target="_blank">MFScripts</a><br/><br/>
    <a href="#pageTop" style="text-decoration:none;"><?php echo t("page_top"); ?></a>
</div>