Ignore:
Timestamp:
08/18/12 12:21:38 (12 years ago)
Author:
tbretz
Message:
Return the user name if logged in; for the tim ebeing changed from --start to --batch
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/www/smartfact/index.php

    r14323 r14400  
    103103    // http://ip-address-lookup-v4.com/ip/92.205.118.219
    104104
     105    print($user);
     106
    105107    return;
    106108}
     
    180182
    181183        // $args = "filename":label --arg:"key1=value" --arg:"key2=value"
    182         $cmd = $path.'/dimctrl --user "'.$_SERVER['PHP_AUTH_USER'].'"  --start '.escapeshellarg($script.$args);
     184        $cmd = $path.'/dimctrl --user "'.$_SERVER['PHP_AUTH_USER'].'"  --batch '.escapeshellarg($script.$args);
    183185
    184186        // Execute
     
    221223    return header('HTTP/1.0 500 Execution failed [rc='.$rc."]");
    222224
    223 print($rc);
     225print($_SERVER['PHP_AUTH_USER']."\n".$rc);
    224226
    225227if (isset($_GET['debug']))
Note: See TracChangeset for help on using the changeset viewer.