BUG 0000 User Experience (single app option added) 1st commit

- login added
- "single application" option added
- simplified improved
This commit is contained in:
Erik Amaru Ortiz
2012-02-24 19:32:24 -04:00
parent 04abe5f19f
commit f8ab55a061
133 changed files with 24507 additions and 1539 deletions

View File

@@ -3464,8 +3464,46 @@ class Processes {
return $result;
}
function getProcessFiles($proUid, $type)
{
$filesList = array();
}//end class processes
switch ($type) {
case 'mail': case 'email':
$basePath = PATH_DATA_MAILTEMPLATES;
break;
case 'public':
$basePath = PATH_DATA_PUBLIC;
break;
default:
throw new Exception("Unknow Process Files Type '$type'.");
}
$dir = $basePath . $proUid . PATH_SEP;
G::verifyPath($dir, true); // create if it does not exist.
// creating the default template (if not exists)
if (!file_exists($dir . 'alert_message.html')) {
@copy(PATH_TPL . 'mails' . PATH_SEP . 'alert_message.html', $dir . 'alert_message.html');
}
$files = glob($dir . '*.*');
foreach ($files as $file) {
$fileName = basename($file);
if ($fileName !== 'alert_message.html') {
$filesList[] = array('filepath' => $file, 'filename' => $fileName);
}
}
return $filesList;
}
}//end class processes
/**
* Object Document class