init
This commit is contained in:
commit
72a26edcff
22092 changed files with 2101903 additions and 0 deletions
37
saso_ende.php
Normal file
37
saso_ende.php
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<?php
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors',1);
|
||||
require('lib/config.php');
|
||||
require('lib/mysql.class.php');
|
||||
$GLOBALS['mysql'] = new mysql(CONFIG_MYSQL_HOST,CONFIG_MYSQL_USER,CONFIG_MYSQL_PW,CONFIG_MYSQL_DB);
|
||||
$GLOBALS['rasql'] = new mysql(CONFIG_RASQL_HOST,CONFIG_RASQL_USER,CONFIG_RASQL_PW,CONFIG_RASQL_DB);
|
||||
header("Content-Type: text/html; charset=utf-8");
|
||||
//----------------------------------------------------------------------------------------------------------
|
||||
//date_default_timezone_set('Europe/London');
|
||||
date_default_timezone_set('Europe/Berlin');
|
||||
$jahr = (int)date('Y');
|
||||
$monat = (int)date('n');
|
||||
$tag = (int)date('j');
|
||||
$kw = (int)date('W');
|
||||
//----------------------------------------------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------------------------------------------
|
||||
$check = $GLOBALS['rasql']->query_single("SELECT * FROM tliste WHERE kw='".$kw."' AND jahr='".$jahr."' AND typ=3 limit 1");
|
||||
if ($check['num_rows']!=0) {
|
||||
$copydata = $GLOBALS['rasql']->query("SELECT * FROM tliste WHERE kw='".$kw."' AND jahr='".$jahr."' AND sped=1");
|
||||
while($row = $copydata->fetch_assoc()) {
|
||||
//$jbdata = $GLOBALS['mysql']->query_single("SELECT * FROM tourenliste WHERE kw='".$kw."' AND jahr='".$jahr."' AND tour='".$row['tour']."'");
|
||||
//----------------
|
||||
//$GLOBALS['mysql']->insert("UPDATE tourenliste SET zeit='".$row['zeit']."' WHERE kw='".$kw."' AND jahr='".$jahr."' AND tour='".$row['tour']."'");
|
||||
$GLOBALS['mysql']->insert("UPDATE tourenliste SET bereitzeit='".$row['bereitzeit']."' WHERE kw='".$kw."' AND jahr='".$jahr."' AND tour='".$row['tour']."'");
|
||||
$GLOBALS['mysql']->insert("UPDATE tourenliste SET fertigzeit='".$row['fertigzeit']."' WHERE kw='".$kw."' AND jahr='".$jahr."' AND tour='".$row['tour']."'");
|
||||
|
||||
$GLOBALS['mysql']->insert("UPDATE tourenliste SET amtsblatt='".$row['amtsblatt']."' WHERE kw='".$kw."' AND jahr='".$jahr."' AND tour='".$row['tour']."'");
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------------
|
||||
//----------------------------------------------------------------------------------------------------------
|
||||
|
||||
echo "</br>"; echo"fertig saso Auslieferzeiten";
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue