| 
									
										
										
										
											2024-09-04 22:06:38 +00:00
										 |  |  | <?php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $action = $_REQUEST['action'] ?? ''; | 
					
						
							|  |  |  | $agent = $_REQUEST['agent'] ?? ''; | 
					
						
							|  |  |  | require '../app/classes/agent.php'; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | $agentObject = new Agent($dbWeb); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // if a form is submitted, it's from the edit page
 | 
					
						
							|  |  |  | if ($_SERVER['REQUEST_METHOD'] == 'POST') { | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-23 18:39:32 +00:00
										 |  |  | // FIXME code here
 | 
					
						
							| 
									
										
										
										
											2024-09-04 22:06:38 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-23 09:39:33 +00:00
										 |  |  |     header("Location: $app_root?platform=$platform_id&page=config"); | 
					
						
							| 
									
										
										
										
											2024-09-04 22:06:38 +00:00
										 |  |  |     exit(); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // no form submitted, show the templates
 | 
					
						
							|  |  |  | } else { | 
					
						
							| 
									
										
										
										
											2024-09-23 18:39:32 +00:00
										 |  |  |     $agentDetails = $agentObject->getAgentDetails($platform_id); | 
					
						
							|  |  |  |     include '../app/templates/agent-list.php'; | 
					
						
							| 
									
										
										
										
											2024-09-04 22:06:38 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ?>
 |