@session_start();
/*
if (strpos($SCRIPT_NAME,"/cms/") >0 && strpos($SCRIPT_NAME,"index.php")==0 && strpos($SCRIPT_NAME,"LoginVerify.php")==0 && strpos($SCRIPT_NAME,"LoginVerify.php")==0)
{
//global $mpcb_auth;
if ($mpcb_auth=="")
{ ?>
}
}*/
@ob_start();
@session_start();
//session_cache_limiter('private,must-revalidate');
//Database variables
$DB='';
//$DB_NAME="mwshop";
//$DB_NAME="mwshop";^M
$DB_NAME="mworld";
$DB_USER="niranjan";
$DB_PASSWORD="fish";
$dsn="mysql://$DB_USER:$DB_PASSWORD@localhost/$DB_NAME";
//Default value for No. of records per page
$max=30;
$debug=0;
$max1=3;
$WhatNum = 5;
$RowBackGround="onmouseover=\"javascript:style.background='#e5e5e5'\" onmouseout=\"javascript:style.background=''\"";
/*Do not change any values below this line. Change in values will harm in the working of interface*/
//$SERVER=$_SERVER[HTTP_HOST];
$SERVER=$HTTP_HOST;
$web_dir="http://$SERVER/mwshop/";
$IMGPATH="$web_dir/images";
$INCPATH="$web_dir/include";
//$UPLOAD_PATH="/var/www/html/SmallSaving/Upload";
//$UPLOAD_PATH="e:/SmallSaving/maha-ss.com/Upload";
$UPLOAD_PATH="/home/SmallSaving/maha-ss.co.in/Upload";
$Upload_prgs_path="$UPLOAD_PATH/Prgs";
$Upload_emp_path="$UPLOAD_PATH/Employee";
$Upload_agent_path="$UPLOAD_PATH/Agent";
$Upload_docs="$UPLOAD_PATH/Docs";
$Upload_photo="$UPLOAD_PATH/Photo";
//Photogallry dispalay path
$Disp_photo_gallary = "$web_dir/Upload/Photo";
//Upload file parameters
$Upload_maxsize = "40960"; # max 40 Kb
$Upload_block_ext = array(".a",".exe"); # define file extension to reject
$Upload_image_types = array(".gif",".jpeg",".jpg"); # define file extension to accept for photo
$Upload_doc_types = array('.doc','.txt','.pdf','.htm','.html','.rtf');
//Session variables
/*$SESSION_USERID='Login_id';
$SESSION_TYPE='Login_type';
$SESSION_MENU_RIGHTS='Login_menurights';
$SESSION_OFFICE_CD='Login_office_cd';
$SESSION_DESIGNATION='Login_desg';
$SESSION_DESIGNATION_ABBR='Login_desg_abbr';
$SESSION_EmpCode='Login_emp_code';
$SESSION_Name="Login_fullname";
$SESSION_Franchisee='Franchisee';*/
include_once "include/Masters_data_list.php";
//print $_SERVER[SCRIPT_NAME];
function start_html($title,$image='',$alt='',$refresh='')
{
db_connect();
global $INCPATH,$IMGPATH,$auth_user,$auth_admin;
?>
Home
| Disclaimer
| Terms & Conditions
if($auth_user!='' && $auth_admin=='')
{
?>
| Signout
| Edit profile
| Edit preferences
}
$getu=(mysql_fetch_object(mysql_query("SELECT * FROM user WHERE user_id='$auth_user'")));
if($getu->bfname=="")
$getu->bfname="Guest";
if($getu->user_id=="")
$user_id=session_id();
$nos=mysql_num_rows(mysql_query("SELECT * FROM cart_trans WHERE user_id='$user_id' "));
//print "*** $user_id";
?>
}
function pghead($file)
{
//echo "select pghead from user_rights where prg='$file'";
$qryfet=mysql_query("select pghead from user_rights where prg='$file'");
$rsfet=mysql_fetch_object($qryfet);
$title=$rsfet->pghead;
echo "$title";
}
function display_cur_session()
{
global $_SESSION,$web_dir,$SESSION_USERID,$SESSION_TYPE,$SESSION_Name,$SESSION_DESIGNATION;
if($_SESSION[$SESSION_TYPE]){
print " ";
if($_SESSION[$SESSION_TYPE]=='E'){
include_once "DB.php";
db_connect();
$dsg = ExecuteQuery("select Dsg_desc from Emp_designation_mast where Dsg_cd ='$_SESSION[$SESSION_DESIGNATION]'");
db_close();
print "".$_SESSION[$SESSION_Name]." (".$dsg[Dsg_desc].") ".date("d/m/Y")." ";
}
elseif($_SESSION[$SESSION_TYPE]=='A')
print "".$_SESSION["$SESSION_Name"]." (".$_SESSION["$SESSION_USERID"].") ".date("d/m/Y")." ";
elseif($_SESSION[$SESSION_TYPE]=='N' && $_SESSION[$SESSION_USERID])
print "".$_SESSION["$SESSION_USERID"]." ".date("d/m/Y")." ";
print " ";
print "
";
}
}
function page_header($pagetitle,$MM=1)
{
print "";
}
function end_html()
{
global $IMGPATH;
$str="