| 2 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* @package Content-management
|
|
|
5 |
* @author Webagentur Niewerth <tiefland@weban.de>
|
|
|
6 |
* @copyright 2011 Webagentur Niewerth
|
|
|
7 |
* @license propietary http://www.weban.de
|
|
|
8 |
* @version $Rev: 888 $
|
|
|
9 |
* @filesource
|
|
|
10 |
*
|
|
|
11 |
*/
|
|
|
12 |
|
|
|
13 |
/**
|
|
|
14 |
*
|
|
|
15 |
* @package Content-management
|
|
|
16 |
* @author Webagentur Niewerth <tiefland@weban.de>
|
|
|
17 |
* @copyright 2011 Webagentur Niewerth
|
|
|
18 |
*/
|
|
|
19 |
|
|
|
20 |
// SVN: $Id: send_order.php 888 2011-12-14 09:46:11Z tiefland $
|
|
|
21 |
|
|
|
22 |
require_once "../toolbox/common.php";
|
|
|
23 |
require_once "module/weban/weban_utils.class.php";
|
|
|
24 |
$GLOBALS["ui"]->compile_id = "bestellwesen";
|
|
|
25 |
$user = substr( $site, 0, 16 );
|
|
|
26 |
|
|
|
27 |
$lieferant_id = Weban_Utils::clean_input( $_POST["lieferant_id"], int );
|
|
|
28 |
$lager_id = Weban_Utils::clean_input( $_POST["lager_id"], int );
|
|
|
29 |
$cmd = "/var/www/vhosts/$site/httpdocs/cron/export_bestellungen.sh --lieferant=" .
|
|
|
30 |
$lieferant_id . " --lager=" . $lager_id;
|
|
|
31 |
exec( $cmd, $out, $ret );
|
|
|
32 |
echo implode( "<br>", $out );
|
|
|
33 |
?>
|