diff --git a/doc/developper/Doxyfile b/doc/developper/Doxyfile index 86c6bac95..f3849ae72 100644 --- a/doc/developper/Doxyfile +++ b/doc/developper/Doxyfile @@ -680,7 +680,6 @@ EXCLUDE_PATTERNS = a?.php \ effects.js \ prototype.js \ scriptaculous.js \ - scripts.js \ slider.js \ sound.js \ unittest.js. diff --git a/html/ajax.php b/html/ajax.php index 18ce29bbf..d955a0749 100644 --- a/html/ajax.php +++ b/html/ajax.php @@ -12,6 +12,8 @@ require_once('class_user.php'); require_once('class_extension.php'); if ( !isset ($_REQUEST['gDossier'])) exit(); +mb_internal_encoding("UTF-8"); + $cn=new Database(dossier::id()); $user=new User($cn); $user->check(true); diff --git a/html/ajax_card.php b/html/ajax_card.php index 9ba548fbd..92ea7ec1c 100644 --- a/html/ajax_card.php +++ b/html/ajax_card.php @@ -61,6 +61,7 @@ require_once('function_javascript.php'); require_once('ac_common.php'); require_once ('class_user.php'); require_once ('class_fiche_attr.php'); +mb_internal_encoding("UTF-8"); $var=array('gDossier','op','ctl'); $cont=0; diff --git a/html/ajax_history.php b/html/ajax_history.php index 78bb9f24f..19ba4b4d7 100644 --- a/html/ajax_history.php +++ b/html/ajax_history.php @@ -32,6 +32,7 @@ require_once('class_html_input.php'); require_once('class_acc_account.php'); require_once('class_exercice.php'); $div=$_REQUEST['div']; +mb_internal_encoding("UTF-8"); /** *if $_SESSION['g_user'] is not set : echo a warning diff --git a/html/ajax_ledger.php b/html/ajax_ledger.php index a152661b9..dc4f4d3d2 100644 --- a/html/ajax_ledger.php +++ b/html/ajax_ledger.php @@ -48,6 +48,7 @@ if ( ! isset ($_REQUEST['act'])|| ! isset ($_REQUEST['jr_id']) exit(); } global $g_parameter; +mb_internal_encoding("UTF-8"); $action=$_REQUEST['act']; @@ -264,7 +265,7 @@ case 'file': $filename= $obj->det->jr_pj_name; if ( strlen($obj->det->jr_pj_name) > 20 ) { - $filename=substr($obj->det->jr_pj_name,0,23); + $filename=mb_substr($obj->det->jr_pj_name,0,23); } $h=sprintf('%s', $gDossier,$ledger,$obj->det->jr_grpt_id,h( $filename)); diff --git a/html/ajax_misc.php b/html/ajax_misc.php index 11ed14cd7..b0b052131 100644 --- a/html/ajax_misc.php +++ b/html/ajax_misc.php @@ -41,6 +41,7 @@ require_once('class_iradio.php'); require_once('function_javascript.php'); require_once('ac_common.php'); require_once ('class_user.php'); +mb_internal_encoding("UTF-8"); $var = array('gDossier', 'op'); $cont = 0; diff --git a/html/ajax_poste.php b/html/ajax_poste.php index 58d09085e..95b8ffc14 100644 --- a/html/ajax_poste.php +++ b/html/ajax_poste.php @@ -38,6 +38,7 @@ require_once('class_acc_ledger.php'); require_once ('class_database.php'); require_once('function_javascript.php'); require_once('class_acc_account_ledger.php'); +mb_internal_encoding("UTF-8"); extract($_REQUEST); $var=array('gDossier','op','ctl'); diff --git a/html/ajax_todo_list.php b/html/ajax_todo_list.php index 451b66c20..e00e2bacb 100644 --- a/html/ajax_todo_list.php +++ b/html/ajax_todo_list.php @@ -38,6 +38,7 @@ require_once ('class_dossier.php'); require_once ('class_todo_list.php'); require_once ('class_database.php'); require_once ('class_user.php'); +mb_internal_encoding("UTF-8"); $cn= Dossier::connect(); $user=new User($cn); diff --git a/html/do.php b/html/do.php index 8a57b0aa4..4059477c7 100644 --- a/html/do.php +++ b/html/do.php @@ -30,6 +30,8 @@ require_once('user_common.php'); require_once('ac_common.php'); require_once 'function_javascript.php'; require_once 'constant.security.php'; +mb_internal_encoding("UTF-8"); + // if gDossier is not set redirect to form to choose a folder if ( ! isset($_REQUEST['gDossier'])) { @@ -127,6 +129,7 @@ $module_selected = -1; if (isset($_REQUEST['ac'])) { + $_REQUEST['ac']= strtoupper($_REQUEST['ac']); $all = explode('/', $_REQUEST['ac']); $module_selected = $all[0]; $g_user->audit(); diff --git a/html/export.php b/html/export.php index 62932beb2..bcf44aba0 100644 --- a/html/export.php +++ b/html/export.php @@ -31,7 +31,7 @@ require_once('class_database.php'); require_once('class_user.php'); $gDossier=dossier::id(); $cn=new Database($gDossier); - +mb_internal_encoding("UTF-8"); $g_user=new User($cn); $g_user->Check(); $action=$g_user->check_dossier($gDossier); diff --git a/include/ac_common.php b/include/ac_common.php index 97ca10714..806fef0ea 100644 --- a/include/ac_common.php +++ b/include/ac_common.php @@ -829,7 +829,7 @@ function show_module($selected) } else { - var_dump($file); + // nothing : direct call to plugin } } if ( $file[0]['me_javascript'] != '') diff --git a/include/action.common.inc.php b/include/action.common.inc.php index 110dd5098..b172dd397 100644 --- a/include/action.common.inc.php +++ b/include/action.common.inc.php @@ -235,7 +235,7 @@ function ShowActionList($cn,$p_base) { // show the search menu ?> -