print "<b>"._('Authorize')."</b>";
}
echo '</td>';
- echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to delete this link ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/del_son.php?group_id=".$group_id."&sub_group_id=".$row_son['sub_project_id']."\"}'}>"._('Do you really want to delete this link ?')."</a></td>";
+ echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to delete this link ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/del_son.php?group_id=".$group_id."&sub_group_id=".$row_son['sub_project_id']."\"}'}>"._('Delete')."</a></td>";
echo "<tr><td colspan='4'>"._('Commentary :')." <i>".$row_son['com']."</i>";
echo '</td></tr>';
}
echo '<td>';
if($row_son[activated] == 'f'){
//echo _('Waiting');
- echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to authorize this project ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/wait_son.php?sub_group_id=".$group_id."&group_id=".$row_son['project_id']."\"}'}>"._('Do you really want to authorize this project ?')."</a></td>";
+ echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to authorize this project ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/wait_son.php?sub_group_id=".$group_id."&group_id=".$row_son['project_id']."\"}'}>"._('Authorize')."</a></td>";
}
else {
print "<b>"._('Authorize')."</b>";
}
echo '</td>';
- echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to delete this link ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/del_father.php?group_id=".$row_son['project_id']."&sub_group_id=".$group_id."\"}'}>"._('Do you really want to delete this link ?')."</a></td>";
+ echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to delete this link ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/del_father.php?group_id=".$row_son['project_id']."&sub_group_id=".$group_id."\"}'}>"._('Delete')."</a></td>";
echo "<tr><td colspan='4'>"._('Commentary of father :')." <i>".$row_son['com']."</i></td>";
echo '</tr>';
}
echo '<td>';
echo "<a href=\"../../projects/".$row_father['unix_group_name']."\">".$row_father['group_name']."</a>";
echo '</td><td>';
- echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to delete this link ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/del_father.php?sub_group_id=".$group_id."&group_id=".$row_father['group_id']."\"}'}>"._('Do you really want to delete this link ?')."</a></td>";
+ echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to delete this link ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/del_father.php?sub_group_id=".$group_id."&group_id=".$row_father['group_id']."\"}'}>"._('Delete')."</a></td>";
echo '</td></tr>';
}
echo '</table>';
echo'<td>';
echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to authorize this project ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/wait_son.php?sub_group_id=".$group_id."&group_id=".$row_wait[group_id]."\"}'}>"._('Do you really want to authorize this project ?')."</a></td>";
echo '</td><td>';
- echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to delete this link ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/del_father.php?sub_group_id=".$group_id."&group_id=".$row_wait[group_id]."\"}'}>"._('Do you really want to delete this link ?')."</a></td>";
+ echo "<td><a href='#' onclick='if(confirm(\""._('Do you really want to delete this link ?')."\")){window.location.href=\"../../plugins/projects_hierarchy/del_father.php?sub_group_id=".$group_id."&group_id=".$row_wait[group_id]."\"}'}>"._('Delete')."</a></td>";
echo "</td><tr><td colspan='3'>"._('Commentary of father :')." <i>".$row_wait[com]."</i>";
echo '</td></tr>';
}
\r
$HTML->footer(array());\r
\r
+// Local Variables:\r
+// mode: php\r
+// c-file-style: "bsd"\r
+// End:\r
+\r
?>\r
if (!validate_email($newemail)) {
form_release_key(getStringFromRequest('form_key'));
- exit_error(_('Error'),_('Error'));
+ exit_error(_('Error'),_('Invalid email address.'));
}
$confirm_hash = substr(md5($session_hash . time()),0,16);
<?php
site_user_footer(array());
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
if (!$u || !is_object($u)){
form_release_key(getStringFromRequest('form_key'));
- exit_error(_('Invalid user'),_('Invalid user'));
+ exit_error(_('Invalid user'),_('That user does not exist.'));
}
// First, we need to create new confirm hash
$HTML->footer(array());
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
}
} elseif ($uploaded_data['name']) {
if (!is_uploaded_file($uploaded_data['tmp_name'])) {
- exit_error(_('Error'),sprintf(_('Error'), $uploaded_data['name']));
+ exit_error(_('Error'),sprintf(_('Invalid file attack attempt %1$s'), $uploaded_data['name']));
}
$data = addslashes(fread(fopen($uploaded_data['tmp_name'], 'r'), $uploaded_data['size']));
$filename=$uploaded_data['name'];
}
- docman_header(_('Document Manager Administration'),_('Document Manager Administration'),'');
+ docman_header(_('Document Manager Administration'),_('Edit Docs'),'');
?>
<br />
<tr>
<td>
- <strong><?php echo _('Document Title') ?>: </strong><?php echo utils_requiredField(); ?> <?php printf(_('Document Title'), 5) ?><br />
+ <strong><?php echo _('Document Title') ?>: </strong><?php echo utils_requiredField(); ?> <?php printf(_('(at least %1$s characters)'), 5) ?><br />
<input type="text" name="title" size="40" maxlength="255" value="<?php echo $d->getName(); ?>" />
<br /></td>
</tr>
<tr>
<td>
- <strong><?php echo _('Description') ?></strong><?php echo utils_requiredField(); ?> <?php printf(_('Description'), 10) ?><br />
+ <strong><?php echo _('Description') ?></strong><?php echo utils_requiredField(); ?> <?php printf(_('(at least %1$s characters)'), 10) ?><br />
<input type="text" name="description" size="20" maxlength="255" value="<?php echo $d->getDescription(); ?>" />
<br /></td>
</tr>
//
} elseif (getStringFromRequest('addgroup')) {
- docman_header(_('Document Manager Administration'),_('Document Manager Administration'),'');
+ docman_header(_('Document Manager Administration'),_('Add Document Groups'),'');
echo "<h1>"._('Add Document Groups')."</h1>";
exit_error('Error',$dgh->getErrorMessage());
}
- docman_header(_('Document Manager Administration'),_('Document Manager Administration'),'');
+ docman_header(_('Document Manager Administration'),_('Edit Groups'),'');
?>
<p><strong><?php echo _('Edit a group') ?></strong></p>
<form name="editgroup" action="index.php?editgroup=1&group_id=<?php echo $group_id; ?>" method="post">
exit_error('Error',$d->getErrorMessage());
}
- docman_header(_('Document Manager Administration'),_('Document Manager Administration'),'');
+ docman_header(_('Document Manager Administration'),_('Edit Groups'),'');
?>
<p>
<form action="<?php echo $PHP_SELF.'?deletedoc=1&docid='.$d->getID().'&group_id='.$d->Group->getID() ?>" method="post">
}
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
printf(_('This document was moved to <a href="/docman/view.php/%1$s/%2$s">this new location</a>'), $group_id, $docid);
docman_footer(array());
} else {
- exit_error(_('No document data'),_('No document data'));
+ exit_error(_('No document data'),_('No document to display - invalid or inactive document number.'));
}
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
}
if (!$project->usesDocman()) {
- exit_error(_('Error'),_('Error'));
+ exit_error(_('Error'),_('This project has turned off the Doc Manager.'));
}
site_project_header(array('title'=>$title,'group'=>$group_id,'toptab'=>'docman'));
echo "</ul>\n";
}
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
?>
$df->setLanguageID($language_id);
-docman_header(_('Document Manager: Display Document'),_('Document Manager: Display Document'));
+docman_header(_('Document Manager: Display Document'),_('Project: %1$s'));
$d_arr =& $df->getDocuments();
if (!$d_arr || count($d_arr) <1){
docman_footer(array());
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
if (!$doc_group || $doc_group == 100) {
//cannot add a doc unless an appropriate group is provided
- exit_error(_('Error'),_('Error'));
+ exit_error(_('Error'),_('No valid Document Group was selected.'));
}
//if (!$title || !$description || (!$uploaded_data && !$file_url && !$ftp_filename && (!$editor && !$name ) )) {
$d = new Document($g, false, false,$sys_engine_path);
if (!$d || !is_object($d)) {
- exit_error(_('Error'),_('Error'));
+ exit_error(_('Error'),_('Error getting blank document.'));
} elseif ($d->isError()) {
exit_error(_('Error'),$d->getErrorMessage());
}
$sanitizer = new TextSanitizer();
$data = $sanitizer->SanitizeHtml($data);
if (strlen($data)<1) {
- exit_error(_('Error'),_('Error'));
+ exit_error(_('Error'),_('Error getting blank document.'));
}
$uploaded_data_type='text/html';
break;
}
case 'httpupload' : {
if (!is_uploaded_file($uploaded_data['tmp_name'])) {
- exit_error(_('Error'),_('Error'));
+ exit_error(_('Error'),_('Invalid file name.'));
}
$data = addslashes(fread(fopen($uploaded_data['tmp_name'], 'r'), $uploaded_data['size']));
$file_url='';
//if (getStringFromRequest('Option')) {
//option was selected, proceed to show each one
$option_selected = getStringFromRequest('option_selected');
- docman_header(_('Document Manager: Submit New Documentation'),_('Document Manager: Submit New Documentation'));
+ docman_header(_('Document Manager: Submit New Documentation'),_('Project: %1$s'));
echo'<p>'. _('<strong>Document Title</strong>: Refers to the relatively brief title of the document (e.g. How to use the download server)<br /><strong>Description:</strong> A brief description to be placed just under the title.') .'</p>
<form name="adddata" action="'. getStringFromServer('PHP_SELF').'?group_id='.$group_id.'" method="post" enctype="multipart/form-data">
<table border="0" width="75%">
<tr>
<td>
- <strong>'. _('Document Title').' :</strong>'. utils_requiredField(). sprintf(_('Document Title'), 5).'<br />
+ <strong>'. _('Document Title').' :</strong>'. utils_requiredField(). sprintf(_('(at least %$1s characters)'), 5).'<br />
<input type="text" name="title" size="40" maxlength="255" />
</td>
</tr>
<tr>
<td>
- <strong>'. _('Description') .' :</strong>'. utils_requiredField() . sprintf(_('Description'), 10).'<br />
+ <strong>'. _('Description') .' :</strong>'. utils_requiredField() . sprintf(_('(at least %$1s characters)'), 10).'<br />
<input type="text" name="description" size="50" maxlength="255" />
</td>
</tr>';
docman_footer(array());
/*
} else {
- docman_header(_('Document Manager: Submit New Documentation'),_('Document Manager: Submit New Documentation'));
+ docman_header(_('Document Manager: Submit New Documentation'),_('Project: %1$s'));
?>
<?php
*/
}
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
}\r
\r
\r
-docman_header(_('Document Manager: Display Document'),_('Document Manager: Display Document'),'docman','',$g->getPublicName());\r
+docman_header(_('Document Manager: Display Document'),_('Project: %1$s'),'docman','',$g->getPublicName());\r
\r
$vtp = new VTemplate;\r
$handle = $vtp->Open("search.tpl.html");\r
$rep = strtolower ($rep);\r
return $rep;\r
}\r
+\r
+// Local Variables:\r
+// mode: php\r
+// c-file-style: "bsd"\r
+// End:\r
+\r
?>\r
echo $d->getFileData();
} else {
- exit_error(_('No document data'),_('No document data'));
+ exit_error(_('No document data'),_('No document to display - invalid or inactive document number.'));
}
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
$fm=new ForumMessage($f,$msg_id);
if (!$fm || !is_object($fm)) {
- exit_error(_('Error'),_('Error getting Forum'));
+ exit_error(_('Error'),_('Error Getting ForumMessage'));
} elseif ($fm->isError()) {
exit_error(_('Error'),$fm->getErrorMessage());
}
//actually finish editing the message and save the contents
$f = new Forum ($fa->GetGroupObject(),$forum_id);
if (!$f || !is_object($f)) {
- exit_error('Error','Could Not Get Forum Object');
+ exit_error('Error','Error Getting Forum');
} elseif ($f->isError()) {
exit_error('Error',$f->getErrorMessage());
}
$f = new Forum ($fa->GetGroupObject(),$forum_id);
if (!$f || !is_object($f)) {
- exit_error('Error','Could Not Get Forum Object');
+ exit_error('Error','Error Getting Forum');
} elseif ($f->isError()) {
exit_error('Error',$f->getErrorMessage());
}
$fm=new ForumMessage($f,$msg_id,false,false);
if (!$fm || !is_object($fm)) {
- exit_error(_('Error'),_('Error getting new forum message'));
+ exit_error(_('Error'),_('Error Getting ForumMessage'));
} elseif ($fm->isError()) {
exit_error(_('Error'),$fm->getErrorMessage());
}
$fh = new ForumHTML($f);
if (!$fh || !is_object($fh)) {
- exit_error(_('Error'),_('Error getting new forumhtml'));
+ exit_error(_('Error'),_('Error Getting ForumHTML'));
} elseif ($fh->isError()) {
exit_error(_('Error'),$fh->getErrorMessage());
}
$touser = getStringFromRequest('touser');
if (!$toaddress && !$touser) {
- exit_error(_('Error'),_('Error'));
+ exit_error(_('Error'),_('Error - some variables were not provided'));
}
if ($touser) {
*/
$result=db_query("SELECT email,user_name FROM users WHERE user_id='$touser'");
if (!$result || db_numrows($result) < 1) {
- exit_error(_('Error'),_('Error'));
+ exit_error(_('Error'),_('Error - That user does not exist'));
}
}
if ($toaddress && !eregi($GLOBALS['sys_default_domain'],$toaddress)) {
- exit_error(_('Error'),_('Error')." @".$GLOBALS['sys_default_domain']);
+ exit_error(_('Error'),_('You can only send to addresses ')." @".$GLOBALS['sys_default_domain']);
}
<?php
$HTML->footer(array());
-?>
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+?>
$file = getStringFromRequest('file');
if (!$file) {
- exit_error(_('Missing File Argument'), _('Missing File Argument'));
+ exit_error(_('Missing File Argument'), _('A file must be specified for this page.'));
}
if (strstr($file,'..')) {
- exit_error(_('Invalid File Argument'), _('Invalid File Argument'));
+ exit_error(_('Invalid File Argument'), _('The file argument is invalid.'));
}
$dir = dirname($file);
}
if (!file_exists($fname) || @is_dir($fname)) {
- exit_error(_('File Not Found'), _('File Not Found'));
+ exit_error(_('File Not Found'), _('Cannot find specified file to display.'));
}
$HTML->header(array('title'=>sprintf(_('Source of %1$s'), $file)));
$HTML->footer(array());
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
session_require( array('group'=>$sys_stats_group) );
$HTML->header(array(sprintf(_('%1$s I18n Statistics'), $GLOBALS['sys_name'])));
-echo $GLOBALS['HTML']->listTableTop(array(_('Language')."",_('Language')."","%"));
+echo $GLOBALS['HTML']->listTableTop(array(_('Language')."",_('Users')."","%"));
echo "<h1>".sprintf(_('Languages Distributions'), $GLOBALS['sys_name'])." </h1>";
$sql='SELECT count(user_name) AS total FROM users';
echo "<p>"._('This is a list of the preferences that users have chosen in their user preferences; it does not include languages which are selected via cookies or browser preferences');
$HTML->footer( array() );
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
if ($project =& group_get_object($group_id)){
if (!$project->usesSurvey()) {
- exit_error(_('Error'), _('Error'));
+ exit_error(_('Error'), _('This Group Has Turned Off Surveys.'));
}
site_project_header($params);
// mode: php
// c-file-style: "bsd"
// End:
+
?>
if ($project =& group_get_object($group_id)){
if (!$project->usesSurvey()) {
- exit_error(_('Error'), _('Error'));
+ exit_error(_('Error'), _('This Group Has Turned Off Surveys.'));
}
site_project_header($params);
site_project_footer($params);
}
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
<p><a href="'.$GLOBALS['sys_urlprefix'].'/top/">['._('View Other Top Categories').']</a>';
-$arr=array(_('Rank'),_('Rank'),_('Rank'));
+$arr=array(_('Rank'),_('Project name'),_('Percentile'));
echo $HTML->listTableTop($arr);
echo $HTML->listTableBottom();
$HTML->footer(array());
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
}
$HTML->header(array('title'=>$title));
print '<p><a href="'.$GLOBALS['sys_urlprefix'].'/top/">['._('View Other Top Categories').']</a>';
-$arr=array(_('Rank'),_('Rank'),"$column1");
+$arr=array(_('Rank'),_('Project name'),"$column1");
echo $HTML->listTableTop($arr);
echo db_error();
echo $HTML->listTableBottom();
$HTML->footer(array());
+
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
/*
Put the result set (list of forums for this group) into a column with folders
*/
- $tablearr=array(_('Tracker'),_('Tracker'));
+ $tablearr=array(_('Tracker'),_('Description'));
echo $HTML->listTableTop($tablearr);
for ($j = 0; $j < count($at_arr); $j++) {
echo site_project_footer(array());
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
<tr>
<td><strong>'._('Assigned To').': <a href="javascript:help_window(\'/help/tracker.php?helpname=assignee\')"><strong>(?)</strong></a>
- </strong><br />'. $ath->technicianBox ('assigned_to','100.1',true,_('Nobody'),'100.1',_('Nobody')) .'</td>
+ </strong><br />'. $ath->technicianBox ('assigned_to','100.1',true,_('Nobody'),'100.1',_('No Change')) .'</td>
<td>';
if (!$ath->usesCustomStatuses()) {
echo '<strong>'._('State').': <a href="javascript:help_window(\'/help/tracker.php?helpname=status\')"><strong>(?)</strong></a></strong>
$ath->footer(array());
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
/*
Put the result set (list of trackers for this group) into a column with folders
*/
- $tablearr=array(_('Tracker'),_('Tracker'),_('Tracker'),_('Tracker'));
+ $tablearr=array(_('Tracker'),_('Description'),_('Open'),_('Total'));
echo $HTML->listTableTop($tablearr);
for ($j = 0; $j < count($at_arr); $j++) {
echo site_project_footer(array());
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>
<td>'._('Assignee').':</a><br />'. $tech_box .'</td>
<td>';
if (!$ath->usesCustomStatuses()) {
- echo _('State').': <br />'. $ath->statusBox('_status',$_status,true,_('State'));
+ echo _('State').': <br />'. $ath->statusBox('_status',$_status,true,_('Any'));
}
echo '</td>
</tr>';
</tr>
</form></table></body></html>';
+// Local Variables:
+// mode: php
+// c-file-style: "bsd"
+// End:
+
?>