}
/**
- * util_prep_string_for_sendmail() - Prepares a string to be sent by email
- *
- * @param string The text to be prepared
- * @returns The prepared text
- *
- */
-function util_prep_string_for_sendmail($body) {
- /*$body=str_replace("`","\\`",$body);
- $body=str_replace("\"","\\\"",$body);
- $body=str_replace("\$","\\\$",$body);*/
- $body = escapeshellarg($body);
- return $body;
-}
-
-/**
* util_handle_message() - a convenience wrapper which sends messages
* to either a jabber account or email account or both, depending on
* user preferences
}
/**
- * util_strip_accents() - Remove accents from given text.
- * @param string Text
- * @return string
- */
-function util_strip_accents($text) {
- $find = utf8_decode($text);
- $find = strtr($find,
- utf8_decode('àáâãäçèéêëìíîïñòóôõöùúûüýÿÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖÙÚÛÜÝ'),
- 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY');
- return utf8_encode($find);
-}
-
-/**
* Constructs the forge's URL prefix out of forge_get_config('url_prefix')
*
* @return string
}
}
echo $HTML->listTableBottom();
- /*echo '<br /><center>' . html_build_rich_textarea('filedata',30,150,$filedata,false) . '</center>';*/
echo '<br />';
if ($has_write) {
echo '<div align="center"><input type="submit" name="doedit" value="' . _('Save') .'"/></div>';
}
/**
- * html_dbimage() - Show an image that is stored in the database
- *
- * @param int The id of the image to show
- */
-function html_dbimage($id, $args=0) {
- if (!$id) {
- return '';
- }
- if (!$args) {
- $args = array();
- }
- $result = db_query_params ('SELECT width,height,version
-FROM db_images WHERE id=$1',
- array ($id));
- $rows=db_numrows($result);
-
- if (!$result || $rows < 1) {
- return db_error();
- } else {
- return html_abs_image('/dbimage.php?id='.$id.'&v='.db_result($result,0,'version'),db_result($result,0,'width'),db_result($result,0,'height'),$args);
- }
-}
-
-/**
* html_abs_image() - Show an image given an absolute URL.
*
* @param string URL
return $hashstr;
}
-/**
- * html_build_rich_textarea() - Renders textarea control
- *
- * @param name (string) - the name for the control
- * @param rows (int) - the rows for the control (number of visible text lines)
- * @param cols (int) - the cols for the control (visible width in average character widths)
- * @param text (string) - initial text to be displayed
- * @param readonly (boolean) - if the text cannot be modified
- * @return html code for control
- */
-function html_build_rich_textarea($name,$rows,$cols,$text,$readonly) {
- return '<textarea name="'.$name.'"'
- .' rows="'.$rows.'"'
- .' cols="'.$cols.'"'
- .($readonly ? ' readonly' : ' ').'>'
- . $text . '</textarea>';
-}
-
// Local Variables:
// mode: php
// c-file-style: "bsd"