Exemplo n.º 1
0
    ?>
    </tr>
  </table>
  </form>
<?php 
}
?>

<?php 
# order
if (!$order) {
    $order = "start";
} else {
    $order = tool::secureGet('order');
}
if (tool::secureGet('desc') == "DESC") {
    $desc = "";
} else {
    $desc = "DESC";
}
$list = $jobInst->getList($order, $desc);
if ($jobInst->matches > 0) {
    #######################################################################
    ## show existing jobs
    $colspan = 4;
    if ($loginInst->id != $taskInst->userId) {
        $colspan--;
    }
    ?>
    <br>
    <a name="joblist"></a>
Exemplo n.º 2
0
}
// activate user
$loginInst->activate($HTTP_SESSION_VARS["loginid"]);
if (!$loginInst->id) {
    echo "access denied\n";
    exit;
}
if (!$loginInst->hasAccess("report")) {
    echo "access denied\n";
    exit;
}
$reportInst = new report(tool::secureGet('reportid'));
header("Content-Type: text/xml");
echo '<?xml version="1.0" encoding="ISO-8859-1"?>';
echo "\n";
echo "<?xml-stylesheet version=\"1.0\" xmlns:xsl=\"http://www.w3.org/1999/XSL/Transform\" type=\"text/xsl\" href=\"templates/report/" . tool::secureGet('template') . "/template.xsl\"?>\n";
echo $reportInst->xml;
/***************************************************************************
 * $Log: reportviewer.php,v $
 * Revision 1.3  2003/11/18 01:55:26  willuhn
 * *** empty log message ***
 *
 * Revision 1.2  2003/09/27 18:23:44  willuhn
 * *** empty log message ***
 *
 * Revision 1.1.1.1  2003/07/28 19:22:22  willuhn
 * reimport
 *
 * Revision 1.7  2002/09/07 19:23:12  willuhn
 * @N global commit for missing files
 *
Exemplo n.º 3
0
        if (!session_register("loginid")) {
            echo "<b>" . $lang['common_unableToSaveLoginInSession'] . "</b><br>";
            // could not save session -> give up
            exit;
        }
    } elseif (!session_is_registered("loginid") && (tool::securePost('loginname') || tool::securePost('password'))) {
        // show error message only, if username/password was submitted
        $toolInst->errorStatus($lang['common_userUnknownOrPasswordWrong']);
    }
}
if (session_is_registered("loginid")) {
    if (!isset($HTTP_SESSION_VARS['loginid']) || $HTTP_SESSION_VARS['loginid'] == "") {
        echo "<b>" . $lang['common_unableToFindloginInSession'] . "</b><br>";
        // could not save session -> give up
        exit;
    }
    $loginInst->activate($HTTP_SESSION_VARS['loginid']);
    $filename = preg_replace(array("/^[\\.]*/", "/\\//"), array("", ""), tool::secureGet('filename'));
    $filecreated = ereg_replace("[^0-9]", "", tool::secureGet('created'));
    $file_size = @filesize($config['attach_url'] . "/{$filecreated}/{$filename}");
    if ($filename && $filecreated && $file_size) {
        Header("Content-Type: application/octet-stream; name=\"{$filename}\"");
        Header("Content-Disposition: attachment; filename=\"{$filename}\"");
        Header("Accept-Ranges: bytes");
        Header("Content-Length: {$file_size}");
        $fp = fopen($config['attach_url'] . "/{$filecreated}/{$filename}", "r");
        fpassthru($fp);
        fflush($fp);
        fclose($fp);
    }
}
Exemplo n.º 4
0
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 ***************************************************************************/
?>

<?php 
#######################################################################
## check login again
if (!$loginInst->id) {
    echo $lang['common_accessDenied'] . "\n";
    exit;
}
$requestInst = new request(tool::secureGet('requestid'));
$projectInst = new project($requestInst->projectId);
// this request doesn't exists
if (!$requestInst->id) {
    echo "<div>" . $lang['common_request_not_exists'] . "</div>";
    exit;
}
#######################################################################
## show request details
#######################################################################
## perform action
if (tool::securePost('action') == "taskify" && $loginInst->hasAccess("request.assignTo") || tool::securePost('action') == "save" && tool::securePost('taskid')) {
    if (!tool::securePost('taskid')) {
        $taskId = $requestInst->assignTo(tool::securePost('userid'));
    } else {
        $taskId = tool::securePost('taskid');
Exemplo n.º 5
0
?>

<h1><?php 
echo $lang['common_home'];
?>
</h1>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td valign="top">
      <?php 
// create box with today's jobs until now
if ($loginInst->hasAccess("job")) {
    $boxInst = new box();
    $dayToShow = $toolInst->getTime("U");
    if (tool::secureGet('day') && $toolInst->checkInt(tool::secureGet('day'))) {
        $dayToShow = tool::secureGet('day');
    }
    $boxInst->setTitle($lang['home_myWork'] . " " . $toolInst->getTime("Y-m-d", $dayToShow));
    $boxInst->setWidth("530");
    $boxInst->setBgColor("#f8f8f8");
    $jobInst = new job();
    $jobInst->filterUserId = $loginInst->id;
    $jobInst->filterStartTime = $toolInst->timestampToSec($toolInst->getTime("Y", $dayToShow), $toolInst->getTime("m", $dayToShow), $toolInst->getTime("d", $dayToShow), 0, 0);
    $jobInst->filterStopTime = $toolInst->timestampToSec($toolInst->getTime("Y", $dayToShow), $toolInst->getTime("m", $dayToShow), $toolInst->getTime("d", $dayToShow), 23, 59);
    // show currently running job only today
    if ($toolInst->getTime("Y", $dayToShow) != $toolInst->getTime("Y")) {
        $jobInst->filterCurrentlyRunning = "1";
    }
    if ($toolInst->getTime("m", $dayToShow) != $toolInst->getTime("m")) {
        $jobInst->filterCurrentlyRunning = "1";
    }
Exemplo n.º 6
0
                $content_plugins_options_arr[] = <<<EOT

                                    <option value="{$file}">{$pluginconfig['title']}
EOT;
            } else {
                $content_plugins_options_arr[] = <<<EOT

                                    <option value="{$file}">{$file}
EOT;
            }
        }
        next($dir);
    }
    if (tool::secureGet('plugin') && tool::secureGet('plugin') != "" && file_exists("./plugins/" . tool::secureGet('plugin') . "/config.inc.php")) {
        // we need to overwrite the included config file if a plugin was choosen
        include "./plugins/" . tool::secureGet('plugin') . "/config.inc.php";
    }
    foreach ($content_plugins_options_arr as $option) {
        $content_plugins_options .= $option;
    }
    // Write the html for the full menu row.
    $content_menu_tr = '';
    if (isset($loginInst->id) && $loginInst->id != "") {
        $content_menu_tr = <<<EOT
                    <form method="post" name="plugins">
                    <tr>
{$content_menu_th_str}
                        <td background="grafx/fade.gif" align="right">
                            <nobr>
                            {$content_plugins_label}:
                            <select onchange="javascript:loadplugin(this.form.plugins.options[this.form.plugins.options.selectedIndex].value);"