altocompta/include/ext_inc.php
Dany De Bontridder 17a8b3c777 Merged revisions 3235-3245 via svnmerge from
file:///home/developper/svn/phpcompta/branches/rel510

........
  r3236 | danydb | 2010-05-21 20:43:57 +0200 (Fri, 21 May 2010) | 1 line
  
  change place button exit
........
  r3237 | danydb | 2010-05-21 20:44:11 +0200 (Fri, 21 May 2010) | 1 line
  
  change place button exit
........
  r3238 | danydb | 2010-05-21 20:44:54 +0200 (Fri, 21 May 2010) | 1 line
  
  cosmetic : Button appearance button
........
  r3239 | danydb | 2010-05-21 20:46:01 +0200 (Fri, 21 May 2010) | 1 line
  
  Print : add receipt# for cat. of card
........
  r3240 | danydb | 2010-05-21 20:46:19 +0200 (Fri, 21 May 2010) | 1 line
  
  Update documentation
........
  r3241 | danydb | 2010-05-21 21:05:51 +0200 (Fri, 21 May 2010) | 1 line
  
  add function sql_string to protect 
........
  r3242 | danydb | 2010-05-22 00:50:31 +0200 (Sat, 22 May 2010) | 1 line
  
  bug in sql_string function : typo
........
  r3243 | danydb | 2010-05-22 12:03:49 +0200 (Sat, 22 May 2010) | 1 line
  
  Fix problem with quote for the TMP_PCMN function (ajax search accounting + add / remove and modify accounting)
........
  r3244 | danydb | 2010-05-22 12:27:19 +0200 (Sat, 22 May 2010) | 2 lines
  
  Bug in ajax_poste : change set_value(pcm_val,pcm_lib) by set_value(pcm_val,g('lib').innerHTML)
........
  r3245 | danydb | 2010-05-24 21:33:53 +0200 (Mon, 24 May 2010) | 2 lines
  
  Fix bug card cannot move due to a typo in Fiche::move_to function
........
2010-05-25 14:35:08 +00:00

27 lines
852 B
PHP

<?php
/* if a code has been asked */
if (isset($_REQUEST['plugin_code']) ) {
$cn=new Database(dossier::id());
$ext=new Extension($cn);
$ext->search('code',$_REQUEST['plugin_code']);
if ( $ext->get_parameter('id') != 0 ) {
/* security */
if ( $ext->can_request($_SESSION['g_user']) == 0 ) {
alert(j(_("Vous ne pouvez pas utiliser cette extension. Contactez votre responsable")));
exit();
}
/* show name of extension */
echo '<div style="position:absolute;left:3px;top:3px;margin:0;z-index:10" class="noprint">';
echo '<h2 class="error" style="display:inline;padding:0px;margin:0px">'.$ext->get_parameter('name').'</h2>';
echo '</div>';
require_once('ext'.DIRECTORY_SEPARATOR.trim($ext->get_parameter('filepath')));
} else {
alert(j(_("Cette extension n'existe pas ")));
exit();
}
}
?>