403Webshell
Server IP : 27.254.152.13  /  Your IP : 216.73.217.38
Web Server : Apache/2
System : Linux ns1-252017.dragonhispeed.com 5.2.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64
User : coloflew ( 1072)
PHP Version : 5.6.40
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/coloflew/domains/fulltion.com/private_html/administrator/modules/manu_main/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/coloflew/domains/fulltion.com/private_html/administrator/modules/manu_main/index.php.bak
<script language="JavaScript">
document.onkeydown = checkKeycode 

function checkKeycode(e) {

var keycode;

if (window.event) keycode = window.event.keyCode;

else if (e) keycode = e.which;
	if(keycode == "113")
	{
		var check = $('#F2').val();
		if(check){
		window.location="index.php?name=manu_supply&file=supplyin&fullsc=fullsc&cl=tru";
		}
	}
	if(keycode == "114")
	{
		var check = $('#F3').val();
		if(check){
		window.location="index.php?name=manu_supply&file=supplyout&fullsc=fullsc&cl=tru";
		}
	}
	if(keycode == "115")
	{
		var check = $('#F4').val();
		if(check){
		window.location="index.php?name=manu_supply&file=supplytotle&fullsc=fullsc&cl=tru";
		}
	}

}

</script>
<?PHP
@$linkurl = "index.php?name=manu_main";
@$where_lang = " lang_code = '".@$lang_code."'";

if(@$_POST['DeliveryPointID']){@$point = @$_POST['DeliveryPointID'];}
if(@$_GET['DeliveryPointID']){@$point = @$_GET['DeliveryPointID'];}

if(@$point){
	@$point = str_replace("'", "\'", @$point); 
	if(@$where_f){
		@$where_f .= "  and a.LastPoint = '".@$point."'";
	}else{
		@$where_f = "  a.LastPoint = '".@$point."'";
	}	
	@$setpoint = @$point;
}else{
	/*if(@$_SESSION['member']['permistion'] != 4)
	{
		@$setpoint = @$_SESSION['member']['point'];
		//unset(@$_SESSION['SSUpdateBusProduct']);
		//@$_SESSION['SSUpdateBusProduct'] = @$setpoint;
		@$where_f = " a.LastPoint = '".@$_SESSION['member']['point']."'";
	}else
	{
		@$setpoint = 1;
		//unset(@$_SESSION['SSUpdateBusProduct']);
		//@$_SESSION['SSUpdateBusProduct'] = @$setpoint;
		@$where_f = " a.LastPoint = '1'";
	
	}*/
	@$setpoint = @$_SESSION['member']['point'];
	@$where_f = " a.LastPoint = '".@$_SESSION['member']['point']."'";
}

@$page = @$_GET['page'] ? @$_GET['page'] : 1;

@$arrpageP = @$db->getJoin("*","`better_invoicedetail` a
LEFT OUTER JOIN `better_invoice` b ON a.InvoiceID = b.InvoiceID",@$where_f." And (a.status = 1 or a.status = 7)"," order by InvoiceDetailID","");

@$arrPage = @$objMaster->viewPages(@$page, @$arrpageP, "15");

@$getproduct = @$db->getJoin("*","`better_invoicedetail` a
LEFT OUTER JOIN `better_invoice` b ON a.InvoiceID = b.InvoiceID",@$where_f." And (a.status = 1 or a.status = 7)","order by InvoiceDetailID"
,@$arrPage["offset"]);

//echo '<pre>';print_r(@$getproduct);

@$getPoint = @$db->getAll( "deliverypoint", "*",@$where_lang." and DeliveryPointStatus = '1'","" );
?>
			<!-- Page Head -->
			<h2>หน้าหลัก</h2>
			<!--<p id="page-intro">What would you like to do?</p>-->
			
			<ul class="shortcut-buttons-set">
            	
                
                <?php 
				@$flag =  @$db->getOne("permission","flg"," personnel_id='".@$id['Permistion']."' and tags ='submanu_supplyin'");?>
				<?php if(@$flag['flg']=='1'){ ?> 
                <input type="hidden" id="F2" value="F2"/>
				<li><a class="shortcut-button supply-in" 
                href="index.php?name=manu_supply&file=supplyin&fullsc=fullsc&cl=tru" id="KeyF1"><span class="png_bg">
					<?php echo @$lang_set['submanu_supplyin']."(F2)"; ?>
				</span></a></li><?php }?>
				
				<?php 
				@$flag =  @$db->getOne("permission","flg"," personnel_id='".@$id['Permistion']."' and tags ='submanu_supplyout'");?>
				<?php if(@$flag['flg']=='1'){ ?> 
                <input type="hidden" id="F3" value="F3"/>
				<li><a class="shortcut-button supply-out" 
                href="index.php?name=manu_supply&file=supplyout&fullsc=fullsc"><span class="png_bg">
					<?php echo @$lang_set['submanu_supplyout']."(F3)"; ?>
				</span></a></li><?php }?>
                
                <!--<?php 
				@$flag =  @$db->getOne("permission","flg"," personnel_id='".@$id['Permistion']."' and tags ='submanu_supplyoutdelivery'");?>
				<?php if(@$flag['flg']=='1'){ ?> 
				<li><a class="shortcut-button supply-out" 
                href="index.php?name=manu_supply&file=supplyoutdelivery&fullsc=fullsc"><span class="png_bg">
					<?php echo @$lang_set['submanu_supplyoutdelivery']; ?>
				</span></a></li><?php }?>-->
                
                 <?php 
				@$flag=@$db->getOne("permission","flg"," personnel_id='".@$id['Permistion']."' and tags ='submanu_supplyfrombus'");?>
				<?php if(@$flag['flg']=='1'){ ?> 
                <li><a class="shortcut-button supply-frombus" 
                href="index.php?name=manu_supply&file=supplyfrombus&fullsc=fullsc">
                <span class="png_bg">
					<?php echo @$lang_set['submanu_supplyfrombus']; ?>
				</span></a></li><?php }?>
                
                 <?php 
				@$flag=@$db->getOne("permission","flg"," personnel_id='".@$id['Permistion']."' and tags ='submanu_supplytobus'");?>
				<?php if(@$flag['flg']=='1'){ ?> 
                <li><a class="shortcut-button supply-tobus" 
                href="index.php?name=manu_supply&file=supplytobus&fullsc=fullsc">
                <span class="png_bg">
					<?php echo @$lang_set['submanu_supplytobus']; ?>
				</span></a></li><?php }?>
				
                <?php 
				@$flag = @$db->getOne("permission","flg"," personnel_id='".@$id['Permistion']."' and tags ='submanu_supplytotle'");?>
				<?php if(@$flag['flg']=='1'){ ?> 	
                <input type="hidden" id="F4" value="F4"/>
				<li><a class="shortcut-button supply-total" 
                href="index.php?name=manu_supply&file=supplytotle&fullsc=fullsc"><span class="png_bg">
					<?php echo @$lang_set['submanu_supplytotle']."(F4)"; ?>
				</span></a></li><?php }?>
				 <?php 
				@$flag =  @$db->getOne("permission","flg"," personnel_id='".@$id['Permistion']."' and tags ='submanu_busin'");?>
				<?php if(@$flag['flg']=='1'){ ?> 
            	<li><a class="shortcut-button bus-in" 
                href="index.php?name=manu_plan&file=busin&fullsc=fullsc"><span class="png_bg">
					<?php echo @$lang_set['submanu_busin']; ?>
				</span></a></li><?php }?>
                <?php 
				@$flag =  @$db->getOne("permission","flg"," personnel_id='".@$id['Permistion']."' and tags ='submanu_busout'");?>
				<?php if(@$flag['flg']=='1'){ ?> 
				<li><a class="shortcut-button bus-out" 
                href="index.php?name=manu_plan&file=busout&fullsc=fullsc"><span class="png_bg">
					<?php echo @$lang_set['submanu_busout']; ?>
				</span></a></li><?php }?>
                
                <?php 
				@$flag =  $db->getOne("permission","flg"," personnel_id='".$id['Permistion']."' and tags ='submanu_supplyoutincomplete'");?>
				<?php if(@$flag['flg']=='1'){ ?> 
                <input type="hidden" id="F3" value="F3"/>
				<li><a class="shortcut-button supply-in" 
                href="index.php?name=manu_supply&file=supplyoutincomplete&fullsc=fullsc"><span class="png_bg">
					<?php echo $lang_set['submanu_supplyoutincomplete']; ?>
				</span></a></li><?php }?>
			</ul><!-- End .shortcut-buttons-set -->
			
			<div class="clear"></div> <!-- End .clear -->
<?php 
@$flag=@$db->getOne("permission","flg"," personnel_id='".@$id['Permistion']."' and tags ='submanu_supplytobus'");?>
<?php if(@$flag['flg']=='1'){ ?>         
<div class="content-box" id="listData">	
	<div class="content-box-header">	
			<h3><?php echo @$lang_set['product_latetoday']; ?></h3>
			<div class="clear"></div>	
	</div>	
    <div class="content-box-content">
    	 <div class="tab-content default-tab">
         <form action="<?PHP echo @$linkurl;?>#listData" method="post" name="form_search">
            <?php if(@$_SESSION['member']['permistion'] == "4"){?>
			<?php echo @$lang_set['input_search'];?> :&nbsp;
            <select name="DeliveryPointID" id="DeliveryPointID">
						<?php 
                        if(@$getPoint){foreach($getPoint as $key => $val){
                        ?>
                        <option value="<?php echo @$val['DeliveryPointID'];?>" <?php echo (@$val['DeliveryPointID']=='' || @$val['DeliveryPointID']==@$setpoint ? "selected" : "")?>><?php echo @$val['DeliveryPointName'];?></option>
                        <?php }
                        }
                        ?>						
            </select>
            <input type="image" src="resources/images/icons/icon_search.gif"  onclick="document.forms['form_search'].submit();" />
            <?PHP }else{?>
            <input type="hidden" name="DeliveryPointID" value="<?PHP echo @$setpoint;?>" />
            <?PHP }?>
            
        </form>
             <table cellpadding="0" cellspacing="0" width="100%">
                <thead>
                    <tr>
                    	<th width="100" style="text-align:center;"><?php echo @$lang_set['CodeProduct']; ?></th>
                        <th width="75" style="text-align:center;"><?php echo @$lang_set['totalmoney']; ?></th>
                        <th style="text-align:left;"><?php echo @$lang_set['lastpoint']; ?></th>
                        <th style="text-align:left;"><?php echo @$lang_set['endpoint']; ?></th>
                        <th style="text-align:left;"><?php echo @$lang_set['invoice_date']; ?></th>
                        <!--<th width="100" align="left"><?php //echo @$lang_set['statusproduct']; ?></th>-->
                        <th style="text-align:left;"><?php echo @$lang_set['emp_name']; ?></th>
                    </tr>
                </thead>
                <?PHP if(@$getproduct){
                	foreach($getproduct as $key => $va){
					@$getlastpoint = @$db->getOne("deliverypoint","*",@$where_lang." and DeliveryPointID='".@$va['LastPoint']."'");
					@$getendpoint = @$db->getOne("deliverypoint","*",@$where_lang." and DeliveryPointID='".@$va['InvoiceEndPoint']."'");
					@$getempname = @$db->getOne("admin","*"," EmpID='".@$va['InvoiceEmpID']."'");
					@$getstatus = @$db->getOne("invoidestatus","*"," statusid='".@$va['status']."'");
				?>
                	<tr>
                    	<th width="100" align="center"><?php echo @$va['ProductCode']; ?></th>
                        <th width="75" style="text-align:right"><?php echo @$va['totalmoney']; ?></th>
                        <th style="text-align:center;"><?php echo @$getlastpoint['DeliveryPointName']; ?></th>
                        <th style="text-align:left;"><?php echo @$getendpoint['DeliveryPointName']; ?></th>
                        <th style="text-align:left;"><?php echo @$objMaster->getdbdateformat(@$va['InvoiceDate']);?></th>
                        <!--<th  align="left"><?php //echo @$getstatus['statusdesc']; ?></th>-->
                        <th style="text-align:left;"><?php echo @$getempname['EmpName']; ?></th>
                    </tr>
                 <?PHP }
				 }else{
				?>
					<tr>
						<th colspan="11" style="text-align:center"><?php echo @$lang_set['not_data']; ?></th>
					<tr>
				<?php 
				}
				?>
                 <tfoot>
                    <tr>
                        <td colspan="11">
                            <!-- Start .pagination -->	
                            <div class="pagination">
                            <?php //echo "<pre>"; print_r($arrPage['allpage']);?>
                               <?php if($arrPage['allpage']>1){?> <a href="<?PHP echo @$linkurl;?>&DeliveryPointID=<?php echo @$setpoint;?>&page=<?php echo @$arrPage["startPage"];?>#listData" title="First Page">&laquo; First</a><a href="<?PHP echo @$linkurl;?>&DeliveryPointID=<?php echo @$setpoint;?>&page=<?php echo ($arrPage["startPage"]==$page ? $page : @$page-1);?>#listData" title="Previous Page">&laquo; Previous</a>
                                 <?php if( @$arrPage["startPage"]!="" && @$arrPage["endPage"] !="" ){?>       
                                            <?php 
                                            for($i = @$arrPage["startPage"]; $i <= @$arrPage["endPage"]; ++$i) {
                                                echo'<a href="'.@$linkurl.'&DeliveryPointID='.@$setpoint.'&page='.@$i.'#listData" '.(@$page == @$i ? 'class="number current"' : '').'>'.(@$i).'</a>';
                                            }?>
                                 <?php }?>
                                <a href="<?PHP echo @$linkurl;?>&DeliveryPointID=<?php echo @$setpoint;?>&page=<?php echo ($arrPage["endPage"]==$page ? $page : @$page+1);?>#listData" title="Next Page">Next &raquo;</a><a href="<?PHP echo @$linkurl;?>&DeliveryPointID=<?php echo @$setpoint;?>&page=<?php echo @$arrPage["endPage"];?>#listData" title="Last Page">Last &raquo;</a>
                                <?php }?>
                            </div> 
                            <!-- End .pagination -->
                            <div class="clear"></div>
                        </td>
                    </tr>
                </tfoot>
             </table>
         </div>
    </div>
</div>
<?PHP }?>

Youez - 2016 - github.com/yon3zu
LinuXploit