install/includes/libenanoinstall.php
changeset 1144 fcb2be1428e7
parent 1081 745200a9cc2a
child 1182 58af2268331b
equal deleted inserted replaced
1143:e271ae801c62 1144:fcb2be1428e7
   114   global $ui;
   114   global $ui;
   115   $ui->show_footer();
   115   $ui->show_footer();
   116   exit;
   116   exit;
   117 }
   117 }
   118 
   118 
       
   119 function install_get_crypto_backend()
       
   120 {
       
   121   $crypto_backend = 'none';
       
   122 
       
   123   // Extension test: BCMath
       
   124   if ( function_exists('bcadd') )
       
   125     $crypto_backend = 'bcmath';
       
   126   
       
   127   // Extension test: Big_Int
       
   128   if ( function_exists('bi_from_str') )
       
   129     $crypto_backend = 'bigint';
       
   130   
       
   131   // Extension test: GMP
       
   132   if ( function_exists('gmp_init') )
       
   133     $crypto_backend = 'gmp';
       
   134   
       
   135   return $crypto_backend;
       
   136 }
       
   137 
   119 function enano_perform_upgrade($target_branch)
   138 function enano_perform_upgrade($target_branch)
   120 {
   139 {
   121   global $db, $session, $paths, $template, $plugins; // Common objects
   140   global $db, $session, $paths, $template, $plugins; // Common objects
   122   // Import version info
   141   // Import version info
   123   global $enano_versions;
   142   global $enano_versions;