documenting start case endpoint
This commit is contained in:
@@ -142,6 +142,15 @@ function ellipsis ($text, $numb)
|
||||
return $text;
|
||||
}
|
||||
|
||||
/* Looking for Content Process (seems to be a function semi deprecated:
|
||||
|
||||
The lookinginfor_content_process function takes a spro_uid as an argument.
|
||||
It queries the Process table to check if a process with the given pro_uid exists. (This happens 99% of the time)
|
||||
If a process is found, it does nothing. 99% of the time, this is the case.
|
||||
If no process is found, it queries the Task table for tasks associated with the spro_uid and inserts their titles into the Content table.
|
||||
It then queries the Process table again to get the process title and inserts it into the Content table.
|
||||
Example Usage: The example at the bottom shows how to call the lookinginfor_content_process function.
|
||||
*/
|
||||
function lookinginforContentProcess ($sproUid)
|
||||
{
|
||||
$oContent = new Content();
|
||||
@@ -238,7 +247,7 @@ function startCase()
|
||||
|
||||
// Print JSON response
|
||||
ob_end_clean();
|
||||
header('Content-Type: application/json');
|
||||
header('Content-Type: application/json');
|
||||
print (json_encode($newCase));
|
||||
} catch (Exception $e) {
|
||||
$newCase['status'] = 'failure';
|
||||
@@ -262,4 +271,3 @@ function getDefaultDashboard ()
|
||||
}
|
||||
print_r( G::json_encode( $defaultDashboard ) );
|
||||
}
|
||||
|
||||
|
||||
68
workflow/engine/methods/login/session.php
Normal file
68
workflow/engine/methods/login/session.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* forgotPassword.php
|
||||
*/
|
||||
$conf = new Configurations();
|
||||
$conf->loadConfig($obj, 'ENVIRONMENT_SETTINGS', '');
|
||||
|
||||
echo '<style>
|
||||
table {
|
||||
border-collapse: collapse;
|
||||
width: 100%;
|
||||
margin: 20px 20px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 13px;
|
||||
}
|
||||
th, td {
|
||||
border: 1px solid #ddd;
|
||||
padding: 8px;
|
||||
text-align: left;
|
||||
word-wrap: break-word;
|
||||
max-width: 300px;
|
||||
}
|
||||
th {
|
||||
background-color: #f4f4f4;
|
||||
font-weight: bold;
|
||||
}
|
||||
tr:nth-child(even) {
|
||||
background-color:rgba(249, 249, 249, 0.91);
|
||||
}
|
||||
tr:nth-child(odd) {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
tr:hover {
|
||||
background-color:rgba(202, 228, 181, 0.93);
|
||||
}
|
||||
</style>';
|
||||
|
||||
echo '<table>';
|
||||
echo '<tr><th>Variable</th><th>Key</th><th>Value</th></tr>';
|
||||
|
||||
foreach (['_SESSION' => $_SESSION, '_COOKIE' => $_COOKIE, '_ENV' => $_ENV] as $varName => $varData) {
|
||||
foreach ($varData as $key => $value) {
|
||||
echo '<tr>';
|
||||
echo '<td>' . htmlspecialchars($varName) . '</td>';
|
||||
echo '<td>' . htmlspecialchars($key) . '</td>';
|
||||
echo '<td>' . htmlspecialchars(is_array($value) ? json_encode($value) : $value) . '</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
echo '</table>';
|
||||
die;
|
||||
|
||||
if (isset($conf->aConfig["login_enableForgotPassword"]) && $conf->aConfig["login_enableForgotPassword"] == "1") {
|
||||
$G_PUBLISH = new Publisher();
|
||||
$version = explode('.', trim(file_get_contents(PATH_GULLIVER . 'VERSION')));
|
||||
$version = isset($version[0]) ? intval($version[0]) : 0;
|
||||
if ($version >= 3) {
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/forgotPasswordpm3', '', array(), 'retrivePassword.php');
|
||||
} else {
|
||||
$G_PUBLISH->AddContent('xmlform', 'xmlform', 'login/forgotPassword', '', array(), 'retrivePassword.php');
|
||||
}
|
||||
G::RenderPage("publish");
|
||||
} else {
|
||||
G::header('Location: /errors/error403.php');
|
||||
die();
|
||||
}
|
||||
Reference in New Issue
Block a user