HEX
Server: Apache
System: Linux p3plzcpnl489526.prod.phx3.secureserver.net 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User: vmasmheia229 (9244908)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/vmasmheia229/domains/taylornetcloud.com/html/admin/delete.php
<?php
include('../api/include/webzone.php');

$id = $_GET['id'];

$t1 = new Template_class_admin();
$t1->setPageName('Delete a store');
$t1->setMetaTags(array('title'=>'', 'description'=>''));
$t1->displayHeader();

$s1 = new Store_locator();
$store = $s1->loadByFields('id',$id);

if(count($store)>0) {
	
	if($_GET['confirm']==1) {
		
		$s1->delete($id);
		
		echo '<script>';
		echo 'window.location="./list.php";';
		echo '</script>';
		
		//echo '<p>The store has been deleted</p>';
		//echo '<a href="./list.php">Stores list</a>';
	}
	else {
		echo '<p>Are you sure you want to delete this store?</p>';
		echo '<a href="?id='.$id.'&confirm=1">Yes, delete this store</a> - <a href="./list.php">Cancel</a>';
	}
}

else {
	echo '<p>No store to delete here !</p>';
	echo '<a href="./list.php">Stores list</a>';
}

$t1->displayFooter();
?>