diff -w -B --recursive --new-file -u bibadmin-0.5/account.php bibadmin/account.php
--- bibadmin-0.5/account.php	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/account.php	2005-12-14 09:47:17.000000000 +0100
@@ -47,6 +47,7 @@
 }
 
 function getCol($col){
+  global $server_http_protocol;
   if (empty($col))
     return '<td nowrap> <i>Df</i> </td>';
   else if (strtolower($col)=='none') 
@@ -268,7 +269,7 @@
 		   $headers = get_mail_headers($logged_user->email, false, '', true, $admin_mail, 'html'); 
 		   $req_path = $_SERVER['REQUEST_URI'];
 		   if (is_integer($pos = strrpos($req_path, "/"))) $req_path = substr($req_path, 0, $pos+1);
-		   $req_path = "http://".$_SERVER['SERVER_NAME'].$req_path;
+       $req_path = $server_http_protocol."://".$_SERVER['SERVER_NAME'].$req_path;
 		   mail($ad_usr->email, $mail_subj_prefix.'[ACCOUNT] '.$user.' has '.($approve_uid?'ENABLED ':($deny_uid?'DISABLED ':' ')).$ad_usr->first_name.' '.$ad_usr->last_name.'\'s account \''.$ad_usr->user.'\'', "<html><body>Dear ".$ad_usr->first_name.' '.$ad_usr->last_name.',<br><br>'.$user.' has <b>'.($approve_uid?'enabled':($deny_uid?'disabled':''))."</b> your account on ".$team_name." ".$publicationl.'s server.<br><br>'.($approve_uid?'You can now login and add/modify your publications.<br><br>':($deny_uid?'You can no longer login on this server!<br><BR>':''))."<br>--<br><a href='".$req_path."'>".$req_path."</a></body></html>", $headers);
 		 }
 	       } else {
@@ -612,8 +613,8 @@
 		 $headers = get_mail_headers($email, false, '', false, '', 'html');
 
 		 mail($admin_mail, $mail_subj_prefix.'['.(empty($modify)?"ADD":"MODIFY")." USER] $f_name $l_name ($user_n)  from $comp_name/$ip", "<br>".(empty($modify)?($users_approve_creation?'Request to add a':'Added').' new':"Modified #$userid")." user from IP: $comp_name / $ip<br><br>First name: $f_name<br>Last name: $l_name<br>Login User Name: $user_n<br>E-mail: ".str_replace('<','&lt;',str_replace('>','&gt;',$email))."<br><br><br>".
-		      ((empty($modify) && $users_approve_creation)?"To <b>activate</b> this account, <a href='http://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=adm&amp;apprv_usr=".$userid."'>click here</a> (administrator login required).<br><br>
-To <b>deny</b> this account creation request, <a href='http://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=adm&amp;deny_usr=".$userid."'>click here</a> (administrator login required)."
+          ((empty($modify) && $users_approve_creation)?"To <b>activate</b> this account, <a href='".$server_http_protocol."://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=adm&amp;apprv_usr=".$userid."'>click here</a> (administrator login required).<br><br>
+To <b>deny</b> this account creation request, <a href='".$server_http_protocol."://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=adm&amp;deny_usr=".$userid."'>click here</a> (administrator login required)."
 		       :''), $headers);
 		 if (!$users_approve_creation) {
 		   setcookie('user', $l_name.", ".$f_name);
@@ -681,7 +682,7 @@
 	     echo titlu("left", "$subt_col", "000000", "&nbsp; ".$test);
 	   }
 	   
-	   if ($users_approve_creation && !$acc_created_and_w) {
+     if (/*$users_approve_creation &&*/ !$acc_created_and_w) {
 	   echo "\n<tr><td>\n".
 	     (empty($chg)?"":"<form action='$account_sc?ch=$chg' name='acc_inf_form' method='post'>
 <input type='hidden' name='uid' value='$userid'>\n".
@@ -703,8 +704,8 @@
 	     $current_dir = substr($current_dir, 0, $pos);
 	   unset($pos);
 	   $current_dir = substr($current_dir, 0, strrpos($current_dir, "/"));	   
-	   echo ((empty($chg) || $chg=='sty' || ($chg=='all' && $allfields))?get_li((!empty($chg)?'CSS ':'').'Style', 'text', 'css', (empty($chg)?'</b>CSS: '.(empty($css)?'<i>Empty</i>':'<b>OK</b>').'<br>My URL: '.((empty($userid) || empty($auth_id))?'<i>Empty</i>':"<b><a href=\""."http://". $_SERVER["HTTP_HOST"] . $current_dir .'/'. $show_sc."?author=$auth_ident&amp;col_uid=$userid"."\">OK</a></b>")."<br>$btb<tr><td>Colors: &nbsp;</td><td><table border='1'><tr>".getCol($body_col).' '.getCol($tit_c).' '. getCol($st_c).' '. getCol($col_1).' '. getCol($col_2).'</tr>'.$etb."</td></tr>$etb<b>":$css), '70', (empty($chg)?"<td> &nbsp; <a href=\"$account_sc?ch=sty\">Change</a></td>":'')) :'').
-	     (($chg=='sty' || ($chg=='all' && $allfields))?get_li('My URL', '', '', ((empty($userid) || empty($auth_id))?'</b><i>Empty</i><b>':'</b>'."http://". $_SERVER["HTTP_HOST"] . $current_dir .'/'. $show_sc."?author=$auth_ident&amp;col_uid=$userid<br> &nbsp; (You must have <i>&amp;col_uid=$userid</i> in the URL, then put the URL on your home page).".'<b>'), '', '').
+     echo ((empty($chg) || $chg=='sty' || ($chg=='all' && $allfields))?get_li((!empty($chg)?'CSS ':'').'Style', 'text', 'css', (empty($chg)?'</b>CSS: '.(empty($css)?'<i>Empty</i>':'<b>OK</b>').'<br>My URL: '.((empty($userid) || empty($auth_id))?'<i>Empty</i>':"<b><a href=\"".$server_http_protocol."://". $_SERVER["HTTP_HOST"] . $current_dir .'/'. $show_sc."?author=$auth_ident&amp;col_uid=$userid"."\">OK</a></b>")."<br>$btb<tr><td>Colors: &nbsp;</td><td><table border='1'><tr>".getCol($body_col).' '.getCol($tit_c).' '. getCol($st_c).' '. getCol($col_1).' '. getCol($col_2).'</tr>'.$etb."</td></tr>$etb<b>":$css), '70', (empty($chg)?"<td> &nbsp; <a href=\"$account_sc?ch=sty\">Change</a></td>":'')) :'').
+       (($chg=='sty' || ($chg=='all' && $allfields))?get_li('My URL', '', '', ((empty($userid) || empty($auth_id))?'</b><i>Empty</i><b>':'</b>'.$server_http_protocol."://". $_SERVER["HTTP_HOST"] . $current_dir .'/'. $show_sc."?author=$auth_ident&amp;col_uid=$userid<br> &nbsp; (You must have <i>&amp;col_uid=$userid</i> in the URL, then put the URL on your home page).".'<b>'), '', '').
 	      '<tr><td colspan=\'2\'><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b>Set your custom colors:</b><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - to use default color leave the field empty,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - to use no color, just put <i>none</i> in the field.</td></tr>'.
 	      get_li('Body color', 'text', 'body_col', $body_col, '20', '').
 	      get_li('Title color', 'text', 'tit_c', $tit_c, '20', '').
diff -w -B --recursive --new-file -u bibadmin-0.5/basket.php bibadmin/basket.php
--- bibadmin-0.5/basket.php	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/basket.php	2005-12-13 10:01:09.000000000 +0100
@@ -35,7 +35,7 @@
 
 
 function download(&$res, $ids, $file_name, $title) {
-  global $default_dnwl_file_name, $host, $login_user_db, $login_pass_db, $db_bibliography, $tb_publications, $user;
+  global $default_dnwl_file_name, $host, $login_user_db, $login_pass_db, $db_bibliography, $tb_publications, $user, $server_http_protocol;
   if (empty($file_name)) $file_name = $default_dnwl_file_name;
   
   header("Content-Type: application/octet-stream");
@@ -44,7 +44,7 @@
   
   echo "\n
 %
-% GENERATED FROM http://".$_SERVER["HTTP_HOST"].$_SERVER["PATH_INFO"]."
+% GENERATED FROM ".$server_http_protocol."://".$_SERVER["HTTP_HOST"].$_SERVER["PATH_INFO"]."
 %    by   : ".(empty($user)?"anonymous":$user)."
 %    IP   : ".getHostByAddr(GetEnv("REMOTE_ADDR"))."
 %    at   : ".date ("r")." GMT
diff -w -B --recursive --new-file -u bibadmin-0.5/bibadmin.js bibadmin/bibadmin.js
--- bibadmin-0.5/bibadmin.js	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/bibadmin.js	2005-12-14 22:21:38.000000000 +0100
@@ -357,9 +357,12 @@
     else
       trms = trms.replace(re, ' ');
   }
+//   var re2 = new RegExp ('+', 'gi');
+//  trms=trms.replace(re2, '%2b');
   re=new RegExp (' ', 'gi');
   trms=trms.replace(re,'+');
   trms=escape(trms);
+//  trms=encodeURIComponent(trms);
   if (document.search.action.indexOf('?')>0)
     re='&';
   else 
diff -w -B --recursive --new-file -u bibadmin-0.5/create_db.php bibadmin/create_db.php
--- bibadmin-0.5/create_db.php	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/create_db.php	2005-12-13 22:32:34.000000000 +0100
@@ -121,7 +121,7 @@
   surname VARCHAR(30) default NULL,
   ident VARCHAR(30) default NULL,
   homepage VARCHAR(255) default NULL,
-  indexed ENUM('".$status_list[0]."', '".$status_list[1]."', '".$status_list[2]."') NOT NULL default '".$status_list[0]."',
+  indexed ENUM('".$status_list[0]."', '".$status_list[1]."', '".$status_list[2]."') NOT NULL default '".$status_list[$default_status]."',
   valid char(1) NOT NULL default 'y',
   PRIMARY KEY  (`id`),
   KEY `name` (`name`),
diff -w -B --recursive --new-file -u bibadmin-0.5/delete.php bibadmin/delete.php
--- bibadmin-0.5/delete.php	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/delete.php	2005-12-13 10:01:41.000000000 +0100
@@ -25,7 +25,7 @@
   global $db_bibliography, $tb_publications, $tb_authors, $tb_pub_to_auth, $tb_keywords,
     $tb_pub_to_keyw, $tb_bib_to_pub, $tb_bibs, $tb_comments, $warn_col,
     $var_methods_type, $userid, $admin_mail, $user, $subt_col, $tm, $modifs_save_copy,
-    $modifs_notify_admins, $user_admin, $tb_tmp_pubs, $account_sc, $publicationl, $webm_mail, $tb_users, $mail_subj_prefix;
+    $modifs_notify_admins, $user_admin, $tb_tmp_pubs, $account_sc, $publicationl, $webm_mail, $tb_users, $mail_subj_prefix, $server_http_protocol;
 
   if ($tm || ($modifs_notify_admins && !$user_admin)) {
     //send notification email
@@ -39,7 +39,7 @@
     unset($pos);
     if (is_integer($pos = strrpos($req_path, "/"))) $req_path = substr($req_path, 0, $pos + 1);
     
-    mail($admin_mail, $mail_subj_prefix."[DELETE PUB] ".($user?$user:"$comp_name").($tm?'':" deleted")." pub #$record_id from $comp_name/$ip", "<html><body>User: ".($user?"$user":"Not logged in")." &nbsp; &nbsp; from IP: $comp_name / $ip<br><br>".($tm?"wants to <b>DELETE</b>":"has <b>DELETED</b>")." the following ".$publicationl.":<br><br><div style='background-color: $subt_col'>".$publi."</div><br><br><a href='http://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=tmp&amp;ord=Date&amp;how=asc'>Click here</a> to see this modification.</body></html>", $headers);
+    mail($admin_mail, $mail_subj_prefix."[DELETE PUB] ".($user?$user:"$comp_name").($tm?'':" deleted")." pub #$record_id from $comp_name/$ip", "<html><body>User: ".($user?"$user":"Not logged in")." &nbsp; &nbsp; from IP: $comp_name / $ip<br><br>".($tm?"wants to <b>DELETE</b>":"has <b>DELETED</b>")." the following ".$publicationl.":<br><br><div style='background-color: $subt_col'>".$publi."</div><br><br><a href='".$server_http_protocol."://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=tmp&amp;ord=Date&amp;how=asc'>Click here</a> to see this modification.</body></html>", $headers);
     //end send notification mail
   }
 
diff -w -B --recursive --new-file -u bibadmin-0.5/fc_common.php bibadmin/fc_common.php
--- bibadmin-0.5/fc_common.php	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/fc_common.php	2005-12-14 22:22:29.000000000 +0100
@@ -360,7 +360,7 @@
 
 function search_f($script_name, $terms, $in, $leastthree, $small) {
   global $user;
-  return "<form method='post' action='$script_name' name='search' onSubmit='qry(); return false;'>".(!$small?"
+  return "<form method='get' action='$script_name' name='search' onSubmit='qry(); return false;'>".(!$small?"
        &nbsp; &nbsp; <u>S</u>earch for: ":'<font size="1" face="Verdana">&nbsp;<u>S</u>earch: </font>')."<input type='text' name='terms' value='$terms' accesskey='s' size='45'".($small?" class='txtb' style='width: 141'><font size='1' face='Verdana'>":">")." in  ".($small?"</font>":'')."<SELECT name='s_in'".($small?" class='txtb' style='width: 60'":'').">
        <OPTION ".($in=='all'?'selected ':'')."value=\"all\">All</OPTION>
        <OPTION value=\"aut\"".($in=='aut'?' selected':'').">Authors</OPTION>
diff -w -B --recursive --new-file -u bibadmin-0.5/fc_display.php bibadmin/fc_display.php
--- bibadmin-0.5/fc_display.php	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/fc_display.php	2005-12-14 10:04:42.000000000 +0100
@@ -3,11 +3,91 @@
 require_once('./fc_text.php');
 require_once('./parameters.php');
 
-function highl($display_value, $patterns){
-	return highlight($display_value, "", $patterns);
+function highl($display_value, $bibtex, $patterns){
+  return highlight($display_value, "", $bibtex, $patterns);
 }
 
-function highlight($display_value, $search_value, $patterns){
+/* returns bibtex converted string (diacritical) coded in ISO/IEC 8859-1*/
+function charToBibtex($in) {
+  $arrayToBibtex = array(
+    chr(0x26) => "{\\&}",
+
+    chr(0xC0) => "{\\`A}",
+    chr(0xC1) => "{\\'A}",
+    chr(0xC2) => "{\\^A}",
+    chr(0xC3) => "{\\~A}",
+    chr(0xC4) => "{\\\"A}",
+    chr(0xC5) => "{\\AA}",
+    chr(0xC6) => "{\\AE}",
+    chr(0xC7) => "{\\cC}",
+    chr(0xC8) => "{\\`E}",
+    chr(0xC9) => "{\\'E}",
+    chr(0xCA) => "{\\^E}",
+    chr(0xCB) => "{\\\"E}",
+    chr(0xCC) => "{\\`I}",
+    chr(0xCD) => "{\\'I}",
+    chr(0xCE) => "{\\^I}",
+    chr(0xCF) => "{\\\"I}",
+
+    chr(0xD0) => "{\\D}",
+    chr(0xD1) => "{\\~N}",
+    chr(0xD2) => "{\\`O}",
+    chr(0xD3) => "{\\'O}",
+    chr(0xD4) => "{\\^O}",
+    chr(0xD5) => "{\\~O}",
+    chr(0xD6) => "{\\\"O}",
+    /*chr(0xD7) => "{\\}",*/
+    chr(0xD8) => "{\\O}",
+    chr(0xD9) => "{\\`U}",
+    chr(0xDA) => "{\\'U}",
+    chr(0xDB) => "{\\^U}",
+    chr(0xDC) => "{\\\"U}",
+    chr(0xDD) => "{\\'Y}",
+    /*chr(0xDE) => "{\\}",*/
+    chr(0xDF) => "{\\\"s}",
+
+    chr(0xE0) => "{\\`a}",
+    chr(0xE1) => "{\\'a}",
+    chr(0xE2) => "{\\^a}",
+    chr(0xE3) => "{\\~a}",
+    chr(0xE4) => "{\\\"a}",
+    chr(0xE5) => "{\\aa}",
+    chr(0xE6) => "{\\ae}",
+    chr(0xE7) => "{\\cc}",
+    chr(0xE8) => "{\\`e}",
+    chr(0xE9) => "{\\'e}",
+    chr(0xEA) => "{\\^e}",
+    chr(0xEB) => "{\\\"e}",
+    chr(0xEC) => "{\\`i}",
+    chr(0xED) => "{\\'i}",
+    chr(0xEE) => "{\\^I}",
+    chr(0xEF) => "{\\\"i}",
+
+    chr(0xF0) => "{\\d}",
+    chr(0xF1) => "{\\~n}",
+    chr(0xF2) => "{\\`o}",
+    chr(0xF3) => "{\\'o}",
+    chr(0xF4) => "{\\^o}",
+    chr(0xF5) => "{\\~o}",
+    chr(0xF6) => "{\\\"o}",
+    /*chr(0xF7) => "{\\}",*/
+    chr(0xF8) => "{\\o}",
+    chr(0xF9) => "{\\`u}",
+    chr(0xFA) => "{\\'u}",
+    chr(0xFB) => "{\\^u}",
+    chr(0xFC) => "{\\\"u}",
+    chr(0xFD) => "{\\'y}",
+    /*chr(0xFE) => "{\\}",*/
+    chr(0xFF) => "{\\\"y}"
+    );
+  return strtr($in, $arrayToBibtex);
+}
+
+function highlight($display_value, $search_value, $bibtex, $patterns){
+  global $code_diacritical_out;
+  if (!empty($bibtex) and $code_diacritical_out){
+   $display_value = charToBibtex($display_value);
+  }
 	$replace_no = 0;
 	$result = $display_value;
 	if (!empty($patterns)){
@@ -70,35 +150,35 @@
 			echo "},";
 		}
 		echo space_it($ech) . "TITLE = {".
-		highl($row->title, $patterns)."}";
+    highl($row->title, $bibtex, $patterns)."}";
 		if (!empty($row->year)){
 			echo ",".space_it($ech)."YEAR = {".
-			highl($row->year, $patterns)."}";
+      highl($row->year, $bibtex, $patterns)."}";
 		}
 		display_months($row, $bibtex, $patterns);
 		if (!empty($row->journal)){
 			echo ",".space_it($ech)."JOURNAL = {".
-			highl($row->journal, $patterns)."}";
+      highl($row->journal, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->booktitle)){
 			echo ",".space_it($ech)."BOOKTITLE = {".
-			highl($row->booktitle, $patterns)."}";
+      highl($row->booktitle, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->key_)){
 			echo ",".space_it($ech)."KEY = {".
-			highl($row->key_, $patterns)."}";
+      highl($row->key_, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->volume)){
 			echo ",".space_it($ech)."VOLUME = {".
-			highl($row->volume, $patterns)."}";
+      highl($row->volume, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->number_)){
 			echo ",".space_it($ech)."NUMBER = {".
-			highl($row->number_, $patterns)."}";
+      highl($row->number_, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->pages)){
 			echo ",".space_it($ech)."PAGES = {".
-			highl($row->pages, $patterns)."}";
+      highl($row->pages, $bibtex, $patterns)."}";
 		}
 
 		if ($list_edts){
@@ -109,53 +189,53 @@
 
 		if (!empty($row->series)){
 			echo ",".space_it($ech)."SERIES = {".
-			highl($row->series, $patterns)."}";
+      highl($row->series, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->address)){
 			echo ",".space_it($ech)."ADDRESS = {".
-			highl($row->address, $patterns)."}";
+      highl($row->address, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->organization)){
 			echo ",".space_it($ech)."ORGANIZATION = {".
-			highl($row->organization, $patterns)."}";
+      highl($row->organization, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->publisher)){
 			echo ",".space_it($ech)."PUBLISHER = {".
-			highl($row->publisher, $patterns)."}";
+      highl($row->publisher, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->school)){
 			echo ",".space_it($ech)."SCHOOL = {".
-			highl($row->school, $patterns)."}";
+      highl($row->school, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->edition)){
 			echo ",".space_it($ech)."EDITION = {".
-			highl($row->edition, $patterns)."}";
+      highl($row->edition, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->chapter)){
 			echo ",".space_it($ech)."CHAPTER = {".
-			highl($row->chapter, $patterns)."}";
+      highl($row->chapter, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->type)){
 			echo ",".space_it($ech)."TYPE = {".
-			highl($row->type, $patterns)."}";
+      highl($row->type, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->crossref)){
 			echo ",".space_it($ech)."CROSSREF = {".
-			highl($row->crossref, $patterns)."}";
+      highl($row->crossref, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->howpublished)){
 			echo ",".space_it($ech)."HOWPUBLISHED = {".
-			highl($row->howpublished, $patterns)."}";
+      highl($row->howpublished, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->institution)){
 			echo ",".space_it($ech)."INSTITUTION = {".
-			highl($row->institution, $patterns)."}";
+      highl($row->institution, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->url)){
 		  if ($user or ($row->acc_url==1)) {
 			echo ",".space_it($ech).
 			  (($row->acc_url==0 && $bibtex!=-1)?"<i>":"")."URL = {".
-			  highlight(str_replace("&", "&amp;", str_replace("&amp;", "&", $row->url)), $row->url, $patterns).(($row->acc_url==0 && $bibtex!=-1)?"</i>":"")."}";
+        highlight(str_replace("&", "&amp;", str_replace("&amp;", "&", $row->url)), $row->url, $bibtex, $patterns).(($row->acc_url==0 && $bibtex!=-1)?"</i>":"")."}";
 			if ($user && $row->acc_url!=1 && $bibtex==-1)
 			  echo ",".space_it($ech)."OPTacc_url = {}";
 		  }
@@ -164,7 +244,7 @@
 		  if ($user or ($row->acc_pdf==1)) {
 			echo ",".space_it($ech).
 			  (($row->acc_pdf==0 && $bibtex!=-1)?"<i>":"")."PDF = {".
-			  highlight(str_replace("&", "&amp;",  str_replace("&amp;", "&",$row->pdf)), $row->pdf, $patterns).(($row->acc_pdf==0 && $bibtex!=-1)?"</i>":"")."}";
+        highlight(str_replace("&", "&amp;",  str_replace("&amp;", "&",$row->pdf)), $row->pdf, $bibtex, $patterns).(($row->acc_pdf==0 && $bibtex!=-1)?"</i>":"")."}";
 			if ($user && $row->acc_pdf!=1 && $bibtex==-1)
 			  echo ",".space_it($ech)."OPTacc_pdf = {}";
 		  }
@@ -173,7 +253,7 @@
 		  if ($user or ($row->acc_ps==1)) {
 			echo ",".space_it($ech).
 			  (($row->acc_ps==0 && $bibtex!=-1)?"<i>":"")."PS = {".
-			  highlight(str_replace("&", "&amp;",  str_replace("&amp;", "&", $row->ps)), $row->ps, $patterns).(($row->acc_ps==0 && $bibtex!=-1)?"</i>":"")."}";
+        highlight(str_replace("&", "&amp;",  str_replace("&amp;", "&", $row->ps)), $row->ps, $bibtex, $patterns).(($row->acc_ps==0 && $bibtex!=-1)?"</i>":"")."}";
 			if ($user && $row->acc_ps!=1 && $bibtex==-1)
 			  echo ",".space_it($ech)."OPTacc_ps = {}";
 		  }
@@ -182,22 +262,22 @@
 		  if ($user or ($row->acc_slides==1)) {
 			echo ",".space_it($ech).
 			  (($row->acc_slides==0 && $bibtex!=-1)?"<i>":"")."SLIDES = {".
-			  highlight(str_replace("&", "&amp;",  str_replace("&amp;", "&", $row->slides)), $row->slides, $patterns).(($row->acc_slides==0 && $bibtex!=-1)?"</i>":"")."}";
+        highlight(str_replace("&", "&amp;",  str_replace("&amp;", "&", $row->slides)), $row->slides, $bibtex, $patterns).(($row->acc_slides==0 && $bibtex!=-1)?"</i>":"")."}";
 			if ($user && $row->acc_slides!=1 && $bibtex==-1)
 			  echo ",".space_it($ech)."OPTacc_slides = {}";
 		  }
 		}
 		if (!empty($row->abstract)){
 			echo ",".space_it($ech)."ABSTRACT = {".
-			highl($row->abstract, $patterns)."}";
+      highl($row->abstract, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->note)){
 			echo ",".space_it($ech)."NOTE = {".
-			highl($row->note, $patterns)."}";
+      highl($row->note, $bibtex, $patterns)."}";
 		}
 		if (!empty($row->annote)){
 			echo ",".space_it($ech)."ANNOTE = {".
-			highl($row->annote, $patterns)."}";
+      highl($row->annote, $bibtex, $patterns)."}";
 		}
 		display_keywords($db_bibliography, $id_pub, $cu_link, $bibtex, $patterns);
 		echo ($ech?"<br>}":"\n}");
@@ -221,10 +301,10 @@
 		      echo ' editor'.(count($list_edts)>1?'s':'').'. ';
 		    } 
 		  }
-		  else if ($row->entry_type == 'Manual') echo highl($row->organization,$patterns).'. ';
+      else if ($row->entry_type == 'Manual') echo highl($row->organization, $bibtex,$patterns).'. ';
 		}
 
-		echo "<b>".highl($row->title, $patterns) . "</b>";
+    echo "<b>".highl($row->title, $bibtex, $patterns) . "</b>";
 		$tlc = $row->title{strlen($row->title)-1};
 		if (!in_array($tlc, array('.','?','!','¿','¡',')',']'))) echo '. ';
 		$sep=true;
@@ -242,30 +322,30 @@
 		}
 
 		if (!empty($row->booktitle)) {
-		  echo (($in == 1 ? ($sep?' ':", "):" In ")."<i>").highl($row->booktitle,$patterns)."</i>";
+      echo (($in == 1 ? ($sep?' ':", "):" In ")."<i>").highl($row->booktitle, $bibtex,$patterns)."</i>";
 		  $in = 1;
 		  $sep = false;
 		}
 
 		if ($row->entry_type == "PhdThesis"){
-		  echo " ".highlight("PhD thesis", $row->entry_type, $patterns);
+      echo " ".highlight("PhD thesis", $row->entry_type, $bibtex, $patterns);
 		  $sep=false;
 		}
 		else if ($row->entry_type == "MastersThesis"){
-		  echo " ".highlight("Master's thesis", $row->entry_type, $patterns);
+      echo " ".highlight("Master's thesis", $row->entry_type, $bibtex, $patterns);
 		  $sep=false;
 		}
 		else if ($row->entry_type == "TechReport"){
-		  echo " ".highlight("Technical report", $row->entry_type,$patterns);
+      echo " ".highlight("Technical report", $row->entry_type, $bibtex,$patterns);
 		  $sep=false;
 		}
 
 		if (!empty($row->journal)) {
-		  echo ($in == 1 ? ($sep?' ':", "):" In ")." <i>".highl($row->journal, $patterns)."</i>";
+      echo ($in == 1 ? ($sep?' ':", "):" In ")." <i>".highl($row->journal, $bibtex, $patterns)."</i>";
 		  $sep=false;
 		}
 		if (!empty($row->howpublished)){
-		  echo ($sep?' ':", ").highl($row->howpublished, $patterns);
+      echo ($sep?' ':", ").highl($row->howpublished, $bibtex, $patterns);
 		  $sep=false;
 		}
 
@@ -276,76 +356,76 @@
 			if (!empty($row->volume)){
 				echo ($sep?' ':", ")."Vol. ";
 				if (!empty($row->number_)){
-					echo highl($row->volume, $patterns)."(".highl($row->number_,$patterns).")";
+          echo highl($row->volume, $bibtex, $patterns)."(".highl($row->number_, $bibtex,$patterns).")";
 					if (!empty($row->pages))
-					echo ":".highl($row->pages,$patterns);
+          echo ":".highl($row->pages, $bibtex,$patterns);
 				} else if (!empty($row->pages))
-				echo " ".$row->volume.":".highl($row->pages,$patterns);
-				else echo highl($row->volume, $patterns);
+        echo " ".$row->volume.":".highl($row->pages, $bibtex,$patterns);
+        else echo highl($row->volume, $bibtex, $patterns);
 				if (!empty($row->series))
-				echo " of <i>".highl($row->series, $patterns)."</i>";
+        echo " of <i>".highl($row->series, $bibtex, $patterns)."</i>";
 				$sep = false;
 			} else if (!empty($row->number_)){
 			        if (!empty($row->pages))
-				  echo ($sep?' ':", ")."(".highl($row->number_,$patterns)."):".
+          echo ($sep?' ':", ")."(".highl($row->number_, $bibtex,$patterns)."):".
 				    highl($row->pages,$patterns);
 				else 
-				  echo ($sep?' ':", ")."Nr. (".highl($row->number_,$patterns).")";
+          echo ($sep?' ':", ")."Nr. (".highl($row->number_, $bibtex,$patterns).")";
 				$sep = false;
 			} else if (!empty($row->pages)) {
-			  echo ($sep?' ':", ")."Pages ".highl($row->pages,$patterns);
+        echo ($sep?' ':", ")."Pages ".highl($row->pages, $bibtex,$patterns);
 			  $sep = false;
 			}
 
 			if (!empty($row->type)){
-			  echo ($sep?' ':", ").highl($row->type,$patterns);
+        echo ($sep?' ':", ").highl($row->type, $bibtex,$patterns);
 			  $sep=false;
 			}
 		} else {
 		        if (!empty($row->type)) {
 			  if (!empty($row->number_)){
-				echo ($sep?' ':", ").highl($row->type,$patterns)." ".highl($row->number_,$patterns);
-			  } else echo ($sep?' ':", ").highl($row->type,$patterns);
+        echo ($sep?' ':", ").highl($row->type, $bibtex,$patterns)." ".highl($row->number_, $bibtex,$patterns);
+        } else echo ($sep?' ':", ").highl($row->type, $bibtex,$patterns);
 			  $sep=false;
 			} else if (!empty($row->number_)) {
-			  echo ($sep?' ':", ").highl($row->number_,$patterns);
+        echo ($sep?' ':", ").highl($row->number_, $bibtex,$patterns);
 			  $sep=false;
 			}
 		}
 		if (!empty($row->chapter)){
-		  echo ($sep?' ':", ")."Chapter ".highl($row->chapter,$patterns);
+      echo ($sep?' ':", ")."Chapter ".highl($row->chapter, $bibtex,$patterns);
 		  $sep=false;
 		}
 		if(!empty($row->institution)){
-		  echo ($sep?' ':", ").'<i>'.highl($row->institution,$patterns).'</i>';
+      echo ($sep?' ':", ").'<i>'.highl($row->institution, $bibtex,$patterns).'</i>';
 		  $sep=false;
 		}
 		if (!empty($row->school)){
-		  echo ($sep?' ':", ").'<i>'.highl($row->school,$patterns).'</i>';
+      echo ($sep?' ':", ").'<i>'.highl($row->school, $bibtex,$patterns).'</i>';
 		  $sep=false;
 		}
 		if (($list_auth || $row->entry_type != 'Manual') && !empty($row->organization)) {
-		  echo ($sep?' ':", ").'<i>'.highl($row->organization,$patterns).'</i>';
+      echo ($sep?' ':", ").'<i>'.highl($row->organization, $bibtex,$patterns).'</i>';
 		  $sep=false;
 		}
 		if (!empty($row->publisher)){
-		  echo ($sep?' ':", ").highl($row->publisher,$patterns);
+      echo ($sep?' ':", ").highl($row->publisher, $bibtex,$patterns);
 		  $sep=false;
 		}
 		if (!empty($row->address)){
-		  echo ($sep?' ':", ").highl($row->address,$patterns);
+      echo ($sep?' ':", ").highl($row->address, $bibtex,$patterns);
 		  $sep=false;
 		}
 
 		if (!empty($row->edition)){
-		  echo ($sep?' ':", ").'<i>'.highl($row->edition,$patterns) ." edition</i>";
+      echo ($sep?' ':", ").'<i>'.highl($row->edition, $bibtex,$patterns) ." edition</i>";
 		  $sep = false;
 		}
 
 		echo ($sep?' ':", ");
 		display_months($row, $bibtex, $patterns);
 
-		echo " ".($cu_link?"<a href=\"$show_sc?year=".$row->year."\" title='".$publication.'s '.(empty($row->year)?"with no year defined":"of year ".$row->year)."'>":'').highl($row->year,$patterns).($cu_link?"</a>":'').".";
+    echo " ".($cu_link?"<a href=\"$show_sc?year=".$row->year."\" title='".$publication.'s '.(empty($row->year)?"with no year defined":"of year ".$row->year)."'>":'').highl($row->year, $bibtex,$patterns).($cu_link?"</a>":'').".";
 		if (!empty($row->url) and ($user or ($row->acc_url==1))) 
 		  echo " <a href=\"".str_replace("&", "&amp;",  str_replace("&amp;", "&", $row->url))."\" title=\"URL\" target=\"_blank\"><img src=\"images/url.gif\" alt=\"URL\" height=\"18\" width=\"17\" border=\"0\" align=\"middle\"></a>";
 		if (!empty($row->pdf) and ($user or ($row->acc_pdf==1)))
@@ -356,7 +436,7 @@
 		  echo " <a href=\"".str_replace("&", "&amp;", str_replace("&amp;", "&", $row->slides))."\" title=\"PPT\" target=\"_blank\"><img src=\"images/ppt.gif\" alt=\"PPT\" height=\"18\" width=\"17\" border=\"0\" align=\"middle\"></a>";
 		if (!empty($row->abstract))
 		  echo " [<a href=\"$show_sc?id=" .
-		    $row->id . "&amp;type=bib\">".highlight("Abstract",$row->abstract,$patterns)."</a>]";
+        $row->id . "&amp;type=bib\">".highlight("Abstract",$row->abstract, $bibtex,$patterns)."</a>]";
 
 		require_once('./fc_comments.php');
 		$ress = mysql_db_query($db_bibliography, get_com_query($row->id, ''));
@@ -364,7 +444,7 @@
 		  if ($cu_link) echo " [<a href=\"$show_sc?id=" . $row->id . "\">";
 		  if (!empty($ress) and mysql_num_rows($ress)>0){
 		    if (!$cu_link) echo ' ';
-		    echo '<b>'.highlight(mysql_num_rows($ress).' comment'.(mysql_num_rows($ress)>1?'s':''), '', $patterns).'</b>';
+        echo '<b>'.highlight(mysql_num_rows($ress).' comment'.(mysql_num_rows($ress)>1?'s':''), '', $bibtex, $patterns).'</b>';
 		  } else {
 		    if($cu_link) echo "Comment";
 		  }
@@ -376,7 +456,7 @@
 		  echo " &nbsp; <a href=\"$show_sc?id=" .
 		    $row->id . "&amp;type=bib\" title=\"Bibtex entry\" onMouseOver=\"imgOver('bib_img_".$row->id."');return true;\" onMouseOut=\"imgOut('bib_img_".$row->id."');return true;\">".
 		    "<img src=\"images/bibtex.gif\" alt=\"Bibtex entry\" height=\"19\" width=\"58\" border=\"0\" align=\"middle\" name=\"bib_img_".$row->id."\">".
-		    //(highlight("bib-entry", $row->citation, $patterns)).
+        //(highlight("bib-entry", $row->citation, $bibtex, $patterns)).
 		    "</a>";
 		}
 		$dsp_kw = display_keywords($db_bibliography, $id_pub, $cu_link, $bibtex, $patterns);
@@ -386,12 +466,12 @@
 		    echo "<br>";
 		    $dsp_kw = true;
 		  }
-		  echo "<font face=\"Times New Roman\" size=\"3\"><b>Note:</b> ".highl($row->note,$patterns).".</font>";
+      echo "<font face=\"Times New Roman\" size=\"3\"><b>Note:</b> ".highl($row->note, $bibtex,$patterns).".</font>";
 		}
 		
 		if (!empty($row->annote)) 
 		  echo ' '.($cu_link?" [<a href=\"".  $show_sc . "?id=" .$row->id .
-			"&amp;type=bib\">":', ').highlight("Annote", $row->annote, $patterns).($cu_link?"</a>]":'');
+      "&amp;type=bib\">":', ').highlight("Annote", $row->annote, $bibtex, $patterns).($cu_link?"</a>]":'');
 	}
 }
 
@@ -557,10 +637,10 @@
    <A HREF=\"$show_sc?author=" . $ident . "\" title='".$publication.'s of '. $displ_n ."' class=\"subl\">".
 		      highlight($displ_n,
 				//str_replace(".", ". ", $ident),
-				$displ_n, $patterns).
+        $displ_n, $bibtex, $patterns).
 		      "</A>";
 		  } else {
-		    echo highlight($displ_n, $displ_n, $patterns);
+        echo highlight($displ_n, $displ_n, $bibtex, $patterns);
 		  }
 		  if ($i == count($list_auth) - 1)
 		    echo (($as_auth && empty($bibtex)) ? ". ":"");
@@ -577,13 +657,13 @@
   if($bibtex==-1) 
     $ech=false;
   echo (empty($bibtex)?"":(empty($row->month1)?"":",".space_it($ech).
-			     "MONTH = {")).highl($row->day1,$patterns);
+           "MONTH = {")).highl($row->day1, $bibtex,$patterns);
   if (!empty($row->month2) and !empty($row->day2)){
     if ($row->month1 == $row->month2)
-      echo "-" .highl($row->day2,$patterns) . " " . highl($row->month1,$patterns);
-    else echo ' ' . highl($row->month1, $patterns).
-      " - "  .highl($row->day2,$patterns) . " " . highl($row->month2,$patterns);
-  } else echo (empty($row->day1)?'':" ") . highl($row->month1,$patterns);
+      echo "-" .highl($row->day2, $bibtex,$patterns) . " " . highl($row->month1, $bibtex,$patterns);
+    else echo ' ' . highl($row->month1, $bibtex, $patterns).
+      " - "  .highl($row->day2, $bibtex,$patterns) . " " . highl($row->month2, $bibtex,$patterns);
+  } else echo (empty($row->day1)?'':" ") . highl($row->month1, $bibtex,$patterns);
   echo (empty($bibtex)?" ":(empty($row->month1)?"":"}"));
 }
 
@@ -606,7 +686,7 @@
     while ($row2 = mysql_fetch_object($result, MYSQL_ASSOC)){
       echo ($i===0 ? "":", ").
 	((empty($bib)&&$cu_link)?"<a href=\"$show_sc?keyword=".
-	 $row2->name."\" title=\"".$publication."s related to '".$row2->name."'\">":"").highl($row2->name,$patt).((empty($bib)&&$cu_link)?"</a>":"");
+   $row2->name."\" title=\"".$publication."s related to '".$row2->name."'\">":"").highl($row2->name, $bibtex,$patt).((empty($bib)&&$cu_link)?"</a>":"");
       $i = 1;
     }
     if (mysql_num_rows($result) > 0)
diff -w -B --recursive --new-file -u bibadmin-0.5/fc_records.php bibadmin/fc_records.php
--- bibadmin-0.5/fc_records.php	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/fc_records.php	2005-12-13 23:17:53.000000000 +0100
@@ -185,7 +185,7 @@
     $tb_publications, $load_sc, $show_sc, $edit_sc, $status_list, $admin_mail, $subt_col, $current_script,
     $var_methods_type, $add_sc, $col_req, $col_opt, $col_oth, $main_script, $btb, $etb, $max_size_uploaded_file,
     $tb_tmp_pubs, $account_sc, $tb_authors, $tb_pub_to_keyw, $tb_pub_to_auth, $tb_keywords, $tb_tmp_p_2_k, $default_upload_perm, $webm_mail, 
-    $modifs_save_copy, $modifs_notify_admins, $publicationl, $publication, $tb_users, $mail_subj_prefix;
+    $modifs_save_copy, $modifs_notify_admins, $publicationl, $publication, $tb_users, $mail_subj_prefix, $server_http_protocol;
 
 
 	$record_id = getParam("record_id", $var_methods_type[0]);
@@ -375,7 +375,7 @@
 			}
 			if (!empty($pdf_file)){
 				move_uploaded_file($_FILES['pdf_file']['tmp_name'], $uploaddir . "pdf/". $pdf_file);
-				$pdf = "http://". $_SERVER["HTTP_HOST"] . $current_dir . '/'. $uploaddir . "pdf/". $pdf_file;
+				$pdf = $server_http_protocol."://". $_SERVER["HTTP_HOST"] . $current_dir . '/'. $uploaddir . "pdf/". $pdf_file;
 				chmod($uploaddir . "pdf/". $pdf_file, $default_upload_perm);
 			}
 			if (isset($_FILES['ps_file']['name'])) {
@@ -383,7 +383,7 @@
 			}
 			if (!empty($ps_file)){
 				move_uploaded_file($_FILES['ps_file']['tmp_name'], $uploaddir . "ps/". $ps_file);
-				$ps = "http://". $_SERVER["HTTP_HOST"] . $current_dir . '/'. $uploaddir . "ps/". $ps_file;
+				$ps = $server_http_protocol."://". $_SERVER["HTTP_HOST"] . $current_dir . '/'. $uploaddir . "ps/". $ps_file;
 				chmod($uploaddir . "ps/". $ps_file, $default_upload_perm);
 			}
 			if (isset($_FILES['ps_file']['name'])) {
@@ -392,7 +392,7 @@
 			if (!empty($slides_file)){
 				move_uploaded_file($_FILES['slides_file']['tmp_name'],
 				$uploaddir . "slides/". $slides_file);
-				$slides = "http://". $_SERVER["HTTP_HOST"] . $current_dir . '/'. $uploaddir . "slides/". $slides_file;
+				$slides = $server_http_protocol."://". $_SERVER["HTTP_HOST"] . $current_dir . '/'. $uploaddir . "slides/". $slides_file;
 				chmod($uploaddir . "slides/". $slides_file, $default_upload_perm);
 			}
 		}
@@ -827,7 +827,7 @@
 				  unset($pos);
 				  if (is_integer($pos = strrpos($req_path, "/"))) $req_path = substr($req_path, 0, $pos + 1);
 				  
-				  $mail_body = "<html><body>User: ".($user?"$user":"Not logged in")." &nbsp; &nbsp; from IP: $comp_name / $ip<br><br>".($tm?'wants to ADD':"has <b>ADDED</b>")." (manually) the following $publicationl:<br><br><div style='background-color: $subt_col'>".$publi."</div>".(($tm || $modifs_save_copy)?"<br><br><a href='http://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=tmp&amp;ord=Date&amp;how=asc'>Click here</a> to see this modification.":'')."</body></html>";
+				  $mail_body = "<html><body>User: ".($user?"$user":"Not logged in")." &nbsp; &nbsp; from IP: $comp_name / $ip<br><br>".($tm?'wants to ADD':"has <b>ADDED</b>")." (manually) the following $publicationl:<br><br><div style='background-color: $subt_col'>".$publi."</div>".(($tm || $modifs_save_copy)?"<br><br><a href='".$server_http_protocol."://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=tmp&amp;ord=Date&amp;how=asc'>Click here</a> to see this modification.":'')."</body></html>";
 				  mail($admin_mail, $mail_subj_prefix.'[ADD PUB] '.($user?$user:"$comp_name").($tm?'':" added")." pub #$pub_id from $comp_name/$ip", $mail_body, $headers);
 				  //end send notification mail				  
 				}
@@ -961,7 +961,7 @@
 				  $mail_body .= "
 <div style='background-color: $subt_col'>
 ".getPubliFromId($edit_id)."
-</div>".(($tm || $modifs_save_copy)?"<br><br><a href='http://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=tmp&amp;ord=Date&amp;how=asc'>Click here</a> to see this modification.":'')."</body></html>";
+</div>".(($tm || $modifs_save_copy)?"<br><br><a href='".$server_http_protocol."://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=tmp&amp;ord=Date&amp;how=asc'>Click here</a> to see this modification.":'')."</body></html>";
 				  mail($admin_mail, $mail_subj_prefix.'[EDIT PUB] '.($user?$user:"$comp_name").($tm?'':" modified")." pub #$edit_id from $comp_name/$ip", $mail_body, $headers);
 				  //end send notification mail
 				}
@@ -1080,7 +1080,7 @@
 }
 
 function insert_auth($surname, $name, $pub_id, $rank, $indexed, $old_id, $tmp_modifs, $as_auth=true){
-  global $db_bibliography, $status_list, $tb_authors, $tb_tmp_auths, $tb_pub_to_auth, $tb_tmp_p_2_a, $publicationl;
+  global $db_bibliography, $status_list, $tb_authors, $tb_tmp_auths, $tb_pub_to_auth, $tb_tmp_p_2_a, $publicationl, $default_status;
   require_once('./fc_team.php');
   get_team_members($indexed_authors, $past_authors, $homepages);
 	if (!empty($name)){
@@ -1108,7 +1108,7 @@
 			      $indexed = $status_list[2];
 			    }
 			  } else {
-			    $indexed = $status_list[0];
+			    $indexed = $status_list[2];
 			  }
 			  mysql_db_query($db_bibliography, "UPDATE $tb_authors SET indexed='$indexed', homepage='$homepage' WHERE ident='$ident';");
 			} else {
@@ -1127,7 +1127,7 @@
 			      $indexed = $status_list[0];
 			    }
 			  } else {
-			    $indexed = $status_list[0];
+			    if (empty($indexed)) $indexed = $status_list[$default_status];
 			  }
 			  $sql = "INSERT INTO $tb_authors (id, name, surname, ident, indexed, homepage) VALUES ('', \"$name\", \"$surname\", \"$ident\", \"$indexed\", \"$homepage\")";
 			  if (mysql_db_query($db_bibliography, $sql)){
diff -w -B --recursive --new-file -u bibadmin-0.5/fc_show_tables.php bibadmin/fc_show_tables.php
--- bibadmin-0.5/fc_show_tables.php	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/fc_show_tables.php	2005-12-14 00:13:18.000000000 +0100
@@ -113,7 +113,7 @@
 		    "</b></font></a>".
 		    " &nbsp;&nbsp;&nbsp; ";
 		} else if ($camp == "name" && $table == $tb_keywords) {
-	  		$re .= " <a href=\"".$linking . $row->name.
+	  		$re .= " <a href=\"".$linking . urlencode($row->name).
 	    			"\" title=\"". ($is_edit ? "Edit keyword: ":$publication.'s related to ')."'".$field.
 	    			"'\"><font size=\"-1\"><b>".$field.
 				"</b></font></a>".
diff -w -B --recursive --new-file -u bibadmin-0.5/load.php bibadmin/load.php
--- bibadmin-0.5/load.php	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/load.php	2005-12-14 10:04:40.000000000 +0100
@@ -25,6 +25,161 @@
 
 echo get_header("Loading '.bib' file");
 
+
+/* returns string coded in ISO/IEC 8859-1 from bibtex string (diacritical) */
+function bibtexToCharForm($in) {
+  $arrayToChar = array(
+     "{\\\\&}"   => chr(0x26),
+
+     "{\\\\`A}"  => chr(0xC0),
+     "{\\\\\'A}"  => chr(0xC1),
+     "{\\\\^A}"  => chr(0xC2),
+     "{\\\\~A}"  => chr(0xC3),
+     "{\\\\\\\"A}" => chr(0xC4),
+     "{\\\\AA}"  => chr(0xC5),
+     "{\\\\AE}"  => chr(0xC6),
+     "{\\\\cC}"  => chr(0xC7),
+     "{\\\\`E}"  => chr(0xC8),
+     "{\\\\\'E}"  => chr(0xC9),
+     "{\\\\^E}"  => chr(0xCA),
+     "{\\\\\\\"E}" => chr(0xCB),
+     "{\\\\`I}"  => chr(0xCC),
+     "{\\\\\'I}"  => chr(0xCD),
+     "{\\\\^I}"  => chr(0xCE),
+     "{\\\\\\\"I}" => chr(0xCF),
+
+     "{\\\\D}"   => chr(0xD0),
+     "{\\\\~N}"  => chr(0xD1),
+     "{\\\\`O}"  => chr(0xD2),
+     "{\\\\\'O}"  => chr(0xD3),
+     "{\\\\^O}"  => chr(0xD4),
+     "{\\\\~O}"  => chr(0xD5),
+     "{\\\\\\\"O}" => chr(0xD6),
+  /* "{\\}"    => chr(0xD7),*/
+     "{\\\\O}"   => chr(0xD8),
+     "{\\\\`U}"  => chr(0xD9),
+     "{\\\\\'U}"  => chr(0xDA),
+     "{\\\\^U}"  => chr(0xDB),
+     "{\\\\\\\"U}" => chr(0xDC),
+     "{\\\\\'Y}"  => chr(0xDD),
+  /* "{\\}"    => chr(0xDE),*/
+     "{\\\\\\\"s}" => chr(0xDF),
+
+     "{\\\\`a}"  => chr(0xE0),
+     "{\\\\\'a}"  => chr(0xE1),
+     "{\\\\^a}"  => chr(0xE2),
+     "{\\\\~a}"  => chr(0xE3),
+     "{\\\\\\\"a}" => chr(0xE4),
+     "{\\\\aa}"  => chr(0xE5),
+     "{\\\\ae}"  => chr(0xE6),
+     "{\\\\cc}"  => chr(0xE7),
+     "{\\\\`e}"  => chr(0xE8),
+     "{\\\\\'e}"  => chr(0xE9),
+     "{\\\\^e}"  => chr(0xEA),
+     "{\\\\\\\"e}" => chr(0xEB),
+     "{\\\\`i}"  => chr(0xEC),
+     "{\\\\\'i}"  => chr(0xED),
+     "{\\\\^I}"  => chr(0xEE),
+     "{\\\\\\\"i}" => chr(0xEF),
+
+     "{\\\\d}"   => chr(0xF0),
+     "{\\\\~n}"  => chr(0xF1),
+     "{\\\\`o}"  => chr(0xF2),
+     "{\\\\\'o}"  => chr(0xF3),
+     "{\\\\^o}"  => chr(0xF4),
+     "{\\\\~o}"  => chr(0xF5),
+     "{\\\\\\\"o}" => chr(0xF6),
+  /* "{\\}"    => chr(0xF7),*/
+     "{\\\\o}"   => chr(0xF8),
+     "{\\\\`u}"  => chr(0xF9),
+     "{\\\\\'u}"  => chr(0xFA),
+     "{\\\\^u}"  => chr(0xFB),
+     "{\\\\\\\"u}" => chr(0xFC),
+     "{\\\\\'y}"  => chr(0xFD),
+  /* "{\\}"    => chr(0xFE),*/
+     "{\\\\\\\"y}" => chr(0xFF)
+    );
+  return strtr($in, $arrayToChar);
+}
+
+
+/* returns string coded in ISO/IEC 8859-1 from bibtex string (diacritical) */
+function bibtexToCharFile($in) {
+  $arrayToChar = array(
+     "{\\&}"   => chr(0x26),
+
+     "{\\`A}"  => chr(0xC0),
+     "{\\\'A}"  => chr(0xC1),
+     "{\\^A}"  => chr(0xC2),
+     "{\\~A}"  => chr(0xC3),
+     "{\\\"A}" => chr(0xC4),
+     "{\\AA}"  => chr(0xC5),
+     "{\\AE}"  => chr(0xC6),
+     "{\\cC}"  => chr(0xC7),
+     "{\\`E}"  => chr(0xC8),
+     "{\\'E}"  => chr(0xC9),
+     "{\\^E}"  => chr(0xCA),
+     "{\\\"E}" => chr(0xCB),
+     "{\\`I}"  => chr(0xCC),
+     "{\\'I}"  => chr(0xCD),
+     "{\\^I}"  => chr(0xCE),
+     "{\\\"I}" => chr(0xCF),
+
+     "{\\D}"   => chr(0xD0),
+     "{\\~N}"  => chr(0xD1),
+     "{\\`O}"  => chr(0xD2),
+     "{\\'O}"  => chr(0xD3),
+     "{\\^O}"  => chr(0xD4),
+     "{\\~O}"  => chr(0xD5),
+     "{\\\"O}" => chr(0xD6),
+  /* "{\\}"    => chr(0xD7),*/
+     "{\\O}"   => chr(0xD8),
+     "{\\`U}"  => chr(0xD9),
+     "{\\'U}"  => chr(0xDA),
+     "{\\^U}"  => chr(0xDB),
+     "{\\\"U}" => chr(0xDC),
+     "{\\'Y}"  => chr(0xDD),
+  /* "{\\}"    => chr(0xDE),*/
+     "{\\\"s}" => chr(0xDF),
+
+     "{\\`a}"  => chr(0xE0),
+     "{\\'a}"  => chr(0xE1),
+     "{\\^a}"  => chr(0xE2),
+     "{\\~a}"  => chr(0xE3),
+     "{\\\"a}" => chr(0xE4),
+     "{\\aa}"  => chr(0xE5),
+     "{\\ae}"  => chr(0xE6),
+     "{\\cc}"  => chr(0xE7),
+     "{\\`e}"  => chr(0xE8),
+     "{\\'e}"  => chr(0xE9),
+     "{\\^e}"  => chr(0xEA),
+     "{\\\"e}" => chr(0xEB),
+     "{\\`i}"  => chr(0xEC),
+     "{\\'i}"  => chr(0xED),
+     "{\\^I}"  => chr(0xEE),
+     "{\\\"i}" => chr(0xEF),
+
+     "{\\d}"   => chr(0xF0),
+     "{\\~n}"  => chr(0xF1),
+     "{\\`o}"  => chr(0xF2),
+     "{\\'o}"  => chr(0xF3),
+     "{\\^o}"  => chr(0xF4),
+     "{\\~o}"  => chr(0xF5),
+     "{\\\"o}" => chr(0xF6),
+  /* "{\\}"    => chr(0xF7),*/
+     "{\\o}"   => chr(0xF8),
+     "{\\`u}"  => chr(0xF9),
+     "{\\'u}"  => chr(0xFA),
+     "{\\^u}"  => chr(0xFB),
+     "{\\\"u}" => chr(0xFC),
+     "{\\'y}"  => chr(0xFD),
+  /* "{\\}"    => chr(0xFE),*/
+     "{\\\"y}" => chr(0xFF)
+    );
+  return strtr($in, $arrayToChar);
+}
+
+
 function insert_entry(&$entry_type, &$citation, &$title, &$year, 
 			&$month1, &$day1,
 			&$month2, &$day2, &$journal, &$booktitle, &$key_,
@@ -802,7 +957,7 @@
 }
 
 function noOPT($buffer){
-  global $acc_url, $acc_slides, $acc_ps, $acc_pdf;
+  global $acc_url, $acc_slides, $acc_ps, $acc_pdf, $server_http_protocol;
   if (strtolower(substr($buffer, 0, 3)) == "opt" && is_int($p=strpos($buffer, '='))) {
     $test = trim(substr($buffer, 3, $p-3));
     if ($test == 'acc_url')
@@ -844,11 +999,21 @@
 	$buffer = substr($bibtex_txt, 0, $pos_br===false?strlen($bibtex_txt):$pos_br);
 	$bibtex_txt = substr($bibtex_txt, $pos_br+4,strlen($bibtex_txt));
 	//echo $buffer. "<br><br>".$bibtex_txt; exit;
+      }
 
+        if ($code_diacritical_in){
+          //print "blablub";
+          //echo $buffer;
+          if ($up_fil) {
+            $buffer = bibtexToCharFile($buffer);
+          } else {
+            $buffer = bibtexToCharForm($buffer);
       }
+          //echo $buffer;
+        }
+
       $linie++;
-      $lines .= "
-<br>&nbsp;<a name='l_$linie'>$linie</a><a href='#TOP'>^</a>&nbsp;:&nbsp;".$buffer;
+      $lines .= "<br>&nbsp;<a name='l_$linie'>$linie</a><a href='#TOP'>^</a>&nbsp;:&nbsp;".$buffer;
 
       if (is_integer($position = strpos($buffer, "@")) and $position === 0){
        if ($found_first_entry == -1) {
@@ -899,7 +1064,7 @@
 	  if ($linie > 3){
 	    echo "<br><a href='#l_$linie'>$linie</A> : entry=".$entry_type ." authname=".$authors_first_name[0]. " surn=".$authors_last_name[0];
 	    echo "
-	  <br><a href='#l_$linie'>$linie</a> : Insuficient dataa to insert the entry";
+    <br><a href='#l_$linie'>$linie</a> : Insuficient data to insert the entry";
 	    echo  "<br> &nbsp;  &nbsp; &nbsp; -> ". echoo($entry_type) . echoo($title). 
 	      echoo($year) . echoo($month1) .  echoo($day1). echoo($month2).
 	      echoo($day2) . echoo($journal) . echoo($booktitle) . echoo($key_) .
@@ -1058,7 +1223,7 @@
       unset($pos);
       if (is_integer($pos = strrpos($req_path, "/"))) $req_path = substr($req_path, 0, $pos + 1);
       $upl_btn = getParam('upbtn', $var_methods_type[1]);
-      mail($admin_mail, $mail_subj_prefix."[ADD PUB] ".($user?$user:"$comp_name")." added pub #$pub_ids from $comp_name/$ip", "<html><body>User: ".($user?"$user":"Not logged in")." &nbsp; &nbsp; from IP: $comp_name / $ip<br><br>has <b>ADDED</b> (via <i>$upl_btn</i>) the following ".$publicationl."(s):<br><br><div style='background-color: $subt_col'>".$publis."</div><br><br><a href='http://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=tmp&amp;ord=Date&amp;how=asc'>Click here</a> to see this modification.</body></html>", $headers);
+      mail($admin_mail, $mail_subj_prefix."[ADD PUB] ".($user?$user:"$comp_name")." added pub #$pub_ids from $comp_name/$ip", "<html><body>User: ".($user?"$user":"Not logged in")." &nbsp; &nbsp; from IP: $comp_name / $ip<br><br>has <b>ADDED</b> (via <i>$upl_btn</i>) the following ".$publicationl."(s):<br><br><div style='background-color: $subt_col'>".$publis."</div><br><br><a href='".$server_http_protocol."://".$_SERVER['SERVER_NAME'].$req_path . $account_sc."?my=tmp&amp;ord=Date&amp;how=asc'>Click here</a> to see this modification.</body></html>", $headers);
       //end send notification mail    
     }
   } else {
diff -w -B --recursive --new-file -u bibadmin-0.5/login.php bibadmin/login.php
--- bibadmin-0.5/login.php	2005-11-28 11:26:11.000000000 +0100
+++ bibadmin/login.php	2005-12-13 10:03:17.000000000 +0100
@@ -6,7 +6,7 @@
 require_once('./fc_login.php');
 
 function loginForm(){
-  global $referer, $user_ent, $chall, $show_ceas, $show_ceas_dif, $ip_in, $account_sc, $team_name, $team_url, $team_logo, $forgot_pass, $title_bg, $subt_col, $pub_col1, $f_e_1, $f_e_2, $db_bibliography, $tb_users, $webm_mail, $users_creation_from_ips_only, $mail_subj_prefix, $login_sc;
+  global $referer, $user_ent, $chall, $show_ceas, $show_ceas_dif, $ip_in, $account_sc, $team_name, $team_url, $team_logo, $forgot_pass, $title_bg, $subt_col, $pub_col1, $f_e_1, $f_e_2, $db_bibliography, $tb_users, $webm_mail, $users_creation_from_ips_only, $mail_subj_prefix, $login_sc, $server_http_protocol;
 ?>
     <tr>
        <td align="center"> 
@@ -76,7 +76,7 @@
 	  if (is_integer($pos = strpos($req_path, "?"))) $req_path = substr($req_path, 0, $pos);
 	  unset($pos);
 	  if (is_integer($pos = strrpos($req_path, "/"))) $req_path = substr($req_path, 0, $pos + 1);
-	  $req_path = "http://".$_SERVER['SERVER_NAME'].$req_path . $account_sc.'?ch=pass';
+	  $req_path = $server_http_protocol."://".$_SERVER['SERVER_NAME'].$req_path . $account_sc.'?ch=pass';
 	  mail(str_replace('&lt;','<',str_replace('&gt;','>',$row->email)), $mail_subj_prefix." Your account informations on $team_name ".$publication.'s server', "<html><body>Your username and new password information on $team_name ".$publication."s server are:<br><br><br><div align='left' style='padding:10px; background-color: $subt_col'>User: ".$row->user."<br>Password: ".$new_pass."</div><br><br><br>You should change your password at:<br><a href='$req_path'>$req_path</a><br><br></body></html>", $headers);
 	  
 	  echo "<div align='center' width='100%' style='padding: 15px;'><font face='arial'>New password generated and sent to <b>".str_replace('<','&lt;',str_replace('>','&gt;',$row->email));
diff -w -B --recursive --new-file -u bibadmin-0.5/parameters.php bibadmin/parameters.php
--- bibadmin-0.5/parameters.php	2005-11-28 18:00:19.000000000 +0100
+++ bibadmin/parameters.php	2006-04-05 16:53:36.000000000 +0200
@@ -40,6 +40,11 @@
 /*  Set the favourite icon */
 $shortcut_icon          = 'images/favicon.ico';
 
+/*  Set the http-server's hyper tranpsort protocol used for downloads and
+     accout purposes:
+     chose between 'http' and 'https' */
+$server_http_protocol = 'http';
+
 /*  Webmaster mail and displayed name (no email is visible to visitors nor
      to users) */
 $webm_mail              = '';
@@ -131,6 +136,16 @@
      accounts. (Use $modifs_notify_admins above to disable notifications)*/
 $admin_mail             = false;
 
+/* Code diacritical characters in bibtex-output. If set most characters 0xC0 to 0xFF
+    of the ISO/IEC 8859-1 table will be printed as e.g. ä => {\"a}, etc. */
+
+$code_diacritical_out = true;
+
+/* Code diacritical characters in bibtex-input. If set most characters 0xC0 to 0xFF
+    of the ISO/IEC 8859-1 table will be printed as e.g. {\"a} => ä etc. */
+
+$code_diacritical_in = true;
+
 
 /*  Other settings (play with then if you like) */
 
@@ -206,6 +221,7 @@
 //                              'Booklet', 'MastersThesis', 'TechReport', 'Manual', 'Unpublished', 'Misc');
 
 $status_list            = array('Actual '.$team_name.' member', 'Past '.$team_name.' member', 'Not an '.$team_name.' member');
+$default_status         = 2; //set to 0..$status_sist.sizeof()
 
 $var_methods_type       = array('GET', 'POST', 'COOKIE');
 
