Changes adopted from version 0.5

This commit is contained in:
2023-02-13 10:42:09 +01:00
parent faf5f368f5
commit 76ccecca7f
198 changed files with 10261 additions and 5068 deletions

View File

@@ -1,7 +1,7 @@
<?php
/*****************************************************************************
IP Reg, a PHP/MySQL IPAM tool
Copyright (C) 2008 Wietse Warendorff
Copyright (C) 2007-2009 Wietse Warendorff
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -20,33 +20,43 @@
or contact me at wietsew@users.sourceforge.net
*****************************************************************************/
// includes
include("includes.php");
// get id
$user_id = $_GET['user_id'];
// check authorisation
$auth = auth("user", $config_auth_userdel, $user_id);
// start output
include("header.php");
// set template
$tp = new Template("tpl/userdel.tpl");
// set language variables
$tp->setvars($lang);
// get assetclass info
$result = mysql_query("SELECT user_id, user_name FROM user WHERE user_id='$user_id'") or die(mysql_error());
$row=mysql_fetch_object($result);
$tp->set("user_id", $row->user_id);
$tp->set("user_name", $row->user_name);
// output
$tp->parse();
$tp->spit();
// start page
// includes
include("includes.php");
include("footer.php");
// get id
$user_id = sanitize($_GET['user_id']);
// start output
include("header.php");
// set template
$tp = new Template("tpl/userdel.tpl", $config_yapter_error);
// set language variables
$tp->setvars($lang);
// setup user
// build query
$query = "SELECT
user.user_name AS user_name
FROM
user
WHERE
user.user_id=" . $user_id;
// run query
$user = $db->db_select($query);
// send to tpl
$tp->set("user_id", $user_id);
$tp->set("user_name", $user[0]['user_name']);
// end page
// output
$tp->parse();
$tp->spit();
// footer
include("footer.php");
?>