Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /home/jackjohn/public_html/cgi-bin/sc/templates/publish/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/jackjohn/public_html/cgi-bin/sc/templates/publish/dynamic.js
[-- IF PageMenu --]
var menuids=["ShopSite"]
function buildsubmenus_horizontal()
{for(var i=0;i<menuids.length;i++)
{var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
for(var t=0;t<ultags.length;t++)
{if(ultags[t].parentNode.parentNode.id==menuids[i])
{ultags[t].style.top=ultags[t].parentNode.offsetHeight+"px"
ultags[t].parentNode.getElementsByTagName("a")[0].className="mainfoldericon"}
else{ultags[t].style.left=ultags[t-1].getElementsByTagName("a")[0].offsetWidth+"px"
ultags[t].parentNode.getElementsByTagName("a")[0].className="subfoldericon"}
ultags[t].parentNode.onmouseover=function(){this.getElementsByTagName("ul")[0].style.visibility="visible"}
ultags[t].parentNode.onmouseout=function(){this.getElementsByTagName("ul")[0].style.visibility="hidden"}}}}
if(window.addEventListener)
window.addEventListener("load",buildsubmenus_horizontal,false)
else if(window.attachEvent)
window.attachEvent("onload",buildsubmenus_horizontal)
[-- END_IF --]
[-- IF MiniCart --]
function DisplayCart(name) {
var cookies=document.cookie;  //read in all cookies
var start = cookies.indexOf("ss_cart_[-- STORE_Serial_Number --]="); 
var cartvalues = "";
var linecount = 0;
var start1;
var end1;
var tmp;
if (start == -1) {
  document.write("<a class=\"miniclear\" href=\"[-- SHOPPING_CART_URL --]\" rel=\"nofollow\" title=\"[-- STORE.SC_YourShoppingCart --] - [-- STORE.Name REMOVE_HTML --]\">");
  document.write("<span class=\"cart-icon\">cart<\/span> 0 [-- STORE.Items --]");
  document.write("<\/a> ");
}
else {
  start = cookies.indexOf("=", start) +1;  
  var end = cookies.indexOf(";", start);  
  if (end == -1)
  {end = cookies.length;}
  cartvalues = unescape(cookies.substring(start,end)); //read in just the cookie data
  start = 0;
  while ((start = cartvalues.indexOf("|", start)) != -1) {
    start++;
    end = cartvalues.indexOf("|", start);
    if (end != -1) {
      linecount++;
      if (linecount == 2) {
        tmp = cartvalues.substring(start,end);
        colon = tmp.indexOf(":", 0);
        document.write("<a class=\"miniclear\" href=\"[-- SHOPPING_CART_URL --]\" rel=\"nofollow\" title=\"[-- STORE.SC_YourShoppingCart --] - [-- STORE.Name REMOVE_HTML --]\"><span class=\"cart-icon\">cart<\/span> ");
        document.write(tmp.substring(colon+1,end - start));
        if ((tmp.substring(colon+1,end - start)) == 1 )
        {document.write(" [-- STORE.Item --]");}
        else {document.write(" [-- STORE.Items --]");}
        document.write(": ");
      }
      if (linecount == 3) {
        tmp = cartvalues.substring(start,end);
        colon = tmp.indexOf(":", 0);
        document.write(tmp.substring(colon+1,end - start));
        document.write("<\/a>");
      }
      start = end;
    }
    else
      break;
    }
  }
}
[-- ELSE --]
function DisplayCart(name) {
  document.write("<a class=\"miniclear\" href=\"[-- SHOPPING_CART_URL --]\" rel=\"nofollow\" title=\"[-- STORE.SC_YourShoppingCart --] - [-- STORE.Name REMOVE_HTML --]\"><span class=\"cart-icon\">cart<\/span> [-- STORE.ViewCartText --]<\/a>");
}
[-- END_IF --]
[-- IF SC_Registration --]
function DisplayLogName(name) {
var cookies=document.cookie;
var start = cookies.indexOf(name + "=");
var name = "";
var start1;
var end1;
var tmp;
var signed_in = -1;

  if (start != -1) {
      start = cookies.indexOf("=", start) +1;
      var end = cookies.indexOf("|", start);
      if (end != -1) {
          signed_in = cookies.indexOf("|yes", start);
          name = unescape(cookies.substring(start,end));
          if (signed_in != -1) {
[-- IF PageMenu --]               document.write("<a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=3&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" rel=\"nofollow\" title=\"[-- STORE.ViewEdit --] - [-- STORE.Name REMOVE_HTML --]\">[-- STORE.Welcome --] " + name + "<\/a>");
               document.write("<a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=3&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" rel=\"nofollow\" title=\"[-- STORE.ViewEdit --] - [-- STORE.Name REMOVE_HTML --]\">[-- STORE.ViewEdit --]<\/a>");
               document.write("|<a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=4&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" rel=\"nofollow\" title=\"[-- STORE.SignOut --] - [-- STORE.Name REMOVE_HTML --]\">[-- STORE.SignOut --]<\/a>");
[-- ELSE --]               document.write("<li><a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=3&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" rel=\"nofollow\" title=\"[-- STORE.ViewEdit --] - [-- STORE.Name REMOVE_HTML --]\">[-- STORE.ViewEdit --]<\/a><\/li>");
               document.write("<li><a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=4&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" rel=\"nofollow\" title=\"[-- STORE.SignOut --] - [-- STORE.Name REMOVE_HTML --]\">[-- STORE.SignOut --]<\/a><\/li>");
[-- END_IF --]
          }
      }
  }
  if (signed_in == -1) {
[-- IF PageMenu --]      document.write("<a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=1&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" rel=\"nofollow\" title=\"[-- STORE.ToRegister --] - [-- STORE.Name REMOVE_HTML --]\">[-- STORE.ToRegister --]<\/a>");
      document.write("|<a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=2&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" rel=\"nofollow\" title=\"[-- STORE.ToSignIn --] - [-- STORE.Name REMOVE_HTML --]\">[-- STORE.ToSignIn --]<\/a>");
[-- ELSE --]      document.write("<li><a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=1&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" rel=\"nofollow\" title=\"[-- STORE.ToRegister --] - [-- STORE.Name REMOVE_HTML --]\">[-- STORE.ToRegister --]<\/a><\/li>");
      document.write("<li><a href=\"[-- SHOPPING_CART_URL BASE --]/order.cgi?func=2&amp;storeid=[-- STORE.ID --]&amp;html_reg=html\" rel=\"nofollow\" title=\"[-- STORE.ToSignIn --] - [-- STORE.Name REMOVE_HTML --]\">[-- STORE.ToSignIn --]<\/a><\/li>");
[-- END_IF --]
  }
}
[-- END_IF --]
 jQuery(document).ready(function() {
                 var $parentDiv = $('#header-full');
                 var $childDiv = $('#placeholder');
                 var $navDivone = $('#menu-left');
                 var $navDivtwo = $('#menu-right');
                 var $contentDiv = $('#content');
                 $childDiv .css('height', $parentDiv.height());
                 $navDivone .css('margin-top', $parentDiv.height());
                 $navDivtwo .css('margin-top', $parentDiv.height());
                 $contentDiv .css('min-height', $navDivone.height());           
        });

haha - 2025