HEX
Server: Apache
System: Linux sg2plmcpnl492417.prod.sin2.secureserver.net 4.18.0-553.58.1.lve.el8.x86_64 #1 SMP Fri Jul 4 12:07:06 UTC 2025 x86_64
User: nyiet8349bzl (9207396)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/nyiet8349bzl/Backup/sbc_back/homedir/public_html/old-myadmin/alumni/processOrder.php
<?php
require_once '../../library/config.php';
require_once '../library/functions.php';
checkUser();
$action = isset($_GET['action']) ? $_GET['action'] : '';
switch ($action) {
	
	case 'modify' :
		modifyOrder();
		break;

		default :
		header('Location: index.php');
}
/*
	Modify a Order
*/
function modifyOrder()
{
	if (isset($_GET['OId']) && (int)$_GET['OId'] > 0) {
		$OId = (int)$_GET['OId'];
	} else {
		header('Location:index.php');
	}
//DID 	DOnPID 	DTitle 	DDesc 	DateStart 	DateEnd 	Discount 	IsActive
	$status  = $_GET['status'];
    
    $sql = "UPDATE chorder
            SET od_status = '$status', od_last_update = NOW()
            WHERE od_id = $OId";
    $result = dbQuery($sql);
	
	header("Location: index.php?view=list&status=$status");    
}
?>