32 lines
848 B
PHP
Executable File
32 lines
848 B
PHP
Executable File
<?php
|
|
header("Expires: Mon, 12 Jul 1995 05:00:00 GMT");
|
|
header("Last-Modified: " . gmdate("D, d M Y H.i:s") . " GMT");
|
|
header("Cache-Control: no-store, no-cache, must-revalidate");
|
|
header("Cache-Control: post-check=0, pre-check=0", false);
|
|
header("Pragma: no-cache");
|
|
|
|
require_once("config.inc.php");
|
|
require_once("func_tangen.php");
|
|
|
|
|
|
$query1 = "SELECT dst_id
|
|
FROM bpm_dienststellen
|
|
where init_tan = ''
|
|
order by dst_id";
|
|
|
|
$result1 = $db->query($query1) or die("Cannot execute query1");
|
|
|
|
|
|
while ($row1 = $result1->fetch_array()) {
|
|
|
|
# Initialtan erforderlich für Login?
|
|
|
|
$tan = tangen();
|
|
$sql0 = $db->query("UPDATE bpm_dienststellen
|
|
SET init_tan = '$tan'
|
|
WHERE dst_id = '$row1[dst_id]'
|
|
");
|
|
}
|
|
|
|
?>
|