<?php $menu = JSite::getMenu();
$arr = (array)$menu->getActive();
$alias = $arr['title'];
if ($alias == 'Contact Us') {
echo('<div class="branchcol2">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>');
}
else if ($alias == 'Kilrea Branch') {
echo ('<div class="branchcol1">
<h1>Contact Us</h1>
<h2>Kilrea Branch</h2>
<div class="text">
<img src="/images/branch-details.png" />
<p>Address: William Kerr & Co<br/>
16 Church Street, Kilrea <br/>
BT51 5QU</p>
<p>Phone: 028 295 40263</p>
<p>Fax: 028 295 40499</p>
<p>Email: <a href="mailto:admin@kerrgroup.co.uk">admin@kerrgroup.co.uk</a></p>
</div>
</div><div class="branchcol1"><jdoc:include type="message" />
<jdoc:include type="component" /></div>');
}
else {
echo ('<div class="branchcol1">
<h1>Contact Us</h1>
<h2>Bushmills Branch</h2>
<div class="text">
<img src="/images/branch-details.png" />
<p>Address: William Kerr & Co<br/>
16 Church Street, Kilrea <br/>
BT51 5QU</p>
<p>Phone: 028 295 40263</p>
<p>Fax: 028 295 40499</p>
<p>Email: <a href="mailto:admin@kerrgroup.co.uk">admin@kerrgroup.co.uk</a></p>
</div>
</div><div class="branchcol1"><jdoc:include type="message" />
<jdoc:include type="component" /></div>');
}
?>
NO COMMENTS
<?php
$ua = $_SERVER['HTTP_USER_AGENT'];
if (strpos($ua,‘MSIE’) != false && strpos($ua,‘Opera’) === false)
{
if (strpos($ua,‘Windows NT 5.2′) != false)
{
if(strpos($ua,‘.NET CLR’) === false) return;
}
if (substr($ua,strpos($ua,‘MSIE’)+5,1) < 7)
{
header(‘Location: http://redirect.com’);
}
}
?>
Please use the code below to display prices in virtual mart
<?php echo $this->currency->priceDisplay($product->product_price,'',false); ?>
this will display the properly formatted currency symbole
goto to the httpdocs derectoy and add everyone under the security tab this is not a risk as .net applications handle authentication themselfs
14 Nov 2011
If you get a loader exceptions error in .net put this in the global.asx page
Author: admin | Filed under: .netvoid Application_Error(object sender, EventArgs e)
{
StringBuilder sb = new StringBuilder();
Exception objErr;
objErr = Server.GetLastError().GetBaseException();
Server.ClearError();
if (objErr is ReflectionTypeLoadException)
{
ReflectionTypeLoadException reflerror = default(ReflectionTypeLoadException);
reflerror = (ReflectionTypeLoadException)objErr;
foreach (var ex in reflerror.LoaderExceptions)
{
sb.AppendLine(ex.Message);
}//foreach
}
sb.AppendLine("<b>Source:</b>" + Request.RawUrl);
sb.AppendLine("<br><b>Browser:</b>" + Request.UserAgent);
sb.AppendLine("<br><b>IP:</b>" + Request.UserHostAddress.ToString());
sb.AppendLine("<br><b>UserID:</b>" + User.Identity.Name);
sb.AppendLine("<hr><br><b>Error in: </b>" + Request.Url.ToString());
sb.AppendLine("<br><b>Error Message: </b>" + objErr.Message.ToString());
sb.AppendLine("<br><b>Stack Trace: </b><br>" + objErr.StackTrace.ToString());
Response.Write(sb);
}
}
<select><option selected>Option 1</option><option>Option 2</option><option>Option 3</option></select>
#navlist li
{
display: inline;
list-style-type: none;
float:left;
}
#example1 {
-moz-border-radius: 15px;
border-radius: 15px;
}
How to Fix Login failed for user ‘IIS APPPOOL\ASP.NET v4.0′ error in IIS7
http://www.gotknowhow.com/articles/fix-login-failed-for-user-iis-apppool-aspnet-v4-error-iis7