Location: PHPKode > scripts > ECW commerce shop > ecw-commerce-shop-6-03/index.php
<?

require("./conf.php");
require("./lang.php");
$serv=getenv("SERVER_NAME");
$shl=getenv("SCRIPT_NAME");
$shl=ereg_replace("index.php","",$shl);

if ( $https=='1')
{ $url="https://$serv"."$shl"."index.php";}
  else
{   $url="./index.php";  }

mysql_connect("$host_name","$db_user","$db_password");
mysql_select_db("$db_name");

session_name("id");
session_register('zamovl');

if (($login!=="") and ($upass!=="") and ($c=="signup"))
 {
  session_register('user_mass');
  $user_mass[upass]=$upass;
  $user_mass[login]=$login;
 }
else
{
$sql="SELECT * FROM $table_info WHERE login='$login' and passwd='$upass'";
$rez=mysql_query("$sql");
@$mass=mysql_fetch_array($rez);
if (($login!="") and ($upass!="") and ($mass[0]<>""))
 {
  session_register('user_mass');
  $user_mass[upass]=$upass;
  $user_mass[login]=$login;
 }

}
session_start();

  if ($logout=='yes')
 {  $user_mass[upass]='';
   $user_mass[login]='';
 }
$zamovl['0']=0;




if ($c=="signup")
 { echo $popup;
 if (($version==1) and ($memf=='1')){ 
 require ("./signup.php");
 }
 else {$m="1"; require ("./pay.php");}
 }

if ($c=="forgot")
 { echo $popup;
 if (($version=='1') and ($memf=='1')){
  require ("./forgot.php");
  }
  else 
  {$m="1"; require ("./pay.php");}
 }

 if ($c=="login")
 { echo $popup;
  if ($memf==0)
  { $m=1;require("./pay.php");}
  else{  require ("./login.php");}
 }

if ($c=="")
 {
   echo $title;
   require "./category.php";
 }

if ($c=="orders")
 {  echo $title;
  require "./orders.php";
 }

if ($c=="more")
   { echo $popup;
   require "./more.php";
   }

if ($c=="reg")
   {echo $title;
   require "./forms_reg.php";
   }
 if ($c=="regone")
   {  echo $title;
      require "./forms_one.php";
   }


if (($c=="mem") && ($uedit=="on"))
 {
  echo "$title";
  require "./member.php";
 }

if (($c=="mem") && ($uedit<>"on"))
 {  echo "$title";
 
 require "./category.php";}

if ($c=="srch")
{
 echo $title;
 require "./search.php";
}
if ($c=="add")
{  echo "$title";
   {require "./prev.php";}
}
if ($c=="detail")
{ echo $popup;
require "./detail.php";
}
if ($c=="image")
{
echo "$popup";
require "./image.php";
}

if ($c=="forms")
   {
         if ($memf=='0')
         {
         $c=regone;
         require ("./index.php");
         exit;
         }
  require "./forms.php";
  }

echo $bottom;
?>
Return current item: ECW commerce shop