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_masterbus/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/coloflew/domains/fulltion.com/private_html/administrator/modules/manu_masterbus/point.php
<?php 
$linkUrl = "index.php?name=manu_masterbus&file=point&RouteID=".$_GET['RouteID'];
if(@$_GET['act']=="add"){
	@$arrData = array();
		
	@$arrData['PointTime']			= @$_POST['PointTime'];	
	@$arrData['PointStop']			= @$_POST['PointStop'];	
	@$arrData['PointSequence']		= @$_POST['PointSequence'];
	@$arrData['DeliveryPointID']		= @$_POST['DeliveryPointID'];
	@$arrData['PointPeriodic']		= @$_POST['PointPeriodic'];
	@$arrData['RouteID']				= @$_GET['RouteID'];
				
	foreach(@$arrData as $k => $v ){
		@$arrData[@$k] = str_replace("'", "\'", @$v); 
	}
	//echo "<pre>"; print_r(@$arrData);
	//exit;
	@$db->insertData("routexpoint",@$arrData);
	
	//exit;
	@$msg = "เพิ่มข้อมูลสมบูรณ์";
	@$res = true;
}elseif(@$_GET['act']=="editdata"){
	@$arrData = array();
	
	@$arrData['PointTime']			= @$_POST['PointTime'];	
	@$arrData['PointStop']			= @$_POST['PointStop'];	
	@$arrData['PointSequence']		= @$_POST['PointSequence'];
	@$arrData['DeliveryPointID']		= @$_POST['DeliveryPointID'];
	@$arrData['PointPeriodic']		= @$_POST['PointPeriodic'];
	@$arrData['RouteID']				= @$_GET['RouteID'];
	
	foreach(@$arrData as $k => $v ){
		@$arrData[@$k] = str_replace("'", "\'", @$v); 
	}

	@$db->updateData("routexpoint",@$arrData," PointID='".@$_POST['PointID']."'");
	
	@$msg = "แก้ไขข้อมูลเสร็จสิ้น";
	@$res = true;
}elseif(@$_GET['act']=="edit"){
	@$arrRes = @$db->getOne("routexpoint","*"," PointID='".@$_GET['PointID']."'");
	
}elseif(@$_GET['act']=="deletedata"){
	
	@$db->deleteData("routexpoint"," PointID='".@$_GET['PointID']."'");
	
	@$msg = "ลบข้อมูลเรียบร้อย";
	@$res = true;
}elseif(@$_GET['act']=="deleteAll"){
	/*echo "<pre>"; print_r(@$_POST);
	echo count(@$_POST['pagedel']);
	exit;*/
	if(count(@$_POST['pagedel']) > 0){
		foreach(@$_POST['pagedel'] as $key => $val){
			@$db->deleteData("routexpoint"," PointID='".@$val."'");
		}
		@$msg = "ลบข้อมูลเรียบร้อย";
	}
	if($_POST['actdel']=="update"){
		if(is_array($_POST['PointPeriodic'])){
			foreach($_POST['PointPeriodic'] as $k => $v){
				$arrData = array();
				$arrData['PointPeriodic'] = $v;
				$db->updateData("routexpoint",$arrData,"PointID='".$k."'");
			}
		}
		
		if(is_array($_POST['PointTime'])){
			foreach($_POST['PointTime'] as $k => $v){
				$arrData = array();
				$arrData['PointTime'] = $v;
				$db->updateData("routexpoint",$arrData,"PointID='".$k."'");
			}
		}
		
		if(is_array($_POST['PointStop'])){
			foreach($_POST['PointStop'] as $k => $v){
				$arrData = array();
				$arrData['PointStop'] = $v;
				$db->updateData("routexpoint",$arrData,"PointID='".$k."'");
			}
		}
		@$msg = "แก้ไขข้อมูลเสร็จสิ้น";
	}
	
	@$res = true;
}
@$where_f = "lang_code='".@$lang_code."'";

@$page = @$_GET['page'] ? @$_GET['page'] : 1;
@$arrpageP = @$db->getJoin("rxp.*,d.DeliveryPointName as StartPoint ",DB_PREFIX."routexpoint rxp left outer join ".DB_PREFIX."deliverypoint d on rxp.DeliveryPointID = d.DeliveryPointID ","RouteID='".@$_GET['RouteID']."' and d.lang_code='".@$lang_code."'","order by PointSequence ","limit 1");
@$arrPage = @$objMaster->viewPages(@$page, @$arrpageP, "15");
@$getPage = @$db->getJoin("rxp.*,d.DeliveryPointName as StartPoint ",DB_PREFIX."routexpoint rxp left outer join ".DB_PREFIX."deliverypoint d on rxp.DeliveryPointID = d.DeliveryPointID ","RouteID='".@$_GET['RouteID']."' and d.lang_code='".@$lang_code."'","order by PointSequence ",@$arrPage["offset"]);


@$getcode = @$db->getOne("route","*"," RouteID='".@$_GET['RouteID']."'");

@$getPoint = @$db->getAll( "deliverypoint", "*",@$where_f." and DeliveryPointStatus = '1'","" );
//echo "<pre>"; print_r(@$getPage);
?>
<!-- Start Content Box -->
<div class="content-box">
	<!-- Start Content Box Header-->
	<div class="content-box-header">
					
			<h3><?php echo @$getcode['RouteName']; ?></h3>
			<span style="width:60px; float:left; padding-top:10px;"><a href="<?php echo $linkUrl;?>"><img src="images/icon_back.gif" border="0" /></a></span>		
			<ul class="content-box-tabs">
            <?php if(@$_GET['act']!="edit"){?>
				<li><a href="#list" <?php echo (@$_GET['act']=="" ? 'class="default-tab"' : '');?>><?php echo @$lang_set['list_routexpoint']; ?></a></li> <!-- href must be unique and match the id of target div -->
				<li><a href="#add" <?php echo (@$_GET['act']=="edit" ? 'class="default-tab"' : '');?>><?php echo @$lang_set['add_routexpoint']; ?></a></li>
           <?php }else{?>
            	<li><a href="#add" <?php echo (@$_GET['act']=="edit" ? 'class="default-tab"' : '');?>>แก้ไขข้อมูล</a></li>
            <?php }?>
			</ul>	
			<div class="clear"></div>	
	</div>		
    <!-- End Content Box Header-->
    
    <!-- Start Content Box Content-->
    <div class="content-box-content">
     	<?php if(@$res){?>
          <div class="notification success png_bg">
             <a href="#" class="close"><img src="resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                   <div>
                       <?php echo @$msg;?>
                   </div>
             </div>
          <meta http-equiv="refresh" content="1;URL=<?php echo $linkUrl; ?>">
        <?php }?> 
   
   		<!-- Start Tab Content id="list"-->
        <div class="tab-content <?php echo (@$_GET['act']=="" ? 'default-tab' : '');?>" id="list">
        <form action="<?php echo $linkUrl; ?>&amp;act=deleteAll" method="post">
        <table cellpadding="0" cellspacing="0" width="100%">
            <thead>
                <tr>
                    <th><input type="checkbox" class="check_all" /></th>
                    <th><?php echo @$lang_set['routexpoint_sequence']; ?></th>
                    <th><?php echo @$lang_set['routexpoint_name']; ?></th>
                    <th><?php echo @$lang_set['routexpoint_periodic']; ?></th>
                    <th><?php echo @$lang_set['routexpoint_time']; ?></th>
                    <th><?php echo @$lang_set['routexpoint_stop']; ?></th>
                    <th><?php //echo @$lang_set['action']; ?></th>
                </tr>
            </thead>            
            <?php 
            if(@$getPage){
                foreach(@$getPage as $key => $val){
            ?>
            <tr>
                <td><input type="checkbox" name="pagedel[]" value="<?php echo @$val['PointID'];?>"/></td>
                <td><?php echo @$val['PointSequence'];?></td>
                <td><?php echo @$val['StartPoint'];?></td>
                <td><input type="text" name="PointPeriodic[<?php echo @$val['PointID'];?>]" value="<?php echo @$val['PointPeriodic'];?>" style="width:50px;" /></td>
                <td><input type="text" name="PointTime[<?php echo @$val['PointID'];?>]" id="PointTime_<?php echo @$val['PointID'];?>" value="<?php echo @$val['PointTime'];?>" style="width:80px;" onclick="javascript:getIt(this,'PointTime_<?php echo @$val['PointID'];?>')" onfocus="cleartextbox('PointTime_<?php echo @$val['PointID'];?>');" onblur="validatetime('PointTime_<?php echo @$val['PointID'];?>')" maxlength="8"/></td>
                <td><input type="text" name="PointStop[<?php echo @$val['PointID'];?>]" id="PointStop_<?php echo @$val['PointID'];?>" value="<?php echo @$val['PointStop'];?>" style="width:80px;" onclick="javascript:getIt(this,'PointStop_<?php echo @$val['PointID'];?>')" onfocus="cleartextbox('PointStop_<?php echo @$val['PointID'];?>');" onblur="validatetime('PointStop_<?php echo @$val['PointID'];?>')" maxlength="8"/></td>
                <td style="text-align:right;">
                <a href="<?php echo $linkUrl; ?>&act=edit&PointID=<?php echo @$val['PointID']?>#add" title="แก้ไข"><img src="resources/images/icons/pencil.png" alt="Edit" /></a> |
                <a href="javascript:void();" title="ลบ" onclick="chkConfirm('<?php echo $linkUrl; ?>&act=deletedata&PointID=<?php echo @$val['PointID']?>','ยืนยันการลบข้อมูล');"><img src="resources/images/icons/cross.png" alt="Delete" /></a>
                </td>
            </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">
                        <div class="bulk-actions align-left">
                            <select name="actdel">
                            	<option value="update">แก้ไขข้อมูล</option>
                                <option value="del"><?php echo @$lang_set['delete']; ?></option>
                            </select>
                        <input class="button" type="submit" value="<?php echo @$lang_set['selected']; ?>" />
                        </div>
                        <!-- Start .pagination -->	
                        <?php if($arrPage['allpage']>1){?>
                        <div class="pagination">
                            <a href="<?php echo $linkUrl;?>&page=1" title="หน้าแรก">&laquo; หน้าแรก</a><a href="<?php echo $linkUrl;?>&page=<?php echo ($page==1 ? $page : @$page-1);?>" title="ก่อนหน้า">&laquo; ก่อนหน้า</a>
                             <?php if( @$arrPage["startPage"]!="" && @$arrPage["endPage"] !="" ){?>       
                                        <?php 
                                        for($i = @$arrPage["startPage"]; $i <= @$arrPage["endPage"]; ++$i) {
                                            echo'<a href="'.$linkUrl.'&page='.@$i.'" '.(@$page == @$i ? 'class="number current"' : '').'>'.(@$i).'</a>';
                                        }?>
                             <?php }?>
                            <a href="<?php echo $linkUrl;?>&page=<?php echo ($page==$arrPage["allpage"] ? $page : $page+1);?>" title="ถัดไป">ถัดไป &raquo;</a><a href="<?php echo $linkUrl;?>&page=<?php echo @$arrPage["allpage"];?>" title="หน้าสุดท้าย">หน้าสุดท้าย &raquo;</a>
                        </div> 
                        <?php }?>
                        <!-- End .pagination -->
                        <div class="clear"></div>
                    </td>
                </tr>
            </tfoot>
        </table>	
        </form>
        </div>		
        <!-- End Tab Content id="list"-->
        <!-- Start Tab Content id="add"-->
    	<div class="tab-content <?php echo (@$_GET['act']=="edit" ? 'default-tab' : '');?>" id="add">
     		<form action="<?php echo $linkUrl; ?>&act=<?php echo (@$_GET['act']=="edit" ? "editdata" : "add");?>#add" method="post" enctype="multipart/form-data" onsubmit="return checkpagepoint();"><!--onsubmit="return checkdelivery();"-->
            	<fieldset>
                      <input type="hidden" name="PointID" value="<?php echo  @$_GET['PointID'];?>">
                    <p>
                      <label><?php echo @$lang_set['routexpoint_sequence']; ?>:</label>
                      <input type="text" class="text-input small-input" name="PointSequence" id="PointSequence" value="<?php echo @$arrRes['PointSequence'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_name"></span>--></p>
                    <p>
                      <label><?php echo @$lang_set['routexpoint_name']; ?>:</label>
                      <select name="DeliveryPointID">
						<?php 
                        if(@$getPoint){foreach(@$getPoint as $key => $val){
                        ?>
                        <option value="<?php echo @$val['DeliveryPointID'];?>" <?php echo (@$val['DeliveryPointID']=='' || @$val['DeliveryPointID']==@$arrRes['DeliveryPointID'] ? "selected" : "")?>><?php echo @$val['DeliveryPointName'];?></option>
                        <?php }
                        }
                        ?>						
                      </select>
                    </p>
                    <p>
                      <label><?php echo @$lang_set['routexpoint_periodic']; ?>:</label>
                      <input type="text" class="text-input small-input" name="PointPeriodic" id="PointPeriodic" value="<?php echo @$arrRes['PointPeriodic'];?>" />
                    <!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
                    <p>
                      <label><?php echo @$lang_set['routexpoint_time']; ?>:</label>
                      <input type="text" class="text-input small-input" name="PointTime" id="PointTime" value="<?php echo @$arrRes['PointTime'] == ''? "00:00:00":@$arrRes['PointTime'];?>" onclick="javascript:getIt(this,'PointTime')" onfocus="cleartextbox('PointTime');" onblur="validatetime('PointTime')" maxlength="8"/>
                    <!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
                    <p>
                    	<label><?php echo @$lang_set['routexpoint_stop']; ?>:</label>
                      <input type="text" class="text-input small-input" name="PointStop" id="PointStop" value="<?php echo @$arrRes['PointStop'] == ''? "00:00:00":@$arrRes['PointStop'];?>" onclick="javascript:getIt(this,'PointStop')" onfocus="cleartextbox('PointStop');" onblur="validatetime('PointStop')" maxlength="8"/>
                    <!--<span class="input-notification error png_bg" id="span_value"></span>--></p>
                    <p>
                        <input type="submit" class="button" value="<?php echo @$lang_set['submit']; ?>" />
                    </p>
        		</fieldset>
        	</form>				
        </div>
        <!-- End Tab Content id="add"-->
</div>

					

Youez - 2016 - github.com/yon3zu
LinuXploit